/*
 * CoCoBelle theme stylesheet.
 * Color tokens are emitted as CSS variables via wp_add_inline_style (functions.php).
 * Font tokens match the Lovable source (Fraunces display + Nunito Sans body).
 */

:root {
	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Nunito Sans', sans-serif;

	/* Lovable palette fallbacks — overridden by Customizer inline CSS in functions.php */
	--color-background: #f8f6f1;
	--color-foreground: #232843;
	--color-primary: #2c3563;
	--color-primary-foreground: #f9f7f2;
	--color-secondary: #f0ebe3;
	--color-muted: #d9d4cb;
	--color-muted-foreground: #555a6b;
	--color-border: #ddd7cd;
	--color-rosa: #ba5826;
	--color-marigold: #cc7e1e;
	--color-teal: #396a58;
	--color-butter: #f3ede2;
	--color-surface-deep: #1f2438;
	--color-surface-deep-foreground: #f5f1ea;

	--radius: 0.75rem;
	--shadow-soft: 0 4px 20px -4px hsl(230 30% 18% / 0.10);
	--shadow-elevated: 0 8px 40px -8px hsl(230 30% 18% / 0.20);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--btn-radius: 0.375rem;
	--btn-height: 3.25rem;
	--btn-padding: 0 2.25rem;
	--btn-font-size: 11px;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.25em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0;

	--header-height: 80px;
}

/* ------------------------------------------------------------------------
 * RESET / BASE
 * ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--color-border); }
html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	margin: 0;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	letter-spacing: -0.015em;
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.theme-font-display { font-family: var(--font-display); }
.theme-italic { font-family: var(--font-display); font-style: italic; }

.container-wide { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container-wide { padding: 0 2rem; } }

.theme-section-pad { padding: 4rem 1.5rem; }
.theme-section-pad-lg { padding: 4rem 1.5rem; }
@media (min-width: 768px) {
	.theme-section-pad { padding: 5rem 1.5rem; }
	.theme-section-pad-lg { padding: 6rem 1.5rem; }
}
@media (min-width: 1024px) {
	.container-wide.theme-section-pad,
	.container-wide.theme-section-pad-lg {
		padding-left: 2rem;
		padding-right: 2rem;
	}
	.theme-section-pad:not(.container-wide) { padding-left: 2rem; padding-right: 2rem; }
	.theme-section-pad-lg:not(.container-wide) { padding-left: 2rem; padding-right: 2rem; }
}

.theme-section { border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); }
.theme-section[id] { scroll-margin-top: 6rem; }
.theme-text-center { text-align: center; }
.theme-mb-10 { margin-bottom: 2.5rem; }
.theme-mb-12 { margin-bottom: 3rem; }
.theme-mb-14 { margin-bottom: 3.5rem; }
.theme-mt-10 { margin-top: 2.5rem; }
.theme-mt-12 { margin-top: 3rem; }
.theme-mt-14 { margin-top: 3.5rem; }

/* Global image rule — excludes cover images (Section 15.1 completeness rule) */
img:not(.cover-img):not(.theme-product-cover-img):not(.product-card-img) {
	max-width: 100%;
	height: auto;
	display: block;
}
.cover-img,
.theme-product-cover-img,
.product-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.product-card-img,
.theme-product-cover-img,
.theme-cart-item-image img {
	height: 100% !important;
}
.theme-object-top { object-position: top; }

.theme-kicker {
	display: block;
	font-size: 12px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-family: var(--font-body);
	margin-bottom: 0.75rem;
}
.theme-muted { color: var(--color-muted-foreground); }
.theme-body-text {
	font-family: var(--font-body);
	line-height: 1.75;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	margin-bottom: 1.25rem;
}

.theme-link-underline {
	position: relative;
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-family: var(--font-body);
}
.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); }

/* ------------------------------------------------------------------------
 * BUTTONS
 * ---------------------------------------------------------------------- */
.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	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);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	transition: opacity 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
	text-transform: uppercase;
}
.theme-btn-hero-primary, .single_add_to_cart_button, .add_to_cart_button { text-transform: none; }
.theme-btn-hero-primary {
	background-color: var(--color-background);
	color: var(--color-foreground);
	text-transform: uppercase;
	font-family: var(--font-display);
	font-weight: 500;
	height: auto;
	padding: 1.5rem 3.5rem;
	border-radius: 0;
	font-size: 12px;
	letter-spacing: 0.28em;
}
.theme-btn-hero-primary:hover { background-color: color-mix(in srgb, var(--color-background) 90%, transparent); }
.theme-btn-dark {
	background-color: var(--color-foreground);
	color: var(--color-background);
	font-family: var(--font-display);
	height: auto;
	padding: 1rem 2.25rem;
	border-radius: 0;
	font-size: 11px;
	letter-spacing: 0.28em;
}
.theme-btn-dark:hover { opacity: 0.9; }
.theme-btn-rosa {
	background-color: var(--color-rosa);
	color: var(--color-background);
	font-family: var(--font-display);
	height: auto;
	padding: 1rem 2.25rem;
	border-radius: 0;
	font-size: 11px;
	letter-spacing: 0.28em;
}
.theme-btn-rosa:hover { opacity: 0.9; }
.theme-btn-primary { background-color: var(--color-primary); color: var(--color-primary-foreground); }
.theme-btn-primary:hover { opacity: 0.9; }
.theme-btn-outline {
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
}
.theme-btn-outline:hover { color: var(--color-primary); border-color: var(--color-primary); }
.theme-btn-block { width: 100%; }
.theme-btn-pill { border-radius: 999px; }

