/* ============================================================
   WISHLIST PAGE — front-page (MushSkins) style
   Page ID 140 (slug: wishlist). Elementor page; cards are
   rendered client-side by store.js as .product-card markup.
   We ONLY restyle — store.js logic / markup / add+remove
   handlers are untouched. Cards are restyled to match the
   front-page .mush-scard look.
   Design system mirrors the home page:
     Accent #cde738 · dark bg #0c1202 · Bebas Neue / Inter ·
     rounding 32px · glossy inset shadows.
   ============================================================ */

body.page-id-140 {
	--wl-accent: #cde738;
	--wl-rgb: 205, 231, 54;
	--wl-card: linear-gradient(180deg, rgba(15,32,20,1) 0%, rgba(3,4,1,1) 100%);
	--wl-card-shadow:
		inset 0px 0.723px 1.879px -0.333px rgba(255,255,255,0.12),
		inset 0px 2.746px 7.14px -0.667px rgba(255,255,255,0.18),
		inset 0px 12px 31.2px -1px rgba(255,255,255,0.08);
	--wl-btn-shadow:
		inset 0px 1px 1px 0px rgba(255,255,255,0.06),
		inset 0px 1px 7.14px 0px rgba(255,255,255,0.14),
		inset 0px 4px 8px 0px rgba(255,255,255,0.2);
	--wl-title-gradient: radial-gradient(ellipse at 50% 50%, #fff152 0%, #cfe636 50%, #9edb1a 100%);
}

/* ── Page background — home recipe (#0c1202 + green glow).
   background-image layers beat the global
   body{background-color:#111111!important} override. ── */
body.page-id-140 {
	background-color: #0c1202 !important;
	background-image:
		radial-gradient(ellipse 120% 60% at 50% 14%, rgba(25, 62, 4, 0.7) 0%, transparent 62%),
		linear-gradient(#0c1202, #0c1202) !important;
	background-repeat: no-repeat !important;
}
body.page-id-140 .site-content,
body.page-id-140 .entry-content,
body.page-id-140 #page,
body.page-id-140 .page-wrapper { background: transparent !important; }
body.page-id-140 .site-content,
body.page-id-140 .page-wrapper { padding-top: 0; }

/* ── Page container — IDENTICAL spacing to contact-us (.ct-page/.ct-wrap).
   .wishlist-page is the (stretched) Elementor section; we turn its inner
   .elementor-container into a centred, padded container. ── */
body.page-id-140 .wishlist-page { padding-top: 0 !important; padding-bottom: 0 !important; }
body.page-id-140 .wishlist-page > .elementor-container {
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: calc(var(--header-h, 80px) + clamp(40px, 6vw, 72px)) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 100px) !important;
}

/* ══ Header (title + count) ══ */
.wishlist-page__title {
	font-family: 'Bebas Neue', sans-serif;
	font-size: clamp(44px, 7vw, 92px);
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: -1px;
	text-transform: uppercase;
	margin: 0 0 14px;
	background: var(--wl-title-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.wishlist-page__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: clamp(20px, 3vw, 32px);
	min-height: 20px;
}
.wishlist-page__count {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .4);
}

/* ══ Header (title + count) wrapper ══ */
.wishlist-page__header { margin-bottom: clamp(16px, 2.5vw, 26px); }

/* ══ Toolbar (sort + clear) ══ */
.wishlist-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: clamp(20px, 3vw, 32px);
}
.wishlist-toolbar__clear {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 18px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	color: rgba(255, 255, 255, .55);
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.wishlist-toolbar__clear svg { width: 13px; height: 13px; }
.wishlist-toolbar__clear:hover {
	color: #ff7a45;
	border-color: rgba(255, 122, 69, .5);
	background: rgba(255, 122, 69, .06);
}
.wishlist-toolbar__sort {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, .45);
}
.wishlist-toolbar__select {
	appearance: none;
	-webkit-appearance: none;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(var(--wl-rgb), .18);
	border-radius: 999px;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	padding: 9px 36px 9px 18px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23cde738' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	transition: border-color .2s ease;
}
.wishlist-toolbar__select:focus { outline: none; border-color: var(--wl-accent); }
.wishlist-toolbar__select option { background: #0c1202; color: #fff; }

/* ══ Grid ══ */
.wishlist-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(14px, 1.6vw, 20px);
}

