/* ==========================================================================
   J&E Home Improvement — theme.css
   Colour custom properties (--background, --primary, --accent, etc.) are
   injected at runtime by wp_add_inline_style() from the Customizer HSL->hex
   pipeline (Section 6.1 / inc/customizer.php). This file only ever
   REFERENCES var(--token) — it never hardcodes a hex value for an editable
   color, so there is a single source of truth.
   ========================================================================== */

:root {
	--font-display: 'Outfit', system-ui, sans-serif;
	--font-body: 'Figtree', system-ui, sans-serif;

	--radius: 0.5rem;
	--shadow-soft: 0 1px 3px hsl(224 40% 20% / 0.1);
	--shadow-elevated: 0 12px 30px -12px hsl(224 40% 20% / 0.25);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
	/* Clears fixed header (announcement + nav). Desktop also has department bar. */
	--header-offset: 8rem;
	--header-height: 8rem;

	/* Derived tokens computed from the editable brand tokens above. */
	--card: var(--background);
	--muted: color-mix(in srgb, var(--secondary) 100%, transparent);
	--ring: var(--accent);
	--input: var(--border);
	--destructive: var(--deal);
	--destructive-foreground: var(--accent-foreground);

	/* Button design tokens (Section 11.4.1). Add-to-cart buttons in this
	   design use the accent (orange) color, not the navy primary. */
	--btn-radius: 9999px;
	--btn-height: 44px;
	--btn-padding: 0 1.25rem;
	--btn-font-size: 0.875rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--color-button-bg: var(--accent);
	--color-button-text: var(--accent-foreground);
	--btn-icon-padding: 0.5rem;

	--checkout-gap: 2.5rem;
	--card-radius: 1rem;
	--section-padding: 2rem;
}

@media (min-width: 1024px) {
	:root {
		--header-offset: 9rem;
		--header-height: 9rem;
	}
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }

/* Section 15.1 — global img rule must not break cover/full-bleed images. */
img:not(.theme-hero__video):not(.theme-product-card__image):not(.theme-product-gallery__main-img):not(.theme-cart-item__img):not(.theme-cta-band-bg):not(.theme-about__image):not(.theme-salon__image):not(.theme-department-card__image) {
	max-width: 100%;
	height: auto;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }

/* Clickable affordance — hand cursor on every interactive control. */
a[href],
button:not(:disabled),
.theme-btn,
.theme-nav-list a,
.theme-nav-list button,
.theme-category-pill-link,
.theme-filter-pill,
.theme-section-anchor,
.theme-cart-toggle,
.theme-mobile-toggle,
.theme-contact-card--link,
.theme-contact-mailto,
.theme-product-card__image-link,
.theme-product-card__title-link,
.theme-footer-col a,
.theme-footer-col button,
[data-shop-category],
[data-shop-clear],
[data-cart-open],
[data-cart-close],
[role="button"],
input[type="submit"],
input[type="button"],
label[for] {
	cursor: pointer;
}
button:disabled,
.theme-btn[disabled] {
	cursor: not-allowed;
}

/* Section 2.2 — heading font-weight reset (Tailwind preflight parity). */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.container-wide {
	width: 100%;
	margin: 0 auto;
	max-width: 1360px;
	padding: 0 1rem;
}
@media (min-width: 640px) { .container-wide { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding: 0 2rem; } }

.eyebrow { }
.theme-accent-text { color: var(--accent); }
.theme-deal-text { color: var(--deal); }

/* ==========================================================================
   ANIMATIONS (Section 2.1)
   ========================================================================== */

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes theme-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.theme-animate-fade-in { animation: theme-fade-in 0.5s var(--transition-smooth) forwards; }
.theme-animate-slide-up { animation: theme-slide-up 0.5s var(--transition-smooth) forwards; }

@media (prefers-reduced-motion: reduce) {
	.theme-animate-fade-in, .theme-animate-slide-up, .theme-marquee, .theme-marquee-wrap .theme-marquee {
		animation: none !important;
	}
}

/* Customizer preview fallback: never leave content invisible in the editor. */
body.is-customizer .theme-animate-fade-in,
body.is-customizer .theme-animate-slide-up {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: var(--btn-height);
	padding: var(--btn-padding);
	border-radius: var(--btn-radius);
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	text-transform: var(--btn-text-transform);
	letter-spacing: var(--btn-letter-spacing);
	border: 1px solid transparent;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	white-space: nowrap;
}
.theme-btn--hero-primary,
.theme-btn--primary {
	min-height: 48px;
	padding: 0 1.75rem;
	background-color: var(--accent);
	color: var(--accent-foreground);
}
.theme-btn--hero-primary:hover, .theme-btn--primary:hover { background-color: color-mix(in srgb, var(--accent) 90%, black); }
.theme-btn--hero-outline {
	min-height: 48px;
	padding: 0 1.75rem;
	background: transparent;
	color: var(--primary-foreground);
	border-color: color-mix(in srgb, var(--primary-foreground) 40%, transparent);
}
.theme-btn--hero-outline:hover { background-color: color-mix(in srgb, var(--primary-foreground) 10%, transparent); }
.theme-btn--hero-outline-dark {
	min-height: 48px;
	padding: 0 1.75rem;
	background: transparent;
	color: var(--primary-foreground);
	border-color: color-mix(in srgb, var(--primary-foreground) 40%, transparent);
}
.theme-btn--hero-outline-dark:hover { background-color: color-mix(in srgb, var(--primary-foreground) 10%, transparent); }
.theme-btn--outline {
	background: transparent;
	color: var(--foreground);
	border-color: var(--border);
}
.theme-btn--full { width: 100%; }
.theme-btn--card-add {
	width: 100%;
	margin-top: auto;
	min-height: 36px;
	background-color: var(--accent);
	color: var(--accent-foreground);
	font-size: 0.875rem;
}
@media (min-width: 640px) { .theme-btn--card-add { min-height: 44px; } }
.theme-btn--card-add:hover { background-color: color-mix(in srgb, var(--accent) 90%, black); }
.theme-btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }

/* WordPress admin bar — keep the fixed header below it when logged in. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
body.admin-bar.cart-open #theme-cart-drawer,
body.admin-bar.cart-open #theme-cart-overlay {
	top: 32px;
	height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar.cart-open #theme-cart-drawer,
	body.admin-bar.cart-open #theme-cart-overlay {
		top: 46px;
		height: calc(100% - 46px);
	}
}

.theme-announcement-bar { background-color: var(--accent); color: var(--accent-foreground); }
.theme-announcement-bar__inner { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.theme-announcement-bar p { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; text-align: center; }
@media (min-width: 640px) { .theme-announcement-bar p { font-size: 0.75rem; } }

.theme-header-main { background-color: var(--primary); color: var(--primary-foreground); }
.theme-header-nav { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; min-height: 64px; }

.theme-site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo-img { height: var(--logo-height, 44px) !important; width: auto !important; display: block; border-radius: 1rem; box-shadow: var(--shadow-soft); object-fit: contain; }
.site-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: var(--logo-height, 44px); display: block; color: inherit; }

.theme-header-search { display: none; flex: 1; align-items: center; max-width: 42rem; margin: 0 auto; }
@media (min-width: 768px) { .theme-header-search { display: flex; } }
.theme-header-search input {
	width: 100%; min-height: 44px; border-radius: 9999px 0 0 9999px;
	padding: 0 1rem; font-size: 0.875rem; color: var(--foreground);
	background-color: var(--background); border: 1px solid var(--border); border-right: none;
}
.theme-header-search input:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.theme-header-search button {
	min-height: 44px; min-width: 48px; display: flex; align-items: center; justify-content: center;
	border-radius: 0 9999px 9999px 0; background-color: var(--accent); color: var(--accent-foreground); border: none;
	transition: opacity .2s ease;
}
.theme-header-search button:hover { opacity: 0.9; }
.theme-header-search--mobile { display: flex; margin-bottom: 0.75rem; }

.theme-header-actions { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.theme-header-contact { display: none; flex-direction: column; justify-content: center; padding: 0.25rem 0.75rem; font-size: 0.75rem; line-height: 1.35; gap: 1px; }
@media (min-width: 1280px) { .theme-header-contact { display: flex; } }
.theme-header-contact a, .theme-header-contact span { display: flex; align-items: center; gap: 0.375rem; transition: color .2s ease; }
.theme-header-contact a:hover { color: var(--accent); }
.theme-contact-label { color: color-mix(in srgb, var(--primary-foreground) 70%, transparent); }

.theme-cart-toggle {
	position: relative; padding: 0.75rem; min-height: 44px; min-width: 44px; border-radius: 9999px; background: transparent; border: none; color: inherit;
	display: inline-flex; align-items: center; justify-content: center; transition: color .2s ease;
}
.theme-cart-toggle:hover { color: var(--accent); }
.theme-cart-count {
	position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700; background-color: var(--accent); color: var(--accent-foreground); border-radius: 9999px;
}
.theme-cart-count:empty { display: none; }

.theme-mobile-toggle { padding: 0.75rem; min-height: 44px; min-width: 44px; border-radius: 9999px; background: transparent; border: none; color: inherit; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }
.theme-mobile-toggle .theme-icon-close { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .theme-icon-menu { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .theme-icon-close { display: block; }

.theme-department-bar { display: none; background-color: var(--navy-slate); }
@media (min-width: 1024px) { .theme-department-bar { display: block; } }
.theme-department-bar__inner {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0;
	overflow: visible;
	width: 100%;
}
.theme-nav-list {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0;
	flex: 0 1 auto;
	min-width: 0;
}
.theme-nav-list a, .theme-nav-list button {
	white-space: nowrap;
	padding: 0.625rem 0.5rem;
	font-size: 0.8125rem;
	font-weight: 500;
	background: none;
	border: none;
	color: inherit;
	transition: color .2s ease;
}
@media (min-width: 1280px) {
	.theme-nav-list a, .theme-nav-list button {
		padding: 0.625rem 0.75rem;
		font-size: 0.875rem;
	}
}
.theme-nav-list a:hover, .theme-nav-list button:hover { color: var(--accent); }
.theme-nav-list--categories a, .theme-nav-list--categories button { color: color-mix(in srgb, var(--primary-foreground) 80%, transparent); }
.theme-department-bar__divider {
	margin: 0 0.25rem;
	height: 1rem;
	width: 1px;
	flex-shrink: 0;
	background-color: color-mix(in srgb, var(--primary-foreground) 25%, transparent);
}
@media (min-width: 1280px) { .theme-department-bar__divider { margin: 0 0.5rem; } }
.theme-department-bar__address {
	margin-left: auto;
	display: none;
	align-items: center;
	gap: 0.375rem;
	padding: 0.625rem 0.5rem;
	font-size: 0.75rem;
	color: color-mix(in srgb, var(--primary-foreground) 80%, transparent);
	white-space: nowrap;
	flex-shrink: 0;
}
@media (min-width: 1440px) { .theme-department-bar__address { display: flex; } }

.theme-mobile-menu { display: none; background-color: var(--primary); border-top: 1px solid color-mix(in srgb, var(--primary-foreground) 15%, transparent); }
.theme-mobile-menu.is-open { display: block; }
.theme-mobile-menu .container-wide { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.theme-mobile-contact { display: flex; flex-direction: column; gap: 0.25rem; background-color: color-mix(in srgb, var(--primary-foreground) 10%, transparent); border-radius: 0.5rem; padding: 0.75rem; font-size: 0.875rem; margin-bottom: 0.5rem; }
.theme-mobile-contact a, .theme-mobile-contact span { display: flex; align-items: center; gap: 0.5rem; min-height: 40px; }
/* Vertical stack regardless of fallback vs assigned menu (Lovable flex-col). */
.theme-mobile-menu .theme-nav-list,
.theme-nav-list--mobile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex-wrap: nowrap;
	width: 100%;
}
.theme-mobile-menu .theme-nav-list li,
.theme-nav-list--mobile li { width: 100%; }
.theme-mobile-menu .theme-nav-list a,
.theme-mobile-menu .theme-nav-list button,
.theme-nav-list--mobile a,
.theme-nav-list--mobile button {
	display: flex;
	align-items: center;
	text-align: left;
	width: 100%;
	padding: 0.75rem 0.25rem;
	font-size: 1rem;
	min-height: 44px;
	white-space: normal;
}
.theme-mobile-menu .theme-nav-list--categories {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid color-mix(in srgb, var(--primary-foreground) 15%, transparent);
}
.theme-mobile-menu .theme-nav-list--categories a,
.theme-mobile-menu .theme-nav-list--categories button,
.theme-nav-list--categories.theme-nav-list--mobile a,
.theme-nav-list--categories.theme-nav-list--mobile button {
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--primary-foreground) 85%, transparent);
}
@media (min-width: 1024px) { .theme-mobile-menu { display: none !important; } }