/* ------------------------------------------------------------------------
 * ANIMATIONS (Section 2.1)
 * ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.reveal-item, .reveal-fade-up {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.7s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
	}
	.reveal-item.is-visible, .reveal-fade-up.is-visible {
		opacity: 1;
		transform: translateY(0);
	}
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item, .reveal-fade-up { opacity: 1; transform: none; }
}
/* Customizer-preview fallback (Section 2.1 item 5) — reveal content must never be stuck hidden in the editor */
body.is-customizer .reveal-item,
body.is-customizer .reveal-fade-up {
	opacity: 1 !important;
	transform: none !important;
}

.theme-fade-in { animation: theme-fade-in 0.6s var(--transition-smooth) forwards; }
@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
.theme-slide-up { animation: theme-slide-up 0.6s var(--transition-smooth) forwards; }
@keyframes theme-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------------------------------------------------------------
 * ANNOUNCEMENT BAR
 * ---------------------------------------------------------------------- */
.theme-announcement-bar {
	position: relative;
	background-color: var(--color-foreground);
	color: var(--color-background);
}
.theme-announcement-inner { padding: 0.5rem 2rem; text-align: center; }
.theme-announcement-text { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-body); }
.theme-announcement-dismiss {
	position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
	padding: 0.25rem; opacity: 0.7; color: var(--color-background);
}
.theme-announcement-dismiss:hover { opacity: 1; }
.theme-announcement-bar.is-dismissed { display: none; }

/* ------------------------------------------------------------------------
 * HEADER
 * ---------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background-color: var(--color-background);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.site-header.is-scrolled,
.site-header.is-menu-open {
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-bottom-color: var(--color-border);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 5rem; position: relative; }
.site-brand { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.site-logo-wrap {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: var(--logo-height, 44px);
}
.site-logo-mark, .site-logo-img {
	height: 100%;
	width: auto;
	max-height: 100%;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}
.site-brand-text { display: none; flex-direction: column; line-height: 1; min-width: 0; }
@media (min-width: 640px) { .site-brand-text { display: flex; } }
.site-brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; color: var(--color-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .site-brand-name { font-size: 1.5rem; } }
.site-brand-tagline { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); margin-top: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav-center { display: none; }
@media (min-width: 1024px) {
	.site-nav-center { display: flex; align-items: center; gap: 2rem; position: absolute; left: 50%; transform: translateX(-50%); }
}
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-list a {
	font-size: 12px; font-family: var(--font-display); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
	position: relative; display: inline-block; transition: color 0.3s ease;
}
.theme-nav-list a::after {
	content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-list a:hover::after { transform: scaleX(1); }

.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .site-nav-actions { gap: 0.75rem; } }
.theme-icon-btn { padding: 0.5rem; display: inline-flex; align-items: center; justify-content: center; transition: opacity 0.2s ease; position: relative; }
.theme-icon-btn:hover { opacity: 0.6; }
.theme-search-btn { display: none; }
@media (min-width: 768px) { .theme-search-btn { display: inline-flex; } }
.theme-cart-count {
	position: absolute; top: -2px; right: -2px; width: 1.25rem; height: 1.25rem;
	display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500;
	background: var(--color-primary); color: var(--color-primary-foreground); border-radius: 999px;
}
.theme-cart-count:empty { display: none; }
.theme-mobile-toggle { display: inline-flex; }
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }
.theme-mobile-toggle.is-open .icon-menu { display: none; }
.theme-mobile-toggle.is-open .icon-close { display: inline-flex !important; }
.theme-mobile-toggle .icon-close { display: none; }

.theme-mobile-menu { border-top: 1px solid var(--color-border); padding: 1rem 0; }
.theme-mobile-menu[hidden] { display: none; }
@media (min-width: 1024px) { .theme-mobile-menu { display: none !important; } }
.theme-mobile-nav-list,
.theme-mobile-menu .theme-nav-list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}
.theme-mobile-nav-list a,
.theme-mobile-menu .theme-nav-list a {
	font-size: 14px;
	font-family: var(--font-display);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 0.5rem 0;
	display: block;
	width: 100%;
}
.theme-mobile-nav-list a:hover,
.theme-mobile-menu .theme-nav-list a:hover { color: var(--color-muted-foreground); }

/* ------------------------------------------------------------------------
 * HERO
 * ---------------------------------------------------------------------- */
