/* =========================================================================
   Queen Esther Candle — theme.css
   Table of contents:
   1. Custom properties / color tokens (fallback; live values are injected
      inline by PHP from the Customizer, Section 6/22.9)
   2. Reset & base typography (Section 2.2)
   3. Layout helpers (container, sections, animations)
   4. Buttons
   5. Header / navigation
   6. Hero
   7. About
   8. Philosophy quote section
   9. Services
   10. Shop / product grid / product card
   11. Marquee
   12. Owner
   13. Pre-contact CTA
   14. Contact
   15. Footer
   16. Cart drawer + overlay
   17. Promo banner
   18. WooCommerce: single product page
   19. WooCommerce: archive / shop
   20. WooCommerce: checkout blocks
   21. WooCommerce: thank-you page
   22. WooCommerce: cart/account width parity
   23. 404 page
   24. Scroll reveal engine + Customizer preview stability
   25. Responsive helpers
   ========================================================================= */

/* ---------------------------------------------------------------------
   1. Custom properties (fallbacks — live Customizer values override via
   an inline <style> emitted right after this file, Section 22.9)
--------------------------------------------------------------------- */
:root {
	--color-background: #f4f1eb;
	--color-foreground: #2d251f;
	--color-primary: #4a533c;
	--color-primary-foreground: #f9f6f1;
	--color-accent: #b28638;
	--color-accent-foreground: #faf8f4;
	--color-ivory: #f8f6f1;
	--color-linen: #f0ece5;
	--color-bone: #e8e2d9;
	--color-brass: #e5c776;
	--color-border: #ded8cf;
	--color-destructive: #b1402f;
	--color-footer: #211c18;
	--color-button-text: var(--color-primary-foreground);

	--font-display: 'Newsreader', Georgia, serif;
	--font-body: 'Geist', system-ui, -apple-system, sans-serif;

	--radius: 0.5rem;
	--card-radius: 0.75rem;

	--btn-radius: 9999px;
	--btn-height: 3rem;
	--btn-padding: 0 1.75rem;
	--btn-font-size: 0.875rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0;

	--header-height: 128px;
	--shadow-soft: 0 4px 20px -8px rgba(45, 37, 31, 0.14);
	--shadow-elevated: 0 20px 50px -18px rgba(45, 37, 31, 0.26);
}

/* ---------------------------------------------------------------------
   2. Reset & base typography (Section 2.2)
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; margin: 0; padding: 0; }

body {
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}

/* Tailwind-preflight-equivalent heading reset: never assume bold/default
   browser sizing — every element sets its own weight/size explicitly. */
h1, h2, h3, h4, h5, h6, .font-display {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.008em;
	line-height: 1.15;
	margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; padding: 0; color: inherit; }
img, video { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

button, a,
[role="button"],
.theme-cat-filter,
.theme-card-info-link,
.theme-nav-link,
.theme-nav-toggle,
input[type="submit"],
input[type="button"],
label[for],
select,
summary {
	cursor: pointer;
}

section[id] { scroll-margin-top: 80px; }

/* WordPress admin bar: keep the fixed header below it. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
body.admin-bar { scroll-padding-top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar { scroll-padding-top: 46px; }
}

/* Global img rule that must not break cover/full-bleed images
   (Section 15.1 completeness rule). */
img:not(.cover-img):not(.theme-card-main-img):not(.theme-hero-video):not(.theme-service-img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .theme-card-main-img, .theme-service-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ---------------------------------------------------------------------
   3. Layout helpers
--------------------------------------------------------------------- */
.container-wide {
	width: 100%;
	max-width: 80rem;
	margin-inline: auto;
	padding-inline: 1.25rem;
}
@media (min-width: 640px) { .container-wide { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding-inline: 2.5rem; } }

.theme-scrim-radial {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(at center, rgba(20, 15, 10, 0.5) 0%, rgba(20, 15, 10, 0.72) 70%, rgba(20, 15, 10, 0.9) 100%);
}

.parchment-grain { position: relative; }
.parchment-grain::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.38;
	background-image:
		radial-gradient(rgba(45, 37, 31, 0.05) 1px, transparent 1px),
		radial-gradient(color-mix(in srgb, var(--color-accent) 40%, transparent) 1px, transparent 1px);
	background-size: 6px 6px, 11px 11px;
	background-position: 0 0, 3px 4px;
}

.theme-eyebrow {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--color-primary);
	font-weight: 500;
	margin-bottom: 1.25rem;
}

.theme-pull-quote {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.25rem;
	line-height: 1.35;
	color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
	border-left: 2px solid var(--color-accent);
	padding-left: 1.25rem;
}
@media (min-width: 768px) { .theme-pull-quote { font-size: 1.5rem; } }

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-in-bottom { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes theme-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-33.3333%); } }

.theme-animate-fade-in { animation: theme-fade-in 0.7s ease-out both; }

/* ---------------------------------------------------------------------
   4. Buttons
--------------------------------------------------------------------- */
.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	border-radius: var(--btn-radius);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	height: 3rem;
	padding: 0 1.75rem;
	border: 1px solid transparent;
	transition: background-color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.theme-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.theme-btn-primary {
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border-color: var(--color-primary);
	text-transform: none;
}
.theme-btn-primary:hover { background-color: color-mix(in srgb, var(--color-primary) 90%, black); }

.theme-btn-outline {
	background-color: transparent;
	color: var(--color-foreground);
	border-color: color-mix(in srgb, var(--color-foreground) 25%, transparent);
	text-transform: none;
}
.theme-btn-outline:hover { border-color: var(--color-foreground); background-color: color-mix(in srgb, var(--color-foreground) 4%, transparent); }

/* Hero / video CTAs — match Lovable (accent + glass). */
.theme-btn-glass,
.btn-hero-outline.theme-btn-glass {
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	text-transform: none;
}
.theme-btn-glass:hover,
.btn-hero-outline.theme-btn-glass:hover { background-color: rgba(255, 255, 255, 0.2); }

.theme-btn-video,
.btn-hero-primary.theme-btn-video {
	background-color: var(--color-accent);
	color: var(--color-accent-foreground);
	border-color: var(--color-accent);
	text-transform: none;
}
.theme-btn-video:hover,
.btn-hero-primary.theme-btn-video:hover { background-color: var(--color-accent); opacity: 0.92; }

.theme-btn-ghost {
	background-color: transparent;
	border-color: transparent;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
	height: 2.25rem;
	text-transform: none;
}
.theme-btn-ghost:hover { background-color: color-mix(in srgb, var(--color-foreground) 5%, transparent); }

