/* =========================================================================
   Moonbeams & Moss Apothecary — theme stylesheet
   ========================================================================= */

/* -----------------------------------------------------------------------
   1. CSS VARIABLES (Section 6 / 6.1 — colors overridden live by PHP inline
      style + customizer-preview.js; everything else here are fixed tokens)
   -------------------------------------------------------------------- */
:root {
	--color-background: #17120d;
	--color-foreground: #f4efe6;
	--color-card: #251b0e;
	--color-primary: #4a2b5a;
	--color-primary-foreground: #f4efe6;
	--color-muted-foreground: #c2b6a3;
	--color-border: #403326;
	--color-accent: #ea7d3e;
	--color-marigold: #d8a746;
	--color-rosa: #df90a4;
	--color-lilac: #c2a2cd;
	--color-teal: #59c09d;
	--color-button-text: var(--color-background);

	--font-display: 'Fraunces', serif;
	--font-body: 'Inter', sans-serif;
	--font-handwritten: 'Caveat', cursive;
	--font-rounded: 'Fredoka', sans-serif;

	--radius: 0.5rem;
	--shadow-soft: 0 4px 24px -6px rgba(0, 0, 0, 0.55);
	--shadow-elevated: 0 12px 48px -10px rgba(0, 0, 0, 0.7);

	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
	--transition-smoother: cubic-bezier(0.22, 1, 0.36, 1);

	--logo-height: 56px;
	--header-height: 80px;

	--btn-radius: 9999px;
	--btn-height: 44px;
	--btn-padding: 0 2rem;
	--btn-font-size: 12px;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.02em;
	--btn-text-transform: none;
	--btn-icon-padding: 0.6rem;
}

/* -----------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { max-width: 100%; overflow-x: clip; }
/* Author display rules (e.g. .theme-product-card-wrap { display:flex }) must not beat [hidden]. */
[hidden] { display: none !important; }
body {
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}
/* Neutralize WooCommerce / plugin chrome that fights brand UI */
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* Anchor offset parity with Lovable scroll-mt-24 */
#about, #shop, #contact { scroll-margin-top: 6rem; }

/* Section 2.2.4 — heading weight/size reset before per-element rules. */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
}

/* Section 15.1 — global img rule must not break cover/full-bleed images. */
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero-bg-img, .product-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding: 0 2rem; }
}

.theme-link-underline {
	position: relative;
	display: inline-block;
}
.theme-link-underline::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-link-underline:hover::after { transform: scaleX(1); }

/* -----------------------------------------------------------------------
   3. SCROLL REVEAL (Section 2.1)
   -------------------------------------------------------------------- */
.reveal-item {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--transition-smoother), transform 0.7s var(--transition-smoother);
}
.reveal-item[data-reveal="fade"] { transform: none; }
.reveal-item[data-reveal="fade-left"] { transform: translateX(-32px); transition-duration: 0.8s; }
.reveal-item.is-visible { opacity: 1; transform: none; }

body.is-customizer .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}
/* USP phrases must keep rotateText opacity/transform — do not force all visible. */
body.is-customizer .theme-usp-phrase {
	animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.reveal-item { opacity: 1 !important; transform: none !important; }
}

/* -----------------------------------------------------------------------
   4. KEYFRAMES
   -------------------------------------------------------------------- */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes hero-particle-rise {
	0% { transform: translate3d(var(--drift-x-start, 0), 0, 0); opacity: 0; }
	10% { opacity: var(--p-opacity, 0.6); }
	50% { transform: translate3d(var(--drift-x-mid, 0), -50vh, 0); }
	90% { opacity: var(--p-opacity, 0.6); }
	100% { transform: translate3d(var(--drift-x-end, 0), -110vh, 0); opacity: 0; }
}
@keyframes hero-fog-drift-a { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(30px,-20px,0) scale(1.04); } }
@keyframes hero-fog-drift-b { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-25px,-28px,0) scale(1.03); } }
@keyframes btnpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(184,144,74,0); } 50% { box-shadow: 0 0 18px 4px rgba(184,144,74,0.28); } }
@keyframes twinkle { 0%,100% { opacity: 0.4; transform: scale(1) rotate(0deg); } 50% { opacity: 1; transform: scale(1.2) rotate(12deg); } }
@keyframes wiggle { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes shipNoteWiggle {
	0%, 100% { transform: rotate(-7deg); }
	50% { transform: rotate(-3deg); }
}
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rotateText {
	0%, 20.4545% { opacity: 1; transform: translateY(0); }
	25% { opacity: 0; transform: translateY(-8px); }
	25.001%, 95.4545% { opacity: 0; transform: translateY(8px); }
	100% { opacity: 1; transform: translateY(0); }
}
@keyframes badgeShimmer { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.4); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
	.theme-hero-video, .btnpulse-el, .hero-particle, .hero-fog-a, .hero-fog-b, .theme-twinkle, .theme-usp-icon svg { animation: none !important; }
	.hero-particles-layer, .hero-fog-layer { display: none !important; }
}

/* -----------------------------------------------------------------------
   5. HEADER
   -------------------------------------------------------------------- */
.theme-announcement-bar {
	position: relative;
	background: var(--color-accent);
	color: var(--color-foreground);
	border-bottom: 1px solid rgba(64,51,38,0.6);
}
.theme-announcement-inner { padding: 0.625rem 0; text-align: center; }
.theme-announcement-text { font-family: var(--font-handwritten); font-size: 15px; letter-spacing: 0.025em; color: rgba(23,18,13,0.9); margin: 0; }
.theme-twinkle { display: inline-block; animation: twinkle 2.8s ease-in-out infinite; }
.theme-announcement-dismiss { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); padding: 0.25rem; opacity: 0.7; }
.theme-announcement-dismiss:hover { opacity: 1; }

.site-header {
	position: sticky; top: 0; left: 0; right: 0; z-index: 50;
	transition: background-color 0.3s var(--transition-smooth), border-color 0.3s var(--transition-smooth);
	background: transparent; border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.mobile-open {
	background: rgba(23,18,13,0.95);
	backdrop-filter: blur(8px);
	border-bottom-color: rgba(64,51,38,0.6);
}
.site-nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 768px) { .site-nav { height: 80px; } }
.site-brand { display: flex; align-items: center; gap: 0.75rem; height: 100%; padding: 0.25rem 0; flex-shrink: 0; }
@media (min-width: 768px) { .site-brand { padding: 0.375rem 0; } }
.site-logo-img {
	height: 100%;
	max-height: var(--logo-height);
	width: auto !important;
	object-fit: contain;
	display: block;
	transition: filter 0.3s;
}
.site-brand:hover .site-logo-img { filter: drop-shadow(0 0 10px rgba(200,169,106,0.35)); }
.site-logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--color-foreground); }

.site-nav-desktop { display: none; align-items: center; gap: 2.5rem; }
@media (min-width: 1024px) { .site-nav-desktop { display: flex; } }
.theme-nav-list { display: flex; align-items: center; gap: 2.5rem; }
.theme-nav-link {
	position: relative; font-family: var(--font-handwritten); font-size: 17px; letter-spacing: 0.01em;
	color: rgba(244,239,230,0.8); padding: 0.5rem 0; transition: color 0.2s;
}
.theme-nav-link:hover { color: var(--color-marigold); }
.theme-nav-link::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--color-marigold);
	transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.theme-nav-link:hover::after { transform: scaleX(1); }
.site-ship-note {
	display: none;
	font-family: var(--font-handwritten);
	font-size: 1.125rem;
	color: var(--color-marigold);
	transform: rotate(-6deg);
	transform-origin: center;
	animation: shipNoteWiggle 3s ease-in-out infinite;
	margin-left: 0.5rem;
	white-space: nowrap;
}
@media (min-width: 1280px) { .site-ship-note { display: inline-block; } }