.theme-hero { background-color: var(--color-background); }
.theme-hero-media { position: relative; width: 100%; height: 78vh; min-height: 560px; overflow: hidden; opacity: 0; animation: theme-fade-in 1.1s var(--transition-smooth) forwards; }
@media (min-width: 768px) { .theme-hero-media { height: 88vh; min-height: 680px; } }
.theme-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-foreground) 70%, transparent), color-mix(in srgb, var(--color-foreground) 60%, transparent), color-mix(in srgb, var(--color-foreground) 70%, transparent)); }
.theme-hero-content { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.theme-hero-inner { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.theme-hero-heading {
	font-family: var(--font-display); font-weight: 400; font-size: 2.75rem; line-height: 1.05;
	color: var(--color-background); margin-bottom: 2rem;
}
@media (min-width: 768px) { .theme-hero-heading { font-size: 4.5rem; margin-bottom: 2.5rem; } }
@media (min-width: 1280px) { .theme-hero-heading { font-size: 6rem; } }
.theme-hero-subtext {
	color: color-mix(in srgb, var(--color-background) 90%, transparent); font-size: 1.125rem; line-height: 1.7;
	margin-bottom: 3rem; max-width: 42rem; font-family: var(--font-body);
}
@media (min-width: 768px) { .theme-hero-subtext { font-size: 1.25rem; margin-bottom: 3.5rem; } }

/* ------------------------------------------------------------------------
 * SHOP BY CATEGORY TILES
 * ---------------------------------------------------------------------- */
.theme-section-header-center { text-align: center; margin-bottom: 2.5rem; }
.section-heading { font-family: var(--font-display); font-weight: 400; }
.shop-cats-heading { font-size: 1.875rem; }
@media (min-width: 768px) { .shop-cats-heading { font-size: 2.25rem; } }

.theme-cat-tiles { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .theme-cat-tiles { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; } }
.theme-cat-tile { position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; width: 100%; }
.theme-cat-tile-img { transition: transform 0.7s cubic-bezier(0.25,0.4,0.25,1); }
.theme-cat-tile:hover .theme-cat-tile-img { transform: scale(1.05); }
.theme-cat-tile-gradient { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 85%, transparent), color-mix(in srgb, var(--color-foreground) 40%, transparent), color-mix(in srgb, var(--color-foreground) 10%, transparent)); transition: background 0.5s ease; }
.theme-cat-tile:hover .theme-cat-tile-gradient { background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 90%, transparent), color-mix(in srgb, var(--color-foreground) 40%, transparent), color-mix(in srgb, var(--color-foreground) 10%, transparent)); }
.theme-cat-tile-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; text-align: left; color: var(--color-background); text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
@media (min-width: 768px) { .theme-cat-tile-content { padding: 1.75rem; } }
.theme-cat-tile-tagline { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; font-family: var(--font-body); margin-bottom: 0.5rem; filter: brightness(1.5); }
.theme-cat-tile-rule { height: 1px; width: 1.5rem; background: currentColor; }
.theme-cat-tile-label { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; color: var(--color-background); }
@media (min-width: 768px) { .theme-cat-tile-label { font-size: 1.875rem; } }
.theme-cat-tile-cta { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-body); color: var(--color-background); }

/* ------------------------------------------------------------------------
 * FEATURED / PRODUCT GRID (shared card styling — Section 31.9 / 31.13)
 * ---------------------------------------------------------------------- */