.theme-buy-now-button {
	height: 3rem;
	padding: 0 1.75rem;
	border-radius: var(--btn-radius);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent);
	background: transparent;
	color: var(--color-foreground);
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: none;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.theme-buy-now-button:hover {
	border-color: var(--color-foreground);
	background-color: color-mix(in srgb, var(--color-foreground) 4%, transparent);
}
.theme-buy-now-button:disabled,
.theme-buy-now-button.disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}


/* ---------------------------------------------------------------------
   5. Header / navigation
--------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
}

.theme-announcement-bar {
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.5rem 1rem;
	text-align: center;
}
.theme-announcement-bar .theme-announcement-text-1 { opacity: 0.9; }
.theme-announcement-bar .theme-announcement-text-2 { color: var(--color-accent); margin-left: 0.35em; }

.theme-header-inner {
	transition: background-color 0.5s ease, border-color 0.5s ease;
	background-color: transparent;
	border-bottom: 1px solid transparent;
}
.site-header.is-solid .theme-header-inner {
	background-color: color-mix(in srgb, var(--color-ivory) 90%, transparent);
	backdrop-filter: blur(20px);
	border-bottom-color: color-mix(in srgb, var(--color-foreground) 10%, transparent);
}

.theme-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
}
@media (min-width: 1024px) {
	.theme-header-row {
		height: 5rem;
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
	}
}

.theme-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	color: #fff;
	transition: background-color 0.2s ease, color 0.2s ease;
	order: 1;
}
.site-header.is-solid .theme-nav-toggle { color: var(--color-foreground); }
.theme-nav-toggle:hover { background-color: color-mix(in srgb, #fff 10%, transparent); }
.site-header.is-solid .theme-nav-toggle:hover { background-color: color-mix(in srgb, var(--color-foreground) 6%, transparent); }
.theme-nav-toggle-icon-close { display: none; }
.theme-nav-toggle.is-open .theme-nav-toggle-icon-menu { display: none; }
.theme-nav-toggle.is-open .theme-nav-toggle-icon-close { display: inline-flex; }
@media (min-width: 1024px) { .theme-nav-toggle { display: none; } }

.theme-site-logo-link {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	order: 2;
	position: relative;
}
@media (min-width: 1024px) { .theme-site-logo-link { order: 1; justify-self: start; } }

.site-logo-img {
	height: var(--logo-height, 60px);
	max-height: 3rem;
	width: auto;
	max-width: 150px;
	object-fit: contain;
	transition: opacity 0.3s ease;
}
@media (min-width: 1024px) { .site-logo-img { max-height: 4rem; max-width: 190px; } }

.site-logo-img.is-solid-logo { position: absolute; top: 0; left: 0; opacity: 0; }
.site-logo-img.is-light-logo { opacity: 1; }
.site-header.is-solid .site-logo-img.is-solid-logo { position: relative; opacity: 1; }
.site-header.is-solid .site-logo-img.is-light-logo { display: none; }

.site-logo-text {
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: #fff;
}
.site-header.is-solid .site-logo-text { color: var(--color-foreground); }

.theme-primary-nav { display: none; order: 3; }
.theme-nav-list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 1024px) {
	.theme-primary-nav {
		display: flex;
		align-items: center;
		order: 2;
		justify-self: center;
		align-self: center;
	}
	.theme-nav-list {
		flex-direction: row;
		align-items: center;
		gap: 1.75rem;
	}
}
.theme-nav-list > li {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.theme-nav-link {
	position: relative;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	transition: color 0.3s ease;
	padding: 0;
	display: inline-flex;
	align-items: center;
	line-height: 1.25;
	height: 2.5rem;
}
.site-header.is-solid .theme-nav-link { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
.theme-nav-link:hover { color: #fff; }
.site-header.is-solid .theme-nav-link:hover { color: var(--color-primary); }
.theme-nav-link.is-active { color: #fff; }
.site-header.is-solid .theme-nav-link.is-active { color: var(--color-primary); }

@media (min-width: 1024px) {
	.theme-nav-link::after {
		content: '';
		position: absolute;
		left: 50%;
		bottom: 0.35rem;
		width: 1rem;
		height: 2px;
		border-radius: 2px;
		background-color: #fff;
		transform: translateX(-50%) scaleX(0);
		opacity: 0;
		transition: all 0.3s ease;
	}
	.site-header.is-solid .theme-nav-link::after { background-color: var(--color-accent); }
	.theme-nav-link.is-active::after { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

.theme-header-actions { display: flex; align-items: center; gap: 0.5rem; order: 3; justify-self: end; align-self: center; }

.theme-cart-open-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	color: #fff;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.theme-cart-open-btn svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	stroke: currentColor;
	fill: none;
}
.site-header.is-solid .theme-cart-open-btn { color: var(--color-foreground); }
.theme-cart-open-btn:hover { background-color: color-mix(in srgb, #fff 10%, transparent); }
.site-header.is-solid .theme-cart-open-btn:hover { background-color: color-mix(in srgb, var(--color-foreground) 6%, transparent); }

.theme-cart-open-btn .theme-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	background-color: var(--color-accent);
	color: var(--color-accent-foreground);
	font-size: 0.75rem;
	font-weight: 500;
	min-width: 18px;
	height: 18px;
	padding: 0 0.25rem;
	border-radius: 9999px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.theme-cart-count:empty { display: none; }

.theme-mobile-nav {
	display: none;
	border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	background-color: color-mix(in srgb, var(--color-ivory) 95%, transparent);
	backdrop-filter: blur(20px);
}
.theme-mobile-nav.is-open { display: block; animation: theme-fade-in 0.3s ease-out both; }
.theme-mobile-nav-inner { padding-block: 1rem; display: flex; flex-direction: column; }
.theme-mobile-nav-list { display: flex; flex-direction: column; }
.theme-mobile-nav-list .theme-nav-link {
	text-align: left;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
}
.theme-mobile-nav-list li:last-child .theme-nav-link { border-bottom: none; }
.theme-mobile-nav-list .theme-nav-link:hover { color: var(--color-primary); }
@media (min-width: 1024px) { .theme-mobile-nav { display: none !important; } }


/* ---------------------------------------------------------------------
   6. Hero
--------------------------------------------------------------------- */
.theme-hero {
	position: relative;
	min-height: 100vh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: #1c1814;
}
body.theme-is-home .site-main,
body.theme-is-home main { padding-top: 0; }