.site-nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-cart-toggle {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(244,239,230,0.25);
	color: var(--color-foreground); transition: all 0.2s;
}
.theme-cart-toggle:hover { border-color: var(--color-marigold); color: var(--color-marigold); }
.theme-cart-count {
	position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9999px; background: var(--color-marigold); color: var(--color-background);
	font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.theme-cart-count:empty { display: none; }
.theme-mobile-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	color: inherit;
	transition: color 0.2s;
}
.theme-mobile-toggle:hover { color: var(--color-marigold); }
.theme-mobile-toggle .theme-icon-open,
.theme-mobile-toggle .theme-icon-close {
	display: block;
	transition: opacity 0.28s var(--transition-smooth), transform 0.35s var(--transition-smoother);
}
.theme-mobile-toggle .theme-icon-close {
	position: absolute;
	opacity: 0;
	transform: rotate(-90deg) scale(0.75);
	pointer-events: none;
}
.theme-mobile-toggle.is-open .theme-icon-open {
	opacity: 0;
	transform: rotate(90deg) scale(0.75);
}
.theme-mobile-toggle.is-open .theme-icon-close {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }

/* Mobile panel — Lovable layout + slide/fade + staggered links */
.site-nav-mobile {
	display: grid;
	grid-template-rows: 0fr;
	border-top: 1px solid transparent;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transition:
		grid-template-rows 0.45s var(--transition-smoother),
		opacity 0.35s var(--transition-smooth),
		border-color 0.3s var(--transition-smooth),
		visibility 0s linear 0.4s;
}
.site-nav-mobile__inner {
	overflow: hidden;
	min-height: 0;
	padding: 0;
	transform: translateY(-10px);
	transition: transform 0.4s var(--transition-smoother), padding 0.35s var(--transition-smooth);
}
.site-nav-mobile.is-open {
	grid-template-rows: 1fr;
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	border-top-color: rgba(64,51,38,0.6);
	transition-delay: 0s;
}
.site-nav-mobile.is-open .site-nav-mobile__inner {
	padding: 1rem 0;
	transform: translateY(0);
}
@media (min-width: 1024px) {
	.site-nav-mobile { display: none !important; }
}

.site-nav-mobile .theme-nav-list,
.site-nav-mobile .theme-nav-list-mobile {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav-mobile .theme-nav-link {
	display: block;
	text-align: left;
	font-family: var(--font-handwritten);
	font-size: 1.125rem;
	letter-spacing: 0.025em;
	padding: 0.75rem 0.25rem;
	color: var(--color-foreground);
	opacity: 0;
	transform: translateY(14px);
	transition:
		color 0.2s,
		opacity 0.4s var(--transition-smoother),
		transform 0.45s var(--transition-smoother);
}
.site-nav-mobile .theme-nav-link::after { display: none; }
.site-nav-mobile .theme-nav-link:hover { color: var(--color-marigold); }
.site-ship-note-mobile {
	display: flex;
	justify-content: flex-end;
	margin: 1.25rem 0 0.15rem;
	padding: 0.85rem 0.15rem 0.15rem;
	border-top: 1px solid rgba(64, 51, 38, 0.45);
	opacity: 0;
	transform: translateY(14px);
	transition:
		opacity 0.4s var(--transition-smoother),
		transform 0.45s var(--transition-smoother);
}
.site-ship-note-mobile__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	max-width: 100%;
	padding: 0.35rem 0.15rem;
	font-family: var(--font-handwritten);
	font-size: 1.125rem;
	letter-spacing: 0.025em;
	line-height: 1.25;
	color: var(--color-marigold);
	transform: rotate(-5deg);
	transform-origin: right center;
	animation: shipNoteWiggle 3s ease-in-out infinite;
	animation-play-state: paused;
}
.site-ship-note-mobile__sparkle {
	flex-shrink: 0;
	opacity: 0.9;
}
.site-nav-mobile.is-open .theme-nav-link {
	opacity: 1;
	transform: translateY(0);
}
.site-nav-mobile.is-open .site-ship-note-mobile {
	opacity: 1;
	transform: translateY(0);
}
.site-nav-mobile.is-open .site-ship-note-mobile__badge {
	animation-play-state: running;
}
.site-nav-mobile.is-open li:nth-child(1) .theme-nav-link { transition-delay: 0.06s; }
.site-nav-mobile.is-open li:nth-child(2) .theme-nav-link { transition-delay: 0.12s; }
.site-nav-mobile.is-open li:nth-child(3) .theme-nav-link { transition-delay: 0.18s; }
.site-nav-mobile.is-open li:nth-child(4) .theme-nav-link { transition-delay: 0.24s; }
.site-nav-mobile.is-open li:nth-child(5) .theme-nav-link { transition-delay: 0.3s; }
.site-nav-mobile.is-open .site-ship-note-mobile { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
	.site-nav-mobile,
	.site-nav-mobile__inner,
	.site-nav-mobile .theme-nav-link,
	.site-ship-note-mobile,
	.site-ship-note-mobile__badge,
	.theme-mobile-toggle .theme-icon-open,
	.theme-mobile-toggle .theme-icon-close {
		transition: none !important;
		animation: none !important;
		transform: none !important;
	}
	.site-nav-mobile:not(.is-open) { display: none; }
	.site-nav-mobile.is-open .theme-nav-link,
	.site-nav-mobile.is-open .site-ship-note-mobile { opacity: 1; }
}