.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)); gap: 2rem; } }
@media (min-width: 1024px) { .theme-product-grid { gap: 2.5rem; } }
.theme-featured-section .theme-product-grid,
.theme-featured-products .theme-product-grid { grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 768px) { .theme-featured-section .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.theme-shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 768px) { .theme-shop-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-shop-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.featured-heading { font-size: 1.875rem; line-height: 1.25; }
@media (min-width: 768px) { .featured-heading { font-size: 3rem; } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.theme-product-card__image-wrapper,
.theme-product-card__info {
	position: relative;
	z-index: 2;
	pointer-events: none;
}
.theme-product-card__quick-add,
.theme-product-card a.add_to_cart_button,
.theme-product-card a.theme-product-card__quick-add--link {
	pointer-events: auto;
	position: relative;
	z-index: 5;
}

.theme-product-card__image-wrapper { position: relative; aspect-ratio: 3/4; background-color: var(--color-secondary); overflow: hidden; margin-bottom: 1.25rem; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.theme-product-card:hover .theme-product-card__image-wrapper { transform: translateY(-4px); }
.theme-product-card:hover .theme-product-card__image-wrapper .product-card-img { transform: scale(1.04); }
.theme-product-card__image-wrapper .product-card-img { transition: transform 0.7s cubic-bezier(0.25,0.4,0.25,1); }
.theme-img-faded { opacity: 0.6; }

.theme-product-badge {
	position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.25rem 0.75rem; font-size: 12px; font-weight: 500;
	letter-spacing: 0.18em; text-transform: uppercase; background: var(--color-foreground); color: var(--color-background); border-radius: 999px;
	z-index: 3;
}

.theme-product-card__quick-add,
.theme-product-card a.add_to_cart_button.ajax_add_to_cart,
.theme-product-card a.theme-product-card__quick-add--link {
	position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 3;
	width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; background: var(--color-background); color: var(--color-foreground); box-shadow: var(--shadow-soft);
	opacity: 1; transition: opacity 0.3s ease, transform 0.2s ease;
}
@media (min-width: 768px) {
	.theme-product-card__quick-add,
	.theme-product-card a.add_to_cart_button.ajax_add_to_cart,
	.theme-product-card a.theme-product-card__quick-add--link { opacity: 0; }
	.theme-product-card:hover .theme-product-card__quick-add,
	.theme-product-card:hover a.add_to_cart_button.ajax_add_to_cart,
	.theme-product-card:hover a.theme-product-card__quick-add--link { opacity: 1; }
}
.theme-product-card__quick-add:hover,
.theme-product-card a.theme-product-card__quick-add--link:hover,
.theme-product-card a.add_to_cart_button.ajax_add_to_cart:hover {
	transform: scale(1.08);
	color: var(--color-primary);
}
.theme-product-card__info { flex: 1; text-align: center; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-card__title {
	font-size: 14px; font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; line-height: 1.4;
	transition: color 0.3s ease;
}
@media (min-width: 768px) { .theme-product-card__title { font-size: 16px; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 1rem; font-family: var(--font-body); color: var(--color-foreground); }
@media (min-width: 768px) { .theme-product-card__price { font-size: 1.125rem; } }
.theme-product-card__price .woocommerce-Price-amount { font-family: inherit; }
.theme-product-card__price del { opacity: 0.5; margin-right: 0.4em; }

.theme-shop-grid-item.theme-product-beyond-initial,
.theme-shop-grid-item[data-filtered-out="1"],
.theme-product-card-wrap[data-filtered-out="1"],
.theme-customer-card.theme-customer-hidden {
	display: none;
}

/* ------------------------------------------------------------------------
 * ABOUT SECTION
 * ---------------------------------------------------------------------- */
.theme-about-inner { padding: 5rem 1.5rem; }
@media (min-width: 768px) { .theme-about-inner { padding: 7rem 3.5rem; } }
@media (min-width: 1024px) { .theme-about-inner { padding: 7rem 5rem; } }
.theme-about-content { max-width: 42rem; margin: 0 auto; text-align: center; }
.about-heading { font-weight: 600; font-size: 1.875rem; line-height: 1.2; margin-bottom: 2rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .about-heading { font-size: 2.25rem; } }
.theme-about-link { letter-spacing: 0.28em; font-weight: 500; font-family: var(--font-display); }

/* ------------------------------------------------------------------------
 * SPLIT LAYOUTS (Owner / Services / Serve)
 * ---------------------------------------------------------------------- */
.theme-split-layout { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .theme-split-layout { grid-template-columns: 1fr 1fr; } }
.theme-split-layout--reversed .theme-split-media { order: 2; }
.theme-split-layout--reversed .theme-split-content { order: 1; }
@media (max-width: 1023px) { .theme-split-layout--reversed .theme-split-media, .theme-split-layout--reversed .theme-split-content { order: initial; } }

.theme-split-media { position: relative; min-height: 380px; }
@media (min-width: 768px) { .theme-split-media { min-height: 520px; } }
@media (min-width: 1024px) { .theme-split-media { min-height: 620px; } }
.theme-split-content { display: flex; align-items: center; background-color: var(--color-background); padding: 4rem 1.5rem; }
.theme-split-content--butter { background-color: var(--color-butter); }
@media (min-width: 768px) { .theme-split-content { padding: 6rem 3.5rem; } }
@media (min-width: 1024px) { .theme-split-content { padding: 6rem 5rem; } }
@media (min-width: 1280px) { .theme-split-content { padding: 6rem 6rem; } }
.theme-split-content-inner { max-width: 36rem; }

.owner-heading { font-size: 2.25rem; line-height: 1.2; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .owner-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .owner-heading { font-size: 3.75rem; } }
.theme-quote { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.35; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); margin-bottom: 2rem; }
@media (min-width: 768px) { .theme-quote { font-size: 1.5rem; } }

/* ------------------------------------------------------------------------
 * SERVICES
 * ---------------------------------------------------------------------- */
/* ------------------------------------------------------------------------
 * SERVICES (How We Make It — full butter band like Lovable)
 * ---------------------------------------------------------------------- */
.theme-services-section { background-color: var(--color-butter); }
.theme-services-header { text-align: center; padding: 5rem 1.5rem; background-color: var(--color-butter); }
@media (min-width: 768px) { .theme-services-header { padding: 7rem 3.5rem; } }
.services-heading { font-size: 2.25rem; letter-spacing: -0.02em; line-height: 1.05; }
@media (min-width: 768px) { .services-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .services-heading { font-size: 4.5rem; } }

.theme-service-row { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .theme-service-row { grid-template-columns: 1fr 1fr; } }
.theme-service-row--reversed .theme-split-media { order: 2; }
.theme-service-row--reversed .theme-split-content { order: 1; }
@media (max-width: 1023px) { .theme-service-row--reversed .theme-split-media, .theme-service-row--reversed .theme-split-content { order: initial; } }
.theme-service-numeral {
	position: absolute; top: 1.25rem; left: 1.25rem; font-family: var(--font-display); font-size: 14px; letter-spacing: 0.3em;
	padding: 0.25rem 0.5rem; background: color-mix(in srgb, var(--color-background) 85%, transparent); backdrop-filter: blur(4px); z-index: 2;
}
.theme-service-kicker-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.theme-service-icon { display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid; }
.theme-service-kicker { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; font-family: var(--font-body); }
.theme-service-title { font-family: var(--font-display); font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .theme-service-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-service-title { font-size: 3.75rem; } }

/* ------------------------------------------------------------------------
 * TREAT LINEUP (dark band)
 * ---------------------------------------------------------------------- */
.theme-treats-section { background-color: var(--color-surface-deep); color: var(--color-surface-deep-foreground); }
.theme-treats-header { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.treats-heading { font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .treats-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .treats-heading { font-size: 3.75rem; } }
.treats-heading span { display: block; }
.theme-treats-paragraph { font-family: var(--font-body); line-height: 1.7; color: color-mix(in srgb, var(--color-surface-deep-foreground) 75%, transparent); }

.theme-treats-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
@media (min-width: 768px) { .theme-treats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) { .theme-treats-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.theme-treat-tile { text-align: left; display: block; width: 100%; }
.theme-treat-tile-image { position: relative; aspect-ratio: 1/1; overflow: hidden; background: color-mix(in srgb, var(--color-surface-deep-foreground) 5%, transparent); }
.theme-treat-tile-image img { transition: transform 0.6s cubic-bezier(0.25,0.4,0.25,1); }
.theme-treat-tile:hover .theme-treat-tile-image img { transform: scale(1.05); }
.theme-treat-tile-meta { padding-top: 0.75rem; display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; min-width: 0; }
.theme-treat-tile-meta h3 { font-family: var(--font-display); font-size: 14px; line-height: 1.3; color: var(--color-surface-deep-foreground); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) { .theme-treat-tile-meta h3 { font-size: 1rem; } }
.theme-treat-tile-meta span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-marigold); font-family: var(--font-body); flex-shrink: 0; }

.theme-treats-note { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }
.theme-treats-note-badge {
	display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid color-mix(in srgb, var(--color-marigold) 40%, transparent);
	color: var(--color-marigold); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-family: var(--font-body);
}
.theme-treats-note-rule { height: 1px; width: 1rem; background: var(--color-marigold); }
.theme-treats-note-text { color: color-mix(in srgb, var(--color-surface-deep-foreground) 70%, transparent); font-size: 14px; font-family: var(--font-body); }

/* ------------------------------------------------------------------------
 * HOW TO SERVE
 * ---------------------------------------------------------------------- */
.serve-heading { font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .serve-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .serve-heading { font-size: 3.75rem; } }
.serve-heading span { display: block; }
.theme-serve-steps { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.theme-serve-steps li { display: flex; gap: 1rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); font-family: var(--font-body); line-height: 1.7; }
.theme-serve-step-num { font-family: var(--font-display); font-size: 14px; margin-top: 0.125rem; flex-shrink: 0; }
.theme-serve-note { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); font-family: var(--font-body); font-style: italic; line-height: 1.7; margin-bottom: 2.5rem; }

/* ------------------------------------------------------------------------
 * GALLERY (marquee carousel)
 * ---------------------------------------------------------------------- */
.gallery-heading { font-size: 1.875rem; letter-spacing: -0.02em; line-height: 1.05; }
@media (min-width: 768px) { .gallery-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .gallery-heading { font-size: 3.75rem; } }
.theme-gallery-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }

.theme-gallery-track-wrap { overflow: hidden; }
.theme-gallery-track {
	display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem;
	padding-left: 1.5rem; padding-right: 1.5rem; scrollbar-width: none;
}
.theme-gallery-track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .theme-gallery-track { gap: 1.5rem; padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1024px) { .theme-gallery-track { padding-left: 4rem; padding-right: 4rem; } }
.theme-gallery-item { flex-shrink: 0; width: 78%; }
@media (min-width: 640px) { .theme-gallery-item { width: 55%; } }
@media (min-width: 768px) { .theme-gallery-item { width: 40%; } }
@media (min-width: 1024px) { .theme-gallery-item { width: 30%; } }
@media (min-width: 1280px) { .theme-gallery-item { width: 26%; } }
.theme-gallery-link { position: relative; display: block; overflow: hidden; aspect-ratio: 4/5; }
.theme-gallery-link img.cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 0.9s cubic-bezier(0.25,0.4,0.25,1);
}
body.is-customizer .theme-gallery-link img.cover-img { transition: none; }
.theme-gallery-link:hover img { transform: scale(1.04); }
.theme-gallery-controls { display: flex; align-items: center; gap: 1rem; }
.theme-gallery-btn {
	height: 3rem; width: 3rem; display: flex; align-items: center; justify-content: center;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent); color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
	transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-gallery-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* ------------------------------------------------------------------------
 * HAPPY CUSTOMERS
 * ---------------------------------------------------------------------- */
.theme-customers-section { background-color: var(--color-butter); }
.customers-heading { font-size: 1.875rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .customers-heading { font-size: 3rem; } }
.theme-customers-subtext { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); font-family: var(--font-body); max-width: 28rem; margin: 0 auto; }
.theme-customers-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
@media (min-width: 768px) { .theme-customers-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }
.theme-customer-card { text-align: center; }
.theme-customer-photo-wrap {
	position: relative; aspect-ratio: 1/1; overflow: hidden; margin: 0 auto 1rem; max-width: 260px; border-radius: 999px;
	border: 4px solid var(--color-background); box-shadow: var(--shadow-elevated);
}
.theme-customer-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.25rem; }
@media (min-width: 768px) { .theme-customer-card h3 { font-size: 1.5rem; } }
.theme-customer-card span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); }