.theme-hero-video-container { position: absolute; inset: 0; overflow: hidden; }
.theme-hero-video {
	position: absolute;
	left: 0;
	top: -25%;
	width: 100%;
	height: 150%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	will-change: transform;
}

.theme-hero-content {
	position: relative;
	z-index: 10;
	text-align: center;
	color: #fff;
	padding-block: 10rem 6rem;
}
@media (min-width: 1024px) { .theme-hero-content { padding-block: 13rem 8rem; } }

.theme-hero-badge-row { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.theme-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 1rem;
	border-radius: 9999px;
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #fff;
	font-weight: 500;
}

.theme-hero-title {
	font-weight: 400;
	color: #fff;
	line-height: 1.04;
	margin: 0 auto;
	max-width: 64rem;
	font-size: clamp(2rem, 5.4vw, 4.4rem);
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}
.theme-hero-title-line2 { font-style: italic; display: inline; }

.theme-hero-subtitle {
	margin: 1.5rem auto 0;
	max-width: 42rem;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.65;
}
@media (min-width: 640px) { .theme-hero-subtitle { font-size: 1rem; } }

.theme-hero-actions {
	margin-top: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	justify-content: center;
}
@media (min-width: 640px) { .theme-hero-actions { flex-direction: row; gap: 1rem; } }

.theme-hero-stats {
	margin-top: 2.5rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}
@media (min-width: 640px) { .theme-hero-stats { gap: 2.5rem; } }
.theme-hero-stats p[class*="-value"] {
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
@media (min-width: 640px) { .theme-hero-stats p[class*="-value"] { font-size: 1.875rem; } }
@media (min-width: 1280px) { .theme-hero-stats p[class*="-value"] { font-size: 1.875rem; } }
.theme-hero-stats p[class*="-label"] {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.75);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
@media (min-width: 640px) { .theme-hero-stats p[class*="-label"] { font-size: 0.8125rem; } }


/* ---------------------------------------------------------------------
   7. About
--------------------------------------------------------------------- */
.theme-about { background-color: var(--color-linen); padding: 6rem 0; }
@media (min-width: 768px) { .theme-about { padding: 8rem 0; } }

.theme-about-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	position: relative;
}
@media (min-width: 1024px) {
	.theme-about-grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; }
	.theme-about-intro { grid-column: span 5; }
	.theme-about-body { grid-column: span 7; padding-left: 1.5rem; }
}

.about-section .section-heading,
.theme-about-title {
	font-size: 2.25rem;
	line-height: 1.05;
	color: var(--color-foreground);
}
@media (min-width: 768px) { .theme-about-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-about-title { font-size: 3.4rem; } }

.theme-about-quote { margin-top: 2rem; }
.theme-about-quote-author {
	margin-top: 1.5rem;
	font-size: 0.8125rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--color-foreground) 55%, transparent);
}

.theme-about-body { display: flex; flex-direction: column; gap: 1.25rem; max-width: 65ch; }
.theme-about-body p { font-size: 0.9375rem; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
@media (min-width: 768px) { .theme-about-body p { font-size: 1rem; } }

.theme-about-pillars {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 640px) { .theme-about-pillars { grid-template-columns: repeat(3, 1fr); } }

.theme-pillar {
	border-radius: var(--radius);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	background-color: var(--color-ivory);
	padding: 1.5rem;
}
.theme-pillar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
	color: var(--color-primary);
	margin-bottom: 1rem;
}
.theme-pillar h3 { font-size: 1.25rem; color: var(--color-foreground); margin-bottom: 0.5rem; }
.theme-pillar p { font-size: 0.8125rem; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }

/* ---------------------------------------------------------------------
   8. Philosophy quote section
--------------------------------------------------------------------- */
.theme-quote-section {
	position: relative;
	overflow: hidden;
}
@media (min-width: 1024px) { .theme-quote-section { min-height: 760px; display: flex; align-items: center; } }
.theme-quote-image-container { position: absolute; inset: 0; overflow: hidden; }
.theme-quote-image { position: absolute; left: 0; top: -25%; width: 100%; height: 150%; will-change: transform; }
.theme-quote-content { position: relative; z-index: 10; text-align: center; color: #fff; padding-block: 7rem; }
@media (min-width: 768px) { .theme-quote-content { padding-block: 10rem; } }
.theme-quote-eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	font-size: 0.75rem;
	letter-spacing: 0.38em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 2rem;
	font-weight: 500;
}
.theme-quote-eyebrow::before, .theme-quote-eyebrow::after { content: ''; height: 1px; width: 2rem; background-color: rgba(255, 255, 255, 0.6); }
.theme-quote-text {
	font-family: var(--font-display);
	font-style: italic;
	color: #fff;
	line-height: 1.1;
	margin: 0 auto;
	max-width: 56rem;
	font-size: clamp(1.9rem, 5vw, 3.8rem);
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}
.theme-quote-attribution { margin-top: 2.25rem; font-size: 0.8125rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }


/* ---------------------------------------------------------------------
   9. Services
--------------------------------------------------------------------- */
.theme-services { position: relative; background-color: var(--color-linen); padding: 6rem 0; }
@media (min-width: 640px) { .theme-services { padding: 8rem 0; } }
.theme-services-intro { max-width: 48rem; }
.offerings-section .section-heading,
.theme-services-title {
	margin-top: 1.25rem;
	font-size: 2.25rem;
	line-height: 1.05;
	color: var(--color-foreground);
}
@media (min-width: 640px) { .theme-services-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-services-title { font-size: 3.4rem; } }
.theme-services-body { margin-top: 1.5rem; font-size: 0.9375rem; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); max-width: 40rem; }

.theme-services-grid {
	margin-top: 4rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background-color: var(--color-border);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
}
@media (min-width: 640px) { .theme-services-grid { grid-template-columns: repeat(2, 1fr); } }

.theme-service-card {
	position: relative;
	aspect-ratio: 4 / 5;
	background-color: var(--color-ivory);
	overflow: hidden;
}
.theme-service-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 90%, transparent) 0%, color-mix(in srgb, var(--color-foreground) 25%, transparent) 55%, transparent 100%);
	opacity: 0.85;
	transition: opacity 0.5s ease;
}
.theme-service-card:hover .theme-service-scrim { opacity: 0.95; }
.theme-service-card:hover .theme-card-main-img,
.theme-service-card:hover .theme-service-img { transform: scale(1.05); transition: transform 0.7s ease; }
.theme-service-img { transition: transform 0.7s ease; }