/* -----------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------- */
.theme-hero { background: var(--color-background); }
.theme-hero-inner {
	position: relative; width: 100%; min-height: 100dvh; height: 100dvh; overflow: hidden;
}
.theme-hero-media { position: absolute; inset: 0; will-change: transform; }
.theme-hero-video {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
	animation: kenburns 16s ease-in-out infinite alternate;
	will-change: transform;
}
.theme-hero-gradient {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(to bottom, rgba(14,11,8,0.28) 0%, rgba(14,11,8,0.52) 55%, rgba(14,11,8,0.70) 100%);
}
.theme-hero-atmosphere { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.hero-particles-layer, .hero-fog-layer { position: absolute; inset: 0; overflow: hidden; }
.hero-particle { position: absolute; border-radius: 50%; }
.hero-fog-a { position: absolute; left: -15%; bottom: -20%; width: 60%; height: 60%; border-radius: 50%; filter: blur(70px); background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%); animation: hero-fog-drift-a 14s ease-in-out infinite alternate; }
.hero-fog-b { position: absolute; right: -15%; bottom: -25%; width: 65%; height: 65%; border-radius: 50%; filter: blur(80px); background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%); animation: hero-fog-drift-b 18s ease-in-out infinite alternate; }
.theme-hero-stars { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.theme-star { position: absolute; color: var(--color-marigold); animation: twinkle 2.8s ease-in-out infinite; }
.star-1 { top: 18%; left: 12%; opacity: 0.7; }
.star-2 { top: 28%; right: 18%; opacity: 0.6; animation-delay: 0.8s; }
.star-3 { top: 10%; right: 34%; color: var(--color-lilac); opacity: 0.7; animation-delay: 1.6s; }
.star-4 { bottom: 40%; left: 28%; color: var(--color-lilac); opacity: 0.6; animation-delay: 2.2s; }

.theme-hero-content {
	position: relative; z-index: 4; height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.theme-hero-content-inner { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.theme-hero-eyebrow {
	display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-handwritten);
	font-size: 1.125rem; color: var(--color-marigold); text-shadow: 0 1px 8px rgba(14,11,8,0.9);
}
@media (min-width: 768px) { .theme-hero-eyebrow { font-size: 1.25rem; } }
.theme-hero-title {
	font-family: var(--font-display); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em;
	margin-top: 1rem; font-size: clamp(3.5rem, 8vw, 7rem);
}
.theme-hero-title-line1 {
	display: block; position: relative; color: #f0e8dc;
	text-shadow: 0 2px 24px rgba(14,11,8,0.85), 0 1px 4px rgba(14,11,8,0.95);
}
.theme-hero-title-line2 {
	display: block; font-style: italic; color: var(--color-marigold);
	text-shadow: 0 2px 24px rgba(14,11,8,0.85), 0 1px 4px rgba(14,11,8,0.95);
}
.theme-hero-handwritten {
	position: absolute; top: -1rem; left: -0.5rem; font-family: var(--font-handwritten);
	font-size: 1.5rem; color: var(--color-rosa); transform: rotate(-12deg); animation: wiggle 3s ease-in-out infinite;
}
@media (min-width: 768px) { .theme-hero-handwritten { left: -2rem; font-size: 1.875rem; } }
.theme-hero-subtext {
	margin-top: 1rem; max-width: 500px; margin-left: auto; margin-right: auto;
	font-family: var(--font-body); line-height: 1.6; font-size: 22px;
	color: rgba(240,232,220,0.92); text-shadow: 0 1px 12px rgba(14,11,8,0.95);
}
.theme-hero-ctas { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; }
.theme-btn-hero-primary {
	display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
	background: var(--color-accent); color: var(--color-background);
	border-radius: 9999px; padding: 1rem 2.25rem; font-size: 14px; letter-spacing: 0.025em;
	font-family: var(--font-rounded); font-weight: 600; text-transform: none;
	box-shadow: 0 0 0 1px rgba(216,167,70,0.25), 0 0 28px -4px rgba(216,167,70,0.35);
	animation: btnpulse 3s ease-in-out infinite;
	transition: background-color 0.2s, box-shadow 220ms var(--transition-smooth), transform 220ms var(--transition-smooth);
}
.theme-btn-hero-primary:hover {
	background: rgba(234,125,62,0.9);
	transform: translateY(-1px);
	box-shadow: 0 0 0 1px rgba(216,167,70,0.4), 0 0 28px -2px rgba(216,167,70,0.4);
}
.theme-btn-hero-outline {
	display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 0; font-size: 15px;
	font-family: var(--font-handwritten); letter-spacing: 0.025em; color: #fff; text-transform: none;
}

/* -----------------------------------------------------------------------
   7. MARQUEE
   -------------------------------------------------------------------- */
.theme-marquee { overflow: hidden; padding: 1rem 0; border-top: 1px solid rgba(64,51,38,0.6); border-bottom: 1px solid rgba(64,51,38,0.6); }
.theme-marquee-track { display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; animation: marqueeScroll linear infinite; }
.theme-marquee-item { display: flex; align-items: center; gap: 2.5rem; flex-shrink: 0; }
.theme-marquee-word { font-family: var(--font-handwritten); font-size: 1.125rem; letter-spacing: 0.02em; text-transform: lowercase; }
@media (min-width: 768px) { .theme-marquee-word { font-size: 1.25rem; } }
.theme-marquee-sparkle { opacity: 0.7; }
.theme-marquee--rosa { background: var(--color-rosa); color: var(--color-primary); }
.theme-marquee--lilac { background: var(--color-lilac); color: var(--color-primary); }
.theme-marquee--marigold { background: var(--color-marigold); color: var(--color-primary); }
.theme-marquee--nopal { background: var(--color-accent); color: var(--color-background); }
.theme-marquee--teal { background: var(--color-teal); color: var(--color-background); }
.theme-marquee--indigo { background: var(--color-primary); color: var(--color-foreground); }

/* -----------------------------------------------------------------------
   8. SECTION HEADINGS (per-section scales — Section 2.2.5)
   -------------------------------------------------------------------- */
.theme-section-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-handwritten); font-size: 1.125rem; color: var(--color-marigold); margin-bottom: 0.75rem; }
@media (min-width: 768px) { .theme-section-eyebrow { font-size: 1.25rem; } }
.theme-section-heading { font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; color: var(--color-foreground); }
.theme-heading-italic { font-style: italic; color: var(--color-marigold); position: relative; }
.theme-scribble-wrap { display: inline-block; position: relative; }
.theme-scribble { position: absolute; bottom: -0.25rem; left: 0; width: 100%; height: 12px; color: var(--color-marigold); }
.theme-section-rule { margin: 1rem 0 2rem; width: 60px; border: 0; border-bottom: 1px solid rgba(64,51,38,0.4); }

.bestsellers-heading { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.shop-heading { font-size: 2.25rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3.75rem; } }
.about-heading { font-size: 2.25rem; margin-bottom: 1.5rem; line-height: 1.02; }
@media (min-width: 768px) { .about-heading { font-size: 3.75rem; } }
.contact-heading { font-weight: 900; font-size: 2.25rem; margin-bottom: 1.25rem; line-height: 1.02; }
@media (min-width: 768px) { .contact-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .contact-heading { font-size: 4.5rem; } }

/* -----------------------------------------------------------------------
   9. BEST SELLERS + PRODUCT CARDS (Section 31.9, 31.13)
   -------------------------------------------------------------------- */
.theme-bestsellers-wrap { position: relative; background: var(--color-card); border-top: 1px solid rgba(64,51,38,0.2); }
.theme-bestsellers-spotlight {
	position: absolute; inset: 0; pointer-events: none;
	opacity: 0; transition: opacity 600ms ease-out;
	background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(216,167,70,0.07) 0%, rgba(48,38,28,0.04) 40%, transparent 70%);
}
.theme-bestsellers-section { position: relative; z-index: 1; padding: 5rem 0; }
@media (min-width: 768px) { .theme-bestsellers-section { padding: 6rem 0; } }
.theme-section-header { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .theme-section-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.theme-shopall-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-handwritten); font-size: 15px; color: var(--color-foreground); align-self: flex-start; }

