/* ==========================================================================
   Nemo's Nightmares — theme stylesheet
   All visual styling for the theme and its WooCommerce integration lives in
   this single file (Section 10). Colors are emitted as CSS variables by
   functions.php (Section 6/22.9); everything else lives here.
   ========================================================================== */

:root {
	/* Customizer-controlled brand tokens (defaults; overridden inline by PHP) */
	--color-background: #0f0f0f;
	--color-foreground: #f1ece4;
	--color-card: #171717;
	--color-primary: #7e252c;
	--color-secondary: #1f1f1f;
	--color-muted-foreground: #d5cdc5;
	--color-accent: #dbcab3;
	--color-border: #2e2e2e;
	--color-button-text: var(--color-primary-foreground);
	--logo-height: 44px;

	/* Derived tokens (computed here, never exposed as controls) */
	--color-primary-foreground: #f6f3ee;
	--color-card-foreground: var(--color-foreground);
	--color-secondary-foreground: var(--color-foreground);
	--color-accent-foreground: #141414;
	--color-destructive: #c91d1d;

	/* Typography — matches Lovable prototype (Fraunces + Inter) */
	--font-display: 'Fraunces', 'Cormorant Garamond', 'Times New Roman', serif;
	--font-body: 'Inter', system-ui, sans-serif;

	/* Buttons */
	--btn-radius: 9999px;
	--btn-height: 48px;
	--btn-padding: 0 2rem;
	--btn-font-size: 12px;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.22em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.65rem;

	--card-radius: 0.5rem;
	--section-padding: 2rem;
	--checkout-gap: 2rem;
	--header-height: 64px;

	color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { border-color: var(--color-border); box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: clip; }

body {
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	font-feature-settings: "ss01", "cv11";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	margin: 0;
}
@media (min-width: 768px) { body { font-size: 17px; } }

h1, h2, h3, h4, h5, h6, .font-display {
	font-family: var(--font-display);
	font-weight: inherit; /* Tailwind preflight parity — never rely on browser bold default */
	font-size: inherit;
	font-style: normal;
	letter-spacing: -0.015em;
	line-height: 1.05;
	font-feature-settings: "ss01", "ss02", "liga", "dlig";
	margin: 0;
}
h1 { font-weight: 800; letter-spacing: -0.025em; }
h2 { font-weight: 700; letter-spacing: -0.02em; }
h3, h4 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
h5, h6 { font-weight: 600; letter-spacing: -0.005em; line-height: 1.2; }

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; background: none; border: none; color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: var(--font-body); font-weight: 500; }
dl, dt, dd { margin: 0; padding: 0; }
[hidden] { display: none !important; }
#about, #portfolio, #services, #shop, #contact,
.scroll-reveal-section { scroll-margin-top: 6rem; }

/* Matches Lovable .container-wide: max-w-7xl (1280px) + px-6 lg:px-8 */
.container-wide { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container-wide { padding: 0 2rem; } }

/* Global img rule MUST NOT break cover/full-bleed OR contain-fit product
   photography (Section 15.1). Hero video/poster fill their box (cover);
   every doll/product photo intentionally shows the whole uncropped image
   on its card background (contain), matching the source design exactly. */
img:not(.cover-img):not(.product-card-img) {
	max-width: 100%;
	height: auto;
}
.cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.product-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

/* ==========================================================================
   Decorative utilities (ported verbatim from the source design system)
   ========================================================================== */
.thread-divider {
	display: block;
	position: relative;
	height: 1px;
	background: repeating-linear-gradient(to right, hsl(355 60% 38% / 0.85) 0 10px, transparent 10px 18px);
}
.thread-divider::before, .thread-divider::after {
	content: ''; position: absolute; top: 50%; width: 6px; height: 6px; border-radius: 9999px;
	background: hsl(355 60% 38%); transform: translateY(-50%); box-shadow: 0 0 8px hsl(355 70% 40% / 0.7);
}
.thread-divider::before { left: -3px; }
.thread-divider::after { right: -3px; }

.wax-seal {
	display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
	border-radius: 9999px;
	background: radial-gradient(circle at 30% 30%, hsl(355 70% 45%), hsl(355 55% 22%) 70%);
	box-shadow: inset 0 0 0 2px hsl(355 40% 18%), inset 0 6px 14px hsl(0 0% 0% / 0.5), 0 8px 24px hsl(355 60% 18% / 0.6);
	color: hsl(36 30% 92%); font-family: var(--font-display); font-style: italic; font-size: 26px; letter-spacing: 0.02em;
}

.paper-label {
	display: inline-block; padding: 6px 14px;
	background: linear-gradient(180deg, hsl(35 35% 82%), hsl(35 30% 72%));
	color: hsl(0 0% 10%); font-family: var(--font-body); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600;
	box-shadow: 0 1px 0 hsl(0 0% 0% / 0.2), 0 6px 18px hsl(0 0% 0% / 0.5);
	clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%);
}

.photo-corners { position: relative; }
.photo-corners .corner { position: absolute; width: 16px; height: 16px; border-color: hsl(35 35% 78% / 0.55); pointer-events: none; transition: border-color 400ms ease, width 400ms ease, height 400ms ease; }
.photo-corners:hover .corner { border-color: hsl(355 60% 45% / 0.9); width: 22px; height: 22px; }
.photo-corners .corner.tl { top: 6px; left: 6px; border-top: 1px solid; border-left: 1px solid; }
.photo-corners .corner.tr { top: 6px; right: 6px; border-top: 1px solid; border-right: 1px solid; }
.photo-corners .corner.bl { bottom: 6px; left: 6px; border-bottom: 1px solid; border-left: 1px solid; }
.photo-corners .corner.br { bottom: 6px; right: 6px; border-bottom: 1px solid; border-right: 1px solid; }

.ooak-stamp {
	display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px;
	border: 1.5px solid hsl(355 60% 45% / 0.85); color: hsl(355 60% 60%); font-family: var(--font-body);
	font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 700; transform: rotate(-6deg);
	background: hsl(0 0% 0% / 0.2); box-shadow: inset 0 0 0 1px hsl(355 60% 30% / 0.4);
}

.archive-tab {
	display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px;
	border: 1px solid hsl(35 35% 78% / 0.35); background: hsl(0 0% 0% / 0.35); color: hsl(35 35% 82%);
	font-family: var(--font-body); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600;
	backdrop-filter: blur(4px);
}
.archive-tab::before { content: ''; width: 6px; height: 6px; border-radius: 9999px; background: hsl(355 70% 45%); box-shadow: 0 0 10px hsl(355 70% 45% / 0.8); }

.fog-drift {
	background-image:
		radial-gradient(ellipse 60% 40% at 20% 30%, hsl(0 0% 100% / 0.06), transparent 70%),
		radial-gradient(ellipse 50% 35% at 80% 60%, hsl(0 0% 100% / 0.05), transparent 70%),
		radial-gradient(ellipse 70% 50% at 50% 90%, hsl(355 50% 30% / 0.18), transparent 70%);
	background-size: 200% 200%; animation: fogDrift 28s ease-in-out infinite alternate; mix-blend-mode: screen; pointer-events: none;
}
@keyframes fogDrift { 0% { background-position: 0% 0%, 100% 50%, 50% 100%; } 100% { background-position: 30% 20%, 70% 30%, 60% 70%; } }

.grain-overlay { position: relative; }
.grain-overlay::after {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.10; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.9  0 0 0 0 0.85  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.candle-flicker { animation: candleFlicker 4s ease-in-out infinite; }
@keyframes candleFlicker { 0%, 100% { opacity: 1; } 45% { opacity: 0.85; } 50% { opacity: 0.95; } 55% { opacity: 0.8; } }

.dust-motes {
	position: absolute; inset: 0; pointer-events: none;
	background-image:
		radial-gradient(1.5px 1.5px at 12% 18%, hsl(36 30% 92% / 0.55), transparent 60%),
		radial-gradient(1px 1px at 28% 72%, hsl(36 30% 92% / 0.45), transparent 60%),
		radial-gradient(2px 2px at 47% 33%, hsl(36 30% 92% / 0.4), transparent 60%),
		radial-gradient(1px 1px at 63% 56%, hsl(36 30% 92% / 0.5), transparent 60%),
		radial-gradient(1.5px 1.5px at 78% 22%, hsl(36 30% 92% / 0.45), transparent 60%),
		radial-gradient(1px 1px at 88% 81%, hsl(36 30% 92% / 0.55), transparent 60%),
		radial-gradient(1.5px 1.5px at 35% 90%, hsl(36 30% 92% / 0.35), transparent 60%),
		radial-gradient(1px 1px at 55% 12%, hsl(36 30% 92% / 0.5), transparent 60%);
	animation: dustDrift 22s linear infinite; opacity: 0.7; mix-blend-mode: screen;
}
@keyframes dustDrift { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-14px,-22px,0); } 100% { transform: translate3d(0,0,0); } }

.vignette-pulse { background: radial-gradient(ellipse at center, transparent 40%, hsl(0 0% 0% / 0.55) 100%); animation: vignettePulse 9s ease-in-out infinite; }
@keyframes vignettePulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }

.blur-reveal { animation: blurReveal 1.4s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
@keyframes blurReveal { 0% { opacity: 0; filter: blur(14px); transform: translateY(14px); letter-spacing: 0.04em; } 100% { opacity: 1; filter: blur(0); transform: translateY(0); letter-spacing: -0.01em; } }

.sweep-underline { position: relative; }
.sweep-underline::after {
	content: ''; position: absolute; left: 12%; right: 12%; bottom: 6px; height: 1px; background: hsl(355 70% 50%);
	transform: scaleX(0); transform-origin: left center; transition: transform 500ms cubic-bezier(0.2, 0.6, 0.2, 1); box-shadow: 0 0 10px hsl(355 70% 45% / 0.7);
}
.sweep-underline:hover::after { transform: scaleX(1); }

.theme-particles { pointer-events: none; position: fixed; inset: 0; z-index: 0; opacity: 0.7; mix-blend-mode: screen; }
body.woocommerce-checkout .theme-particles { display: none; }

@media (prefers-reduced-motion: reduce) {
	.fog-drift, .dust-motes, .candle-flicker, .vignette-pulse, .blur-reveal { animation: none !important; }
	.blur-reveal { filter: none; opacity: 1; transform: none; }
	.reveal-item { transition: none !important; }
}

/* ==========================================================================
   Scroll reveal system (Section 2.1)
   ========================================================================== */
.reveal-item { 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 { opacity: 1; transform: translateY(0); }
body.is-customizer .reveal-item { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.theme-btn-primary, .theme-btn-outline, .theme-btn-outline-hero, .theme-btn-outline-primary,
.theme-btn-outline-accent, .theme-btn-inverse, .theme-btn-outline-inverse, .theme-link-accent, .theme-link-muted {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	font-family: var(--font-body); font-size: var(--btn-font-size); font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing); text-transform: var(--btn-text-transform);
	border-radius: var(--btn-radius); transition: all 0.3s ease; cursor: pointer; white-space: nowrap;
}
.theme-btn-primary, .theme-btn-outline-primary { padding: var(--btn-padding); min-height: var(--btn-height); }
.theme-btn-primary { background: var(--color-primary); color: var(--color-primary-foreground); border: 1px solid var(--color-primary); box-shadow: 0 18px 60px -14px color-mix(in srgb, var(--color-primary) 70%, transparent); }
.theme-btn-primary:hover { background: color-mix(in srgb, var(--color-primary) 90%, transparent); }
.theme-btn-full { width: 100%; }
.theme-btn-outline-hero { padding: 0 2rem; min-height: var(--btn-height); background: transparent; color: var(--color-foreground); border: 1px solid color-mix(in srgb, var(--color-foreground) 70%, transparent); backdrop-filter: blur(4px); }
.theme-btn-outline-hero:hover { background: color-mix(in srgb, var(--color-foreground) 10%, transparent); border-color: var(--color-foreground); }
.theme-btn-outline-primary { background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }
.theme-btn-outline-primary:hover { background: var(--color-primary); color: var(--color-primary-foreground); }
.theme-btn-outline-accent { padding: 0.85rem 2rem; background: transparent; color: var(--color-accent); border: 1px solid color-mix(in srgb, var(--color-accent) 50%, transparent); border-radius: 9999px; }
.theme-btn-outline-accent:hover { background: var(--color-accent); color: var(--color-accent-foreground); }
.theme-btn-inverse { padding: 0.9rem 1.75rem; background: var(--color-background); color: var(--color-foreground); border: 1px solid var(--color-background); }
.theme-btn-inverse:hover { background: var(--color-foreground); color: var(--color-background); }
.theme-btn-outline-inverse { padding: 0.9rem 1.75rem; background: transparent; color: var(--color-primary-foreground); border: 1px solid color-mix(in srgb, var(--color-primary-foreground) 70%, transparent); }
.theme-btn-outline-inverse:hover { background: color-mix(in srgb, var(--color-primary-foreground) 10%, transparent); }
.theme-link-accent, .theme-link-muted { background: none; border: none; padding: 0; text-transform: uppercase; font-size: 11px; letter-spacing: 0.28em; }
.theme-link-accent { color: var(--color-accent); }
.theme-link-accent:hover { color: var(--color-foreground); }
.theme-link-muted { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.theme-link-muted:hover { color: var(--color-foreground); }

.theme-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9999px;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent); color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
	transition: all 0.3s ease;
}
.theme-icon-btn:hover { color: var(--color-accent); border-color: color-mix(in srgb, var(--color-accent) 70%, transparent); }
.theme-icon-btn--lg { width: 40px; height: 40px; border-color: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.theme-announcement-bar {
	position: relative; overflow: hidden;
	border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent);
	background: linear-gradient(180deg, hsl(260 22% 8%) 0%, hsl(355 38% 12%) 55%, hsl(260 22% 7%) 100%);
	color: var(--color-foreground);
}
.theme-announcement-bar .theme-announcement-grain { position: absolute; inset: 0; opacity: 0.4; pointer-events: none; }
.theme-announcement-bar__scratches {
	position: absolute; inset: 0; opacity: 0.07; pointer-events: none; mix-blend-mode: screen;
	background-image: repeating-linear-gradient(92deg, transparent 0 22px, hsl(36 25% 92% / 0.4) 22px 22.5px, transparent 22.5px 60px);
}
.theme-announcement-bar__stitch {
	position: absolute; left: 0; right: 0; bottom: 0; height: 1px; opacity: 0.7; pointer-events: none;
	background: repeating-linear-gradient(to right, hsl(355 70% 42%) 0 7px, transparent 7px 13px);
}
.theme-announcement-bar__stitch-dot { position: absolute; bottom: -2px; width: 4px; height: 4px; border-radius: 9999px; background: hsl(355 70% 42%); opacity: 0.8; pointer-events: none; }
.theme-announcement-bar__stitch-dot--left { left: 0.75rem; }
.theme-announcement-bar__stitch-dot--right { right: 0.75rem; }
.theme-announcement-label { clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%); backdrop-filter: blur(1px); }
.theme-announcement-inner { padding: 0.4rem 2.25rem 0.4rem 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; text-align: center; }
.theme-announcement-label { flex-shrink: 0; padding: 3px 8px; font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600; color: var(--color-accent); border: 1px solid color-mix(in srgb, var(--color-accent) 35%, transparent); background: rgba(0,0,0,0.3); display: none; }
@media (min-width: 640px) { .theme-announcement-label { display: inline-flex; } }
.theme-announcement-divider { width: 1px; height: 12px; background: color-mix(in srgb, var(--color-accent) 30%, transparent); display: none; }
@media (min-width: 640px) { .theme-announcement-divider { display: inline-block; } }
.theme-announcement-text { font-family: var(--font-display); font-style: italic; font-size: 13px; line-height: 1.4; letter-spacing: 0.01em; margin: 0; }
.theme-announcement-close {
	position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
	background: rgba(0,0,0,0.4); color: color-mix(in srgb, var(--color-accent) 70%, transparent);
}
.theme-announcement-close:hover { color: var(--color-foreground); }

/* ==========================================================================
   Header
   ========================================================================== */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}

.site-header {
	position: sticky; top: 0; left: 0; right: 0; z-index: 50; transition: all 0.3s ease;
	background: linear-gradient(to bottom, var(--color-background), color-mix(in srgb, var(--color-background) 90%, transparent), transparent);
	border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: color-mix(in srgb, var(--color-background) 95%, transparent); backdrop-filter: blur(12px); border-bottom-color: color-mix(in srgb, var(--color-accent) 20%, transparent); }
.site-nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 56px; }
@media (min-width: 768px) { .site-nav { height: 64px; } }
.site-nav__left, .site-nav__right { display: flex; align-items: center; gap: 2rem; flex: 1; }
.site-nav__right { justify-content: flex-end; gap: 1rem; }
.theme-nav-list--left { display: none; }
.theme-nav-list--right { display: none; }
@media (min-width: 1024px) { .theme-nav-list--left, .theme-nav-list--right { display: flex; gap: 2rem; } }
.theme-nav-list li { list-style: none; }
.theme-nav-anchor { position: relative; display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); transition: color 0.3s ease; }
.theme-nav-anchor:hover { color: var(--color-foreground); }
.theme-nav-num { font-family: var(--font-display); font-style: italic; font-size: 10px; letter-spacing: normal; color: color-mix(in srgb, var(--color-accent) 55%, transparent); transition: color 0.3s ease; }
.theme-nav-anchor:hover .theme-nav-num { color: var(--color-accent); }
/* Burgundy stitched underline sweep (Lovable parity) */
.theme-nav-list .theme-nav-anchor::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; pointer-events: none;
	background: repeating-linear-gradient(to right, color-mix(in srgb, var(--color-primary) 90%, transparent) 0 5px, transparent 5px 9px);
	transform: scaleX(0); transform-origin: left center; transition: transform 0.5s ease-out;
}
.theme-nav-list .theme-nav-anchor:has(.theme-nav-num)::after { left: 1.65rem; }
.theme-nav-list .theme-nav-anchor:hover::after { transform: scaleX(1); }
.theme-nav-anchor.is-active { color: var(--color-foreground); }
.theme-nav-anchor.is-active .theme-nav-num { color: var(--color-accent); }
.theme-nav-anchor.is-active::after { transform: scaleX(1); }

.site-logo { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0.5rem; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; filter: drop-shadow(0 6px 20px rgba(0,0,0,0.85)); transition: transform 0.3s ease; }
.site-logo:hover .site-logo-img { transform: scale(1.03); }
.site-logo-text { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--color-foreground); line-height: var(--logo-height); }

.theme-mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent); color: color-mix(in srgb, var(--color-foreground) 80%, transparent); margin-left: -0.25rem; transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; }
.theme-mobile-menu-toggle.is-active { color: var(--color-accent); border-color: color-mix(in srgb, var(--color-accent) 70%, transparent); }
.theme-mobile-menu-toggle .theme-icon-menu-close { display: none; }
.theme-mobile-menu-toggle.is-active .theme-icon-menu-open { display: none; }
.theme-mobile-menu-toggle.is-active .theme-icon-menu-close { display: block; }
@media (min-width: 1024px) { .theme-mobile-menu-toggle { display: none; } }