.theme-service-copy {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.75rem;
	color: #fff;
	transform: translateY(1rem);
	transition: transform 0.5s ease;
}
.theme-service-card:hover .theme-service-copy { transform: translateY(0); }
@media (min-width: 640px) { .theme-service-copy { padding: 2rem; } }
.theme-service-copy h3 { font-size: 1.5rem; line-height: 1.2; }
@media (min-width: 640px) { .theme-service-copy h3 { font-size: 1.75rem; } }
.theme-service-copy p {
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	line-height: 1.6;
	max-width: 24rem;
	opacity: 0;
	transition: opacity 0.5s ease 0.1s;
}
@media (min-width: 640px) { .theme-service-copy p { font-size: 0.875rem; } }
.theme-service-card:hover .theme-service-copy p { opacity: 1; }
.theme-service-underline { width: 2rem; height: 1px; background-color: var(--color-accent); margin-top: 1.5rem; transition: width 0.5s ease; }
.theme-service-card:hover .theme-service-underline { width: 4rem; }

.theme-services-cta {
	margin-top: 2.5rem;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border: 1px solid var(--color-primary);
	border-radius: var(--radius);
	padding: 2rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: center;
}
@media (min-width: 640px) { .theme-services-cta { padding: 3rem; } }
@media (min-width: 1024px) { .theme-services-cta { grid-template-columns: auto 8fr 3fr; } }
.theme-services-cta-icon { color: var(--color-accent); display: none; }
@media (min-width: 1024px) { .theme-services-cta-icon { display: inline-flex; } }
.theme-services-cta-copy h3 { font-size: 1.5rem; line-height: 1.25; }
@media (min-width: 640px) { .theme-services-cta-copy h3 { font-size: 1.875rem; } }
@media (min-width: 1024px) { .theme-services-cta-copy h3 { font-size: 2.125rem; } }
.theme-services-cta-copy p { margin-top: 0.75rem; font-size: 0.8125rem; line-height: 1.6; color: color-mix(in srgb, var(--color-primary-foreground) 85%, transparent); max-width: 40rem; }
@media (min-width: 640px) { .theme-services-cta-copy p { font-size: 0.875rem; } }
.theme-services-cta a.theme-services-cta-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-brass);
	border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 50%, transparent);
	padding-bottom: 0.25rem;
}
@media (min-width: 1024px) { .theme-services-cta { justify-content: end; } .theme-services-cta a.theme-services-cta-link { justify-self: end; } }


/* ---------------------------------------------------------------------
   10. Shop / product grid / product card
--------------------------------------------------------------------- */
.theme-shop { background-color: var(--color-ivory); padding: 6rem 0; }
@media (min-width: 768px) { .theme-shop { padding: 8rem 0; } }

.theme-shop-header {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}
@media (min-width: 1024px) { .theme-shop-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.theme-shop-intro { max-width: 42rem; }
.shop-heading, .theme-shop-title { font-size: 2.25rem; line-height: 1.05; color: var(--color-foreground); }
@media (min-width: 768px) { .theme-shop-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-shop-title { font-size: 3.2rem; } }
.theme-shop-body { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.65; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); max-width: 36rem; }
@media (min-width: 768px) { .theme-shop-body { font-size: 0.9375rem; } }

.theme-shop-search-wrap { position: relative; width: 100%; }
@media (min-width: 1024px) { .theme-shop-search-wrap { width: 20rem; } }
.theme-shop-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: color-mix(in srgb, var(--color-foreground) 40%, transparent); pointer-events: none; }
.theme-shop-search-input {
	width: 100%;
	height: 2.75rem;
	padding: 0 1rem 0 2.75rem;
	border-radius: 9999px;
	background-color: var(--color-linen);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	font-size: 0.875rem;
	color: var(--color-foreground);
}
.theme-shop-search-input::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.theme-shop-search-input:focus { outline: none; border-color: color-mix(in srgb, var(--color-primary) 60%, transparent); }

.theme-shop-filters { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2.5rem; }
.theme-cat-filter {
	height: 2.25rem;
	padding: 0 1rem;
	border-radius: 9999px;
	font-size: 0.8125rem;
	font-weight: 500;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent);
	background: transparent;
	color: var(--color-foreground);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.theme-cat-filter:hover { border-color: var(--color-foreground); }
.theme-cat-filter.is-active { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem 1.5rem;
	align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, 1fr); } }
.theme-related-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .theme-related-grid { grid-template-columns: repeat(4, 1fr); } }

.theme-shop-view-more-row { margin-top: 3rem; display: flex; justify-content: center; }
.theme-shop-no-results { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }

/* --- Product card --- */
.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.theme-card-image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	background-color: var(--color-linen);
	border-radius: 0.75rem;
	overflow: hidden;
	margin-bottom: 1rem;
}

.theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }

.theme-card-main-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	transform-origin: center center;
	transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}
.theme-product-card:hover .theme-card-main-img { transform: scale(1.04); }

.theme-card-image-wrapper::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 35%, transparent), transparent 60%);
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
	z-index: 1;
}
.theme-product-card:hover .theme-card-image-wrapper::after { opacity: 1; }

.theme-badge-soldout {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 4;
	background-color: var(--color-foreground);
	color: var(--color-background);
	font-size: 0.6875rem;
	font-weight: 500;
	padding: 0.25rem 0.65rem;
	border-radius: 9999px;
	pointer-events: none;
}

.theme-card-img-prev, .theme-card-img-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 2rem;
	height: 2rem;
	border-radius: 9999px;
	background-color: color-mix(in srgb, var(--color-background) 85%, transparent);
	backdrop-filter: blur(6px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-foreground);
	opacity: 0;
	transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
	pointer-events: auto;
}
.theme-card-img-prev { left: 0.5rem; }
.theme-card-img-next { right: 0.5rem; }
.theme-product-card:hover .theme-card-img-prev,
.theme-product-card:hover .theme-card-img-next { opacity: 1; }
.theme-card-img-prev:hover, .theme-card-img-next:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.theme-card-dots { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 4; display: flex; gap: 0.25rem; pointer-events: none; }
.theme-card-dot { height: 4px; width: 4px; border-radius: 9999px; background-color: color-mix(in srgb, var(--color-background) 60%, transparent); transition: all 0.2s ease; }
.theme-card-dot.is-active { width: 1rem; background-color: var(--color-background); }

.theme-card-quick-actions {
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.75rem;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	opacity: 0;
	transition: opacity 0.5s ease;
}
.theme-product-card:hover .theme-card-quick-actions { opacity: 1; }