.theme-bestsellers-grid, .theme-product-grid {
	display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; align-items: stretch;
}
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-bestsellers-grid, .theme-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }
.theme-related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 1024px) { .theme-related-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.theme-product-card-wrap { position: relative; height: 100%; display: flex; flex-direction: column; }
.theme-product-card-wrap.is-filtered-out,
.theme-product-card-wrap[hidden] { display: none !important; }
.tilt-soft-left { transform: rotate(-1.5deg); }
.tilt-soft-right { transform: rotate(1.5deg); }
.theme-bestseller-tilt { height: 100%; }

.theme-badge {
	position: absolute; z-index: 4; padding: 0.375rem 1rem; border-radius: 9999px;
	font-family: var(--font-rounded); font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
	background: var(--color-foreground); color: var(--color-background); transform: rotate(1deg);
}
.theme-badge--top-right { top: 1rem; right: 1rem; }

/* Standard shop card (ProductCard.tsx) */
.theme-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-link { display: block; text-decoration: none; color: inherit; }
.theme-product-card__image-wrapper {
	position: relative; aspect-ratio: 1/1; background: var(--color-card); border-radius: 1rem; overflow: hidden;
	margin-bottom: 1.25rem; border: 1px solid var(--color-border); transition: all 0.3s;
}
.theme-product-card-wrap:hover .theme-product-card__image-wrapper {
	border-color: rgba(216,167,70,0.4);
	box-shadow: 0 22px 44px -22px rgba(0,0,0,0.7), 0 0 0 1px rgba(200,169,106,0.18);
	transform: translateY(-4px) rotate(0.5deg);
}
.theme-card-img-primary { position: absolute; inset: 0; transition: opacity 0.3s ease-out; }
.theme-card-img-secondary { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease-out; display: none; }
@media (min-width: 768px) { .theme-card-img-secondary { display: block; } }
.theme-product-card-wrap:hover .theme-card-img-primary { opacity: 0; }
.theme-product-card-wrap:hover .theme-card-img-secondary { opacity: 1; }
.theme-product-card__info { padding: 0 0.25rem; display: flex; flex-direction: column; flex: 1; }
.theme-product-card__title { font-size: 1.25rem; font-weight: 400; line-height: 1.3; color: var(--color-foreground); transition: color 0.3s; }
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.5rem; } }
.theme-card-title-link { color: inherit; text-decoration: none; }
.theme-product-card-wrap:hover .theme-product-card__title { color: var(--color-marigold); }
.theme-product-card__category { margin: 0.5rem 0 1rem; font-family: var(--font-handwritten); font-size: 16px; color: rgba(216,167,70,0.9); }
.theme-card-add-btn--outline {
	margin-top: auto; width: 100%; padding: 0.75rem 1rem; border-radius: 9999px; border: 1px solid var(--color-border);
	color: var(--color-foreground); font-size: 13px; font-family: var(--font-rounded); letter-spacing: 0.02em; text-align: center;
	background: transparent; transition: all 0.3s; cursor: pointer;
}
.theme-product-card-wrap:hover .theme-card-add-btn--outline:not(.theme-card-add-btn--disabled) { background: var(--color-marigold); color: var(--color-background); border-color: var(--color-marigold); }
.theme-card-add-btn--disabled { opacity: 0.5; cursor: not-allowed; }

/* Featured card (FeaturedProductCard.tsx) */
.theme-featured-card { position: relative; background: var(--color-card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); transition: all 0.28s ease-out; height: 100%; display: flex; flex-direction: column; }
.theme-product-card-wrap--featured:hover .theme-featured-card { transform: translateY(-6px); box-shadow: var(--shadow-elevated); }
.theme-featured-card__image-link { display: block; text-decoration: none; color: inherit; }
.theme-featured-card__image-wrapper { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.theme-featured-card__image { position: absolute; inset: 0; transition: opacity 0.3s ease-out; }
.theme-featured-card__image.theme-card-img-secondary { opacity: 0; display: none; }
@media (min-width: 768px) { .theme-featured-card__image.theme-card-img-secondary { display: block; } }
.theme-product-card-wrap--featured:hover .theme-card-img-primary { opacity: 0; }
.theme-product-card-wrap--featured:hover .theme-card-img-secondary { opacity: 1; }
.theme-featured-card__gradient { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 60%, rgba(37,27,14,0.6) 100%); }
.theme-featured-card__body { padding: 1rem 1.125rem 1.25rem; background: var(--color-card); display: flex; flex-direction: column; flex: 1; }
.theme-featured-card__category { font-family: var(--font-handwritten); font-size: 15px; color: rgba(216,167,70,0.9); margin: 0 0 0.375rem; }
.theme-featured-card__title { font-size: 19px; font-weight: 500; line-height: 1.35; color: var(--color-foreground); margin-bottom: 0.5rem; flex: 1; }
.theme-featured-card__price { font-family: var(--font-rounded); font-size: 14px; font-weight: 600; color: var(--color-foreground); margin: 0 0 0.75rem; }
.theme-card-add-btn {
	width: 100%; padding: 0.625rem 1rem; border-radius: 9999px; border: 1px solid var(--color-border);
	color: var(--color-foreground); font-size: 13px; font-family: var(--font-rounded); letter-spacing: 0.02em; text-align: center;
	background: transparent; transition: all 0.3s; display: block; cursor: pointer;
}
.theme-product-card-wrap--featured:hover .theme-card-add-btn:not(.theme-card-add-btn--disabled) { background: var(--color-marigold); color: var(--color-background); border-color: var(--color-marigold); }
.theme-badge--soldout { top: 0.75rem; right: 0.75rem; }

/* -----------------------------------------------------------------------
   10. USP BADGES
   -------------------------------------------------------------------- */
.theme-usp-section { background: var(--color-card); border-bottom: 1px solid rgba(64,51,38,0.6); }
.theme-usp-section .container-wide { padding-top: 3rem; padding-bottom: 3rem; }
.theme-usp-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
@media (min-width: 768px) { .theme-usp-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }
.theme-usp-badge {
	position: relative; display: flex; align-items: center; gap: 0.75rem; border-radius: 9999px; border: 1px solid rgba(184,144,74,0.2);
	background: rgba(26,18,8,0.9); padding: 0.75rem 1.125rem; overflow: hidden; width: 100%; min-width: 0; cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--transition-smoother);
}
@media (min-width: 768px) { .theme-usp-badge { justify-content: center; padding: 0.625rem 1rem; } }
.theme-usp-badge:hover { background: rgba(184,144,74,0.15); border-color: rgba(184,144,74,0.5); transform: scale(1.04); }
.theme-usp-icon { flex-shrink: 0; color: #b8904a; display: inline-flex; }
.theme-usp-icon svg { animation: badgeShimmer 2.5s ease-in-out infinite; }
.theme-usp-badge:hover .theme-usp-icon svg { animation: none; filter: brightness(1.4); transform: scale(1.15); }
.theme-usp-phrases {
	position: relative;
	height: 1.5em;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.4;
	min-width: 0;
	flex: 1 1 auto;
	text-align: left;
}
.theme-usp-phrase {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	font-weight: 500;
	font-family: var(--font-body);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	color: rgba(240,232,220,0.85);
	animation: rotateText 8.8s ease-in-out infinite;
	pointer-events: none;
}
.theme-usp-badge:hover .theme-usp-phrase { animation-play-state: paused; color: rgba(240,232,220,1); }

/* -----------------------------------------------------------------------
   11. ABOUT
   -------------------------------------------------------------------- */
.theme-about-section { position: relative; z-index: 1; background: var(--color-background); }
.theme-about-wrap { width: 100%; max-width: 92.5rem; margin: 0 auto; padding: 5rem 1rem; }
@media (min-width: 640px) { .theme-about-wrap { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 768px) { .theme-about-wrap { padding-top: 7rem; padding-bottom: 7rem; } }
@media (min-width: 1024px) { .theme-about-wrap { padding-left: 2.5rem; padding-right: 2.5rem; } }
.theme-about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .theme-about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-about-image-frame { position: relative; aspect-ratio: 4/5; width: 100%; overflow: hidden; }
@media (min-width: 1024px) { .theme-about-image-frame { aspect-ratio: 5/6; } }
.theme-about-img { transition: transform 0.5s ease-out; }
.theme-about-image-frame:hover .theme-about-img { transform: scale(1.03); }
.theme-about-vignette-left { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(23,18,13,0.15) 0%, transparent 30%); }
.theme-about-vignette-bottom { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(23,18,13,0.25) 0%, transparent 40%); }
.theme-about-sparkle { position: absolute; top: -0.75rem; right: -0.75rem; transform: rotate(12deg); color: var(--color-marigold); animation: twinkle 2.8s ease-in-out infinite; }
.theme-about-text-col { display: flex; flex-direction: column; justify-content: center; }
.theme-about-copy { margin-bottom: 0.5rem; }
.theme-about-paragraph { font-family: var(--font-body); line-height: 1.7; color: rgba(244,239,230,0.82); transition: color 0.2s; }
.theme-about-paragraph:hover { color: var(--color-foreground); }
.theme-about-paragraph-1 { font-size: 1.125rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .theme-about-paragraph-1 { font-size: 1.25rem; } }
.theme-about-paragraph-2 { font-size: 1rem; color: rgba(244,239,230,0.72); margin-bottom: 2rem; }
.theme-about-paragraph-2:hover { color: var(--color-foreground); }
@media (min-width: 768px) { .theme-about-paragraph-2 { font-size: 1.125rem; } }
.theme-about-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.theme-about-cta { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-handwritten); font-size: 15px; letter-spacing: 0.025em; color: rgba(216,167,70,0.85); transition: color 0.2s; }
.theme-about-cta:hover { color: var(--color-marigold); }
.theme-about-cta-text { position: relative; }
.theme-about-cta-text::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: currentColor; transition: width 0.25s ease-out; }
.theme-about-cta:hover .theme-about-cta-text::after { width: 100%; }
.theme-about-cta .theme-about-cta-arrow { transition: transform 0.2s ease; }
.theme-about-cta:hover .theme-about-cta-arrow { transform: translateX(4px); }