.site-nav__icons { display: flex; align-items: center; gap: 0.5rem; }
/* Social icons hidden on small screens (Lovable: hidden sm:inline-flex) */
.site-nav__icons > a.theme-icon-btn { display: none; }
@media (min-width: 640px) { .site-nav__icons > a.theme-icon-btn { display: inline-flex; } }
.theme-cart-btn {
	position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0 0.9rem; height: 36px; border-radius: 9999px;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent); color: color-mix(in srgb, var(--color-foreground) 90%, transparent);
	font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; transition: all 0.3s ease;
}
.theme-cart-btn:hover { border-color: color-mix(in srgb, var(--color-accent) 70%, transparent); color: var(--color-accent); }
.theme-cart-count { font-family: var(--font-display); font-style: italic; font-size: 12px; min-width: 0.6em; text-align: center; }
.theme-cart-count:empty::before { content: '0'; }

.theme-mobile-menu {
	display: block;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	border-top: 1px solid transparent;
	padding: 0;
	transition: max-height 0.36s cubic-bezier(0.25, 0.4, 0.25, 1), opacity 0.36s cubic-bezier(0.25, 0.4, 0.25, 1), padding 0.36s ease, border-color 0.36s ease;
}
.theme-mobile-menu.is-open {
	max-height: 520px;
	opacity: 1;
	border-top-color: color-mix(in srgb, var(--color-accent) 20%, transparent);
	padding: 0.75rem 0 0.5rem;
}
body.mobile-menu-open { overflow: hidden; }
.theme-mobile-menu__label { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.5rem; font-size: 9px; letter-spacing: 0.45em; text-transform: uppercase; color: color-mix(in srgb, var(--color-accent) 85%, transparent); font-weight: 600; opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s; }
.theme-mobile-menu__label::after { content: ''; flex: 1; height: 1px; background: repeating-linear-gradient(to right, color-mix(in srgb, var(--color-primary) 70%, transparent) 0 5px, transparent 5px 9px); opacity: 0.7; }
.theme-mobile-menu.is-open .theme-mobile-menu__label { opacity: 1; transform: translateY(0); }
.theme-mobile-nav-list li {
	border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 10%, transparent);
	opacity: 0;
	transform: translateX(-16px);
	transition: opacity 0.35s ease, transform 0.35s ease, color 0.3s ease;
}
.theme-mobile-menu.is-open .theme-mobile-nav-list li { opacity: 1; transform: translateX(0); }
.theme-mobile-menu.is-open .theme-mobile-nav-list li:nth-child(1) { transition-delay: 0.06s; }
.theme-mobile-menu.is-open .theme-mobile-nav-list li:nth-child(2) { transition-delay: 0.12s; }
.theme-mobile-menu.is-open .theme-mobile-nav-list li:nth-child(3) { transition-delay: 0.18s; }
.theme-mobile-menu.is-open .theme-mobile-nav-list li:nth-child(4) { transition-delay: 0.24s; }
.theme-mobile-menu.is-open .theme-mobile-nav-list li:nth-child(5) { transition-delay: 0.30s; }
.theme-mobile-menu.is-open .theme-mobile-nav-list li:nth-child(6) { transition-delay: 0.36s; }
.theme-mobile-nav-list a { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0.25rem; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); transition: color 0.3s ease; }
.theme-mobile-nav-list a:hover { color: var(--color-foreground); }
.theme-mobile-nav-list .theme-mobile-nav-num { font-family: var(--font-display); font-style: italic; font-size: 0.875rem; width: 1.5rem; color: color-mix(in srgb, var(--color-accent) 55%, transparent); }
.theme-mobile-nav-list a:hover .theme-mobile-nav-num { color: var(--color-accent); }
/* Trailing stitch mark per item (Lovable parity) */
.theme-mobile-nav-list a::after {
	content: ''; margin-left: auto; align-self: center; height: 1px; width: 2.5rem;
	background: repeating-linear-gradient(to right, color-mix(in srgb, var(--color-primary) 90%, transparent) 0 4px, transparent 4px 8px);
	transform: scaleX(0.5); transform-origin: right center; opacity: 0.6; transition: transform 0.5s ease, opacity 0.5s ease;
}
.theme-mobile-nav-list a:hover::after { transform: scaleX(1); opacity: 1; }
.theme-mobile-menu__social { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem 0.25rem 0.75rem; opacity: 0; transform: translateX(-16px); transition: opacity 0.35s ease 0.4s, transform 0.35s ease 0.4s; }
.theme-mobile-menu.is-open .theme-mobile-menu__social { opacity: 1; transform: translateX(0); }
@media (min-width: 1024px) { .theme-mobile-menu, .theme-mobile-menu-toggle { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
	.theme-mobile-menu, .theme-mobile-menu__label, .theme-mobile-nav-list li { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.theme-hero-section { background: var(--color-background); }
.theme-hero { position: relative; width: 100%; height: 100vh; overflow: hidden; }
body.theme-no-hero .theme-hero { display: none; }
.theme-hero__media { position: absolute; inset: 0; will-change: transform; }
.theme-hero__video { height: 115%; }
.theme-hero__overlay { position: absolute; inset: 0; pointer-events: none; }
.theme-hero__overlay--radial { background: radial-gradient(ellipse at center, hsl(0 0% 0% / 0.5) 0%, hsl(0 0% 0% / 0.82) 70%, hsl(0 0% 0% / 0.97) 100%); }
.theme-hero__overlay--gradient { background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3), rgba(0,0,0,0.9)); }
.theme-hero__overlay--bottom { top: auto; height: 66%; background: linear-gradient(to top, var(--color-background), color-mix(in srgb, var(--color-background) 70%, transparent), transparent); }
.theme-hero__overlay--glow { top: auto; height: 50%; background: radial-gradient(ellipse at bottom, color-mix(in srgb, var(--color-primary) 55%, transparent), transparent 70%); }
.theme-hero__fog { opacity: 1; }
.theme-hero__grain { opacity: 1; }
.theme-hero__vignette { pointer-events: none; }
.theme-hero__content { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.theme-hero__eyebrow { margin-bottom: 1.75rem; }
.theme-hero__kicker { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; margin-bottom: 1.5rem; }
.theme-hero__kicker-line { height: 1px; width: 40px; background: color-mix(in srgb, var(--color-accent) 70%, transparent); }
.theme-hero__title { font-style: italic; font-weight: 400; color: var(--color-foreground); line-height: 0.92; letter-spacing: -0.01em; filter: drop-shadow(0 8px 36px rgba(0,0,0,0.95)); padding: 0 0.5rem; font-size: 3.25rem; }
@media (min-width: 768px) { .theme-hero__title { font-size: 6rem; } }
@media (min-width: 1024px) { .theme-hero__title { font-size: 8.5rem; } }
.theme-hero__divider { width: 11rem; margin-top: 2.25rem; }
.theme-hero__subtitle { margin-top: 1.75rem; max-width: 42rem; color: color-mix(in srgb, var(--color-foreground) 95%, transparent); font-size: 1.125rem; line-height: 1.6; text-shadow: 0 2px 12px rgba(0,0,0,0.95); }
@media (min-width: 768px) { .theme-hero__subtitle { font-size: 1.25rem; } }
.theme-hero__actions { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .theme-hero__actions { flex-direction: row; } }

/* ==========================================================================
   Section heading scales (per-section, Section 2.2 — no single global clamp)
   ========================================================================== */
.theme-section-head { display: grid; gap: 2rem; align-items: end; margin-bottom: 3.5rem; }
@media (min-width: 1024px) { .theme-section-head { grid-template-columns: 7fr 5fr; } }
@media (min-width: 1024px) {
	.theme-section-head--asymmetric { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
	.theme-section-head--asymmetric .theme-section-head__lead { grid-column: span 7; min-width: 0; }
	.theme-section-head--asymmetric .theme-section-head__sub { grid-column: 9 / span 4; min-width: 0; }
	.theme-section-head--portfolio .theme-section-head__lead { grid-column: span 5; }
	.theme-section-head--portfolio .theme-section-head__sub { grid-column: 7 / span 5; }
	.theme-section-head--portfolio { margin-bottom: 5rem; }
	.theme-section-head--featured { margin-bottom: 5rem; gap: 3.5rem; }
	.theme-section-head--shop { margin-bottom: 3rem; }
}
.theme-section-head--featured { margin-bottom: 3.5rem; gap: 2rem; }
.theme-section-head--portfolio { margin-bottom: 3.5rem; gap: 2rem; }
.theme-section-head--shop { margin-bottom: 3rem; gap: 2rem; }
.theme-section-head--workshop { margin-bottom: 1.5rem; gap: 1.25rem; }
.theme-section-head__lead .archive-tab { margin-bottom: 1.25rem; }
@media (min-width: 768px) {
	.theme-section-head--workshop { margin-bottom: 2rem; }
}
.theme-section-head__sub { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); font-size: 1rem; line-height: 1.625; }
@media (min-width: 768px) { .theme-section-head__sub { font-size: 1.125rem; } }
.section-heading { font-style: italic; font-weight: 400; line-height: 1.02; margin-top: 1.25rem; }

.theme-featured-section__title { font-size: 2.25rem; }
@media (min-width: 768px) { .theme-featured-section__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-featured-section__title { font-size: 3.75rem; } }

.theme-about-note__title { font-size: 1.875rem; }
@media (min-width: 768px) { .theme-about-note__title { font-size: 2.3rem; } }
@media (min-width: 1024px) { .theme-about-note__title { font-size: 2.6rem; } }

.theme-portfolio-section__title, .theme-workshop-section__title, .theme-shop-section__title { font-size: 2.25rem; }
@media (min-width: 768px) { .theme-portfolio-section__title, .theme-workshop-section__title, .theme-shop-section__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-portfolio-section__title, .theme-workshop-section__title, .theme-shop-section__title { font-size: 3.75rem; } }

/* ==========================================================================
   Adoption notice strip
   ========================================================================== */
.theme-notice-section { position: relative; background: var(--color-background); border-top: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); overflow: hidden; }
.theme-notice-section__inner { padding: 3rem 0; }
@media (min-width: 768px) { .theme-notice-section__inner { padding: 4rem 0; } }
.theme-notice-card { position: relative; max-width: 64rem; margin: 0 auto; background: linear-gradient(180deg, hsl(35 30% 82%), hsl(35 28% 72%)); color: hsl(0 0% 10%); padding: 2rem 1.75rem; box-shadow: 0 18px 50px -18px hsl(0 0% 0% / 0.85); clip-path: polygon(0.5% 4%, 99% 0%, 100% 96%, 1% 100%); }
@media (min-width: 768px) { .theme-notice-card { padding: 2.5rem 3rem; } }
.theme-notice-card__thread { position: absolute; left: 1.5rem; right: 1.5rem; top: 0.75rem; height: 1px; background: repeating-linear-gradient(to right, hsl(355 60% 38%) 0 8px, transparent 8px 14px); }
.theme-notice-card__eyelet { position: absolute; top: -0.25rem; width: 6px; height: 6px; border-radius: 9999px; background: hsl(355 60% 38%); }
.theme-notice-card__eyelet--left { left: 1.5rem; }
.theme-notice-card__eyelet--right { right: 1.5rem; }
.theme-notice-card__grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .theme-notice-card__grid { grid-template-columns: 5fr 7fr; gap: 2.5rem; } }
.theme-notice-card__label { font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; font-weight: 700; color: hsl(355 55% 28%); margin-bottom: 0.75rem; }
.theme-notice-card__text { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; line-height: 1.2; }
@media (min-width: 768px) { .theme-notice-card__text { font-size: 1.7rem; } }
.theme-notice-card__features { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .theme-notice-card__features { grid-template-columns: repeat(3, 1fr); } }
.theme-notice-feature { position: relative; padding-left: 1rem; border-left: 1px solid hsl(355 55% 28% / 0.5); }
.theme-notice-feature__num { display: block; font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600; color: hsl(355 55% 28%); margin-bottom: 0.25rem; }
.theme-notice-feature__title { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.125rem; line-height: 1.2; margin-bottom: 0.125rem; }
.theme-notice-feature__sub { display: block; font-size: 12px; color: hsl(0 0% 18% / 0.85); }