/* ==========================================================================
   HERO
   ========================================================================== */

.theme-hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 8rem 0 3.5rem; }
@media (min-width: 768px) { .theme-hero { padding-top: 10rem; } }
.theme-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-hero__scrim { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--primary) 80%, transparent); }
.theme-hero__inner { position: relative; }
.theme-hero__content { max-width: 48rem; color: var(--primary-foreground); }
.theme-hero__content .eyebrow { display: block; }
.theme-hero__title { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; margin-top: 0.75rem; line-height: 1.15; }
@media (min-width: 640px) { .theme-hero__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-hero__title { font-size: 3.75rem; } }
.theme-hero__paragraph { margin-top: 1.25rem; font-size: 1rem; color: color-mix(in srgb, var(--primary-foreground) 85%, transparent); max-width: 42rem; }
@media (min-width: 768px) { .theme-hero__paragraph { font-size: 1.125rem; } }
.theme-hero__ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   TRUST BAR
   ========================================================================== */

.theme-trust-bar { background-color: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* padding-block only — keep .container-wide horizontal gutters */
.theme-trust-bar__grid { padding-top: 1.5rem; padding-bottom: 1.5rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .theme-trust-bar__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-trust-bar__grid { grid-template-columns: repeat(4, 1fr); } }
.theme-trust-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.theme-trust-item__icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.theme-trust-item__title { font-size: 0.875rem; font-weight: 600; }
.theme-trust-item__text { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* ==========================================================================
   SECTION HEADINGS (Section 2.2.5 — per-section scales)
   ========================================================================== */

.theme-departments, .theme-about, .theme-marquee-wrap, .theme-deals, .theme-cta-band, .theme-shop, .theme-reviews, .theme-salon, .theme-contact {
	padding: 3.5rem 0;
}
@media (min-width: 768px) { .theme-departments, .theme-about, .theme-deals, .theme-shop, .theme-reviews, .theme-salon { padding: 5rem 0; } }

.theme-departments__heading, .theme-deals__heading, .theme-reviews__heading, .theme-about__heading, .theme-salon__heading {
	font-size: 1.875rem; font-weight: 700; margin-top: 0.5rem; margin-bottom: 2rem; line-height: 1.2;
}
@media (min-width: 768px) { .theme-departments__heading, .theme-deals__heading, .theme-reviews__heading, .theme-about__heading, .theme-salon__heading { font-size: 2.25rem; } }
.theme-about__heading { font-size: 1.875rem; margin-top: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .theme-about__heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-about__heading { font-size: 3rem; } }
.shop-heading { font-size: 1.875rem; font-weight: 700; margin-top: 0.5rem; line-height: 1.2; }
@media (min-width: 768px) { .shop-heading { font-size: 2.25rem; } }
.cta-band__title { font-size: 1.875rem; font-weight: 700; margin-top: 0.75rem; line-height: 1.2; }
@media (min-width: 768px) { .cta-band__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .cta-band__title { font-size: 3rem; } }
.contact-title { font-size: 1.875rem; font-weight: 700; margin-top: 0.75rem; margin-bottom: 1rem; line-height: 1.2; }
@media (min-width: 768px) { .contact-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .contact-title { font-size: 3rem; } }

/* ==========================================================================
   DEPARTMENTS
   ========================================================================== */

.theme-departments__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .theme-departments__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-departments__grid { grid-template-columns: repeat(4, 1fr); } }
.theme-department-card {
	text-align: left; border-radius: var(--radius); border: 1px solid var(--border); background-color: var(--card);
	padding: 1rem; transition: box-shadow .3s ease; display: block; width: 100%; cursor: pointer;
	font-family: inherit; color: inherit;
}
.theme-department-card:hover { box-shadow: var(--shadow-elevated); }
.theme-department-card__image-wrap { aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--radius) - 2px); background-color: var(--secondary); }
.theme-department-card__image { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; }
.theme-department-card__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; margin-top: 1rem; line-height: 1.3; }
.theme-department-card__blurb { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; font-family: var(--font-body); line-height: 1.5; }
.theme-department-card__link { margin-top: 0.75rem; display: inline-block; font-size: 0.875rem; font-weight: 600; color: var(--accent); }

/* ==========================================================================
   ABOUT
   ========================================================================== */