/* -----------------------------------------------------------------------
   12. SHOP SECTION
   -------------------------------------------------------------------- */
.theme-shop-section { background: var(--color-card); padding: 4rem 0; overflow-x: clip; }
@media (min-width: 768px) { .theme-shop-section { padding: 6rem 0; } }
.theme-shop-header {
	text-align: center;
	margin-bottom: 3rem;
	max-width: 100%;
	min-width: 0;
	overflow-x: clip;
}
.theme-shop-controls { max-width: 28rem; margin: 0 auto 1rem; width: 100%; }
.theme-shop-search-row { display: flex; align-items: center; gap: 0.75rem; }
.theme-search-wrap { position: relative; flex: 1; }
.theme-search-icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.theme-search-input {
	width: 100%; padding: 0.5rem 0 0.5rem 1.75rem; background: transparent; border: 0; border-bottom: 1px solid var(--color-border);
	color: var(--color-foreground); font-family: var(--font-body); font-size: 1rem; transition: border-color 0.2s;
}
.theme-search-input:focus { outline: none; border-color: var(--color-marigold); }
.theme-price-filter-toggle { display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.75rem; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); flex-shrink: 0; white-space: nowrap; transition: color 0.3s; }
.theme-price-filter-toggle:hover { color: var(--color-marigold); }
.theme-price-filter-value { opacity: 0.7; text-transform: none; letter-spacing: normal; }
.theme-price-filter-chevron { transition: transform 0.3s; }
.theme-price-filter-toggle.is-open .theme-price-filter-chevron { transform: rotate(180deg); }
.theme-price-filter-panel { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth); }
.theme-price-filter-panel.is-open { max-height: 200px; opacity: 1; padding: 0.75rem 0; }

.price-range-wrapper { position: relative; height: 1.5rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; border-radius: 9999px; }
.range-track-bg { left: 0; right: 0; background: var(--color-border); }
.range-track-fill { background: var(--color-primary); }
.range-input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }
.theme-price-labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted-foreground); font-family: var(--font-body); }

/* Mobile + desktop: wrap all pills (no horizontal scroll). */
.theme-category-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow: visible;
	margin: 0 0 1rem;
	padding: 0;
}
.theme-cat-pill {
	flex: 0 1 auto;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 0.5rem 1.25rem;
	font-size: 13px;
	letter-spacing: 0.01em;
	font-family: var(--font-handwritten);
	border-radius: 9999px;
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-foreground);
	transform: rotate(-1deg);
	transition: color 0.3s, border-color 0.3s, background-color 0.3s, transform 0.3s;
}
.theme-cat-pill.is-active { background: var(--color-accent); color: var(--color-background); border-color: var(--color-accent); transform: rotate(1deg); }
.theme-cat-pill:not(.is-active):hover { border-color: var(--color-marigold); color: var(--color-marigold); }

.theme-shop-empty { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); font-family: var(--font-body); }
.theme-shop-showmore-wrap { text-align: center; margin-top: 3rem; }
.theme-btn-showmore {
	display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; padding: 0.875rem 2rem;
	font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-handwritten); font-weight: 600;
	border: 1px solid var(--color-marigold); color: var(--color-marigold); background: transparent; transition: all 0.2s;
}
.theme-btn-showmore:hover { background: var(--color-marigold); color: var(--color-background); }

/* -----------------------------------------------------------------------
   13. CONTACT / NEWSLETTER
   -------------------------------------------------------------------- */
.theme-contact-section { position: relative; background: var(--color-accent); color: var(--color-foreground); overflow: hidden; }
.theme-contact-bg { position: absolute; inset: 0; }
.theme-contact-overlay { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(14,11,8,0.72) 0%, rgba(14,11,8,0.6) 50%, rgba(14,11,8,0.75) 100%); }
.theme-contact-fog { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at top, rgba(30,26,22,0) 0%, rgba(15,13,11,0.55) 60%, rgba(13,12,10,0.85) 100%); }
.theme-contact-inner { position: relative; padding: 5rem 0; }
@media (min-width: 768px) { .theme-contact-inner { padding: 7rem 0; } }
.theme-contact-content { max-width: 42rem; margin: 0 auto; text-align: center; width: 100%; min-width: 0; box-sizing: border-box; }
.theme-contact-paragraph { color: rgba(244,239,230,0.85); font-family: var(--font-body); font-size: 1.125rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .theme-contact-paragraph { font-size: 1.25rem; } }
.theme-newsletter-form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	width: 100%;
	max-width: 28rem;
	margin: 0 auto;
	min-width: 0;
	box-sizing: border-box;
}
@media (min-width: 640px) {
	.theme-newsletter-form { flex-direction: row; align-items: stretch; }
}
.theme-newsletter-input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	background: rgba(23,18,13,0.4);
	border: 1px solid var(--color-border);
	color: var(--color-foreground);
	border-radius: 9999px;
	padding: 0.75rem 1.25rem;
	font-size: 0.875rem;
	font-family: var(--font-body);
	transition: border-color 0.2s;
}
.theme-newsletter-input::placeholder { color: rgba(244,239,230,0.45); }
.theme-newsletter-input:focus { outline: none; border-color: var(--color-marigold); }
.theme-newsletter-form .theme-btn.theme-btn-newsletter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 100%;
	flex: 0 0 auto;
	box-sizing: border-box;
	background: var(--color-accent);
	color: var(--color-background);
	border-radius: 9999px;
	padding: 0.75rem 1.25rem;
	min-height: 48px;
	font-size: 14px;
	letter-spacing: 0.025em;
	font-family: var(--font-rounded);
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.2s;
	animation: wiggle 3s ease-in-out infinite;
	transform-origin: center;
}
@media (min-width: 640px) {
	.theme-newsletter-form .theme-btn.theme-btn-newsletter {
		width: auto;
		padding: 0.75rem 1.75rem;
	}
}
.theme-newsletter-form .theme-btn.theme-btn-newsletter:hover { background: rgba(234,125,62,0.9); }
.theme-contact-links { margin-top: 2.5rem; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.theme-contact-social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border); transition: all 0.2s; }
.theme-contact-social:hover { background: var(--color-marigold); color: var(--color-background); border-color: var(--color-marigold); }
.theme-contact-message-cta {
	font-family: var(--font-handwritten); font-size: 15px; letter-spacing: 0.025em;
	color: rgba(244,239,230,0.85); transition: color 0.2s;
}
.theme-contact-message-cta:hover { color: var(--color-marigold); }