/* ------------------------------------------------------------------------
 * SHOP SECTION (filters + grid)
 * ---------------------------------------------------------------------- */
.shop-heading { font-size: 1.875rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }
.theme-shop-search { position: relative; max-width: 28rem; margin: 0 auto 2rem; }
.theme-shop-search svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.theme-shop-search input {
	width: 100%; padding: 0.5rem 0 0.5rem 1.75rem; background: transparent; border: none; border-bottom: 1px solid var(--color-border);
	border-radius: 0; outline: none; transition: border-color 0.2s ease; font-family: var(--font-body);
}
.theme-shop-search input:focus { border-bottom-color: var(--color-foreground); }

.theme-shop-cat-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-cat-filter-btn {
	padding: 0.5rem 1.25rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--font-body);
	border-radius: 999px; border: 1px solid var(--color-border); background: transparent; color: var(--color-foreground);
	transition: all 0.3s ease;
}
.theme-cat-filter-btn:hover { border-color: var(--color-rosa); color: var(--color-rosa); }
.theme-cat-filter-btn.is-active { background-color: var(--color-rosa); color: var(--color-background); border-color: var(--color-rosa); }
.theme-cat-filter-btn:active { transform: scale(0.96); }

.theme-shop-price-filter-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.theme-price-filter-toggle {
	display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--color-muted-foreground); font-family: var(--font-body); transition: color 0.3s ease;
}
.theme-price-filter-toggle:hover { color: var(--color-foreground); }
.theme-price-filter-current { text-transform: none; letter-spacing: normal; opacity: 0.7; font-size: 13px; }
.theme-price-filter-toggle svg { transition: transform 0.3s ease; }
.theme-price-filter-toggle.is-open svg { transform: rotate(180deg); }
.theme-price-filter-panel { width: 100%; max-width: 22rem; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth); }
.theme-price-filter-panel.is-open { max-height: 6rem; opacity: 1; padding: 0.5rem 0; }
.theme-price-labels { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-muted-foreground); font-family: var(--font-body); margin-top: 0.75rem; }

/* Dual-handle price range (Section 31.4) */
.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: 999px; }
.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: 18px; height: 18px; border-radius: 50%; background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; 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-shop-empty { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); font-family: var(--font-body); }
.theme-shop-empty[hidden] { display: none; }

/* ------------------------------------------------------------------------
 * FINAL CTA
 * ---------------------------------------------------------------------- */
