/* ==========================================================================
   Wishlist
   ========================================================================== */

/* ── Toggle button (shared base) ───────────────────────────────────────── */

.kw-wishlist-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	padding: 0;
	margin: 0;
	line-height: 1;
	background: none;
	border: none;
	border-radius: 50%;
	color: #99A1AF;
	cursor: pointer;
	transition: color 0.2s, transform 0.15s, background-color 0.2s;
}

.kw-wishlist-btn:hover {
	color: #e94560;
	background-color: rgba(233, 69, 96, 0.08);
}

.kw-wishlist-btn:active {
	transform: scale(0.88);
}

.kw-wishlist-btn.is-active {
	color: #e94560;
	animation: kw-wishlist-pop 0.35s ease;
}

.kw-wishlist-btn.is-active .kw-wishlist-btn__icon {
	fill: currentColor;
}

.kw-wishlist-btn.is-loading {
	pointer-events: none;
	opacity: 0.5;
}

@keyframes kw-wishlist-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.25); }
	100% { transform: scale(1); }
}

/* ── Archive / product-card variant (inline in toolbar row) ─────────────── */

.kw-wishlist-btn--card {
	position: static;
	width: 32px;
	height: 32px;
}

.kw-wishlist-btn--card .kw-wishlist-btn__icon {
	width: 16px;
	height: 16px;
}

/* ── Single-product variant (labelled pill) ────────────────────────────── */

.kw-wishlist-btn--single {
	width: auto;
	height: auto;
	padding: 0.5rem 1rem;
	gap: 0.375rem;
	border-radius: 8px;
	border: 1px solid #dee2e6;
	font-size: 0.8125rem;
	font-weight: 600;
}

.kw-wishlist-btn--single::after {
	content: attr(aria-label);
}

.kw-wishlist-btn--single:hover {
	border-color: #e94560;
}

.kw-wishlist-btn--single .kw-wishlist-btn__icon {
	width: 18px;
	height: 18px;
}

/* ── Header element (icon + count badge) ───────────────────────────────── */

.header-kw-wishlist-icon {
	list-style: none;
}

#header .header-kw-wishlist-icon .kw-wishlist-link,
.header-kw-wishlist-icon .kw-wishlist-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #99A1AF;
	line-height: 1;
	transition: color 0.2s;
}

/* SVG stroke explicitly pinned so Flatsome's inherited .nav link color
   can't bleed through via `stroke="currentColor"`. */
#header .header-kw-wishlist-icon .kw-wishlist-link__icon,
.header-kw-wishlist-icon .kw-wishlist-link__icon {
	stroke: #99A1AF;
}

#header .header-kw-wishlist-icon .kw-wishlist-link:hover,
.header-kw-wishlist-icon .kw-wishlist-link:hover {
	color: #e94560;
}

#header .header-kw-wishlist-icon .kw-wishlist-link:hover .kw-wishlist-link__icon,
.header-kw-wishlist-icon .kw-wishlist-link:hover .kw-wishlist-link__icon {
	stroke: #e94560;
}

.header-kw-wishlist-icon .kw-wishlist-link__icon {
	width: 22px;
	height: 22px;
}

.kw-wishlist-count {
	position: absolute;
	top: -4px;
	right: -4px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1;
	background-color: #e94560;
	color: #fff;
	border-radius: 9px;
	pointer-events: none;
}

/* ── Page (empty state + grid wrapper) ─────────────────────────────────── */

.kw-wishlist-page__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 3rem 1rem;
	color: #6c757d;
}

.kw-wishlist-page__empty svg {
	margin-bottom: 1rem;
	opacity: 0.4;
}

.kw-wishlist-page__empty h2 {
	font-size: 1.25rem;
	color: #1a1a2e;
	margin-bottom: 0.5rem;
}

.kw-wishlist-page__empty p {
	margin-bottom: 1.5rem;
	max-width: 360px;
}

.kw-wishlist-page__loading {
	text-align: center;
	padding: 3rem 1rem;
	color: #6c757d;
}

@media (prefers-reduced-motion: reduce) {
	.kw-wishlist-btn {
		transition: none;
		animation: none;
	}
}
