/*! Miacasa Wishlist v1.0.0 — καρδιά, toast, μετρητής (φορτώνει σε όλο το site) */
:root {
	--mcw-ink: #1A1614;
	--mcw-gold: #B8965A;
	--mcw-gold-soft: #D9BC85;
	--mcw-bord: #72383D;
	--mcw-cream: #F8F4EE;
	--mcw-spring: cubic-bezier(.34, 1.56, .64, 1);
	--mcw-out: cubic-bezier(.16, 1, .3, 1);
}

/* ── Η καρδιά ─────────────────────────────────────────────── */
.mcw-heart.mcw-heart {
	--mcw-s: 40px;
	position: relative;
	box-sizing: border-box;
	display: inline-grid;
	place-items: center;
	width: var(--mcw-s);
	height: var(--mcw-s);
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50% !important; /* το θέμα βάζει !important γωνίες σε όλα τα button */
	background: rgba(255, 255, 255, .94);
	color: var(--mcw-ink);
	box-shadow: 0 1px 2px rgba(26, 22, 20, .06), 0 8px 20px -6px rgba(26, 22, 20, .28);
	font: inherit;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	overflow: visible;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;
	transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), background-color .3s, box-shadow .35s, color .3s;
}
/* μεγαλύτερη περιοχή αφής για το δάχτυλο (52px) */
.mcw-heart.mcw-heart::before {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
}
.mcw-heart--float.mcw-heart--float {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 6;
}
.mcw-heart--lg.mcw-heart--lg { --mcw-s: 50px; }
.mcw-heart--single.mcw-heart--single { top: 14px; right: 14px; }
@media (min-width: 768px) {
	.mcw-heart--card.mcw-heart--card { --mcw-s: 44px; top: 12px; right: 12px; }
}
/* το Woodmart βάζει γκρι :hover σε όλα τα button — στο κινητό «κολλάει» μετά το πάτημα */
.mcw-heart.mcw-heart:hover,
.mcw-heart.mcw-heart:focus,
.mcw-heart.mcw-heart:active {
	background: rgba(255, 255, 255, .94);
	color: var(--mcw-ink);
	box-shadow: 0 1px 2px rgba(26, 22, 20, .06), 0 8px 20px -6px rgba(26, 22, 20, .28);
}
.mcw-heart.mcw-heart.is-on { color: var(--mcw-bord); }
@media (hover: hover) {
	.mcw-heart.mcw-heart:hover {
		transform: scale(1.08);
		background: #fff;
		color: var(--mcw-bord);
		box-shadow: 0 1px 2px rgba(26, 22, 20, .06), 0 12px 26px -8px rgba(26, 22, 20, .34);
	}
}
.mcw-heart.mcw-heart:active { transform: scale(.86); transition-duration: .12s; }
.mcw-heart.mcw-heart:focus { outline: none; }
.mcw-heart.mcw-heart:focus-visible { outline: 2px solid var(--mcw-gold); outline-offset: 3px; }

.mcw-heart__svg {
	display: block;
	width: 50%;
	height: 50%;
	overflow: visible;
	pointer-events: none;
}
.mcw-heart__line {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linejoin: round;
	transition: stroke .3s;
}
.mcw-heart__fill {
	fill: var(--mcw-bord);
	transform: scale(0);
	transform-origin: center;
	transform-box: fill-box;
	transition: transform .5s var(--mcw-spring);
}
.mcw-heart.is-on .mcw-heart__fill { transform: scale(1); }

html:not(.mcw-ready) .mcw-heart,
html:not(.mcw-ready) .mcw-heart * { transition: none !important; }

/* καρδιά που «σκάει» */
.mcw-heart.is-pop .mcw-heart__svg { animation: mcw-pop .7s cubic-bezier(.2, .7, .3, 1); }
.mcw-heart.is-unpop .mcw-heart__svg { animation: mcw-unpop .45s ease; }
@keyframes mcw-pop {
	0% { transform: scale(1); }
	15% { transform: scale(.66); }
	45% { transform: scale(1.32); }
	70% { transform: scale(.93); }
	100% { transform: scale(1); }
}
@keyframes mcw-unpop {
	0% { transform: scale(1); }
	35% { transform: scale(.76); }
	100% { transform: scale(1); }
}