.theme-cta-section { position: relative; background-color: var(--color-butter); overflow: hidden; }
.theme-cta-bg { z-index: 0; }
.theme-cta-inner { position: relative; padding: 6rem 0; z-index: 1; }
@media (min-width: 768px) { .theme-cta-inner { padding: 8rem 0; } }
.theme-cta-card {
	max-width: 42rem; margin: 0 auto; text-align: center; background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(4px); box-shadow: var(--shadow-elevated); padding: 3rem 2rem; border: 1px solid var(--color-border);
}
@media (min-width: 768px) { .theme-cta-card { padding: 4rem 3.5rem; } }
.theme-cta-card .theme-kicker { font-weight: 600; }
.cta-heading { font-size: 1.875rem; line-height: 1.2; margin-bottom: 1.5rem; color: var(--color-foreground); }
@media (min-width: 768px) { .cta-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .cta-heading { font-size: 3.75rem; } }
.theme-cta-paragraph { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; max-width: 28rem; margin: 0 auto 2.5rem; font-family: var(--font-body); }
.theme-cta-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
@media (min-width: 640px) { .theme-cta-actions { flex-direction: row; } }

/* ------------------------------------------------------------------------
 * FOOTER
 * ---------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background-color: var(--color-butter); }
.theme-footer-inner {
	padding: 3rem 1.5rem 3.5rem;
}
@media (min-width: 1024px) {
	.container-wide.theme-footer-inner {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}
.theme-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .theme-footer-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
.theme-footer-tagline { margin-top: 1.25rem; font-size: 14px; color: var(--color-muted-foreground); line-height: 1.7; max-width: 20rem; font-family: var(--font-body); }
.theme-footer-brand .site-logo-wrap { height: var(--logo-height, 44px); }
.theme-footer-brand .site-logo-mark,
.theme-footer-brand .site-logo-img {
	height: 100%;
	width: auto;
	max-height: 100%;
	object-fit: contain;
}
.theme-footer-social { margin-top: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.theme-footer-social a { color: var(--color-muted-foreground); transition: color 0.2s ease; }
.theme-footer-social a:hover { color: var(--color-foreground); }
.theme-footer-col h2 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.theme-footer-nav-list, .theme-footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.theme-footer-nav-list a { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); transition: color 0.2s ease; }
.theme-footer-nav-list a:hover { color: var(--color-foreground); }
.theme-footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-footer-link { display: flex; align-items: center; gap: 0.5rem; font-size: 14px; color: var(--color-muted-foreground); font-family: var(--font-body); transition: color 0.2s ease; }
.theme-footer-link:hover { color: var(--color-foreground); }
.theme-footer-note { font-size: 11px; letter-spacing: 0.02em; color: color-mix(in srgb, var(--color-muted-foreground) 80%, transparent); margin-top: -0.25rem; }
.theme-footer-address { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 14px; color: var(--color-muted-foreground); font-family: var(--font-body); }
.theme-footer-address svg { margin-top: 0.125rem; flex-shrink: 0; }

.theme-footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
@media (min-width: 640px) { .theme-footer-bottom { flex-direction: row; justify-content: space-between; } }
.theme-footer-quote { font-size: 13px; color: var(--color-muted-foreground); letter-spacing: 0.02em; font-style: italic; font-family: var(--font-display); }
.theme-footer-legal { font-size: 13px; color: var(--color-muted-foreground); text-align: center; }
@media (min-width: 640px) { .theme-footer-legal { text-align: right; } }
.theme-footer-legal p { margin: 0.15rem 0; }
.theme-footer-legal a { text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s ease; }
.theme-footer-legal a:hover { color: var(--color-foreground); }

/* ------------------------------------------------------------------------
 * CART DRAWER (Section 12)
 * ---------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.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: var(--color-background);
	z-index: 91; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform 0.35s var(--transition-smooth);
}
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-drawer-header h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.theme-cart-close { padding: 0.25rem; transition: opacity 0.2s ease; }
.theme-cart-close:hover { opacity: 0.6; }
.theme-cart-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; color: var(--color-muted-foreground); }
.theme-cart-drawer-empty svg { margin-bottom: 1rem; }
.theme-cart-drawer-empty p { margin-bottom: 1.5rem; font-family: var(--font-body); }
.theme-cart-drawer-items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-drawer-item { display: flex; gap: 1rem; }
.theme-cart-item-image { width: 5rem; height: 6rem; background: var(--color-secondary); overflow: hidden; flex-shrink: 0; position: relative; display: block; }
.theme-cart-item-image img,
.theme-product-thumb img,
.theme-product-main-image img,
.theme-product-stack-image img {
	height: 100% !important;
	width: 100%;
	object-fit: cover;
}
.theme-cart-item-body { flex: 1; min-width: 0; }
.theme-cart-item-name { font-size: 14px; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-body); transition: opacity 0.2s ease; }
.theme-cart-item-name:hover { opacity: 0.7; }
.theme-cart-item-price { font-size: 14px; color: var(--color-muted-foreground); margin-top: 0.125rem; font-family: var(--font-body); }
.theme-cart-item-variation { font-size: 12px; 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 ease; width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center; }
.theme-cart-qty-btn:hover { background-color: var(--color-secondary); }
.theme-cart-qty-value { font-size: 14px; width: 1.5rem; text-align: center; font-family: var(--font-body); }
.theme-cart-remove { margin-left: auto; font-size: 14px; color: var(--color-muted-foreground); transition: color 0.2s ease; font-family: var(--font-body); }
.theme-cart-remove: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: 14px; font-family: var(--font-body); }
.theme-cart-subtotal-value { font-weight: 500; }
.theme-cart-shipping-note { font-size: 14px; color: var(--color-muted-foreground); font-family: var(--font-body); }

/* ------------------------------------------------------------------------
 * CONTACT MODAL (Dialog) — Section 2.1 item 4: explicit enter/exit
 * ---------------------------------------------------------------------- */