/* -----------------------------------------------------------------------
   14. FOOTER (parity with src/components/layout/Footer.tsx)
   -------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-background); }
/* Vertical only — do not override .container-wide horizontal padding. */
.site-footer-inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .site-footer-inner { padding-top: 4rem; padding-bottom: 4rem; } }
.site-footer-top { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--color-border); }
@media (min-width: 640px) { .site-footer-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer-brand { flex-shrink: 0; transition: transform 0.3s; }
.site-footer-brand:hover { transform: scale(1.02); }
.site-footer-logo-img,
.site-footer img.site-logo-img.site-footer-logo-img {
	height: 7rem !important; /* Lovable h-28 */
	width: auto !important;
	max-width: none !important;
	max-height: 7rem !important;
	object-fit: contain;
}
@media (min-width: 640px) {
	.site-footer-logo-img,
	.site-footer img.site-logo-img.site-footer-logo-img {
		height: 8rem !important; /* Lovable sm:h-32 */
		max-height: 8rem !important;
	}
}
.footer-tagline-text { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: rgba(244,239,230,0.9); line-height: 1.375; margin: 0; }
@media (min-width: 768px) { .footer-tagline-text { font-size: 1.5rem; } }
.site-footer-tagline { max-width: 36rem; }
@media (min-width: 640px) { .site-footer-tagline { text-align: right; } }
.footer-tagline-highlight { color: var(--color-marigold); font-style: normal; }
.footer-email { margin: 0.75rem 0 0; font-size: 0.875rem; color: rgba(244,239,230,0.7); font-family: var(--font-body); }
.footer-email a { color: inherit; transition: color 0.2s; }
.footer-email a:hover { color: var(--color-marigold); }
.site-footer-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .site-footer-columns { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .site-footer-columns { gap: 3rem; } }
.footer-column-findus { grid-column: span 2; }
@media (min-width: 768px) { .footer-column-findus { grid-column: span 1; } }
.footer-column-title { font-family: var(--font-handwritten); font-size: 1.5rem; color: var(--color-marigold); margin: 0 0 1.25rem; display: flex; align-items: center; gap: 0.5rem; font-weight: 400; line-height: 1.2; }
.footer-column-title svg { flex-shrink: 0; }
.footer-link-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.footer-link-list a { font-size: 15px; font-family: var(--font-body); color: rgba(244,239,230,0.75); transition: color 0.2s; text-align: left; background: none; border: none; padding: 0; cursor: pointer; }
.footer-link-list a:hover { color: var(--color-marigold); }
.footer-findus-text { font-size: 15px; color: rgba(244,239,230,0.75); font-family: var(--font-body); margin: 0 0 1.25rem; line-height: 1.625; }
.footer-findus-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; font-family: var(--font-body); }
.footer-findus-link { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(244,239,230,0.8); transition: color 0.2s; }
.footer-findus-link:hover { color: var(--color-marigold); }
.footer-findus-link svg { flex-shrink: 0; width: 1rem; height: 1rem; }
.site-footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
@media (min-width: 640px) { .site-footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; } }
.footer-quote { margin: 0; font-size: 1rem; color: rgba(244,239,230,0.7); font-family: var(--font-display); font-style: italic; }
.footer-quote-sig { font-family: var(--font-handwritten); font-style: normal; color: var(--color-marigold); font-size: 1.125rem; }
.footer-copyright { margin: 0; font-size: 12px; color: var(--color-muted-foreground); font-family: var(--font-body); letter-spacing: 0.025em; }
.footer-copyright a { text-decoration: underline; color: inherit; transition: color 0.2s; }
.footer-copyright a:hover { color: var(--color-marigold); }

/* -----------------------------------------------------------------------
   15. SIDE CART DRAWER + OVERLAY (Sections 12, 22.5, 31.6)
   -------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 90; background: rgba(244,239,230,0.2);
	opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
	position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem; z-index: 91;
	background: var(--color-background); box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.4s var(--transition-smoother);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-title { font-size: 1.125rem; font-weight: 700; }
.theme-cart-close { padding: 0.25rem; opacity: 0.7; transition: opacity 0.2s; }
.theme-cart-close:hover { opacity: 1; }
.theme-cart-empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-empty-icon { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-cart-empty-text { color: var(--color-muted-foreground); margin-bottom: 1.5rem; font-family: var(--font-body); }
.theme-cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item-image { width: 80px; height: 96px; flex-shrink: 0; background: var(--color-card); overflow: hidden; border-radius: 0.5rem; }
.theme-cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item-details { flex: 1; min-width: 0; }
.theme-cart-item-name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.2s; }
.theme-cart-item-name:hover { opacity: 0.7; }
.theme-cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-item-variation { font-size: 0.8rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s; }
.theme-cart-qty-btn:hover { background: var(--color-card); }
.theme-cart-qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-remove-btn { margin-left: auto; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.theme-cart-remove-btn:hover { color: var(--color-foreground); }
.theme-cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-subtotal-value { font-weight: 500; }
.theme-cart-shipping-note { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-cart-checkout-btn { width: 100%; }
.theme-cart-empty-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }

/* -----------------------------------------------------------------------
   16. BUTTONS (shared)
   -------------------------------------------------------------------- */
.theme-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	font-family: var(--font-body); font-size: var(--btn-font-size); font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing); border-radius: var(--btn-radius); min-height: var(--btn-height);
	padding: var(--btn-padding); text-transform: var(--btn-text-transform); transition: opacity 0.2s ease, background-color 0.2s;
}
.theme-btn-primary { background: var(--color-primary); color: var(--color-button-text); }
.theme-btn-primary:hover { opacity: 0.85; }
.theme-btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-foreground); }
.theme-btn-outline:hover { border-color: var(--color-foreground); }
.theme-single_add_to_cart_button.disabled, .single_add_to_cart_button.disabled { cursor: not-allowed; opacity: 0.4; pointer-events: none; }

/* -----------------------------------------------------------------------
   17. CONTACT MODAL
   -------------------------------------------------------------------- */
#theme-contact-modal-overlay {
	position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,0.6);
	opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
