/* EZRA SHOP — Wishlist. Heart toggle, count badge, login toast. RTL-safe. */

:root {
	--ezra-wishlist-accent: #ff4757;
}

.ezra-wishlist-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 7px rgba(0, 0, 0, 0.16);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.15s ease, background 0.15s ease;
}
.ezra-wishlist-btn svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: #555;
	stroke-width: 2;
	transition: fill 0.15s ease, stroke 0.15s ease;
}
/* Hover/focus colors the heart only — never recolor the white circle. */
.ezra-wishlist-btn:hover,
.ezra-wishlist-btn:focus,
.ezra-wishlist-btn:active {
	background: rgba(255, 255, 255, 0.92) !important;
}
.ezra-wishlist-btn:hover svg {
	stroke: var(--ezra-wishlist-accent);
}
.ezra-wishlist-btn.is-active svg {
	fill: var(--ezra-wishlist-accent);
	stroke: var(--ezra-wishlist-accent);
}
.ezra-wishlist-btn.is-active {
	animation: ezra-wl-pop 0.32s ease;
}
@keyframes ezra-wl-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.25); }
	100% { transform: scale(1); }
}
.ezra-wishlist-btn.is-busy {
	opacity: 0.55;
	pointer-events: none;
}
.ezra-wishlist-btn:focus {
	outline: none;
}

/* Auto-injected onto a product card (top-right corner). */
.ezra-wishlist-btn--auto {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 5;
}

/* On the single product page (next to the add-to-cart button). */
.ezra-wishlist-single {
	display: inline-flex;
	vertical-align: middle;
	margin-inline-start: 12px;
}

/* Count badge (for a header icon). */
.ezra-wishlist-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: var(--ezra-wishlist-accent);
	color: #fff;
	font-family: 'Assistant', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 999px;
	line-height: 1;
}
.ezra-wishlist-count.is-empty {
	display: none;
}

/* Header link: heart icon + count badge (for the top menu). */
.ezra-wishlist-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
	line-height: 0;
}
.ezra-wishlist-link-icon {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	transition: stroke 0.15s ease;
}
.ezra-wishlist-link:hover .ezra-wishlist-link-icon {
	stroke: var(--ezra-wishlist-accent);
}
.ezra-wishlist-link .ezra-wishlist-count {
	position: absolute;
	top: -7px;
	inset-inline-end: -9px; /* left side of the heart in RTL */
	min-width: 18px;
	height: 18px;
	font-size: 0.68rem;
	box-shadow: 0 0 0 2px #fff;
}

/* "Log in to save" toast. */
.ezra-wishlist-login {
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translate(-50%, 14px);
	z-index: 100003;
	background: #111;
	color: #fff;
	font-family: 'Assistant', sans-serif;
	font-weight: 600;
	font-size: 0.92rem;
	padding: 12px 22px;
	border-radius: 999px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}
.ezra-wishlist-login.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Empty favorites page. */
.ezra-wishlist-empty {
	font-family: 'Assistant', sans-serif;
	text-align: center;
	color: #777;
	font-size: 1.05rem;
	padding: 40px 20px;
}