.theme-modal-overlay {
	position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,0.7);
	opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.theme-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.theme-modal {
	position: fixed; left: 50%; top: 50%; z-index: 96; width: calc(100% - 2rem); max-width: 32rem; max-height: 90vh; overflow-y: auto;
	background: var(--color-background); border: 1px solid var(--color-border); box-shadow: var(--shadow-elevated);
	border-radius: 0.5rem; padding: 1.5rem;
	transform: translate(-50%, -48%) scale(0.96); opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease;
}
.theme-modal[hidden] { display: none; }
.theme-modal.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.theme-modal-close { position: absolute; right: 1rem; top: 1rem; opacity: 0.7; padding: 0.25rem; transition: opacity 0.2s ease; }
.theme-modal-close:hover { opacity: 1; }
.theme-modal-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-modal-description { font-size: 14px; color: var(--color-muted-foreground); margin-bottom: 1.25rem; font-family: var(--font-body); }
.theme-modal-contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 14px; color: var(--color-muted-foreground); margin-bottom: 1.25rem; font-family: var(--font-body); }
.theme-modal-contact-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.theme-modal-contact-item a { transition: color 0.2s ease; }
.theme-modal-contact-item a:hover { color: var(--color-foreground); }
.theme-modal-phone-note { font-size: 11px; letter-spacing: 0.02em; color: color-mix(in srgb, var(--color-muted-foreground) 80%, transparent); }
.theme-form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-form-row-2 { grid-template-columns: 1fr 1fr; } }
.theme-form-field { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1rem; }
.theme-form-field label { font-size: 14px; font-weight: 500; 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; font-size: 1rem; transition: box-shadow 0.3s ease; font-family: var(--font-body);
}
.theme-form-field textarea { resize: none; }
.theme-form-field input:focus, .theme-form-field textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-form-actions { display: flex; justify-content: flex-end; }
.theme-form-status { font-size: 13px; margin-top: 0.5rem; min-height: 1em; }
.theme-form-status.is-error { color: #b42318; }
.theme-form-status.is-success { color: var(--color-teal); }
.theme-contact-success { text-align: center; padding: 2rem 0; }
.theme-contact-success[hidden] { display: none; }
.theme-contact-success-icon {
	width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--color-primary); color: var(--color-primary-foreground);
	display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.theme-contact-success h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-contact-success p { font-size: 14px; color: var(--color-muted-foreground); font-family: var(--font-body); }

/* ------------------------------------------------------------------------
 * BREADCRUMB / SINGLE PRODUCT
 * ---------------------------------------------------------------------- */
.theme-single-product-main { padding-top: 6rem; }
@media (min-width: 1024px) { .theme-single-product-main { padding-top: 7rem; } }

.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 { transition: color 0.2s ease; }
.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: 1fr; gap: 2.5rem; padding-bottom: 6rem; padding-top: 1rem; align-items: start; min-width: 0;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }

.theme-product-gallery { min-width: 0; max-width: 100%; }
.theme-product-main-image { position: relative; aspect-ratio: 1/1; background: var(--color-secondary); overflow: hidden; }
@media (min-width: 1024px) { .theme-product-main-image { display: none; } }
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; overflow-x: auto; padding-bottom: 0.25rem; flex-wrap: wrap; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-thumbnails { display: none; } }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); }
.theme-product-thumb img { opacity: 0.6; transition: opacity 0.2s ease; }
.theme-product-thumb.is-active img { opacity: 1; }
.theme-product-thumb:hover 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 ease; }
.theme-product-thumb.is-active::after { opacity: 1; }

.theme-product-desktop-stack { display: none; }
@media (min-width: 1024px) { .theme-product-desktop-stack { display: flex; flex-direction: column; gap: 1rem; } }
.theme-product-stack-image { position: relative; aspect-ratio: 1/1; background: var(--color-secondary); overflow: hidden; }

.theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-info { padding-left: 1rem; position: sticky; top: 7rem; } }
.theme-product-category { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); }
.theme-product-title, .product-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 1.1;
	margin: 0.75rem 0 1.25rem;
	overflow-wrap: break-word;
	word-break: break-word;
}
@media (min-width: 768px) { .theme-product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-title { font-size: 2.75rem; } }
.theme-product-price { font-size: 1.25rem; margin-bottom: 1.5rem; font-family: var(--font-body); }
.theme-product-price .woocommerce-Price-amount { font-family: inherit; }
.theme-stock-indicator { margin-bottom: 1.5rem; font-family: var(--font-body); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.theme-stock-out { color: #b42318; }
.theme-product-description { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 2rem; font-size: 1rem; font-family: var(--font-body); overflow-wrap: break-word; word-break: break-word; }
.theme-product-description p:not(:last-child) { margin-bottom: 1em; }

.theme-add-to-cart-area { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 1rem; }
.theme-quantity-block { margin-bottom: 1rem; }
.theme-quantity-label {
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	margin-bottom: 0.75rem;
}
.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); flex-shrink: 0; }
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 0.75rem; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
	width: 3.25rem; text-align: center; border: none; background: transparent; -moz-appearance: textfield; font-family: var(--font-body);
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !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: none !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single-product .single_add_to_cart_button.button,
.single-product a.single_add_to_cart_button {
	width: 100% !important;
	flex: none !important;
	min-width: 0 !important;
	min-height: unset !important;
	padding: 1rem 0 !important;
	background-color: var(--color-foreground) !important;
	color: var(--color-background) !important;
	border-radius: 999px !important;
	font-size: 12px !important;
	letter-spacing: 0.25em !important;
	font-weight: 500 !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-primary-foreground) !important;
}
.single-product .single_add_to_cart_button.button:hover,
.single-product a.single_add_to_cart_button:hover {
	opacity: 0.9 !important;
	background-color: color-mix(in srgb, var(--color-foreground) 90%, transparent) !important;
	color: var(--color-background) !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 quick-add button — overrides global rules (Section 11.4.1) */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-product-card a.theme-product-card__quick-add--link {
	min-height: unset !important;
	width: 2.5rem !important;
	height: 2.5rem !important;
	padding: var(--btn-icon-padding) !important;
	border-radius: 50% !important;
	min-width: 0 !important;
	flex: none !important;
	background-color: var(--color-background) !important;
	color: var(--color-foreground) !important;
	box-shadow: var(--shadow-soft);
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart:hover,
.theme-product-card a.theme-product-card__quick-add--link:hover {
	background-color: var(--color-background) !important;
	color: var(--color-primary) !important;
	opacity: 1 !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; }

.theme-accordion-group { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.theme-accordion { border-bottom: 1px solid var(--color-border); }
.theme-accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; text-align: left; font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; font-family: var(--font-body); }
.theme-accordion-trigger svg { transition: transform 0.3s ease; flex-shrink: 0; }
.theme-accordion.is-open .theme-accordion-trigger svg { transform: rotate(180deg); }
.theme-accordion-panel { display: none; padding-bottom: 1.5rem; font-family: var(--font-body); }
.theme-accordion.is-open .theme-accordion-panel { display: block; }
.theme-accordion-description { font-size: 15px; color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 1rem; white-space: pre-line; }
.theme-product-short-description { font-size: 15px; color: var(--color-muted-foreground); line-height: 1.7; }
.theme-product-short-description ul { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-short-description li { display: flex; align-items: flex-start; font-size: 15px; color: var(--color-muted-foreground); }
.theme-product-short-description li::before { content: ''; width: 4px; height: 4px; border-radius: 999px; background: var(--color-foreground); margin: 0.5rem 0.75rem 0 0; flex-shrink: 0; }
.theme-accordion-panel p { font-size: 15px; color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 0.75rem; }

.theme-variations-form .single_variation_wrap { margin-top: 0.5rem; }
.theme-variation-attribute { margin-bottom: 1.5rem; }
.theme-attr-label {
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	margin-bottom: 0.75rem;
	font-weight: 400;
}
.theme-attr-pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.theme-attr-pill {
	padding: 0.5rem 1rem;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-family: var(--font-body);
	background: transparent;
	color: var(--color-foreground);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.theme-attr-pill:hover { border-color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-attr-pill.is-selected {
	background-color: var(--color-foreground);
	color: var(--color-background);
	border-color: var(--color-foreground);
}
/* Hidden native selects — must stay inside .variations for WC JS */
.theme-variations-form .variations.theme-variations-select-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.theme-attr-select-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--font-body); color: var(--color-muted-foreground); }
.single-product .variations tbody td.value { padding-top: 0; margin-bottom: 1rem; }
.theme-related-products { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.theme-related-heading { text-align: center; margin-bottom: 3rem; }
.theme-related-heading-line1 { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }

/* WooCommerce notices — scoped visibility (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	border-radius: 0.5rem; border: 1px solid var(--color-border); padding: 1rem 1.5rem; font-family: var(--font-body); font-size: 14px;
}

/* ------------------------------------------------------------------------
 * WOOCOMMERCE ARCHIVE / SHOP FALLBACK PAGE
 * ---------------------------------------------------------------------- */
.theme-archive-header { margin-bottom: 2.5rem; text-align: center; }
.theme-archive-header .page-title { font-size: 2.25rem; }
.woocommerce-breadcrumb { display: none; }

/* ------------------------------------------------------------------------
 * 404
 * ---------------------------------------------------------------------- */
.theme-404-main { display: flex; min-height: 100vh; align-items: center; justify-content: center; background-color: var(--color-muted); }
.theme-404-inner { text-align: center; padding: 2rem; }
.theme-404-inner h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; font-family: var(--font-display); }
.theme-404-inner p { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; font-family: var(--font-body); }
.theme-404-inner a { color: var(--color-primary); text-decoration: underline; font-family: var(--font-body); }
.theme-404-inner a:hover { color: color-mix(in srgb, var(--color-primary) 90%, transparent); }

/* ------------------------------------------------------------------------
 * CHECKOUT / CART / ACCOUNT / THANK YOU (Sections 13, 13.7, 22.8)
 * ---------------------------------------------------------------------- */
.page-title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1.5rem; }
.entry-content { max-width: 100%; }

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main { padding-top: 2rem; padding-bottom: 4rem; }

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-cart .wp-block-woocommerce-cart {
	font-family: var(--font-body);
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-combobox .components-custom-select-control__button,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-select select,
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
	border: 1px solid var(--color-border) !important;
	border-radius: 0.375rem !important;
	background-color: var(--color-background) !important;
	color: var(--color-foreground) !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout .wc-block-components-combobox .components-custom-select-control__button:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-select select:focus,
.woocommerce-checkout .form-row .input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
	outline: none !important;
	box-shadow: 0 0 0 1px var(--color-primary) !important;
	border-color: var(--color-primary) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--color-muted-foreground); }
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;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.5rem;
	font-family: var(--font-body);
}

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 .entry-content { max-width: 100%; }
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.wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-secondary);
	border-radius: var(--radius);
	padding: 2rem;
}

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-account .woocommerce-MyAccount-content { max-width: 100%; }