/* έκρηξη: δαχτυλίδι + χρυσές/μπορντό σπίθες */
.mcw-burst {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	pointer-events: none;
}
.mcw-burst b {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1.5px solid var(--mcw-gold);
	opacity: 0;
	animation: mcw-ring .7s cubic-bezier(.2, .7, .3, 1) forwards;
}
.mcw-burst i {
	position: absolute;
	left: 50%;
	top: 50%;
	width: var(--z, 6px);
	height: var(--z, 6px);
	margin: calc(var(--z, 6px) / -2) 0 0 calc(var(--z, 6px) / -2);
	border-radius: 50%;
	background: var(--c, var(--mcw-gold));
	opacity: 0;
	animation: mcw-dot .85s cubic-bezier(.15, .8, .3, 1) forwards;
}
@keyframes mcw-ring {
	0% { opacity: .9; transform: scale(.5); }
	100% { opacity: 0; transform: scale(1.9); }
}
@keyframes mcw-dot {
	0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.3); }
	55% { opacity: 1; }
	100% { opacity: 0; transform: rotate(var(--a)) translateY(var(--r)) scale(0); }
}

/* η μικρή καρδιά που πετάει προς τον μετρητή */
.mcw-fly {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 2147483000;
	width: 22px;
	height: 22px;
	color: var(--mcw-bord);
	pointer-events: none;
	will-change: transform, opacity;
}
.mcw-fly svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
	filter: drop-shadow(0 3px 6px rgba(114, 56, 61, .35));
}

/* ── Toast ────────────────────────────────────────────────── */
.mcw-toast {
	position: fixed;
	left: 50%;
	bottom: calc(14px + var(--mcw-bottom, 0px) + env(safe-area-inset-bottom, 0px));
	z-index: 2147483000;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 12px;
	width: max-content;
	max-width: calc(100vw - 24px);
	min-height: 60px;
	padding: 9px 9px 9px 10px;
	border-radius: 18px;
	background: var(--mcw-ink);
	color: var(--mcw-cream);
	font: 500 16px/1.3 "Manrope", "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	letter-spacing: .01em;
	box-shadow: 0 22px 50px -16px rgba(10, 8, 7, .6), inset 0 0 0 1px rgba(184, 150, 90, .3);
	opacity: 0;
	visibility: hidden;
	transform: translate3d(-50%, calc(100% + 40px), 0) scale(.96);
	transition: transform .5s cubic-bezier(.5, 0, .75, 0), opacity .3s ease, visibility 0s .5s;
}
.mcw-toast.is-in {
	opacity: 1;
	visibility: visible;
	transform: translate3d(-50%, 0, 0) scale(1);
	transition: transform .65s cubic-bezier(.2, 1.25, .35, 1), opacity .3s ease, visibility 0s;
}
.mcw-toast.is-bump { animation: mcw-tbump .45s ease; }
@keyframes mcw-tbump { 50% { transform: translate3d(-50%, -4px, 0) scale(1.03); } }

.mcw-toast__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(184, 150, 90, .16);
	color: var(--mcw-gold-soft);
}
.mcw-toast__icon svg { display: block; width: 20px; height: 20px; }
.mcw-toast.is-in .mcw-toast__icon svg { animation: mcw-beat .8s .15s cubic-bezier(.2, .7, .3, 1) both; }
.mcw-toast__msg {
	padding-right: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mcw-toast__act {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	background: var(--mcw-cream);
	color: var(--mcw-ink) !important;
	font: inherit;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .25s, transform .2s;
}
.mcw-toast__act svg { width: 16px; height: 16px; }
.mcw-toast__act:hover { background: #fff; }
.mcw-toast__act:active { transform: scale(.95); }
.mcw-toast__act:focus-visible { outline: 2px solid var(--mcw-gold); outline-offset: 2px; }
.mcw-toast [hidden] { display: none !important; }

@keyframes mcw-beat {
	0% { transform: scale(1); }
	30% { transform: scale(1.35); }
	60% { transform: scale(.92); }
	100% { transform: scale(1); }
}

/* ── Μετρητής για custom header: [miacasa_wishlist_count] ── */
.mcw-counter {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: inherit;
	text-decoration: none;
}
.mcw-counter svg { width: 22px; height: 22px; }
.mcw-counter__n {
	position: absolute;
	top: 3px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--mcw-bord);
	color: #fff;
	font: 600 11px/18px system-ui, -apple-system, sans-serif;
	text-align: center;
	transition: transform .35s var(--mcw-spring);
}
.mcw-counter.is-empty .mcw-counter__n { transform: scale(0); }

/* ── Κρύβει το παλιό wishlist του Woodmart ────────────────── */
.mcw-no-wd .wd-wishlist-btn { display: none !important; }
.mcw-no-wd .wd-buttons:not(:has(> :not(.wd-wishlist-btn))) { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	.mcw-heart, .mcw-heart *, .mcw-toast, .mcw-toast * {
		animation: none !important;
		transition-duration: .01ms !important;
	}
}