.theme-about__panel { display: grid; grid-template-columns: 1fr; border-radius: 2.5rem; overflow: hidden; box-shadow: 0 40px 80px -15px rgb(15 27 61 / 0.2); background-color: #fff; }
@media (min-width: 1024px) { .theme-about__panel { grid-template-columns: 1fr 1fr; } }
.theme-about__media { position: relative; min-height: 400px; }
@media (min-width: 1024px) { .theme-about__media { min-height: 600px; } }
.theme-about__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-about__badge { position: absolute; top: 2rem; left: 2rem; background-color: var(--accent); color: var(--accent-foreground); padding: 1.25rem; border-radius: 1rem; box-shadow: var(--shadow-elevated); transform: rotate(-3deg); }
.theme-about__badge-number { font-size: 1.875rem; font-weight: 700; font-family: var(--font-display); }
.theme-about__badge-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; }
.theme-about__media-fade { position: absolute; bottom: 0; left: 0; width: 100%; height: 8rem; background: linear-gradient(to top, color-mix(in srgb, var(--primary) 60%, transparent), transparent); }
.theme-about__content { background-color: var(--primary); color: var(--primary-foreground); padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
@media (min-width: 768px) { .theme-about__content { padding: 4rem; } }
@media (min-width: 1024px) { .theme-about__content { padding: 5rem; } }
.theme-about__paragraphs { display: flex; flex-direction: column; gap: 1rem; color: color-mix(in srgb, var(--primary-foreground) 85%, transparent); line-height: 1.7; font-size: 1rem; }
@media (min-width: 768px) { .theme-about__paragraphs { font-size: 1.125rem; } }
.theme-about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin: 2.5rem 0; }
.theme-about__stat-value { font-size: 1.875rem; font-weight: 700; font-family: var(--font-display); }
.theme-about__stat-label { color: var(--accent); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }
.theme-about__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */

.theme-marquee-wrap { background-color: var(--primary); color: var(--primary-foreground); padding: 0.75rem 0; overflow: hidden; }
.theme-marquee { display: flex; gap: 2.5rem; width: max-content; animation: theme-marquee 30s linear infinite; }
.theme-marquee__item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.theme-marquee__dot { display: inline-block; width: 6px; height: 6px; border-radius: 9999px; background-color: var(--accent); }

/* ==========================================================================
   PRODUCT GRID / CARDS (shared across all contexts — Section 31.13)
   ========================================================================== */

.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-related-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .theme-related-products__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.theme-product-card-wrap { display: flex; height: 100%; }
.theme-product-card {
	display: flex;
	flex-direction: row;
	width: 100%;
	height: 100%;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background-color: var(--card);
	padding: 0.75rem;
	transition: box-shadow .3s ease;
}
.theme-product-card:hover { box-shadow: var(--shadow-elevated); }
@media (min-width: 640px) { .theme-product-card { flex-direction: column; } }

.theme-product-card__image-link { display: block; width: 38%; flex-shrink: 0; }
@media (min-width: 640px) { .theme-product-card__image-link { width: 100%; flex-shrink: 1; } }
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: calc(var(--radius) - 2px); background-color: var(--secondary); }
.theme-product-card__image { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s ease; }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.05); }

.theme-badge { position: absolute; top: 0.5rem; left: 0.5rem; border-radius: 0.25rem; padding: 0.125rem 0.375rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
@media (min-width: 640px) { .theme-badge { padding: 0.25rem 0.5rem; font-size: 11px; } }
.theme-badge--deal { background-color: var(--deal); color: var(--primary-foreground); }
.theme-badge--accent { background-color: var(--accent); color: var(--accent-foreground); }

.theme-product-card__info { display: flex; flex-direction: column; flex: 1; padding: 0 0 0 0.75rem; min-width: 0; }
@media (min-width: 640px) { .theme-product-card__info { padding: 0.75rem 0 0; } }
.theme-product-card__cat { font-size: 11px; color: var(--muted-foreground); margin-bottom: 2px; }
@media (min-width: 640px) { .theme-product-card__cat { font-size: 0.75rem; margin-bottom: 0.25rem; } }
.theme-product-card__title-link { display: block; }
.theme-product-card__title {
	font-family: var(--font-display);
	font-size: 0.875rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	transition: color .2s ease;
}
@media (min-width: 640px) { .theme-product-card__title { font-size: 1rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--accent); }

.theme-product-card__stars { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.25rem; }
@media (min-width: 640px) { .theme-product-card__stars { margin-top: 0.375rem; } }
.theme-stars { display: inline-flex; align-items: center; }
.theme-star { color: var(--border); width: 14px; height: 14px; flex-shrink: 0; }
.theme-star.is-filled { color: var(--star); fill: var(--star); }
.theme-product-card__rating-text { font-size: 0.75rem; color: var(--muted-foreground); }

.theme-product-card__price-row { margin-top: 0.375rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.375rem; }
@media (min-width: 640px) { .theme-product-card__price-row { margin-top: 0.5rem; gap: 0.5rem; } }
.theme-product-card__price {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	color: var(--foreground);
	line-height: 1.2;
}
@media (min-width: 640px) { .theme-product-card__price { font-size: 1.125rem; } }
@media (min-width: 768px) { .theme-product-card__price { font-size: 1.25rem; } }
.theme-product-card__price .woocommerce-Price-amount { font-weight: 700; }
.theme-product-card__price ins { text-decoration: none; }
.theme-product-card__price del {
	color: var(--muted-foreground);
	font-size: 0.75rem;
	font-weight: 400;
	margin-right: 0;
}
@media (min-width: 640px) { .theme-product-card__price del { font-size: 0.875rem; } }
.theme-product-card__list-price {
	font-size: 0.75rem;
	color: var(--muted-foreground);
	text-decoration: line-through;
}
@media (min-width: 640px) { .theme-product-card__list-price { font-size: 0.875rem; } }

.theme-product-card__shipping { display: none; margin-top: 0.25rem; align-items: flex-start; gap: 0.375rem; font-size: 0.75rem; color: var(--muted-foreground); }
@media (min-width: 640px) { .theme-product-card__shipping { display: flex; } }
.theme-product-card__shipping svg { flex-shrink: 0; margin-top: 1px; }
.theme-product-card__stock { margin-top: 2px; display: flex; align-items: center; gap: 0.375rem; font-size: 11px; font-weight: 500; }
@media (min-width: 640px) { .theme-product-card__stock { margin-top: 0.25rem; font-size: 0.75rem; } }
.theme-product-card__stock.is-in-stock { color: var(--success); }
.theme-product-card__stock.is-out-of-stock { color: var(--success); }
.theme-product-card__stock svg { flex-shrink: 0; }

/* Section 15.1 — hidden nodes must never break the fixed-column grid (Section 31.9.1). */
.theme-product-card-wrap[hidden] { display: none; }

/* ==========================================================================
   DEALS
   ========================================================================== */

.theme-deals { background-color: var(--secondary); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */

.theme-cta-band { position: relative; overflow: hidden; background-size: cover; background-position: center; background-repeat: no-repeat; }
@media (min-width: 1024px) { .theme-cta-band { background-attachment: fixed; } }
.theme-cta-band__scrim { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--primary) 75%, transparent); }
.theme-cta-band__inner { position: relative; padding-top: 5rem; padding-bottom: 5rem; max-width: 48rem; margin: 0 auto; text-align: center; color: var(--primary-foreground); }
@media (min-width: 768px) { .theme-cta-band__inner { padding-top: 7rem; padding-bottom: 7rem; } }
@media (min-width: 1024px) { .theme-cta-band__inner { padding-top: 8rem; padding-bottom: 8rem; } }
.theme-cta-band__paragraph { margin-top: 1rem; font-size: 1rem; color: color-mix(in srgb, var(--primary-foreground) 85%, transparent); max-width: 36rem; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .theme-cta-band__paragraph { font-size: 1.125rem; } }
.theme-cta-band__ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ==========================================================================
   SHOP
   ========================================================================== */