/* ==========================================================================
   Featured — case files
   ========================================================================== */
.theme-featured-section { position: relative; background: linear-gradient(to bottom, var(--color-background), color-mix(in srgb, var(--color-secondary) 30%, transparent), var(--color-background)); overflow: hidden; }
.theme-featured-section__fog { position: absolute; inset: 0; opacity: 0.4; pointer-events: none; }
.theme-featured-section__inner { position: relative; z-index: 1; padding-block: 5rem; }
@media (min-width: 768px) { .theme-featured-section__inner { padding-block: 7rem; } }
.theme-featured-grid.theme-product-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .theme-featured-grid.theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-featured-grid.theme-product-grid { gap: 2.5rem; } }
.theme-case-file { position: relative; }
.theme-case-file__tape { position: absolute; top: -1rem; left: 1.5rem; z-index: 3; padding: 0.25rem 1.25rem; background: color-mix(in srgb, var(--color-accent) 80%, transparent); color: var(--color-accent-foreground); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600; transform: rotate(-3deg); box-shadow: 0 6px 14px -4px hsl(0 0% 0% / 0.7); }
.theme-case-file__link { display: block; position: relative; background: var(--color-card); border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent); transition: border-color 0.5s ease, transform 0.5s ease; box-shadow: 0 26px 70px -32px hsl(0 0% 0% / 0.95); }
.theme-case-file__link:hover { border-color: color-mix(in srgb, var(--color-accent) 55%, transparent); transform: translateY(-4px); }
.theme-case-file__image-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.theme-case-file__image-wrap img { padding: 0.5rem; filter: grayscale(0.15) brightness(0.95); transition: transform 1.2s ease-out, filter 0.7s ease; }
.theme-case-file__link:hover .theme-case-file__image-wrap img { transform: scale(1.02); filter: grayscale(0) brightness(1); }
.theme-case-file__gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.1), rgba(0,0,0,0.35)); pointer-events: none; }
.theme-case-file__stamp { position: absolute; top: 1rem; right: 1rem; opacity: 0; transition: opacity 0.5s ease; }
.theme-case-file__link:hover .theme-case-file__stamp { opacity: 1; }
.theme-case-file__badge { position: absolute; top: 1rem; right: 1rem; padding: 0.25rem 0.75rem; background: var(--color-foreground); color: var(--color-background); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; }
.theme-case-file__body { position: relative; padding: 1.5rem 1.5rem 1.75rem; border-top: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); }
.theme-case-file__divider {
	display: block;
	width: 2.5rem;
	margin-bottom: 1rem;
	transition: width 0.7s ease-out;
}
.theme-case-file__link:hover .theme-case-file__divider,
.theme-case-file:hover .theme-case-file__divider { width: 7rem; }
.theme-case-file__name { font-style: italic; font-size: 1.65rem; line-height: 1.2; color: var(--color-foreground); margin-bottom: 0.75rem; }
.theme-case-file__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.theme-case-file__price { font-size: 1rem; font-weight: 500; color: color-mix(in srgb, var(--color-accent) 95%, transparent); }
.theme-case-file__price-muted { color: var(--color-muted-foreground); font-style: italic; }
.theme-case-file__view { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: var(--color-primary); transition: color 0.3s ease; }
.theme-case-file__view svg { transition: transform 0.3s ease; }
.theme-case-file__link:hover .theme-case-file__view { color: var(--color-accent); }
.theme-case-file__link:hover .theme-case-file__view svg { transform: translateX(4px); }

/* ==========================================================================
   About section
   ========================================================================== */
.theme-about-section { position: relative; background: var(--color-background); overflow: hidden; }
.theme-about-section__wash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 20% 30%, hsl(355 50% 22% / 0.16), transparent 60%); }
.theme-about-section__inner { position: relative; z-index: 1; padding-block: 5rem; }
@media (min-width: 768px) { .theme-about-section__inner { padding-block: 8rem; } }
.theme-about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) {
	.theme-about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; }
	.theme-about-photo-wrap { grid-column: span 5; min-width: 0; }
	.theme-about-note { grid-column: span 7; min-width: 0; }
}
.theme-about-photo-wrap { position: relative; }
.theme-about-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--color-card); border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent); box-shadow: 0 30px 80px -30px hsl(0 0% 0% / 0.95); }
.theme-about-photo img { padding: 1rem; filter: grayscale(0.15) brightness(0.95); }
.theme-about-photo__gradient { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.1), rgba(0,0,0,0.4)); }
.theme-about-photo__tape { display: none; position: absolute; background: color-mix(in srgb, var(--color-accent) 60%, transparent); }
@media (min-width: 768px) { .theme-about-photo__tape { display: block; } }
.theme-about-photo__tape--top { top: -1rem; left: 3rem; width: 6rem; height: 1.5rem; transform: rotate(-3deg); opacity: 0.9; }
.theme-about-photo__tape--bottom { bottom: -0.75rem; right: 2.5rem; width: 5rem; height: 1.25rem; transform: rotate(2deg); opacity: 0.85; background: color-mix(in srgb, var(--color-accent) 55%, transparent); }
.theme-about-photo__labels { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; }
.theme-about-note { position: relative; background: color-mix(in srgb, var(--color-card) 80%, transparent); backdrop-filter: blur(4px); border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent); padding: 2rem; box-shadow: 0 26px 70px -32px hsl(0 0% 0% / 0.9); }
.theme-about-note__eyelet { position: absolute; top: -0.5rem; left: 2.5rem; width: 12px; height: 12px; border-radius: 9999px; background: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent); }
.theme-about-note__string { position: absolute; top: 0; left: 2.875rem; height: 2rem; width: 1px; background: color-mix(in srgb, var(--color-primary) 80%, transparent); }
@media (min-width: 768px) { .theme-about-note { padding: 3rem; } }
@media (min-width: 1024px) { .theme-about-note { padding: 3.5rem; } }
.theme-about-note__label { position: absolute; top: -0.75rem; right: 2rem; font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-accent) 85%, transparent); background: var(--color-background); padding: 0.25rem 0.75rem; border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent); }
.theme-about-note__eyebrow { display: block; font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: color-mix(in srgb, var(--color-accent) 85%, transparent); font-weight: 600; margin-bottom: 1.25rem; }
.theme-about-note__title { font-style: italic; font-weight: 400; line-height: 1.15; color: var(--color-foreground); margin-top: 0; margin-bottom: 1.75rem; }
.theme-about-note__title em { color: var(--color-primary); font-style: italic; }
.theme-about-note__divider { width: 5rem; margin-bottom: 1.75rem; }
.theme-about-note__body { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.625; margin-bottom: 1.25rem; font-size: 1rem; }
@media (min-width: 768px) { .theme-about-note__body { font-size: 1.125rem; } }
.theme-about-note__body--italic { font-style: italic; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); margin-bottom: 2.25rem; }
.theme-about-note__actions { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .theme-about-note__actions { flex-direction: row; } }
.theme-about-note__signoff { margin-top: 2.5rem; font-family: var(--font-display); font-style: italic; color: color-mix(in srgb, var(--color-accent) 85%, transparent); font-size: 1.25rem; }