.theme-card-add-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(6px);
	color: var(--color-foreground);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	transition: background-color 0.3s ease, color 0.3s ease;
	pointer-events: auto;
}
.theme-card-add-btn:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.theme-card-quickview-btn {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(6px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-foreground);
	transition: background-color 0.3s ease, color 0.3s ease;
	pointer-events: auto;
}
.theme-card-quickview-btn:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.theme-card-info-link { display: flex; flex-direction: column; padding: 0 0.125rem; flex: 1; pointer-events: auto; z-index: 3; position: relative; }
.theme-card-category { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.16em; color: color-mix(in srgb, var(--color-primary) 90%, transparent); margin-bottom: 0.375rem; font-weight: 500; }
.theme-card-title {
	font-size: 1.15rem;
	line-height: 1.3;
	color: var(--color-foreground);
	transition: color 0.3s ease;
}
@media (min-width: 768px) { .theme-card-title { font-size: 1.3rem; } }
@media (min-width: 1024px) { .theme-card-title { font-size: 1.4rem; } }
.theme-product-card:hover .theme-card-title { color: var(--color-primary); }
.theme-card-price { margin-top: 0.375rem; font-size: 0.875rem; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
.theme-card-price del { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); margin-right: 0.4em; }
.theme-card-price ins { text-decoration: none; }


/* ---------------------------------------------------------------------
   11. Marquee
--------------------------------------------------------------------- */
.theme-marquee { background-color: var(--color-primary); padding: 1.5rem 0; overflow: hidden; }
@media (min-width: 768px) { .theme-marquee { padding: 1.75rem 0; } }
.theme-marquee-track { display: flex; white-space: nowrap; animation: theme-marquee 22s linear infinite; }
.theme-marquee-item {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	color: color-mix(in srgb, var(--color-primary-foreground) 95%, transparent);
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.25rem;
	letter-spacing: 0.01em;
}
@media (min-width: 768px) { .theme-marquee-item { font-size: 1.5rem; } }
@media (min-width: 1024px) { .theme-marquee-item { font-size: 1.875rem; } }
.theme-marquee-item span[data-marquee-item] { margin: 0 1.75rem; }
@media (min-width: 768px) { .theme-marquee-item span[data-marquee-item] { margin: 0 2.5rem; } }
.theme-marquee-star { color: var(--color-brass); font-size: 1rem; }
@media (min-width: 768px) { .theme-marquee-star { font-size: 1.125rem; } }

/* ---------------------------------------------------------------------
   12. Owner
--------------------------------------------------------------------- */
.theme-owner { background-color: var(--color-linen); padding: 6rem 0; }
@media (min-width: 768px) { .theme-owner { padding: 8rem 0; } }
.theme-owner-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .theme-owner-grid { grid-template-columns: repeat(2, 1fr); gap: 5rem; } }
.theme-owner-photo-wrap { max-width: 36rem; }
.theme-owner-photo-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background-color: var(--color-ivory); }
.theme-owner-title { font-size: 2.25rem; line-height: 1.05; color: var(--color-foreground); margin-top: 1rem; }
@media (min-width: 768px) { .theme-owner-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-owner-title { font-size: 3.2rem; } }
.theme-owner-body > p:not(.theme-owner-quote) {
	margin-top: 1.5rem;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
}
@media (min-width: 768px) {
	.theme-owner-body > p:not(.theme-owner-quote) { font-size: 1rem; }
}
.theme-owner-body .theme-owner-quote {
	margin-top: 1.75rem;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.25rem;
	line-height: 1.375;
	color: var(--color-foreground);
	border-left: 2px solid var(--color-accent);
	padding-left: 1.25rem;
}
@media (min-width: 768px) {
	.theme-owner-body .theme-owner-quote { font-size: 1.5rem; }
}
.theme-owner-guides-box { margin-top: 2rem; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); background-color: color-mix(in srgb, var(--color-ivory) 70%, transparent); padding: 1.25rem; }
@media (min-width: 768px) { .theme-owner-guides-box { padding: 1.5rem; } }
.theme-owner-guides-label { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-primary); font-weight: 500; }
.theme-owner-guides-body { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.theme-owner-stats { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); padding-top: 1rem; }
.theme-owner-stats p[class*="-value"] { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-foreground); }
.theme-owner-stats p[class*="-label"] { margin-top: 0.25rem; font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------------------------------------------------------------------
   13. Pre-contact CTA
--------------------------------------------------------------------- */
.theme-precta { position: relative; overflow: hidden; display: flex; align-items: center; }
@media (min-width: 1024px) { .theme-precta { min-height: 760px; } }
.theme-precta-video-container { position: absolute; inset: 0; overflow: hidden; }
.theme-precta-video {
	position: absolute;
	left: 0;
	top: -25%;
	width: 100%;
	height: 150%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	will-change: transform;
}
.theme-precta-content { position: relative; z-index: 10; text-align: center; color: #fff; padding-block: 7rem; }
@media (min-width: 768px) { .theme-precta-content { padding-block: 10rem; } }
.theme-precta-eyebrow { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: 0.75rem; letter-spacing: 0.38em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); margin-bottom: 1.5rem; font-weight: 500; }
.theme-precta-rule { height: 1px; width: 2rem; background-color: rgba(255, 255, 255, 0.6); }
.theme-precta-title { font-family: var(--font-display); color: #fff; line-height: 1.05; margin: 0 auto; max-width: 56rem; font-size: clamp(2rem, 5.4vw, 4rem); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55); }
.theme-precta-title-line2 { font-style: italic; }
.theme-precta-body { margin: 1.75rem auto 0; max-width: 36rem; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.85); line-height: 1.65; }
.theme-precta-content > div:last-child { margin-top: 2.5rem; }

/* ---------------------------------------------------------------------
   14. Contact
--------------------------------------------------------------------- */
.theme-contact { background-color: var(--color-linen); padding: 6rem 0 3rem; }
@media (min-width: 768px) { .theme-contact { padding: 8rem 0 4rem; } }
.theme-contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .theme-contact-grid { grid-template-columns: repeat(2, 1fr); gap: 5rem; } }
.theme-contact-info { display: flex; flex-direction: column; height: 100%; }
.contact-title, .theme-contact-title { font-size: 2.25rem; line-height: 1.05; color: var(--color-foreground); }
@media (min-width: 768px) { .theme-contact-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-contact-title { font-size: 3.4rem; } }
.theme-contact-body { margin-top: 1.5rem; font-size: 0.9375rem; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); max-width: 30rem; }