/* store.js injects the grid into the Elementor content wrap (a flex-wrap
   container); force it to take a full row so cards aren't squished. */
body.page-id-140 .wishlist-page__container .wishlist-grid {
	width: 100%;
	flex: 0 0 100%;
	margin-top: clamp(16px, 2.5vw, 26px);
}

/* ══════════════════════════════════════════════════════════
   CARDS — restyled to match front-page .mush-scard
   (scoped to .wishlist-grid → beats mush-product-card.css)
══════════════════════════════════════════════════════════ */
.wishlist-grid .product-card {
	background: var(--wl-card) !important;
	border: none !important;
	border-radius: 32px !important;
	overflow: hidden;
	box-shadow: var(--wl-card-shadow) !important;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform .25s ease, box-shadow .25s ease !important;
}
.wishlist-grid .product-card:hover {
	transform: translateY(-6px) !important;
	box-shadow:
		var(--wl-card-shadow),
		0 16px 40px rgba(0,0,0,0.5),
		0 0 30px rgba(var(--wl-rgb),0.1) !important;
}

/* Image area */
.wishlist-grid .product-card__media {
	position: relative;
	background: transparent !important;
	aspect-ratio: 1 / 1;
	padding: 44px 20px 8px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.wishlist-grid .product-card__img {
	max-width: 100%;
	max-height: 180px;
	width: 100%;
	object-fit: contain;
	transition: transform .4s ease;
}
.wishlist-grid .product-card:hover .product-card__img { transform: scale(1.08); }

/* Discount badge */
.wishlist-grid .product-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	background: rgba(12, 18, 2, .85);
	border: 1px solid rgba(var(--wl-rgb), .35);
	color: var(--wl-accent);
	font-family: 'Bebas Neue', sans-serif;
	font-size: 13px;
	letter-spacing: .02em;
	padding: 3px 10px;
	border-radius: 999px;
}