/* ==========================================================================
   Portfolio wall
   ========================================================================== */
.theme-portfolio-section { position: relative; background: color-mix(in srgb, var(--color-secondary) 30%, transparent); overflow: hidden; }
.theme-portfolio-section__wash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at top, hsl(355 50% 22% / 0.25), transparent 60%); }
.theme-portfolio-section__grain { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.theme-portfolio-section__inner { position: relative; z-index: 1; padding-block: 5rem; }
@media (min-width: 768px) { .theme-portfolio-section__inner { padding-block: 7rem; } }
.theme-portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 0.75rem; }
@media (min-width: 768px) { .theme-portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 1.25rem; } }
.theme-portfolio-tile {
	position: relative; display: block; overflow: hidden; background: var(--color-card);
	border: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent);
	transition: border-color 0.5s ease, transform 0.5s ease;
	transform: rotate(var(--tile-rotate, 0deg));
	box-shadow: inset 0 0 0 1px hsl(0 0% 100% / 0.04), 0 12px 30px -12px hsl(0 0% 0% / 0.85);
}
.theme-portfolio-tile:hover { border-color: color-mix(in srgb, var(--color-accent) 40%, transparent); transform: rotate(0deg) scale(1.015); }
.theme-portfolio-tile.is-hidden { display: none; }
.theme-portfolio-tile img { padding: 0.5rem; filter: grayscale(0.3) brightness(0.9); transition: transform 0.7s ease, filter 0.7s ease; }
.theme-portfolio-tile:hover img { transform: scale(1.03); filter: grayscale(0) brightness(1); }
.theme-portfolio-tile__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 50%, hsl(0 0% 0% / 0.65) 100%); }
.theme-portfolio-tile__frame { position: absolute; inset: 0.75rem; pointer-events: none; border: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); transition: border-color 0.5s ease; }
.theme-portfolio-tile:hover .theme-portfolio-tile__frame { border-color: color-mix(in srgb, var(--color-accent) 40%, transparent); }
.theme-portfolio-tile__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.3), transparent); opacity: 0; transition: opacity 0.5s ease; display: flex; align-items: flex-end; padding: 1rem; }
.theme-portfolio-tile:hover .theme-portfolio-tile__overlay { opacity: 1; }
.theme-portfolio-tile__no { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: color-mix(in srgb, var(--color-accent) 90%, transparent); margin-bottom: 0.25rem; }
.theme-portfolio-tile__name { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: var(--color-foreground); margin-bottom: 0.5rem; line-height: 1.2; }
.theme-portfolio-tile__cta { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: var(--color-accent); }
.theme-portfolio-actions { text-align: center; margin-top: 3.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: center; }
@media (min-width: 640px) { .theme-portfolio-actions { flex-direction: row; } }

/* ==========================================================================
   Workshop notes
   ========================================================================== */
.theme-workshop-section { position: relative; background: var(--color-background); overflow: hidden; }
.theme-workshop-section__wash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 70% 20%, hsl(355 50% 22% / 0.18), transparent 60%); }
.theme-workshop-section__inner { position: relative; z-index: 1; padding-block: 2rem; }
@media (min-width: 768px) { .theme-workshop-section__inner { padding-block: 3rem; } }
.theme-workshop-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .theme-workshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-workshop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-workshop-note { position: relative; background: linear-gradient(180deg, hsl(35 28% 84%), hsl(35 24% 76%)); color: hsl(0 0% 12%); box-shadow: 0 24px 60px -28px hsl(0 0% 0% / 0.85), inset 0 0 0 1px hsl(0 0% 0% / 0.06); clip-path: polygon(1% 3%, 99% 0%, 100% 97%, 1% 100%); transition: transform 0.5s ease; }
.theme-workshop-note:hover { transform: translateY(-4px); }
.theme-workshop-note__eyelet { position: absolute; top: -0.5rem; left: 1.75rem; width: 12px; height: 12px; border-radius: 9999px; background: var(--color-background); border: 1px solid hsl(355 55% 28% / 0.5); }
.theme-workshop-note__string { position: absolute; top: 0; left: 2.125rem; height: 2rem; width: 1px; background: hsl(355 55% 28%); }
.theme-workshop-note__inner { position: relative; padding: 1.25rem 1.5rem; }
@media (min-width: 768px) { .theme-workshop-note__inner { padding: 1.5rem; } }
.theme-workshop-note__tag { display: block; font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase; font-weight: 700; color: hsl(355 55% 28%); margin-bottom: 0.5rem; }
.theme-workshop-note__title { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.5rem; color: hsl(0 0% 10%); }
@media (min-width: 768px) { .theme-workshop-note__title { font-size: 1.55rem; } }
.theme-workshop-note__body { font-size: 13px; line-height: 1.625; color: hsl(0 0% 22%); }
@media (min-width: 768px) { .theme-workshop-note__body { font-size: 14px; } }
.theme-workshop-note__stitch { margin-top: 0.75rem; height: 1px; width: 3rem; transition: width 0.7s ease-out; background-image: repeating-linear-gradient(to right, hsl(355 55% 32%) 0 8px, transparent 8px 14px); }
.theme-workshop-note:hover .theme-workshop-note__stitch { width: 6rem; }

/* ==========================================================================
   Shop section
   ========================================================================== */
.theme-shop-section { position: relative; background: linear-gradient(to bottom, var(--color-background), color-mix(in srgb, var(--color-secondary) 20%, transparent)); }
.theme-shop-section__inner { position: relative; z-index: 1; padding-block: 5rem; }
@media (min-width: 768px) { .theme-shop-section__inner { padding-block: 7rem; } }
.theme-shop-filters { width: 100%; }
.theme-shop-controls { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; width: 100%; }
@media (min-width: 640px) { .theme-shop-controls { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; } }
.theme-shop-search { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.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; color: var(--color-foreground); font-size: 15px; transition: border-color 0.3s ease; }
.theme-shop-search input:focus { outline: none; border-color: var(--color-foreground); }
.theme-shop-search input::placeholder { color: var(--color-muted-foreground); }
.theme-shop-price-toggle { flex-shrink: 0; display: inline-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); transition: color 0.3s ease; align-self: flex-start; }
@media (min-width: 640px) { .theme-shop-price-toggle { align-self: auto; } }
.theme-shop-price-toggle:hover, .theme-shop-price-toggle.is-open { color: var(--color-foreground); }
.theme-shop-price-toggle svg { transition: transform 0.3s ease; }
.theme-shop-price-toggle.is-open svg { transform: rotate(180deg); }

.theme-price-range-panel { max-width: 24rem; margin: 0 auto 2rem; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s ease, opacity 0.3s ease; }
.theme-price-range-panel.is-open { max-height: 200px; opacity: 1; margin-bottom: 2rem; }
.theme-price-range-wrapper { position: relative; height: 1.5rem; margin: 0.5rem 0; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; border-radius: 9999px; }
.range-track-bg { left: 0; right: 0; background: var(--color-secondary); }
.range-track-fill { background: var(--color-primary); left: 0; width: 0; }
.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: 9999px; border: 2px solid var(--color-primary); background: var(--color-background); cursor: pointer; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 9999px; border: 2px solid var(--color-primary); background: var(--color-background); cursor: pointer; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }
.theme-price-range-labels { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-muted-foreground); }

.theme-category-pills {
	display: flex; gap: 0.5rem; margin-bottom: 3rem; overflow-x: auto; scrollbar-width: none;
	-webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
	margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem;
}
.theme-category-pills::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
	.theme-category-pills { flex-wrap: wrap; justify-content: center; overflow: visible; scroll-snap-type: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; margin-bottom: 3rem; }
}
.theme-category-pill { scroll-snap-align: start; flex-shrink: 0; padding: 0.5rem 1.25rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; border-radius: 9999px; border: 1px solid var(--color-border); background: transparent; color: var(--color-foreground); transition: all 0.3s ease; }
.theme-category-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.theme-category-pill.is-active { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

.theme-shop-grid.theme-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
@media (min-width: 768px) { .theme-shop-grid.theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
@media (min-width: 1024px) { .theme-shop-grid.theme-product-grid { gap: 2.5rem; } }
.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-shop-grid__item.is-hidden, .theme-shop-grid__item[hidden] { display: none; }
.theme-shop-more { text-align: center; margin-top: 3.5rem; }
.theme-shop-empty, .theme-shop-misc-empty { text-align: center; padding: 5rem 1rem; color: var(--color-muted-foreground); }
.theme-shop-misc-empty { max-width: 42rem; margin: 0 auto; padding: 4rem 2rem; border: 1px solid color-mix(in srgb, var(--color-border) 100%, transparent); background: color-mix(in srgb, var(--color-secondary) 20%, transparent); }
.theme-shop-misc-empty__label { display: block; font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-primary) 90%, transparent); margin-bottom: 1rem; }
.theme-shop-misc-empty h3 { font-style: italic; font-size: 1.875rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .theme-shop-misc-empty h3 { font-size: 2.25rem; } }
.theme-shop-misc-empty__divider { width: 4rem; height: 1px; background: color-mix(in srgb, var(--color-primary) 60%, transparent); margin: 0 auto 1.25rem; }
.theme-shop-misc-empty p { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.6; }
.theme-shop-misc-empty a { color: var(--color-primary); }
.theme-shop-misc-empty a:hover { text-decoration: underline; }

/* ==========================================================================
   Product cards (shared everywhere — Section 31.13)
   ========================================================================== */