.theme-contact-methods { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-contact-method { display: inline-flex; align-items: center; gap: 1rem; color: var(--color-foreground); transition: color 0.2s ease; }
a.theme-contact-method:hover { color: var(--color-primary); }
.theme-contact-method-icon { width: 2.75rem; height: 2.75rem; border-radius: 9999px; background-color: var(--color-ivory); border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.theme-contact-method-text { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.theme-contact-method-label { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-contact-method-text .theme-contact-email,
.theme-contact-method-text .theme-contact-phone,
.theme-contact-method-text .theme-contact-location { font-size: 0.9375rem; font-weight: 500; overflow-wrap: break-word; word-break: break-word; }

.theme-contact-social { margin-top: 2rem; display: flex; align-items: center; gap: 0.75rem; }
.theme-contact-social-link { width: 2.75rem; height: 2.75rem; border-radius: 9999px; background-color: var(--color-ivory); border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); display: inline-flex; align-items: center; justify-content: center; color: var(--color-foreground); transition: color 0.2s ease, border-color 0.2s ease; }
.theme-contact-social-link:hover { color: var(--color-accent); border-color: color-mix(in srgb, var(--color-accent) 60%, transparent); }

.theme-contact-studio-box { margin-top: auto; padding-top: 2.5rem; position: relative; }
.theme-contact-studio-box { border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); background-color: color-mix(in srgb, var(--color-ivory) 70%, transparent); padding: 1.5rem; margin-top: 2.5rem; position: relative; }
.theme-contact-studio-badge {
	position: absolute;
	top: -0.75rem;
	left: 1.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 500;
}
.theme-contact-studio-quote { font-family: var(--font-display); font-style: italic; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); font-size: 1.125rem; line-height: 1.35; border-left: 2px solid var(--color-accent); padding-left: 1.25rem; }
@media (min-width: 768px) { .theme-contact-studio-quote { font-size: 1.25rem; } }
.theme-contact-studio-body { margin-top: 0.75rem; padding-left: 1.25rem; font-size: 0.8125rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); letter-spacing: 0.01em; }

.theme-contact-form { background-color: var(--color-ivory); border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-soft); height: 100%; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .theme-contact-form { padding: 2rem; } }
.theme-contact-form-fields { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.theme-form-group label { display: block; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 0.5rem; }
.theme-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-form-row { grid-template-columns: repeat(2, 1fr); } }
.theme-form-input {
	width: 100%;
	height: 3rem;
	padding: 0 1rem;
	background-color: var(--color-ivory);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	border-radius: 0.375rem;
	font-size: 0.875rem;
	color: var(--color-foreground);
	transition: border-color 0.2s ease;
}
.theme-form-input::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.theme-form-input:focus { outline: none; border-color: var(--color-primary); }
.theme-form-textarea { height: auto; padding: 0.75rem 1rem; resize: none; }
.theme-form-select-wrap { position: relative; }
.theme-form-select { appearance: none; padding-right: 2.5rem; }
.theme-form-select-icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-contact-form-submit { padding-top: 0.5rem; }
.theme-contact-submit-btn { width: 100%; }
.theme-contact-submit-btn.is-loading { opacity: 0.7; pointer-events: none; }
.theme-contact-privacy-note { margin-top: 0.75rem; font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); text-align: center; }


/* ---------------------------------------------------------------------
   15. Footer
--------------------------------------------------------------------- */
.footer-surface { background-color: var(--color-footer); color: var(--color-primary-foreground); }
.theme-footer-inner { padding-block: 3.5rem 2rem; }
@media (min-width: 1024px) { .theme-footer-inner { padding-block: 5rem 2.5rem; } }
.theme-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .theme-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }

.theme-footer-logo { height: 6rem; width: auto; max-width: 260px; object-fit: contain; }
.theme-footer-tagline { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.125rem; color: #fff; }
.theme-footer-description { margin-top: 0.75rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); line-height: 1.6; max-width: 20rem; }
.theme-footer-founded { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--color-accent); }
.theme-footer-social { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.theme-footer-social-link { width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.2); display: inline-flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.8); transition: color 0.2s ease, border-color 0.2s ease; }
.theme-footer-social-link:hover { color: var(--color-accent); border-color: color-mix(in srgb, var(--color-accent) 60%, transparent); }

.theme-footer-col h3 { font-family: var(--font-display); font-size: 1.125rem; color: var(--color-accent); margin-bottom: 1rem; }
.theme-footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.theme-footer-col ul a, .theme-footer-col ul button { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); transition: color 0.2s ease; text-align: left; }
.theme-footer-col ul a:hover, .theme-footer-col ul button:hover { color: #fff; }
.theme-footer-contact-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); }
.theme-footer-contact-list a { display: inline-flex; align-items: flex-start; gap: 0.5rem; color: rgba(255, 255, 255, 0.8); transition: color 0.2s ease; overflow-wrap: break-word; word-break: break-word; }
.theme-footer-contact-list a:hover { color: #fff; }

.theme-footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; text-align: center; font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }
@media (min-width: 640px) { .theme-footer-bottom { flex-direction: row; } }
.theme-footer-back-to-top-btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--color-accent) 60%, transparent); padding: 0.5rem 1.25rem; font-size: 0.8125rem; font-weight: 500; color: var(--color-accent); transition: background-color 0.2s ease, color 0.2s ease; }
.theme-footer-back-to-top-btn:hover { background-color: var(--color-accent); color: var(--color-accent-foreground); }