.theme-shop__header { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .theme-shop__header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.theme-shop__search { position: relative; display: flex; width: 100%; }
@media (min-width: 768px) { .theme-shop__search { max-width: 24rem; } }
.theme-shop__search input {
	width: 100%; min-height: 44px; border-radius: 9999px; border: 1px solid var(--border); background-color: var(--card);
	padding: 0 2.5rem 0 1rem; font-size: 0.875rem;
}
.theme-shop__search input:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.theme-shop__search-icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }

.theme-shop__filters { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-filter-pill {
	min-height: 44px; border-radius: 9999px; border: 1px solid var(--border); background-color: var(--card); color: var(--foreground);
	padding: 0 1rem; font-size: 0.875rem; font-weight: 500; transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.theme-filter-pill:hover { border-color: var(--accent); }
.theme-filter-pill.is-active { border-color: var(--accent); background-color: var(--accent); color: var(--accent-foreground); }

.theme-shop__count { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.theme-shop__grid, [data-shop-grid] { margin-top: 1.5rem; }

.theme-shop__empty { margin-top: 2rem; border-radius: var(--radius); border: 1px solid var(--border); background-color: var(--card); padding: 2rem; text-align: center; }
.theme-shop__empty-title { font-size: 1.125rem; font-weight: 600; }
.theme-shop__empty-text { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.5rem; }
.theme-shop__empty .theme-btn { margin-top: 1.25rem; }

/* ==========================================================================
   REVIEWS
   ========================================================================== */

.theme-reviews { overflow: hidden; background-color: color-mix(in srgb, var(--card) 30%, transparent); padding: 3.5rem 0; }
@media (min-width: 768px) { .theme-reviews { padding: 5rem 0; } }
.theme-reviews__header { text-align: center; margin-bottom: 2rem; }
@media (min-width: 768px) { .theme-reviews__header { margin-bottom: 2.5rem; } }
.theme-reviews__viewport { position: relative; }
.theme-reviews__fade { pointer-events: none; position: absolute; inset-block: 0; z-index: 10; width: 2rem; }
@media (min-width: 640px) { .theme-reviews__fade { width: 4rem; } }
@media (min-width: 768px) { .theme-reviews__fade { width: 6rem; } }
.theme-reviews__fade--left { left: 0; background: linear-gradient(to right, var(--background), transparent); }
.theme-reviews__fade--right { right: 0; background: linear-gradient(to left, var(--background), transparent); }
.theme-reviews__scroller { overflow: hidden; }
.theme-reviews__track { display: flex; align-items: flex-start; gap: 1rem; width: max-content; animation: theme-marquee 40s linear infinite; }
@media (min-width: 768px) { .theme-reviews__track { gap: 1.5rem; } }
.theme-reviews__track:hover { animation-play-state: paused; }
.theme-review-card {
	flex-shrink: 0;
	width: 80vw;
	max-width: 28rem;
	border-radius: 1rem;
	border: 1px solid var(--border);
	background-color: var(--card);
	padding: 1.5rem;
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
@media (min-width: 640px) { .theme-review-card { width: 60vw; } }
@media (min-width: 768px) { .theme-review-card { width: 40vw; } }
@media (min-width: 1024px) { .theme-review-card { width: 30vw; } }
.theme-review-card__stars { display: flex; align-items: center; gap: 0.25rem; line-height: 1; }
.theme-review-card__stars .theme-star { color: var(--muted-foreground); width: 1rem; height: 1rem; display: block; flex-shrink: 0; }
.theme-review-card__stars .theme-star.is-filled { color: var(--accent); fill: var(--accent); }
.theme-review-card__text {
	margin-top: 1rem;
	color: color-mix(in srgb, var(--foreground) 90%, transparent);
	line-height: 1.625;
	font-family: var(--font-body);
}
.theme-review-card__name {
	margin-top: 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--foreground);
}

/* ==========================================================================
   SALON
   ========================================================================== */

.theme-salon { background-color: var(--primary); color: var(--primary-foreground); }
.theme-salon__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .theme-salon__grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.theme-salon__paragraph { margin-top: 1rem; color: color-mix(in srgb, var(--primary-foreground) 85%, transparent); line-height: 1.7; }
.theme-salon__list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-salon__list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; font-family: var(--font-body); }
.theme-salon__icon,
.theme-salon__list svg {
	color: var(--accent);
	flex-shrink: 0;
	margin-top: 0.125rem;
	width: 1rem;
	height: 1rem;
}
.theme-salon__ctas { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.theme-salon__image { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-elevated); object-fit: cover; aspect-ratio: 4 / 3; }

/* ==========================================================================
   CONTACT
   ========================================================================== */

.theme-contact { background-color: color-mix(in srgb, var(--muted) 30%, var(--background)); }
.theme-contact__intro { max-width: 42rem; margin-bottom: 3rem; }
.theme-contact__paragraph { color: var(--muted-foreground); font-size: 1rem; }
@media (min-width: 768px) { .theme-contact__paragraph { font-size: 1.125rem; } }
.theme-contact__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 1024px) { .theme-contact__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.theme-contact__info { display: flex; flex-direction: column; gap: 1.5rem; height: 100%; }
.theme-contact__info-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; flex: 1; }
@media (min-width: 640px) { .theme-contact__info-grid { grid-template-columns: 1fr 1fr; } }
.theme-contact-card { border-radius: 1rem; background-color: var(--card); border: 1px solid var(--border); padding: 1.5rem; box-shadow: var(--shadow-soft); transition: box-shadow .2s ease, border-color .2s ease; }
.theme-contact-card--link:hover { box-shadow: var(--shadow-elevated); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.theme-contact-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 0.75rem; background-color: color-mix(in srgb, var(--primary) 5%, transparent); color: var(--accent); transition: background-color .2s ease, color .2s ease; }
.theme-contact-card--link:hover .theme-contact-card__icon { background-color: var(--accent); color: var(--accent-foreground); }
.theme-contact-card h3 { font-family: var(--font-display); font-weight: 600; margin-top: 1rem; margin-bottom: 0; font-size: 1rem; line-height: 1.4; }
.theme-contact-card p,
.theme-contact-card address {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	margin-top: 0.25rem;
	font-style: normal;
	line-height: 1.625;
}
.theme-contact-card dl {
	margin: 0.25rem 0 0;
	padding: 0;
	font-size: 0.875rem;
	color: var(--muted-foreground);
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}
.theme-contact-card dl div { display: flex; flex-wrap: wrap; gap: 0 0.375rem; margin: 0; line-height: 1.4; }
.theme-contact-card dt,
.theme-contact-card dd { margin: 0; padding: 0; }
.theme-contact-card dd a { transition: color .2s ease; }
.theme-contact-card dd a:hover { color: var(--accent); }
.theme-contact-hours { margin-top: 0.25rem; display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.875rem; color: var(--muted-foreground); }
.theme-contact-hours li { display: flex; justify-content: space-between; gap: 0.75rem; }
.theme-contact-hours li span:last-child { color: var(--foreground); }

.theme-contact__phone-cta {
	border-radius: 1rem; background-color: var(--primary); color: var(--primary-foreground); padding: 1.5rem;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-shadow: 0 20px 40px -15px rgb(15 27 61 / 0.25);
}
.theme-contact__phone-cta p { font-size: 0.875rem; color: color-mix(in srgb, var(--primary-foreground) 80%, transparent); }

.theme-contact-form { border-radius: 1.5rem; background-color: var(--card); border: 1px solid var(--border); padding: 2rem; display: flex; flex-direction: column; box-shadow: var(--shadow-soft); height: 100%; }
@media (min-width: 768px) { .theme-contact-form { padding: 2.5rem; } }
@media (min-width: 1024px) { .theme-contact-form { padding: 3rem; } }
.theme-contact-form__head { margin-bottom: 1.5rem; }
.theme-contact-form__head h3 { font-size: 1.25rem; font-weight: 600; }
.theme-contact-form__head p { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.theme-contact-form__fields { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.theme-form-field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.theme-form-field--grow { flex: 1; display: flex; flex-direction: column; }
.theme-form-field input, .theme-form-field textarea {
	width: 100%; min-height: 48px; border-radius: 0.75rem; border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
	background-color: var(--background); padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--foreground); font-family: var(--font-body);
	transition: box-shadow .2s ease, border-color .2s ease;
}
.theme-form-field textarea { min-height: 120px; resize: none; flex: 1; }
.theme-form-field input::placeholder, .theme-form-field textarea::placeholder { color: var(--muted-foreground); }
.theme-form-field input:focus, .theme-form-field textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }
.theme-contact-form .theme-btn { margin-top: 1.5rem; }
.theme-contact-form__status { margin-top: 0.75rem; font-size: 0.875rem; text-align: center; min-height: 1.25rem; }
.theme-contact-form__status.is-error { color: var(--deal); }
.theme-contact-form__status.is-success { color: var(--success); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { background-color: var(--navy-obsidian); color: var(--primary-foreground); }
/* padding-block only — keep .container-wide horizontal gutters */
.theme-footer-inner { padding-top: 3rem; padding-bottom: 2rem; }
@media (min-width: 768px) { .theme-footer-inner { padding-top: 4rem; } }
.theme-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .theme-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.theme-footer-tagline { margin-top: 1.25rem; font-size: 0.875rem; color: color-mix(in srgb, var(--primary-foreground) 75%, transparent); max-width: 28rem; line-height: 1.6; }
.theme-footer-heading { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 0.75rem; }

.theme-footer-col ul {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}
.theme-footer-col ul li {
	width: 100%;
	color: color-mix(in srgb, var(--primary-foreground) 75%, transparent);
	font-size: 0.875rem;
}
.theme-footer-col ul li a,
.theme-footer-col ul li button,
.theme-footer-col ul li .theme-footer-static {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.5rem 0;
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--primary-foreground) 75%, transparent);
	background: none;
	border: none;
	text-align: left;
	transition: color .2s ease;
	font-family: var(--font-body);
	line-height: 1.4;
	width: 100%;
}
.theme-footer-col ul li a:hover,
.theme-footer-col ul li button:hover { color: var(--accent); }
.theme-footer-col--navigate ul li a,
.theme-footer-col--navigate ul li button {
	align-items: center;
}
.theme-footer-col--contact ul {
	gap: 0.25rem;
}
.theme-footer-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 0.125rem;
}
.theme-footer-col--contact .theme-footer-icon { margin-top: 0.2rem; }
.theme-footer-label { color: color-mix(in srgb, var(--primary-foreground) 60%, transparent); flex-shrink: 0; }
.theme-footer-email { word-break: break-all; }
.theme-footer-address { font-style: normal; }
.theme-footer-hours { display: flex; flex-direction: column; gap: 0; }
.theme-footer-hours-row { display: block; }
.theme-footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--primary-foreground) 15%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; text-align: center; }
@media (min-width: 768px) { .theme-footer-bottom { flex-direction: row; text-align: left; } }
.theme-footer-bottom p { font-size: 0.75rem; color: color-mix(in srgb, var(--primary-foreground) 60%, transparent); }
.theme-footer-credit a { text-decoration: underline; text-underline-offset: 2px; transition: color .2s ease; }
.theme-footer-credit a:hover { color: var(--accent); }