.theme-product-card-wrap { height: 100%; transition: transform 0.3s cubic-bezier(0.25, 0.4, 0.25, 1); }
.theme-product-card-wrap:hover { transform: translateY(-6px); }
.theme-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-wrapper {
	position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--color-card);
	border: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); margin-bottom: 1rem; transition: border-color 0.5s ease;
	box-shadow: inset 0 0 0 1px hsl(0 0% 100% / 0.04), 0 12px 30px -14px hsl(0 0% 0% / 0.8);
}
.theme-product-card:hover .theme-product-card__image-wrapper { border-color: color-mix(in srgb, var(--color-accent) 45%, transparent); }
.theme-product-card__inner-frame {
	position: absolute; inset: 0.5rem; z-index: 1; pointer-events: none;
	border: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); transition: border-color 0.5s ease;
}
.theme-product-card:hover .theme-product-card__inner-frame { border-color: color-mix(in srgb, var(--color-accent) 35%, transparent); }
.theme-product-card__vignette {
	position: absolute; inset-inline: 0; bottom: 0; height: 33.333%; z-index: 1; pointer-events: none;
	background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.theme-product-card__image-wrapper > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card__image-wrapper *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card__image-wrapper img { padding: 0.75rem; }
.theme-product-card__tape { position: absolute; top: 0; left: 0; right: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem; background: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent); }
.theme-product-card__file-no { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: color-mix(in srgb, var(--color-accent) 90%, transparent); font-weight: 600; }
.theme-product-card__cat { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.theme-badge { position: absolute; top: 2.25rem; right: 0.75rem; z-index: 1; padding: 0.25rem 0.75rem; border-radius: 2px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; }
.theme-badge--stock { background: var(--color-foreground); color: var(--color-background); }
.product-card-img.is-sold-out { opacity: 0.55; filter: grayscale(1); }
.theme-product-card__add {
	position: absolute; z-index: 3; left: 1rem; right: 1rem; bottom: 1rem; padding: 0.75rem 1rem; border-radius: 9999px;
	background: var(--color-primary); color: var(--color-primary-foreground); border: 1px solid var(--color-primary);
	font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; text-align: center;
	opacity: 0; transform: translateY(8px); transition: all 0.3s ease; pointer-events: auto;
}
.theme-product-card:hover .theme-product-card__add { opacity: 1; transform: translateY(0); }
.theme-product-card__info { padding: 0 0.25rem; flex: 1; display: flex; flex-direction: column; }
.theme-product-card__divider { width: 2.5rem; margin-bottom: 0.75rem; opacity: 0.7; }
.theme-product-card__name { font-size: 1.125rem; line-height: 1.3; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .theme-product-card__name { font-size: 1.25rem; } }
.theme-product-card__name a { color: var(--color-foreground); transition: color 0.3s ease; }
.theme-product-card:hover .theme-product-card__name a { color: var(--color-accent); }
.theme-product-card__price { font-size: 1rem; color: var(--color-foreground); margin-top: auto; }
@media (min-width: 768px) { .theme-product-card__price { font-size: 1.125rem; } }
.theme-product-card__price-muted { color: var(--color-muted-foreground); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; font-size: 12px; }
[data-price] { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
[data-product-name] { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

/* ==========================================================================
   CTA / Contact band
   ========================================================================== */
.theme-cta-section { position: relative; background: var(--color-background); overflow: hidden; }
.theme-cta-section__fog { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.theme-cta-section__inner { position: relative; z-index: 1; padding-block: 6rem; }
@media (min-width: 768px) { .theme-cta-section__inner { padding-block: 8rem; } }
.theme-cta-grid { display: grid; gap: 2.5rem; align-items: center; max-width: 72rem; margin: 0 auto; }
@media (min-width: 1024px) {
	.theme-cta-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.theme-cta-photo { grid-column: span 5; min-width: 0; }
	.theme-cta-card { grid-column: span 7; min-width: 0; }
}
.theme-cta-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent); box-shadow: 0 30px 80px -32px hsl(0 0% 0% / 0.95); }
.theme-cta-photo img { padding: 1rem; filter: grayscale(0.15) brightness(0.95); }
.theme-cta-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2), rgba(0,0,0,0.4)); pointer-events: none; }
.theme-cta-photo__fog { position: absolute; inset: 0; opacity: 0.6; pointer-events: none; }
.theme-cta-card {
	position: relative;
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	padding: 2.25rem;
	border: 1px solid var(--color-primary);
	box-shadow: 0 30px 80px -28px hsl(355 70% 18% / 0.95);
	clip-path: polygon(0% 2%, 99% 0%, 100% 98%, 1% 100%);
}
@media (min-width: 768px) { .theme-cta-card { padding: 3.5rem; } }
@media (min-width: 1024px) { .theme-cta-card { padding: 4rem; } }
.theme-cta-card__label {
	position: absolute; top: -0.75rem; left: 2.5rem; z-index: 2;
	padding: 0.25rem 0.75rem;
	background: var(--color-background); color: var(--color-foreground);
	font-family: var(--font-body); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600;
	border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
}
.theme-cta-card__stamp {
	position: absolute; top: 1.5rem; right: 1.75rem; z-index: 2;
	border-color: color-mix(in srgb, var(--color-primary-foreground) 70%, transparent) !important;
	color: var(--color-primary-foreground) !important;
	background: transparent !important;
	box-shadow: none !important;
}
.theme-cta-card__thread {
	position: absolute; left: 2rem; right: 2rem; top: 1rem; z-index: 1; height: 1px;
	background: repeating-linear-gradient(to right, color-mix(in srgb, var(--color-primary-foreground) 70%, transparent) 0 8px, transparent 8px 14px);
}
.theme-cta-card__inner { position: relative; z-index: 1; }
.theme-cta-card__eyebrow {
	display: block; margin-top: 0.5rem; margin-bottom: 1.25rem;
	font-family: var(--font-body); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; font-weight: 600;
	color: color-mix(in srgb, var(--color-primary-foreground) 85%, transparent);
}
.theme-cta-card__title {
	font-family: var(--font-display); font-style: italic; font-weight: 400;
	line-height: 1.05; color: var(--color-primary-foreground);
	margin: 0 0 1.5rem;
	font-size: 1.875rem;
}
@media (min-width: 768px) { .theme-cta-card__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-cta-card__title { font-size: 3.4rem; } }
.theme-cta-card__divider {
	height: 1px; width: 5rem; margin-bottom: 1.5rem;
	background: color-mix(in srgb, var(--color-primary-foreground) 40%, transparent);
}
.theme-cta-card__body {
	margin: 0 0 2.25rem; max-width: 36rem;
	font-family: var(--font-body); font-size: 1rem; line-height: 1.625;
	color: color-mix(in srgb, var(--color-primary-foreground) 90%, transparent);
}
@media (min-width: 768px) { .theme-cta-card__body { font-size: 1.125rem; } }
.theme-cta-card__actions { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .theme-cta-card__actions { flex-direction: row; flex-wrap: wrap; } }
.theme-cta-card .theme-btn-inverse,
.theme-cta-card .theme-btn-outline-inverse {
	padding: 0.875rem 1.75rem;
	font-size: 11px;
	letter-spacing: 0.28em;
	gap: 0.5rem;
	min-height: 0;
}
.theme-cta-card .theme-btn-outline-inverse {
	border-color: color-mix(in srgb, var(--color-primary-foreground) 70%, transparent);
}
.theme-cta-card .theme-btn-outline-inverse:hover {
	background: color-mix(in srgb, var(--color-primary-foreground) 10%, transparent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; border-top: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); background: color-mix(in srgb, var(--color-secondary) 50%, transparent); overflow: hidden; }
.theme-footer__fog { position: absolute; inset: 0; opacity: 0.3; pointer-events: none; }
.theme-footer__top-line { position: absolute; inset-inline: 0; top: 0; height: 1px; pointer-events: none; background: linear-gradient(to right, transparent, color-mix(in srgb, var(--color-accent) 40%, transparent), transparent); }
.theme-footer-inner { position: relative; padding-top: 4rem; padding-bottom: 1.5rem; }
@media (min-width: 1024px) { .theme-footer-inner { padding-top: 5rem; } }
.theme-footer-brand-row { display: grid; gap: 2.5rem; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--color-border); }
@media (min-width: 768px) { .theme-footer-brand-row { grid-template-columns: 5fr 7fr; gap: 2rem; } }
.theme-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.site-logo-img--footer { height: 5rem !important; }
@media (min-width: 768px) { .site-logo-img--footer { height: 6rem !important; } }
.theme-footer-tagline { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.6; max-width: 26rem; font-size: 15px; }
.theme-footer-social { display: flex; align-items: center; gap: 0.75rem; }
.theme-footer-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; }
@media (min-width: 640px) { .theme-footer-columns { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2.5rem; } }
.theme-footer-col:last-child { grid-column: span 2; }
@media (min-width: 640px) { .theme-footer-col:last-child { grid-column: span 1; } }
.theme-footer-col h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-accent); margin-bottom: 1.25rem; font-weight: 700; }
.theme-footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-footer-col a, .theme-footer-col button { font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); transition: color 0.3s ease; text-align: left; }
.theme-footer-col a:hover, .theme-footer-col button:hover { color: var(--color-accent); }
.theme-footer-email { word-break: break-all; }
.theme-footer-address { display: inline-flex; align-items: center; gap: 0.375rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.theme-footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; text-align: center; }
@media (min-width: 640px) { .theme-footer-bottom { flex-direction: row; text-align: left; } }
.theme-footer-quote { font-family: var(--font-display); font-size: 14px; color: color-mix(in srgb, var(--color-accent) 90%, transparent); }
.theme-footer-copyright { font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }
.theme-footer-copyright a { color: color-mix(in srgb, var(--color-foreground) 85%, transparent); text-underline-offset: 2px; }
.theme-footer-copyright a:hover { color: var(--color-accent); text-decoration: underline; }