body.contact-modal-open #theme-contact-modal-overlay { opacity: 1; visibility: visible; }
#theme-contact-modal {
	position: fixed; top: 50%; left: 50%; z-index: 96; width: 92%; max-width: 32rem; max-height: 90vh; overflow-y: auto;
	background: var(--color-background); border-radius: 1rem; box-shadow: var(--shadow-elevated);
	transform: translate(-50%, -48%) scale(0.96); opacity: 0; visibility: hidden;
	transition: opacity 0.25s var(--transition-smoother), transform 0.25s var(--transition-smoother), visibility 0.25s;
	padding: 1.75rem;
}
body.contact-modal-open #theme-contact-modal { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.theme-modal-close { position: absolute; top: 1.25rem; right: 1.25rem; padding: 0.25rem; opacity: 0.6; transition: opacity 0.2s; }
.theme-modal-close:hover { opacity: 1; }
.theme-modal-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-modal-description { color: var(--color-muted-foreground); font-family: var(--font-body); font-size: 0.9rem; margin-bottom: 1.25rem; }
.theme-modal-contact-row { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; font-family: var(--font-body); }
.theme-modal-contact-link { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.theme-modal-contact-link:hover { color: var(--color-marigold); }
.theme-form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 480px) { .theme-form-grid { grid-template-columns: 1fr 1fr; } }
.theme-form-field { margin-bottom: 1rem; }
.theme-form-field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; font-family: var(--font-body); }
.theme-form-field input, .theme-form-field textarea {
	width: 100%; padding: 0.625rem 0.75rem; background: var(--color-background); border: 1px solid var(--color-border);
	border-radius: 0.375rem; color: var(--color-foreground); font-size: 1rem; font-family: var(--font-body); transition: all 0.3s;
}
.theme-form-field input::placeholder, .theme-form-field textarea::placeholder { color: var(--color-muted-foreground); }
.theme-form-field input:focus, .theme-form-field textarea:focus { outline: none; border-color: var(--color-marigold); box-shadow: 0 0 0 2px rgba(216,167,70,0.35); }
.theme-form-field textarea { resize: none; }
.theme-form-actions { display: flex; justify-content: flex-end; }
.theme-contact-success { text-align: center; padding: 2rem 0; }
.theme-contact-success-icon { width: 3.5rem; height: 3.5rem; background: var(--color-primary); color: var(--color-primary-foreground); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.theme-contact-success h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-contact-success p { font-size: 0.875rem; color: var(--color-muted-foreground); font-family: var(--font-body); }

/* -----------------------------------------------------------------------
   18. SINGLE PRODUCT PAGE — ProductDetail.tsx parity
   -------------------------------------------------------------------- */
body.theme-no-hero main.theme-single-product-main.single-product-main,
body.single-product main.theme-single-product-main.single-product-main {
	padding-top: 6rem !important;
	padding-bottom: 0 !important;
	background: var(--color-background);
}
@media (min-width: 1024px) {
	body.theme-no-hero main.theme-single-product-main.single-product-main,
	body.single-product main.theme-single-product-main.single-product-main {
		padding-top: 7rem !important;
	}
}

.theme-single-product-main .woocommerce-message,
.theme-single-product-main .woocommerce-info,
.theme-single-product-main .woocommerce-error,
.theme-single-product-main .woocommerce-breadcrumb,
.theme-single-product-main .woocommerce-product-gallery,
.theme-single-product-main .woocommerce-tabs,
.theme-single-product-main .product_meta,
.theme-single-product-main a.added_to_cart.wc-forward {
	display: none !important;
}

.theme-breadcrumb {
	padding: 1.5rem 0;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
}
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb-current { color: var(--color-foreground); }

.theme-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	padding-bottom: 6rem;
	padding-top: 1rem;
	min-width: 0;
}
@media (min-width: 1024px) {
	.theme-product-layout {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 4rem;
		align-items: start;
	}
}
.theme-product-gallery,
.theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
	.theme-product-info {
		position: sticky;
		top: 7rem;
		align-self: start;
		padding-left: 1rem;
	}
}

.theme-product-gallery-mobile { display: block; }
.theme-product-gallery-desktop { display: none; }
@media (min-width: 1024px) {
	.theme-product-gallery-mobile { display: none; }
	.theme-product-gallery-desktop { display: flex; flex-direction: column; gap: 1rem; }
}

/* Images in normal flow — NEVER absolute on single gallery */
.theme-product-gallery-frame {
	aspect-ratio: 1 / 1;
	width: 100%;
	background: var(--color-card);
	overflow: hidden;
	border-radius: 0;
}
.theme-product-main-img {
	position: static !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
}
.theme-product-thumbnails {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
}
.theme-product-thumb {
	position: relative;
	width: 5rem;
	height: 5rem;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--color-card);
	padding: 0;
}
.theme-product-thumb-img {
	position: static !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	opacity: 0.6;
	transition: opacity 0.2s;
}
.theme-product-thumb.is-active .theme-product-thumb-img,
.theme-product-thumb:hover .theme-product-thumb-img { opacity: 1; }
.theme-product-thumb::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--color-foreground);
	opacity: 0;
	transition: opacity 0.2s;
}
.theme-product-thumb.is-active::after { opacity: 1; }

.theme-product-title {
	font-family: var(--font-display) !important;
	font-style: italic;
	font-weight: 400;
	font-size: 2.25rem;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--color-foreground);
	margin: 0;
}
@media (min-width: 768px) {
	.theme-product-title { font-size: 3rem; }
}
.theme-product-subtitle {
	margin-top: 0.75rem;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(244, 239, 230, 0.8);
	font-family: var(--font-body);
}

.theme-size-block { margin-top: 2rem; }
.theme-size-select-wrap { position: relative; }
.theme-size-select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 9999px;
	border: 1px solid rgba(244, 239, 230, 0.7);
	background: transparent;
	color: var(--color-foreground);
	padding: 0.75rem 3rem 0.75rem 1.25rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
}
.theme-size-select:focus { outline: none; border-color: var(--color-foreground); }
.theme-size-select option { background: var(--color-background); color: var(--color-foreground); }
.theme-size-chevron {
	pointer-events: none;
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
}

.theme-field-label {
	display: block;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
	font-weight: 400;
}
.theme-quantity-block { margin-top: 2rem; margin-bottom: 1.5rem; }
.theme-quantity-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	border-radius: 9999px;
	border: 1px solid rgba(244, 239, 230, 0.7);
}
.theme-qty-minus,
.theme-qty-plus {
	padding: 0.5rem 1rem;
	transition: background-color 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.theme-qty-minus { border-radius: 9999px 0 0 9999px; }
.theme-qty-plus { border-radius: 0 9999px 9999px 0; }
.theme-qty-minus:hover,
.theme-qty-plus:hover { background: rgba(244, 239, 230, 0.05); }
.theme-qty-display {
	min-width: 44px;
	padding: 0.5rem 1rem;
	text-align: center;
	font-family: var(--font-body);
	font-size: 0.875rem;
}
.theme-qty-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.theme-add-to-cart-area { width: 100%; }
.theme-product-atc,
.theme-single-product .single_add_to_cart_button.button.theme-product-atc,
.theme-single-product a.theme-product-atc {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	background-color: var(--color-foreground) !important;
	color: var(--color-background) !important;
	border: none !important;
	border-radius: 9999px !important;
	padding: 1rem !important;
	min-height: unset !important;
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease, opacity 0.2s ease !important;
	cursor: pointer;
}
.theme-product-atc:hover,
.theme-single-product a.theme-product-atc:hover {
	background-color: rgba(244, 239, 230, 0.9) !important;
	color: var(--color-background) !important;
	opacity: 1 !important;
}
.theme-product-atc.is-disabled,
.theme-product-atc.disabled,
.theme-product-atc:disabled,
.theme-product-atc[aria-disabled="true"] {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
}

.theme-product-tabs { margin-top: 2.5rem; }
.theme-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.5rem 1.5rem;
	border-bottom: 1px solid rgba(244, 239, 230, 0.3);
	padding-bottom: 0.5rem;
}
.theme-tab-btn {
	position: relative;
	font-family: var(--font-display);
	font-size: 0.875rem;
	padding-bottom: 0.5rem;
	color: rgba(244, 239, 230, 0.6);
	transition: color 0.2s;
	white-space: nowrap;
}
@media (min-width: 768px) { .theme-tab-btn { font-size: 1rem; } }
.theme-tab-btn:hover { color: var(--color-foreground); }
.theme-tab-btn.is-active { font-style: italic; color: var(--color-foreground); }
.theme-tab-btn.is-active::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--color-foreground);
}
.theme-tabs-content {
	padding-top: 1.5rem;
	font-family: var(--font-body);
	font-size: 15px;
	color: rgba(244, 239, 230, 0.8);
	line-height: 1.7;
}
.theme-tab-panel { display: none; overflow-wrap: break-word; word-break: break-word; }
.theme-tab-panel.is-active { display: block; }
.theme-tab-preline { white-space: pre-line; margin: 0; }
.theme-benefits-list { list-style: none; margin: 0; padding: 0; }
.theme-benefits-list li {
	display: flex;
	align-items: flex-start;
	margin-bottom: 0.5rem;
	gap: 0.75rem;
}
.theme-benefit-dot {
	width: 4px;
	height: 4px;
	margin-top: 0.55rem;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--color-foreground);
}