/* ==========================================================================
   CART DRAWER (Section 12)
   ========================================================================== */

#theme-cart-overlay { position: fixed; inset: 0; background-color: color-mix(in srgb, var(--foreground) 20%, transparent); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem; background-color: var(--background);
	z-index: 61; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column;
	transform: translateX(100%); opacity: 0; transition: transform .35s var(--transition-smooth), opacity .35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); opacity: 1; }
#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(--border); }
.theme-cart-drawer__title { font-size: 1.5rem; font-weight: 700; }
.theme-cart-drawer__close { background: none; border: none; padding: 0.25rem; color: inherit; opacity: 0.7; transition: opacity .2s ease; }
.theme-cart-drawer__close:hover { opacity: 1; }

.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty svg { color: var(--muted-foreground); }
.theme-cart-drawer__empty p { color: var(--muted-foreground); }

.theme-cart-drawer__items { flex: 1; overflow: 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; background-color: var(--secondary); overflow: hidden; flex-shrink: 0; border-radius: 0.375rem; display: block; position: relative; }
.theme-cart-item__image img,
.theme-cart-item__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	display: block;
}
.theme-cart-item__info { 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 .2s ease; }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__price { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.125rem; }
.theme-cart-item__variation { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-item__controls button { background: none; border: none; padding: 0.25rem; border-radius: 0.25rem; color: inherit; transition: background-color .2s ease; }
.theme-cart-item__controls button:hover { background-color: var(--secondary); }
.theme-cart-item__qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-item__remove { margin-left: auto; font-size: 0.75rem; color: var(--muted-foreground); }
.theme-cart-item__remove:hover { color: var(--foreground); background: none !important; }

.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 0.875rem; font-weight: 500; }
.theme-cart-drawer__note { font-size: 0.75rem; color: var(--muted-foreground); }