/* ==========================================================================
   404
   ========================================================================== */
.theme-404-main { padding-top: 6rem; min-height: 100vh; }
.theme-404-inner { padding: 6rem 0; text-align: center; }
.theme-404-inner h1 { font-style: italic; font-size: 2.25rem; margin: 1.5rem 0 1rem; }
@media (min-width: 768px) { .theme-404-inner h1 { font-size: 2.75rem; } }
.theme-404-inner p { color: var(--color-muted-foreground); margin-bottom: 2rem; }
.theme-404-inner .theme-btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; border-radius: 9999px; border: 1px solid var(--color-primary); color: var(--color-primary); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.theme-404-inner .theme-btn-outline:hover { background: var(--color-primary); color: var(--color-primary-foreground); }

/* ==========================================================================
   Generic page shell
   ========================================================================== */
.theme-page-main, .theme-generic-main { padding-top: 2.5rem; padding-bottom: 4rem; min-height: 60vh; }
body:not(.theme-no-hero) .theme-page-main { padding-top: 0; }
body.theme-no-hero .site-main:not(.theme-front-main) { padding-top: var(--header-height); }
.page-title { font-style: italic; font-size: 2rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .page-title { font-size: 2.5rem; } }

/* ==========================================================================
   Single product page
   ========================================================================== */
.theme-single-product-main { padding: 1.5rem 0 6rem; }
.theme-breadcrumb { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 1rem 0 1.5rem; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb__sep { opacity: 0.4; }
.theme-breadcrumb__current { color: var(--color-accent); }

.theme-product-layout { display: grid; gap: 2.5rem; padding: 1rem 0 6rem; min-width: 0; }
@media (min-width: 1024px) {
	.theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; }
	.theme-product-info { position: sticky; top: 7rem; align-self: start; padding-left: 0.5rem; }
}
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-main-image { position: relative; aspect-ratio: 1/1; background: var(--color-card); border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent); overflow: hidden; box-shadow: 0 24px 60px -28px hsl(0 0% 0% / 0.95); }
.theme-product-main-image img { padding: 1.5rem; transition: opacity 0.2s ease; }
.theme-product-main-image__label { position: absolute; top: 1rem; left: 1rem; font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-accent) 85%, transparent); }
.theme-product-main-image__stamp { position: absolute; top: 1rem; right: 1rem; }
.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; max-width: 100%; }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; background: var(--color-card); border: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); transition: border-color 0.3s ease; }
.theme-product-thumb.is-active { border-color: var(--color-accent); }
.theme-product-thumb img { padding: 0.4rem; opacity: 0.65; }
.theme-product-thumb.is-active img { opacity: 1; }
.theme-product-info__card {
	position: relative;
	background: color-mix(in srgb, var(--color-card) 70%, transparent);
	backdrop-filter: blur(4px);
	border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent);
	padding: 1.5rem;
	box-shadow: 0 26px 70px -32px hsl(0 0% 0% / 0.9);
}
@media (min-width: 768px) { .theme-product-info__card { padding: 2.25rem; } }
.theme-product-info__eyelet {
	position: absolute; top: -0.5rem; left: 1.75rem; z-index: 2;
	width: 12px; height: 12px; border-radius: 9999px;
	background: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
}
.theme-product-info__string {
	position: absolute; top: 0; left: 2.125rem; z-index: 1;
	height: 2rem; width: 1px; background: color-mix(in srgb, var(--color-primary) 80%, transparent);
}
.theme-product-info__record-label {
	position: absolute; top: -0.75rem; right: 1.5rem; z-index: 2;
	padding: 0.25rem 0.75rem;
	background: var(--color-background); color: color-mix(in srgb, var(--color-accent) 85%, transparent);
	font-family: var(--font-body); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600;
	border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
}
.theme-product-info__tab { margin-bottom: 1.25rem; }
.theme-product-info__title {
	font-family: var(--font-display); font-style: normal; font-weight: 400;
	font-size: 1.875rem; line-height: 1.1; color: var(--color-foreground);
	margin: 0.5rem 0 1rem;
}
@media (min-width: 768px) { .theme-product-info__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-info__title { font-size: 2.6rem; } }
.theme-product-info__divider { width: 4rem; margin-bottom: 1.5rem; }
.theme-product-info__price {
	font-family: var(--font-body); font-size: 1.5rem; font-weight: 500; color: var(--color-accent);
	margin: 0 0 1.75rem;
}
.theme-product-info__price .amount { font-weight: 500; }
.theme-product-info__price-regular {
	color: color-mix(in srgb, var(--color-muted-foreground) 90%, transparent);
	text-decoration: line-through; font-size: 1.125rem; margin-right: 0.35rem;
}
.theme-product-info__price-regular .amount { font-weight: 400; }
.theme-product-info__price-muted { color: var(--color-muted-foreground); font-size: 1.125rem; }
.theme-product-info__excerpt {
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	line-height: 1.625; margin: 0 0 1.75rem;
	font-size: 15px; overflow-wrap: break-word; word-break: break-word;
}
@media (min-width: 768px) { .theme-product-info__excerpt { font-size: 1rem; } }
.theme-product-info__stand-flag { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.75rem; padding: 0.375rem 0.75rem; border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--color-accent); }
.theme-product-info__field-label {
	font-family: var(--font-body); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
	font-weight: 600; color: color-mix(in srgb, var(--color-accent) 85%, transparent); margin: 0 0 0.75rem;
}
.theme-product-info__quantity { margin-bottom: 1.25rem; }
.theme-product-info__sold-out { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent); background: color-mix(in srgb, var(--color-background) 60%, transparent); text-align: center; }
.theme-product-info__sold-out-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.25rem; }
.theme-product-info__sold-out-body { font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); margin-bottom: 1rem; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); background: var(--color-background); }
.theme-qty-minus, .theme-qty-plus { padding: 0.75rem 1rem; transition: background 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input { width: 2.75rem; min-width: 2.75rem; text-align: center; background: transparent; border: none; padding: 0.75rem 0; color: var(--color-foreground); font-size: 0.875rem; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-add-to-cart-area { display: flex; flex-direction: column; gap: 0; margin-bottom: 0; }
.theme-add-to-cart-area .single_add_to_cart_button,
.theme-add-to-cart-area .add_to_cart_button { width: 100%; box-shadow: 0 14px 50px -10px hsl(355 70% 30% / 0.95); }

.theme-product-accordions { margin-top: 2.25rem; border-top: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); }
.theme-accordion { border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); }
.theme-accordion__toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-accent) 85%, transparent); }
.theme-accordion__toggle svg { transition: transform 0.3s ease; }
.theme-accordion.is-open .theme-accordion__toggle svg { transform: rotate(180deg); }
.theme-accordion__panel { display: none; padding-bottom: 1.5rem; }
.theme-accordion.is-open .theme-accordion__panel { display: block; }
.theme-accordion__panel p, .theme-accordion__panel li { font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.6; overflow-wrap: break-word; word-break: break-word; }
.theme-details-heading { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-accent) 85%, transparent); margin: 1rem 0 0.75rem; }
.theme-details-list ul { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-details-list li { position: relative; padding-left: 1.25rem; }
.theme-details-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 4px; height: 4px; border-radius: 9999px; background: var(--color-primary); }

.theme-related-products { padding: 5rem 0; border-top: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); }
.theme-related-grid.theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 1024px) { .theme-related-grid.theme-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* Variation swatches (single product) */
.theme-variation-fields { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1.5rem; }
.theme-variation-field { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-variation-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-variation-select-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.theme-attr-select-hidden { display: none !important; }

.theme-attr-swatch {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.5rem 1rem; min-height: 2.5rem;
	border: 1px solid var(--color-border); border-radius: 9999px;
	background: transparent; color: var(--color-foreground);
	font-family: var(--font-body); font-size: 11px; font-weight: 600;
	letter-spacing: 0.18em; text-transform: uppercase;
	cursor: pointer; transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.theme-attr-swatch:hover {
	border-color: color-mix(in srgb, var(--color-accent) 70%, transparent);
	transform: translateY(-1px);
}
.theme-attr-swatch:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}
.theme-attr-swatch--text.is-selected {
	background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground);
	box-shadow: 0 8px 24px -8px hsl(0 0% 0% / 0.55);
}
.theme-attr-swatch--color.is-selected {
	border-color: var(--color-foreground);
	background: color-mix(in srgb, var(--color-foreground) 6%, transparent);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-foreground) 25%, transparent);
}
.theme-attr-swatch__dot {
	display: inline-block; width: 0.875rem; height: 0.875rem; flex-shrink: 0;
	border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent);
	background: var(--swatch-color, var(--color-muted-foreground));
	box-shadow: inset 0 1px 2px hsl(0 0% 0% / 0.25);
}
.theme-attr-swatch--color .theme-attr-swatch__label { letter-spacing: 0.14em; }
.theme-attr-swatch--color:not(.is-selected) .theme-attr-swatch__label {
	color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
}

/* ==========================================================================
   WooCommerce: add-to-cart button overrides (Section 11.4.1)
   ========================================================================== */