/* ---------------------------------------------------------------------
   16. Cart drawer + overlay
--------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background-color: color-mix(in srgb, var(--color-foreground) 30%, transparent);
	z-index: 60;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
	position: fixed;
	right: 0;
	top: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background-color: var(--color-ivory);
	z-index: 61;
	box-shadow: var(--shadow-elevated);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-cart-title { font-size: 1.5rem; color: var(--color-foreground); }
.theme-cart-close { padding: 0.375rem; border-radius: 9999px; transition: background-color 0.2s ease; }
.theme-cart-close:hover { background-color: color-mix(in srgb, var(--color-foreground) 6%, transparent); }

.theme-cart-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-empty-icon { color: color-mix(in srgb, var(--color-foreground) 30%, transparent); margin-bottom: 1rem; display: block; }
.theme-cart-empty-text { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); margin-bottom: 1.5rem; font-size: 0.875rem; }

.theme-cart-drawer-items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item-image {
	display: block;
	width: 5rem;
	height: 6rem;
	background-color: var(--color-bone);
	border-radius: 0.375rem;
	overflow: hidden;
	flex-shrink: 0;
}
.theme-cart-item-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
}
.theme-cart-item-body { flex: 1; min-width: 0; }
.theme-cart-item-title { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: color 0.2s ease; }
.theme-cart-item-title:hover { color: var(--color-primary); }
.theme-cart-item-price { font-size: 0.8125rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 0.125rem; }
.theme-cart-item-variation { font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-top: 0.25rem; }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-item-controls button[data-cart-qty-update] { padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s ease; display: inline-flex; }
.theme-cart-item-controls button[data-cart-qty-update]:hover { background-color: var(--color-bone); }
.theme-cart-item-qty { font-size: 0.8125rem; width: 1.5rem; text-align: center; }
.theme-cart-item-remove { margin-left: auto; font-size: 0.8125rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); transition: color 0.2s ease; }
.theme-cart-item-remove:hover { color: var(--color-destructive); }

.theme-cart-drawer-footer { padding: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); background-color: color-mix(in srgb, var(--color-linen) 40%, transparent); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-subtotal-label { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }
.theme-cart-subtotal-value { font-weight: 500; }
.theme-cart-note { font-size: 0.8125rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-cart-checkout-btn { width: 100%; }
.theme-cart-empty-btn { width: 100%; justify-content: center; }

/* Hide WooCommerce's own "View cart" link after AJAX add (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; }

/* ---------------------------------------------------------------------
   17. Promo banner
--------------------------------------------------------------------- */
.theme-promo-banner {
	position: fixed;
	bottom: 1.5rem;
	left: 1rem;
	right: 1rem;
	z-index: 55;
	background-color: var(--color-foreground);
	color: var(--color-background);
	border-radius: var(--radius);
	box-shadow: var(--shadow-elevated);
	padding: 1rem 1.25rem;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.theme-promo-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 640px) { .theme-promo-banner { left: auto; right: 1.5rem; max-width: 26rem; } }
.theme-promo-banner-text { font-size: 0.875rem; line-height: 1.6; flex: 1; }
@media (min-width: 640px) { .theme-promo-banner-text { font-size: 0.9375rem; } }
.theme-promo-dismiss { flex-shrink: 0; margin-top: 0.125rem; padding: 0.375rem; border-radius: 9999px; transition: background-color 0.2s ease; }
.theme-promo-dismiss:hover { background-color: rgba(255, 255, 255, 0.1); }


/* ---------------------------------------------------------------------
   18. WooCommerce: single product page
--------------------------------------------------------------------- */
.theme-single-product { padding-top: 9rem; }
@media (min-width: 640px) { .theme-single-product { padding-top: 8rem; } }
@media (min-width: 1024px) { .theme-single-product { padding-top: 8rem; } }

.theme-breadcrumb { padding: 1.5rem 0; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-breadcrumb a { transition: color 0.2s ease; }
.theme-breadcrumb a:hover { color: var(--color-primary); }
.theme-breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb-current { color: var(--color-foreground); }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 5rem;
	align-items: start;
	min-width: 0;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }

.theme-product-gallery { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-gallery { position: sticky; top: 7rem; } }
.theme-product-main-image { position: relative; aspect-ratio: 1 / 1; width: 100%; background-color: var(--color-linen); border-radius: 0.75rem; overflow: hidden; margin-bottom: 1rem; }
.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.625rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { position: relative; aspect-ratio: 1 / 1; background-color: var(--color-linen); border-radius: 0.375rem; overflow: hidden; border: 2px solid transparent; transition: border-color 0.2s ease; }
.theme-product-thumb.is-active { border-color: var(--color-primary); }
.theme-product-thumb:hover { border-color: color-mix(in srgb, var(--color-foreground) 20%, transparent); }

.theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-category { font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.75rem; font-weight: 500; }
.theme-product-title.product-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 1.05;
	color: var(--color-foreground);
	margin-bottom: 1rem;
}
@media (min-width: 768px) { .theme-product-title.product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-title.product-title { font-size: 2.6rem; } }
.theme-product-price { font-size: 1.25rem; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); margin-bottom: 1.75rem; }
.theme-product-price del { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); margin-right: 0.5em; }
.theme-product-stock.is-out-of-stock { margin-bottom: 1.5rem; }
.theme-product-description { font-size: 0.9375rem; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; white-space: pre-line; }
.theme-product-description p { margin-bottom: 1em; }
.theme-product-description p:last-child { margin-bottom: 0; }

.theme-quantity-block { margin-bottom: 1.5rem; }
.theme-quantity-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 0.625rem; }
.theme-quantity-wrapper { position: relative; display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent); border-radius: 9999px; }
.theme-qty-minus, .theme-qty-plus { padding: 0.65rem 1rem; transition: color 0.2s ease; display: inline-flex; align-items: center; }
.theme-qty-minus:hover, .theme-qty-plus:hover { color: var(--color-primary); }
.theme-qty-display { padding: 0.65rem 1rem; min-width: 44px; text-align: center; font-size: 0.875rem; font-weight: 500; }
.theme-qty-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.theme-qty-input:focus { outline: none; }

.single-product .theme-add-to-cart-area {
	display: block;
	margin-bottom: 2rem;
}
.theme-product-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}
@media (min-width: 640px) {
	.theme-product-actions { flex-direction: row; }
}
.theme-product-actions .single_add_to_cart_button,
.theme-product-actions .theme-buy-now-button {
	flex: 1 1 0 !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	height: 3rem !important;
	min-height: 3rem !important;
	padding: 0 1.75rem !important;
	border-radius: 9999px !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	box-sizing: border-box !important;
}
.theme-product-actions .single_add_to_cart_button {
	border: 1px solid var(--color-primary) !important;
}
.theme-product-actions .theme-buy-now-button {
	border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent) !important;
	background: transparent !important;
	color: var(--color-foreground) !important;
}

.theme-product-details { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); margin-bottom: 2rem; }
.theme-details-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 1rem; }
.theme-details-list ul { display: flex; flex-direction: column; gap: 0.625rem; }
.theme-details-list li { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); display: flex; align-items: flex-start; overflow-wrap: break-word; word-break: break-word; }
.theme-details-list li::before { content: ''; width: 4px; height: 4px; background-color: var(--color-primary); border-radius: 9999px; margin-top: 0.5rem; margin-right: 0.75rem; flex-shrink: 0; }