/* ==========================================================================
   SINGLE PRODUCT (Section 11)
   ========================================================================== */

.theme-single-product-shell { padding-top: var(--header-offset); }
.theme-back-to-shop-row { padding: 1.5rem 0; }
.theme-back-to-shop { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); transition: color .2s ease; }
.theme-back-to-shop:hover { color: var(--foreground); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 5rem; min-width: 0; }
@media (min-width: 768px) { .theme-product-layout { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .theme-product-layout { gap: 4rem; } }

.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 768px) { .theme-product-info { padding-top: 1rem; padding-bottom: 1rem; } }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; padding-bottom: 2.5rem; } }
.theme-product-info .eyebrow { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.theme-product-gallery__main {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	background-color: var(--secondary);
	overflow: hidden;
	margin-bottom: 1rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
}
.theme-product-gallery__main-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain;
	object-position: center;
	mix-blend-mode: multiply;
}
.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { aspect-ratio: 1 / 1; overflow: hidden; border: 2px solid transparent; border-radius: 0.25rem; opacity: 0.6; transition: opacity .2s ease, border-color .2s ease; padding: 0; background: none; cursor: pointer; }
.theme-product-thumb:hover { opacity: 1; }
.theme-product-thumb.is-active { border-color: var(--primary); opacity: 1; }
.theme-product-thumb-img { width: 100%; height: 100%; object-fit: cover; }

.product-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-top: 0.5rem; margin-bottom: 0.75rem; line-height: 1.2; text-wrap: balance; }
@media (min-width: 768px) { .product-title { font-size: 2.25rem; } }
.theme-product-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-product-rating .theme-star { width: 16px; height: 16px; }
.theme-product-rating__text { font-size: 0.875rem; color: var(--muted-foreground); }
.theme-product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; }
.theme-product-price__current { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; line-height: 1.2; }
.theme-product-price__current .woocommerce-Price-amount { font-weight: 700; }
.theme-product-price__list { font-size: 1rem; color: var(--muted-foreground); text-decoration: line-through; }
.theme-product-price__list .woocommerce-Price-amount { font-weight: 400; }
.theme-product-price__currency { font-size: 0.875rem; color: var(--muted-foreground); }
.theme-product-stock { font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem; }
.theme-product-stock.is-in-stock { color: var(--success); }
.theme-product-stock.is-out-of-stock { color: var(--success); }
.theme-product-description { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }
.theme-product-description p { margin-bottom: 1em; }
.theme-product-description p:last-child { margin-bottom: 0; }