.single_add_to_cart_button.button, .add_to_cart_button.button, a.single_add_to_cart_button, a.add_to_cart_button {
	background-color: var(--color-primary) !important; color: var(--color-button-text) !important; border: none !important;
	border-radius: var(--btn-radius) !important; min-height: var(--btn-height) !important; padding: var(--btn-padding) !important;
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	font-family: var(--font-body) !important; font-size: var(--btn-font-size) !important; font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important; text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important; transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover, .add_to_cart_button.button:hover { opacity: 0.85 !important; background-color: var(--color-primary) !important; color: var(--color-button-text) !important; }
.single_add_to_cart_button.button:disabled, .single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled, .add_to_cart_button.button.disabled { cursor: not-allowed !important; opacity: 0.4 !important; pointer-events: none !important; }
.single_add_to_cart_button.button:disabled:hover, .single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover, .add_to_cart_button.button.disabled:hover { opacity: 0.4 !important; background-color: var(--color-primary) !important; }

/* Card compact button variant */
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-product-card__add {
	min-height: unset !important; padding: 0.75rem 1rem !important; border-radius: 9999px !important;
}
.single-product .single_add_to_cart_button.loading::after, .ajax_add_to_cart.loading::after { display: none !important; }

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart (Section 11.4.2) */
.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; }

/* WooCommerce notices — scoped visibility (Section 14.1) */
.single-product .woocommerce-message, .single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	font-family: var(--font-body); border-radius: var(--card-radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem;
	background: var(--color-secondary); color: var(--color-foreground); border-left: 3px solid var(--color-accent); list-style: none;
}
.woocommerce-error { border-left-color: var(--color-destructive); }

/* ==========================================================================
   Side cart drawer + overlay
   ========================================================================== */
#theme-cart-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.7); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity 0.25s 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);
	border-left: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent); z-index: 61; display: flex; flex-direction: column;
	box-shadow: -30px 0 80px -20px hsl(0 0% 0% / 0.95); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25,0.4,0.25,1);
	visibility: hidden;
}
body.cart-open #theme-cart-drawer { transform: translateX(0); visibility: visible; }
/* Legacy orphan from malformed cart-drawer markup — must never appear on page */
a.theme-btn-outline-primary[data-cart-close-nav],
#theme-cart-drawer > a.theme-btn-outline-primary { display: none !important; }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { position: relative; padding: 1.25rem 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); background: color-mix(in srgb, var(--color-secondary) 40%, transparent); display: flex; align-items: flex-start; justify-content: space-between; }
.theme-cart-drawer__label { display: block; font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: color-mix(in srgb, var(--color-accent) 85%, transparent); font-weight: 600; margin-bottom: 0.25rem; }
.theme-cart-drawer__title { font-family: var(--font-display); font-size: 1.5rem; }
.theme-cart-drawer__close { padding: 0.25rem; border-radius: 9999px; }
.theme-cart-drawer__close:hover { background: color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.theme-cart-drawer__empty-title { font-family: var(--font-display); font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.theme-cart-drawer__empty-body { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); font-size: 15px; margin-bottom: 2rem; max-width: 20rem; }
.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-item { position: relative; display: flex; gap: 1rem; background: color-mix(in srgb, var(--color-card) 60%, transparent); border: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); padding: 0.75rem; }
.theme-cart-item__image { position: relative; width: 5rem; height: 6rem; flex-shrink: 0; overflow: hidden; background: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-accent) 10%, transparent); }
.theme-cart-item__image img { padding: 0.25rem; }
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__file-no { display: block; font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; color: color-mix(in srgb, var(--color-accent) 80%, transparent); font-weight: 600; margin-bottom: 0.25rem; }
.theme-cart-item__name { font-family: var(--font-display); font-size: 1rem; color: var(--color-foreground); line-height: 1.2; }
.theme-cart-item__name:hover { color: var(--color-accent); }
.theme-cart-item__variation { font-size: 12px; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-item__price { font-size: 14px; color: color-mix(in srgb, var(--color-accent) 90%, transparent); margin-top: 0.25rem; font-weight: 500; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.625rem; }
.theme-cart-item__qty { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent); background: var(--color-background); }
.theme-cart-item__qty button { padding: 0.375rem 0.625rem; }
.theme-cart-item__qty button:hover { background: var(--color-secondary); }
.theme-cart-item__qty-value { font-size: 12px; width: 1.75rem; text-align: center; font-weight: 500; }
.theme-cart-item__remove { margin-left: auto; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-cart-item__remove:hover { color: var(--color-destructive); }
.theme-cart-drawer__footer { padding: 1.25rem 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent); background: color-mix(in srgb, var(--color-secondary) 40%, transparent); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 14px; }
.theme-cart-drawer__subtotal span:first-child { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; }
.theme-cart-drawer__subtotal span:last-child { font-family: var(--font-display); font-size: 1.125rem; }
.theme-cart-drawer__note { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--color-accent) 80%, transparent); font-weight: 600; }
.theme-cart-drawer__empty-btn { width: 100%; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted-foreground); padding: 0.25rem 0; }
.theme-cart-drawer__empty-btn:hover { color: var(--color-destructive); }

/* ==========================================================================
   Contact modal
   ========================================================================== */
#theme-contact-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.7); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
body.contact-open #theme-contact-overlay { opacity: 1; pointer-events: auto; }
#theme-contact-modal {
	position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(0.96); z-index: 71; width: 92%; max-width: 32rem;
	max-height: 90vh; overflow-y: auto; background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--card-radius);
	padding: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9);
}
body.contact-open #theme-contact-modal { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.theme-contact-modal__close { position: absolute; top: 1.25rem; right: 1.25rem; padding: 0.25rem; border-radius: 9999px; }
.theme-contact-modal__close:hover { background: color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-contact-modal__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-contact-modal__desc { color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-contact-modal__links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 14px; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-contact-modal__links a:hover { color: var(--color-foreground); }
.theme-contact-modal__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 480px) { .theme-contact-modal__row { grid-template-columns: 1fr 1fr; } }
.theme-contact-modal__form { display: flex; flex-direction: column; gap: 1rem; }
.theme-contact-modal__form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 0.375rem; }
.theme-contact-modal__form input, .theme-contact-modal__form textarea {
	width: 100%; padding: 0.625rem 0.75rem; background: var(--color-background); border: 1px solid var(--color-border);
	border-radius: var(--card-radius); color: var(--color-foreground); font-size: 15px;
}
.theme-contact-modal__form input:focus, .theme-contact-modal__form textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 40%, transparent); }
.theme-contact-modal__form textarea { resize: none; }
.theme-contact-modal__actions { display: flex; justify-content: flex-end; }
.theme-contact-modal__success { text-align: center; padding: 2rem 0; }
.theme-contact-modal__check { width: 3.5rem; height: 3.5rem; background: var(--color-primary); color: var(--color-primary-foreground); border-radius: 9999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.theme-contact-modal__success h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-contact-modal__success p { color: var(--color-muted-foreground); font-size: 14px; }

/* ==========================================================================
   WooCommerce Checkout Block (Sections 13.x)
   ========================================================================== */
body.woocommerce-checkout .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
body.woocommerce-checkout .entry-content { max-width: 100%; }
body.woocommerce-checkout .page-title { max-width: 1400px; margin: 0 auto 1.5rem; }

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large { display: block; }
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid; grid-template-columns: 1fr 1fr; gap: var(--checkout-gap); align-items: start;
	}
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar { min-width: 0; width: 100%; max-width: none; }
body.woocommerce-checkout .wc-block-components-notice-banner { grid-column: 1 / -1; }

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: color-mix(in srgb, var(--color-secondary) 60%, transparent); border-radius: var(--card-radius); padding: var(--section-padding);
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select {
	font-family: var(--font-body); color: var(--color-foreground); border: 1px solid var(--color-border);
	border-radius: var(--card-radius); background-color: var(--color-background);
	width: 100% !important; max-width: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 40%, transparent); }
body.woocommerce-checkout .wc-block-components-text-input input { padding: revert; }
body.woocommerce-checkout ::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: var(--btn-letter-spacing); text-transform: var(--btn-text-transform);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }
body.woocommerce-checkout h2, body.woocommerce-checkout h3 { font-family: var(--font-display); }
body.woocommerce-checkout .wc-block-checkout__form label,
body.woocommerce-checkout .wc-block-components-form label { color: #000; }

/* ==========================================================================
   Cart / Account pages width & alignment parity (Section 13.7)
   ========================================================================== */
body.woocommerce-cart .site-main, body.woocommerce-account .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
body.woocommerce-cart .entry-content, body.woocommerce-account .entry-content { max-width: 1400px; margin: 0 auto; }

/* ==========================================================================
   Thank you page (Section 22.8)
   ========================================================================== */
body.theme-thankyou-page { overflow-x: hidden; }
.theme-thankyou { max-width: 42rem; margin: 0 auto; padding: 3rem 0 4rem; text-align: center; }
.theme-thankyou__seal { margin: 0 auto 2rem; }
.theme-thankyou__title { font-style: italic; font-size: 2.25rem; margin: 1rem 0; }
@media (min-width: 768px) { .theme-thankyou__title { font-size: 3rem; } }
.theme-thankyou__divider { width: 6rem; margin: 0 auto 1.5rem; }
.theme-thankyou__body { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.6; margin-bottom: 2rem; }
.theme-thankyou__cta { display: inline-flex; margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; list-style: none; padding: 1.5rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin: 2rem 0; }
body.theme-thankyou-page .woocommerce-order-overview li { text-align: left; font-size: 14px; }
body.theme-thankyou-page .woocommerce-order h2, body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display); font-style: italic; font-size: 1.5rem; padding: 0 0 1rem 0; text-align: left;
}
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem; }
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(--color-border); text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; text-align: left; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; }
@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; }
}

/* ==========================================================================
   Single-product main image: contain (not cover) so the full doll photo
   is always visible, unlike cards which crop to fill (Section 15.1).
   ========================================================================== */
#product-main-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