/* Wish/remove button — circular like .mush-product-btn */
.wishlist-grid .product-card__wish {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 999px !important;
	background: linear-gradient(180deg, rgba(31,31,31,0.6) 0%, rgba(0,0,0,0.6) 100%) !important;
	border: 1px solid rgba(var(--wl-rgb), .3) !important;
	color: var(--wl-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	box-shadow: var(--wl-btn-shadow);
	transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.wishlist-grid .product-card__wish:hover {
	transform: scale(1.08);
	border-color: var(--wl-accent) !important;
}
.wishlist-grid .product-card__wish svg { width: 17px; height: 17px; pointer-events: none; }
.wishlist-grid .product-card__wish.active svg,
.wishlist-grid .product-card__wish svg {
	fill: var(--wl-accent) !important;
	stroke: var(--wl-accent) !important;
}

/* Body */
.wishlist-grid .product-card__body {
	padding: 8px 16px 16px !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.wishlist-grid .product-card__name {
	font-family: 'Bebas Neue', sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	letter-spacing: .01em;
	color: #fff !important;
	line-height: 1.1 !important;
	margin: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wishlist-grid .product-card__name:hover { color: var(--wl-accent) !important; }
.wishlist-grid .product-card__price-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 !important;
	flex-wrap: wrap;
}
.wishlist-grid .product-card__price {
	font-family: 'Bebas Neue', sans-serif !important;
	font-size: 22px !important;
	color: var(--wl-accent) !important;
	line-height: 1;
}
.wishlist-grid .product-card__old {
	font-size: 13px !important;
	color: rgba(255, 255, 255, .35) !important;
	text-decoration: line-through;
}

/* Add to cart — full-width pill (kept large for easy tapping) */
.wishlist-grid .product-card__add {
	width: 100%;
	height: 46px !important;
	margin-top: auto !important;
	background: var(--wl-accent) !important;
	color: #000 !important;
	font-family: 'Bebas Neue', sans-serif !important;
	font-size: 18px !important;
	letter-spacing: .03em !important;
	text-transform: uppercase;
	border: none !important;
	border-radius: 999px !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: var(--wl-btn-shadow);
	transition: transform .15s ease, filter .2s ease !important;
}
.wishlist-grid .product-card__add:hover {
	transform: scale(1.02);
	filter: brightness(1.04) drop-shadow(0 0 18px rgba(var(--wl-rgb), .4));
}
.wishlist-grid .product-card__add:active { transform: scale(.97); }
.wishlist-grid .product-card__add.loading,
.wishlist-grid .product-card__add:disabled { opacity: .7; cursor: wait; transform: none; }

/* ══════════════════════════════════════════════════════════
   EMPTY STATE (text comes from store.js — already correct)
══════════════════════════════════════════════════════════ */
.wishlist-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: clamp(56px, 9vw, 110px) 20px;
}
/* Icon wrapper — Elementor markup uses .wishlist-empty__visual;
   store.js fallback uses a .wishlist-empty__icon <div>. Cover both. */
.wishlist-empty__visual,
.wishlist-empty > .wishlist-empty__icon:not(svg) {
	width: 92px;
	height: 92px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 28px;
	border-radius: 999px;
	background: rgba(var(--wl-rgb), .07);
	border: 1px solid rgba(var(--wl-rgb), .2);
	color: var(--wl-accent);
	box-shadow: 0 0 40px rgba(var(--wl-rgb), .12);
}
.wishlist-empty__visual svg,
svg.wishlist-empty__icon { width: 40px; height: 40px; color: var(--wl-accent); }
.wishlist-empty__title {
	font-family: 'Bebas Neue', sans-serif;
	font-size: clamp(30px, 5vw, 54px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.5px;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 14px;
}
.wishlist-empty__text {
	font-family: 'Inter', sans-serif;
	font-size: clamp(14px, 1.6vw, 16px);
	color: rgba(255, 255, 255, .5);
	line-height: 1.65;
	max-width: 400px;
	margin: 0 0 32px;
}

/* Browse/Explore skins — front-page pill button.
   Targets the fallback .wishlist-empty__btn AND the Elementor
   .btn--green (whose inline styles we override with !important). */
.wishlist-empty__btn,
.wishlist-empty .btn--green {
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
	width: auto !important;
	height: 60px !important;
	padding: 0 40px !important;
	background: var(--wl-accent) !important;
	color: #000 !important;
	font-family: 'Bebas Neue', sans-serif !important;
	font-size: 26px !important;
	font-weight: 400 !important;
	letter-spacing: .02em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	border: none !important;
	border-radius: 999px !important;
	clip-path: none !important;
	box-shadow: var(--wl-btn-shadow) !important;
	transition: transform .2s ease, filter .2s ease !important;
}
.wishlist-empty__btn:hover,
.wishlist-empty .btn--green:hover {
	transform: scale(1.03);
	filter: brightness(1.04) drop-shadow(0 0 24px rgba(var(--wl-rgb), .45));
	color: #000 !important;
}
.wishlist-empty__btn:active,
.wishlist-empty .btn--green:active { transform: scale(.98); }
.wishlist-empty__btn:focus-visible,
.wishlist-empty .btn--green:focus-visible { outline: 2px solid var(--wl-accent); outline-offset: 4px; }

/* Category quick-links (.wishlist-empty__hints) — horizontal chips.
   The chip <svg> icons ship WITHOUT width/height attrs, so they MUST
   be sized here or they blow up to the default replaced size. */
.wishlist-empty__hints {
	display: none;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 32px;
	max-width: 480px;
}
.wishlist-empty__hint {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(var(--wl-rgb), .16);
	color: rgba(255, 255, 255, .7);
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.wishlist-empty__hint svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--wl-accent);
}
.wishlist-empty__hint:hover {
	color: #fff;
	border-color: var(--wl-accent);
	background: rgba(var(--wl-rgb), .08);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE  (desktop grid · tablet 2–3 · mobile 1–2)
══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
	.wishlist-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
	.wishlist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
	.wishlist-grid { grid-template-columns: 1fr; }
	.wishlist-grid .product-card__media { padding: 36px 16px 6px !important; }
}

/* ══ Reduced motion ══ */
@media (prefers-reduced-motion: reduce) {
	.wishlist-grid .product-card,
	.wishlist-grid .product-card__img,
	.wishlist-grid .product-card__wish,
	.wishlist-grid .product-card__add,
	.wishlist-empty__btn,
	.wishlist-empty .btn--green { transition: none !important; }
}