.theme-add-to-cart-area { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
@media (min-width: 640px) {
	.theme-add-to-cart-area { flex-direction: row; gap: 1rem; align-items: stretch; }
	.theme-add-to-cart-area .single_add_to_cart_button { flex: 1; min-height: 3rem !important; }
}
.theme-add-to-cart-area .single_add_to_cart_button { gap: 0.5rem; }
.theme-add-to-cart-area .theme-atc-check[hidden] { display: none !important; }
.theme-add-to-cart-area .single_add_to_cart_button.is-added {
	pointer-events: none;
	opacity: 0.9 !important;
}
.theme-quantity-wrapper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 9999px; align-self: flex-start; }
.theme-quantity-wrapper button { background: none; border: none; padding: 0.75rem 1rem; min-height: 44px; min-width: 44px; color: inherit; transition: color .2s ease; cursor: pointer; }
.theme-quantity-wrapper button:hover { color: var(--accent); }
.theme-qty-input { -moz-appearance: textfield; appearance: textfield; width: 3rem; min-width: 48px; border: none; background: none; text-align: center; font-family: var(--font-body); font-size: 1rem; padding: 0.75rem 0; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.theme-qty-input:focus { outline: none; }

.theme-product-perks { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.75rem; border-radius: var(--radius); border: 1px solid var(--border); background-color: var(--card); padding: 1rem; }
.theme-product-perks li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; }
.theme-product-perks svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.theme-product-details { border-top: 1px solid var(--border); padding-top: 2rem; }
.theme-product-details h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; font-family: var(--font-display); }
.theme-product-details__content, .theme-product-details__content ul { color: var(--muted-foreground); font-size: 0.875rem; }
.theme-product-details__content ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-details__content li { display: flex; align-items: flex-start; position: relative; padding-left: 1.125rem; }
.theme-product-details__content li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 9999px; background-color: var(--accent); }
.theme-product-details__content { overflow-wrap: break-word; word-break: break-word; }

.theme-related-products { padding: 3rem 0 5rem; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .theme-related-products { padding: 5rem 0; } }
.theme-related-products__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; line-height: 1.2; text-wrap: balance; }
@media (min-width: 768px) { .theme-related-products__title { font-size: 1.875rem; } }

/* ==========================================================================
   ADD-TO-CART BUTTON OVERRIDES (Section 11.4.1 — mandatory WooCommerce override)
   ========================================================================== */

.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-button-bg) !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-button-bg) !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-button-bg) !important;
}
/* Card compact variant — overrides global rules above (scoped after them). */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: 36px !important;
	padding: 0 1rem !important;
	border-radius: 9999px !important;
}
@media (min-width: 640px) { .theme-product-card .add_to_cart_button.ajax_add_to_cart { min-height: 44px !important; } }

.single_add_to_cart_button.button.theme-btn-loading::after,
.add_to_cart_button.button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

/* Section 11.4.2 — hide WooCommerce's injected "View cart" link. */
.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;
}

/* Section 14.1 — scoped notice hiding (drawer already gives feedback). */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* ==========================================================================
   SHOP / ARCHIVE PAGE SHELL
   ========================================================================== */

.theme-archive-shell { padding-top: var(--header-offset); padding-bottom: 4rem; }
.theme-archive-header { margin-bottom: 2rem; }
.theme-shop-empty { text-align: center; padding: 4rem 0; color: var(--muted-foreground); }

/* ==========================================================================
   404
   ========================================================================== */

.theme-404-shell { padding-top: var(--header-offset); padding-bottom: 6rem; min-height: 60vh; display: flex; align-items: center; }
.theme-404-inner { text-align: center; max-width: 32rem; margin: 0 auto; }
.theme-404-inner h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.theme-404-inner p { color: var(--muted-foreground); margin-bottom: 2rem; }

/* ==========================================================================
   GENERIC PAGE SHELL (checkout, cart, my account, default WooCommerce pages)
   ========================================================================== */

.theme-page-shell { padding-top: var(--header-offset); padding-bottom: 4rem; }
.theme-page-shell__inner .page-title { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
@media (min-width: 768px) { .theme-page-shell__inner .page-title { font-size: 2.75rem; } }

/* ==========================================================================
   WOOCOMMERCE CHECKOUT BLOCK OVERRIDE (Section 13)
   ========================================================================== */

body.woocommerce-checkout .site-main,
body.woocommerce-checkout .theme-page-shell,
body.woocommerce-cart .theme-page-shell,
body.woocommerce-account .theme-page-shell,
body.woocommerce-order-received .theme-page-shell {
	padding-top: var(--header-offset);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
	border-radius: 0.75rem;
	background-color: var(--background);
	color: var(--foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--muted-foreground); }
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--accent);
	border-color: var(--accent);
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--secondary);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--accent) !important;
	color: var(--accent-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	opacity: 0.9;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
}
body.woocommerce-checkout .wc-block-components-notice-banner.is-error {
	grid-column: 1 / -1;
}

body.woocommerce-checkout h2,
body.woocommerce-checkout h3 {
	font-family: var(--font-display);
}

/* ==========================================================================
   CART / MY ACCOUNT PAGE WIDTH PARITY (Section 13.7)
   ========================================================================== */

body.woocommerce-cart .theme-page-shell__inner,
body.woocommerce-account .theme-page-shell__inner {
	max-width: 1360px;
	margin: 0 auto;
}

/* ==========================================================================
   THANK YOU PAGE (Section 22.8)
   ========================================================================== */

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 {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 1.5rem;
	border-radius: var(--radius);
	background-color: var(--secondary);
	margin: 1.5rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.75rem;
	border-bottom: 1px solid var(--border);
}
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; }

/* ==========================================================================
   CUSTOMIZER MEDIA CONTROL (Section 22.3.8)
   ========================================================================== */

.theme-media-control { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-media-url-input { width: 100%; min-width: 0; box-sizing: border-box; }
.theme-media-preview { max-width: 100%; height: auto; display: block; border-radius: 4px; }