.theme-related-products {
	padding: 5rem 0;
	border-top: 1px solid var(--color-border);
	margin-top: 0;
}
.theme-related-header { text-align: center; margin-bottom: 3rem; }
.theme-related-heading-1 {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1rem;
	color: var(--color-muted-foreground);
	margin-bottom: 0.5rem;
}
.theme-related-heading-2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
}
@media (min-width: 768px) { .theme-related-heading-2 { font-size: 2.25rem; } }
.theme-related-grid { gap: 1.5rem; }
@media (min-width: 1024px) { .theme-related-grid { gap: 2rem; } }

/* Kill WC float leftovers inside our PDP */
.theme-single-product-main .product,
.theme-single-product-main .summary,
.theme-single-product-main .images {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

/* -----------------------------------------------------------------------
   19. WOOCOMMERCE OVERRIDES (Section 11.4.1, 11.4.2, 14, 14.1, 19)
   -------------------------------------------------------------------- */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
/* Card compact / outline button variants override the global rules above. */
.theme-product-card-wrap .add_to_cart_button.ajax_add_to_cart.theme-card-add-btn,
.theme-product-card-wrap button.theme-card-add-btn.ajax_add_to_cart {
	background-color: transparent !important;
	color: var(--color-foreground) !important;
	border: 1px solid var(--color-border) !important;
	min-height: unset !important;
	padding: 0.625rem 1rem !important;
	border-radius: 9999px !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: 0.02em !important;
	text-transform: none !important;
	cursor: pointer !important;
}
.theme-product-card-wrap:hover .add_to_cart_button.ajax_add_to_cart.theme-card-add-btn,
.theme-product-card-wrap:hover button.theme-card-add-btn.ajax_add_to_cart {
	background-color: var(--color-marigold) !important;
	color: var(--color-background) !important;
	border-color: var(--color-marigold) !important;
}
/* Single product ATC — Lovable uses cream (foreground) on dark (background) */
.theme-single-product .single_add_to_cart_button.button,
.theme-single-product a.single_add_to_cart_button,
.theme-single-product .single_add_to_cart_button.theme-btn-primary {
	background-color: var(--color-foreground) !important;
	color: var(--color-background) !important;
}
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	font-family: var(--font-body); border-radius: var(--radius); border: 1px solid var(--color-border);
	background: var(--color-card); color: var(--color-foreground); padding: 1rem 1.5rem; margin: 1rem 0; list-style: none;
}

/* Archive / shop */
.theme-archive-main { padding-top: 6rem; padding-bottom: 5rem; }
.theme-archive-header { padding: 2rem 0; }
.theme-archive-title { font-size: 2.25rem; margin-bottom: 0.5rem; }
.theme-archive-back-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-family: var(--font-body); font-size: 0.875rem; }
.theme-archive-grid { margin-top: 1rem; }
.theme-archive-pagination { margin-top: 3rem; text-align: center; }
.theme-archive-empty { padding: 4rem 0; text-align: center; color: var(--color-muted-foreground); }

/* Single product responsive safety (Section 11.13) */
.woocommerce-product-details__short-description, .woocommerce-variation-description, .posted_in {
	overflow-wrap: break-word; word-break: break-word;
}

/* -----------------------------------------------------------------------
   20. CHECKOUT BLOCK (Section 13)
   -------------------------------------------------------------------- */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .theme-page-main { padding-top: var(--header-height, 80px); padding-bottom: 4rem; }
body.woocommerce-checkout .page-title { font-size: 2rem; margin: 2rem 0 1.5rem; }
body.woocommerce-checkout .wc-block-checkout { display: block; }

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout__main-and-sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		align-items: start;
	}
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout__main-and-sidebar {
		gap: 4rem;
	}
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0; width: 100%; max-width: none;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-card);
	border-radius: var(--radius);
	padding: 2rem;
}
/* Floating field labels only — black text, no background changes. */
body.woocommerce-checkout .wc-block-components-text-input > label,
body.woocommerce-checkout .wc-block-components-select > label,
body.woocommerce-checkout .wc-blocks-components-select > label,
body.woocommerce-checkout .wc-blocks-components-select__label,
body.woocommerce-checkout .wc-block-components-textarea > label,
body.woocommerce-checkout .wc-block-components-combobox > label,
body.woocommerce-checkout .wc-block-components-combobox label,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input > label,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-select > label {
	color: #000 !important;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important; max-width: none !important;
	background: var(--color-background); border: 1px solid var(--color-border); color: var(--color-foreground);
	border-radius: 0.375rem; font-family: var(--font-body);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { outline: none; border-color: var(--color-marigold); }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important; color: var(--color-primary-foreground) !important; border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important; text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner { border-radius: var(--radius); font-family: var(--font-body); grid-column: 1 / -1; }

/* -----------------------------------------------------------------------
   21. CART / ACCOUNT / THANK-YOU WIDTH PARITY (Section 13.7 / 22.8)
   -------------------------------------------------------------------- */
body.woocommerce-cart .theme-page-main,
body.woocommerce-account .theme-page-main,
body.theme-thankyou-page .theme-page-main { padding-top: var(--header-height, 80px); }

body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details { font-family: var(--font-body); }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 1.5rem 0; }
body.theme-thankyou-page .woocommerce-order-overview li { border-left: 1px solid var(--color-border); padding-left: 1rem; }
body.theme-thankyou-page h2, body.theme-thankyou-page .woocommerce-order-details__title { font-size: 1.5rem; padding: 0 0 1rem; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; }

/* -----------------------------------------------------------------------
   22. GENERIC PAGE / 404
   -------------------------------------------------------------------- */
.theme-page-main { padding-top: 6rem; padding-bottom: 4rem; }
.theme-page-wrap .page-title { font-size: 2.25rem; margin-bottom: 1.5rem; }
.entry-content { font-family: var(--font-body); line-height: 1.7; }
.theme-404-main {
	padding-top: 8rem; padding-bottom: 8rem;
	min-height: 100vh; display: flex; align-items: center; justify-content: center;
	background: #2a2218;
}
.theme-404-inner { text-align: center; }
.theme-404-heading { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.theme-404-text { color: var(--color-muted-foreground); margin-bottom: 1.5rem; font-family: var(--font-body); font-size: 1.25rem; }
.theme-404-link { color: var(--color-primary); text-decoration: underline; }
.theme-404-link:hover { opacity: 0.9; }

body.theme-no-hero .site-header { background: rgba(23,18,13,0.95); }

/* -----------------------------------------------------------------------
   23. SCROLL PROGRESS / CURSOR TRAIL
   -------------------------------------------------------------------- */
#theme-scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; pointer-events: none; background: transparent; }
#theme-scroll-progress-fill { height: 100%; width: 0; background: #b8904a; transition: width 80ms linear; }
#theme-cursor-trail { position: fixed; top: 0; left: 0; width: 16px; height: 16px; border-radius: 9999px; background: rgba(184,144,74,0.15); filter: blur(4px); pointer-events: none; z-index: 99; opacity: 0; transition: opacity 600ms ease-out; will-change: transform, opacity; }
@media (hover: none), (pointer: coarse) { #theme-cursor-trail { display: none; } }

/* -----------------------------------------------------------------------
   24. WOOCOMMERCE / BLOCK CHROME RESET (parity — kill default WC look)
   -------------------------------------------------------------------- */
.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb { display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	margin: 0 !important; padding: 0 !important; float: none !important;
	background: transparent !important; border: 0 !important; box-shadow: none !important;
}
.woocommerce span.onsale { display: none !important; }
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background-image: none !important;
}
.single-product .woocommerce-tabs,
.single-product .woocommerce-product-gallery { display: none !important; }
.woocommerce .star-rating { display: none !important; }
.woocommerce .price { color: inherit !important; }