.theme-trust-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-trust-badge { text-align: center; }
.theme-trust-icon { color: var(--color-primary); margin: 0 auto 0.5rem; }
.theme-trust-badge p { font-size: 0.6875rem; letter-spacing: 0.15em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

.theme-related-products { padding: 5rem 0; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-related-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.theme-related-heading { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; color: var(--color-foreground); }
@media (min-width: 768px) { .theme-related-heading { font-size: 2.25rem; } }
.theme-related-view-all { display: none; align-items: center; gap: 0.375rem; font-size: 0.875rem; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); transition: color 0.2s ease; }
@media (min-width: 640px) { .theme-related-view-all { display: inline-flex; } }
.theme-related-view-all:hover { color: var(--color-primary); }
.theme-related-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem 1.5rem;
}
@media (min-width: 1024px) {
	.theme-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Variations table layout (Section 11.5.1) */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-weight: 600; font-family: var(--font-body); font-style: normal; }
.single-product .variations tbody td.value { padding-top: 0; margin-bottom: 1rem; }
.theme-attr-select-hidden { display: none !important; }
.single_variation_wrap { display: block; }

/* Add-to-cart button style override (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 add-to-cart button variant (scoped override) */
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-card-add-btn {
	min-height: unset !important;
	height: 2.5rem !important;
	padding: 0 1rem !important;
	border-radius: 9999px !important;
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent) !important;
	color: var(--color-foreground) !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-card-add-btn:hover {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	opacity: 1 !important;
}

.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Section 14.1 — scoped notice hiding */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-radius: var(--radius);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 12%, transparent);
	background-color: var(--color-ivory);
	color: var(--color-foreground);
	font-size: 0.875rem;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}
.woocommerce-error { border-color: color-mix(in srgb, var(--color-destructive) 40%, transparent); color: var(--color-destructive); }


/* ---------------------------------------------------------------------
   19. WooCommerce: archive / shop
--------------------------------------------------------------------- */
.theme-shop-archive { padding-top: 9rem; padding-bottom: 5rem; }
.theme-archive-header { padding-bottom: 2rem; }
.theme-archive-title { font-size: 2.25rem; color: var(--color-foreground); }
.theme-archive-empty { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }

/* ---------------------------------------------------------------------
   20. WooCommerce: checkout blocks (Section 13)
--------------------------------------------------------------------- */
body.woocommerce-checkout .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }

body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .page-title { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { body.woocommerce-checkout .entry-content, body.woocommerce-checkout .page-title { padding: 0 1.5rem; } }
@media (min-width: 1024px) { body.woocommerce-checkout .entry-content, body.woocommerce-checkout .page-title { padding: 0 2.5rem; } }

body.woocommerce-checkout .page-title { font-size: 2.25rem; margin-bottom: 2rem; color: var(--color-foreground); }

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,
	body.woocommerce-checkout .wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-components-notice-banner {
		grid-column: 1 / -1;
	}
}

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-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-foreground);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	border-radius: 0.375rem;
	background-color: var(--color-ivory);
	padding: revert;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible {
	outline: none;
	border-color: var(--color-primary);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	text-transform: none !important;
	height: 3rem !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-linen);
	border-radius: var(--card-radius);
	padding: 2rem;
}

body.woocommerce-checkout h2, body.woocommerce-checkout h3 {
	font-family: var(--font-display);
	color: var(--color-foreground);
}

/* ---------------------------------------------------------------------
   21. WooCommerce: thank-you page (Section 22.8)
--------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
body.theme-thankyou-page .entry-content,
body.theme-thankyou-page .page-title { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-size: 1.75rem;
	color: var(--color-foreground);
	padding: 0 0 1rem 0;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	padding: 1.5rem;
	background-color: var(--color-linen);
	border-radius: var(--card-radius);
	margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-overview li strong { display: block; font-family: var(--font-display); font-size: 1.125rem; margin-top: 0.25rem; }

body.theme-thankyou-page .woocommerce-order-details table,
body.theme-thankyou-page .woocommerce-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 color-mix(in srgb, var(--color-foreground) 10%, transparent);
	font-size: 0.875rem;
	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;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	border-radius: var(--radius);
	padding: 1.25rem;
	font-style: normal;
	font-size: 0.875rem;
	line-height: 1.6;
}

/* ---------------------------------------------------------------------
   22. WooCommerce: cart/account width 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,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}
@media (min-width: 640px) {
	body.woocommerce-cart .entry-content, body.woocommerce-account .entry-content,
	body.woocommerce-cart .page-title, body.woocommerce-account .page-title { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
	body.woocommerce-cart .entry-content, body.woocommerce-account .entry-content,
	body.woocommerce-cart .page-title, body.woocommerce-account .page-title { padding: 0 2.5rem; }
}
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wc-block-components-sidebar-layout {
	display: block;
}
@media (min-width: 768px) {
	body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}


/* ---------------------------------------------------------------------
   23. 404 page
--------------------------------------------------------------------- */
.theme-404-page { min-height: 70vh; display: flex; align-items: center; padding-top: 9rem; padding-bottom: 4rem; }
.theme-404-content { max-width: 32rem; margin: 0 auto; text-align: center; }
.theme-404-title { font-size: 2.5rem; color: var(--color-foreground); margin-bottom: 1rem; }
.theme-404-body { font-size: 0.9375rem; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); margin-bottom: 2rem; }
.theme-404-link { display: inline-flex; }

/* ---------------------------------------------------------------------
   24. Scroll reveal engine + Customizer preview stability
--------------------------------------------------------------------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	.theme-hero-video, .theme-quote-image, .theme-precta-video,
	.theme-card-main-img, .theme-service-img { transition: none !important; }
}

/* Customizer preview fallback: reveal content must never be stuck hidden
   in the editor iframe (Section 2.1.5). Covers ALL reveal contexts,
   including dynamically-inserted product cards. */
body.is-customizer [data-reveal],
body.is-customizer .reveal-item,
body.is-customizer .theme-product-card-wrap {
	opacity: 1 !important;
	transform: none !important;
}

/* ---------------------------------------------------------------------
   25. Responsive helpers / misc
--------------------------------------------------------------------- */
.theme-page-wrap { padding-top: 9rem; padding-bottom: 4rem; }
.page-title { font-size: 2.25rem; color: var(--color-foreground); margin-bottom: 1.5rem; }

@media (max-width: 767px) {
	.theme-product-thumbnails { grid-template-columns: repeat(4, 1fr); }
}
