/* ==========================================================================
   The Inkwell — theme.css
   Design tokens are injected as CSS variables via wp_add_inline_style
   (colors) and set here (everything else). See functions.php theme_default().
   ========================================================================== */

:root {
	--radius: 0.25rem;
	--font-display: 'Cormorant Garamond', serif;
	--font-body: 'Karla', sans-serif;
	--shadow-soft: 0 4px 20px -4px rgba(0,0,0,0.5);
	--shadow-elevated: 0 16px 48px -10px rgba(0,0,0,0.7);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
	--header-height: 112px;
	--checkout-gap: 2rem;
	--btn-radius: 2px;
	--btn-height: 52px;
	--btn-padding: 0 2rem;
	--btn-font-size: 11px;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.28em;
	--btn-text-transform: uppercase;
	--card-radius: 4px;
	--section-padding: 2rem;
	--color-button-text: var(--primary-foreground);
}

/* ---- token aliases used throughout (bridge shadcn-style names to ours) ---- */
:root {
	--background: var(--color-background);
	--foreground: var(--color-foreground);
	--primary: var(--color-primary);
	--primary-foreground: var(--color-primary-foreground);
	--secondary: var(--color-secondary);
	--muted-foreground: var(--color-muted-foreground);
	--accent: var(--color-accent);
	--border: var(--color-border);
	--ink: var(--color-ink);
	--paper: var(--color-paper);
	--forest: var(--color-forest);
	--forest-deep: var(--color-forest-deep);
	--mist: var(--color-mist);
	--gold: var(--color-gold);
	--cream: var(--color-paper);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: clip; }

body {
	background-color: hsl(var(--background, 0 0% 0%));
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.02em;
	font-feature-settings: "ss01", "ss02";
	margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

img, video { max-width: 100%; display: block; }
.cover-img, .hero-bg-img, .theme-tile__image, .theme-banner__image, .theme-contact-cta__bg-image {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.theme-product-card__image img,
.theme-product-card__image .attachment-theme-product,
.theme-cart-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.theme-product-card__image img,
.theme-product-card__image .attachment-theme-product {
	object-fit: contain;
}

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

/* Preserve horizontal padding when vertical-only inner padding is applied */
.container-wide.theme-section__inner,
.container-wide.site-footer__inner {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide.theme-section__inner,
	.container-wide.site-footer__inner {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* ---- links / ornaments ---- */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
	content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
	background: currentColor; transform-origin: left; transform: scaleX(0);
	transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

.ornament-rule { display: inline-flex; align-items: center; gap: 0.75rem; }
.ornament-rule::after { content: ''; width: 3.5rem; height: 1px; background: linear-gradient(to right, color-mix(in srgb, var(--gold) 70%, transparent), transparent); }
.ornament-star::before { content: '✦'; margin-right: 0.6rem; color: color-mix(in srgb, var(--gold) 85%, transparent); font-size: 0.7em; line-height: 1; }

.btn-gold, .theme-btn-gold {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
	color: var(--cream);
	background: linear-gradient(to bottom, color-mix(in srgb, var(--gold) 8%, transparent), transparent);
	transition: border-color 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth), background-color 0.4s var(--transition-smooth);
	padding: 0.85rem 2rem;
	font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; font-family: var(--font-body);
	text-align: center;
}
.btn-gold:hover, .theme-btn-gold:hover {
	border-color: color-mix(in srgb, var(--gold) 90%, transparent);
	background-color: color-mix(in srgb, var(--gold) 12%, transparent);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 15%, transparent), inset 0 0 24px color-mix(in srgb, var(--gold) 12%, transparent);
}

.theme-btn-outline {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
	color: var(--foreground);
	background: transparent;
	padding: 0.85rem 2rem;
	font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-family: var(--font-body);
	transition: border-color 0.3s, color 0.3s;
}
.theme-btn-outline:hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); color: var(--cream); }

.theme-btn-paper {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--paper); color: var(--ink); border: 1px solid var(--paper);
	min-width: 200px; padding: 0.85rem 2rem;
	font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; font-family: var(--font-body);
	transition: background-color 0.3s, color 0.3s;
}
.theme-btn-paper:hover { background: transparent; color: var(--paper); }

.theme-btn-dark {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	background: var(--foreground); color: var(--background); border: 1px solid var(--foreground);
	min-width: 220px; padding: 0.85rem 2rem;
	font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
	transition: background-color 0.3s, color 0.3s;
}
.theme-btn-dark:hover { background: transparent; color: var(--foreground); }

.theme-btn-outline-light {
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--foreground); color: var(--foreground);
	min-width: 200px; padding: 0.85rem 2rem;
	font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
	transition: background-color 0.3s, color 0.3s;
}
.theme-btn-outline-light:hover { background: var(--foreground); color: var(--background); }

.frame-gold {
	position: relative;
	border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
	background-image: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 70%);
	padding: 2rem;
}
.frame-gold::before { content: ''; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; background: linear-gradient(to right, transparent, color-mix(in srgb, var(--gold) 75%, transparent), transparent); }
.frame-gold::after { content: '✦'; position: absolute; top: 0.5rem; right: 0.75rem; font-size: 0.6rem; color: color-mix(in srgb, var(--gold) 55%, transparent); pointer-events: none; }

.frame-arch { position: relative; border-radius: 999px 999px 0 0; overflow: hidden; isolation: isolate; }
.frame-arch::after {
	content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: inherit;
	box-shadow: inset 0 24px 60px -30px color-mix(in srgb, var(--gold) 35%, transparent);
}

.texture-celestial { position: relative; isolation: isolate; }
.texture-celestial::before, .texture-celestial::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.texture-celestial::before {
	opacity: 0.22;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='%23c8a44d'%3E%3Cpath d='M40 30l1.6 5 5 1.6-5 1.6-1.6 5-1.6-5-5-1.6 5-1.6z'/%3E%3Cpath d='M195 78l1.3 4 4 1.3-4 1.3-1.3 4-1.3-4-4-1.3 4-1.3z'/%3E%3Cpath d='M108 168l1.5 4.6 4.6 1.5-4.6 1.5-1.5 4.6-1.5-4.6-4.6-1.5 4.6-1.5z'/%3E%3Cpath d='M225 205l1.1 3.4 3.4 1.1-3.4 1.1-1.1 3.4-1.1-3.4-3.4-1.1 3.4-1.1z'/%3E%3Cpath d='M62 226l1.1 3.4 3.4 1.1-3.4 1.1-1.1 3.4-1.1-3.4-3.4-1.1 3.4-1.1z'/%3E%3Ccircle cx='150' cy='36' r='.9'/%3E%3Ccircle cx='88' cy='96' r='.8'/%3E%3Ccircle cx='18' cy='130' r='.8'/%3E%3Ccircle cx='240' cy='142' r='.9'/%3E%3Ccircle cx='170' cy='232' r='.8'/%3E%3Ccircle cx='130' cy='128' r='.7'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 260px 260px;
	animation: twinkle-a 7s ease-in-out infinite;
}
.texture-celestial::after {
	opacity: 0.16;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='%23c8a44d'%3E%3Cpath d='M96 54l1.4 4.2 4.2 1.4-4.2 1.4-1.4 4.2-1.4-4.2-4.2-1.4 4.2-1.4z'/%3E%3Cpath d='M258 120l1.2 3.6 3.6 1.2-3.6 1.2-1.2 3.6-1.2-3.6-3.6-1.2 3.6-1.2z'/%3E%3Cpath d='M32 196l1.3 4 4 1.3-4 1.3-1.3 4-1.3-4-4-1.3 4-1.3z'/%3E%3Cpath d='M186 262l1.1 3.4 3.4 1.1-3.4 1.1-1.1 3.4-1.1-3.4-3.4-1.1 3.4-1.1z'/%3E%3Cpath d='M292 40l1 3 3 1-3 1-1 3-1-3-3-1 3-1z'/%3E%3Ccircle cx='140' cy='150' r='.8'/%3E%3Ccircle cx='60' cy='96' r='.7'/%3E%3Ccircle cx='220' cy='210' r='.8'/%3E%3Ccircle cx='300' cy='286' r='.7'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 320px 320px;
	animation: twinkle-b 9.5s ease-in-out infinite;
	animation-delay: -3.5s;
}
@media (prefers-reduced-motion: reduce) { .texture-celestial::before, .texture-celestial::after { animation: none; } }

.texture-damask { position: relative; isolation: isolate; }
.texture-damask::before {
	content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.18;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c8a44d' stroke-width='0.8' opacity='0.3'%3E%3Cpath d='M60 12c12 14 12 26 0 36-12-10-12-22 0-36z'/%3E%3Cpath d='M60 108c-12-14-12-26 0-36 12 10 12 22 0 36z'/%3E%3Cpath d='M12 60c14-12 26-12 36 0-10 12-22 12-36 0z'/%3E%3Cpath d='M108 60c-14 12-26 12-36 0 10-12 22-12 36 0z'/%3E%3Ccircle cx='60' cy='60' r='4'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 120px 120px;
}

@keyframes twinkle-a { 0%, 100% { opacity: 0.14; } 50% { opacity: 0.28; } }
@keyframes twinkle-b { 0%, 100% { opacity: 0.22; } 50% { opacity: 0.08; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.animate-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--transition-smooth) forwards; }

/* ---- scroll reveal (Section 2.1) ---- */
.reveal-item, .theme-product-card-wrap.reveal-item {
	opacity: 0; transform: translateY(32px);
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
body.is-customizer .reveal-item,
body.is-customizer .theme-product-card-wrap.reveal-item { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	.reveal-item { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.theme-announce-bar {
	position: relative; background: var(--foreground); color: var(--background);
}
.theme-announce-bar__inner { padding: 0.5rem 2rem 0.5rem 0; text-align: center; }
.theme-announce-bar__text { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-body); margin: 0; }
.theme-announce-bar__close {
	position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
	padding: 0.25rem; background: none; border: none; color: inherit; opacity: 0.7;
}
.theme-announce-bar__close:hover { opacity: 1; }
.theme-announce-bar.is-dismissed { display: none; }

.site-header {
	position: sticky; top: 0; left: 0; right: 0; z-index: 50;
	transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
	background: var(--background); border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-scrolled {
	background: color-mix(in srgb, var(--background) 95%, transparent);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-bottom-color: var(--border);
}
.site-header__nav { display: flex; align-items: center; justify-content: space-between; height: 7rem; gap: 1rem; }
.site-header__logo { display: inline-flex; align-items: center; height: var(--logo-height, 88px); flex-shrink: 0; }
.site-logo-wrap { display: flex; align-items: center; height: 100%; }
.site-logo-img { height: 100% !important; width: auto !important; max-height: 100%; display: block; object-fit: contain; }
.site-logo-text { font-family: var(--font-display); font-size: 1.5rem; color: var(--foreground); line-height: 1.1; display: block; }
.site-header__desktop-nav { display: none; }
.theme-nav-list, .theme-mobile-nav-list { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.theme-nav-link {
	font-size: 11px; font-family: var(--font-body); letter-spacing: 0.32em; text-transform: uppercase;
	cursor: pointer; transition: color 0.3s;
}
.theme-nav-link:hover { color: var(--muted-foreground); }
.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.theme-cart-btn { position: relative; background: none; border: none; color: var(--foreground); padding: 0.5rem; cursor: pointer; transition: opacity 0.3s; }
.theme-cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
	position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 4px;
	display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500;
	background: var(--primary); color: var(--primary-foreground); border-radius: 999px;
}
.theme-cart-count:empty { display: none; }
.site-header__mobile-toggle { background: none; border: none; color: var(--foreground); padding: 0.5rem; display: block; transition: opacity 0.3s; }
.site-header__mobile-toggle:hover { opacity: 0.6; }
.theme-icon--menu-close { display: none; }
.site-header__mobile-toggle.is-open .theme-icon--menu-open { display: none; }
.site-header__mobile-toggle.is-open .theme-icon--menu-close { display: block; }

.site-header__mobile-menu {
	display: none; border-top: 1px solid var(--border); padding: 1rem 1.5rem;
}
.site-header__mobile-menu.is-open { display: block; animation: fadeIn 0.4s var(--transition-smooth); }
.theme-mobile-nav-list { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.theme-mobile-nav-list li { width: 100%; }
.theme-mobile-nav-list .theme-nav-link { display: block; padding: 0.35rem 0; font-size: 14px; letter-spacing: 0.05em; text-transform: none; width: 100%; }
@media (max-width: 1023px) {
	.site-header__mobile-menu .theme-nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
		width: 100%;
	}
	.site-header__mobile-menu .theme-nav-list li { width: 100%; }
}

@media (min-width: 1024px) {
	.site-header__desktop-nav { display: flex; }
	.site-header__mobile-toggle, .site-header__mobile-menu { display: none !important; }
}

body.theme-no-hero .site-main,
body.theme-no-hero main { padding-top: var(--header-height); }
body:not(.theme-no-hero) main.theme-generic-page,
body:not(.theme-no-hero) main.theme-shop-archive,
body:not(.theme-no-hero) main.theme-single-product { padding-top: var(--header-height); }

/* ==========================================================================
   HERO
   ========================================================================== */
.theme-hero { position: relative; background: var(--background); }
.theme-hero__desktop { display: none; }
.theme-hero__mobile { display: block; }
.theme-hero__slideshow { position: relative; width: 100%; height: 80vh; min-height: 520px; overflow: hidden; background: var(--ink); }
.theme-hero__slide {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
	transition: opacity 1.2s ease-in-out;
}
.theme-hero__slide.is-active { opacity: 1; }
.theme-hero__gradient {
	position: absolute; inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--ink) 90%, transparent), color-mix(in srgb, var(--ink) 55%, transparent) 45%, color-mix(in srgb, var(--ink) 40%, transparent));
}
.theme-hero__overlay {
	position: absolute; inset: 0; z-index: 1;
	background: color-mix(in srgb, var(--ink) 35%, transparent);
	pointer-events: none;
}
.theme-hero__desktop .theme-hero__overlay { display: none; }
.theme-hero__title {
	position: absolute; inset: 0; z-index: 2;
	display: flex; align-items: center; justify-content: center;
	color: var(--paper); font-family: var(--font-body); text-align: center;
	text-transform: uppercase; margin: 0; width: 100%; padding: 0 1.5rem;
	text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 0 36px rgba(0,0,0,0.8);
	pointer-events: none;
}
.theme-hero__title--mobile { font-size: 1.5rem; letter-spacing: 0.28em; }
@media (min-width: 640px) { .theme-hero__title--mobile { font-size: 1.875rem; } }
.theme-hero__buttons {
	position: absolute; z-index: 3;
	left: 0; right: 0; width: 100%;
	display: flex; flex-direction: column; align-items: center;
	box-sizing: border-box;
}
.theme-hero__buttons--mobile {
	bottom: 1.5rem; gap: 0.75rem;
	padding-left: 1.5rem; padding-right: 1.5rem;
}
.theme-hero__buttons--mobile .theme-btn-gold { width: 100%; max-width: 20rem; }

@media (min-width: 1280px) {
	.theme-hero__mobile { display: none; }
	.theme-hero__desktop { display: block; }
	.theme-hero__desktop .theme-hero__slideshow { height: 88vh; min-height: 640px; }
	.theme-hero__desktop .theme-hero__title {
		font-size: 3.75rem; letter-spacing: 0.3em; text-shadow: 0 2px 12px rgba(0,0,0,0.95), 0 0 48px rgba(0,0,0,0.75);
	}
	.theme-hero__desktop .theme-hero__buttons {
		flex-direction: row; justify-content: center;
		bottom: 3rem; top: auto; gap: 1rem;
		padding-left: 1.5rem; padding-right: 1.5rem;
	}
	.theme-hero__desktop .theme-hero__buttons .theme-btn-gold { min-width: 200px; width: auto; max-width: none; }
}
@media (min-width: 1536px) { .theme-hero__desktop .theme-hero__title { font-size: 4.5rem; } }

/* ==========================================================================
   SECTIONS — SHARED
   ========================================================================== */
.theme-section { border-top: 1px solid var(--border); position: relative; }
.theme-section--forest { background: var(--forest); }
.theme-section--mist { background: var(--mist); }
.theme-section--background { background: var(--background); }
.theme-section__inner { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .theme-section__inner { padding-top: 5rem; padding-bottom: 5rem; } }
#events .theme-section__inner { padding-bottom: 4rem; }
@media (min-width: 768px) { #events .theme-section__inner { padding-top: 6rem; padding-bottom: 6rem; } }
#about.theme-section .theme-section__inner,
.theme-about__grid.theme-section__inner { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) {
	#about.theme-section .theme-section__inner,
	.theme-about__grid.theme-section__inner { padding-top: 7rem; padding-bottom: 7rem; }
}
.scroll-mt { scroll-margin-top: 6rem; }

.theme-eyebrow { font-size: 11px; font-family: var(--font-body); letter-spacing: 0.32em; text-transform: uppercase; margin: 0 0 0.75rem; }
.theme-eyebrow--accent { color: var(--accent); }
.theme-eyebrow--muted { color: var(--muted-foreground); }

.theme-heading { font-family: var(--font-display); font-weight: 300; line-height: 1.1; margin: 0; }
.theme-heading--events { font-size: 1.875rem; }
@media (min-width: 768px) { .theme-heading--events { font-size: 3rem; } }
.theme-heading--about { font-size: 2.25rem; line-height: 1.05; margin-bottom: 2rem; }
@media (min-width: 768px) { .theme-heading--about { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-heading--about { font-size: 3.75rem; } }
.theme-heading--collection { font-size: 1.875rem; }
@media (min-width: 768px) { .theme-heading--collection { font-size: 2.5rem; } }
.theme-heading--bestsellers { font-size: 1.875rem; }
@media (min-width: 768px) { .theme-heading--bestsellers { font-size: 3rem; } }
.theme-shop__section-label { font-size: 12px; font-family: var(--font-body); letter-spacing: 0.32em; text-transform: uppercase; margin: 0; }
#bestsellers .theme-section__header--row { margin-bottom: 1rem; }
.theme-bestsellers__subtitle { margin: 0 0 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); max-width: 40rem; }
.theme-heading--banner { font-size: 2rem; }
@media (min-width: 768px) { .theme-heading--banner { font-size: 2.5rem; } }
.theme-heading--contact { font-size: 2rem; }
@media (min-width: 768px) { .theme-heading--contact { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-heading--contact { font-size: 3.75rem; } }

.theme-section__header { margin-bottom: 3rem; }
.theme-section__header--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.theme-section__header--center { text-align: center; }
.theme-section__header--border {
	margin-bottom: 2.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border);
}
.theme-section__header--border .theme-eyebrow { margin-bottom: 0.75rem; }
.theme-section__header--border .theme-heading { margin-bottom: 0; }
.theme-section__header-aside { margin: 0; align-self: flex-end; }
.theme-section__subtext { max-width: 40rem; margin-top: 1rem; color: color-mix(in srgb, var(--foreground) 75%, transparent); line-height: 1.8; }
.theme-section__subtext--center { margin-left: auto; margin-right: auto; }

/* Lovable vertical rhythm — content stacks */
.theme-content-stack > * { margin-top: 0; margin-bottom: 0; }
.theme-content-stack > * + * { margin-top: 1rem; }
.theme-content-stack--loose > * + * { margin-top: 1.5rem; }
.theme-content-stack--spacious > * + * { margin-top: 2.5rem; }

/* ==========================================================================
   EVENTS
   ========================================================================== */
.theme-events__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .theme-events__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-events__image { position: relative; min-height: 320px; overflow: hidden; }
@media (min-width: 1024px) { .theme-events__image { min-height: 440px; } }
.theme-events__name { font-size: 1.75rem; margin-bottom: 1.5rem; font-weight: 300; }
.theme-events__meta { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.theme-events__meta li { display: flex; align-items: center; gap: 0.6rem; font-size: 14px; }
.theme-events__note { color: color-mix(in srgb, var(--foreground) 75%, transparent); line-height: 1.8; margin-bottom: 1.5rem; }
.theme-events__also { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 2.5rem; }
.theme-events__also h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.theme-events__upcoming-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.theme-events__upcoming-name { font-weight: 500; margin-bottom: 0.25rem; }
.theme-events__upcoming-meta { font-size: 12px; color: var(--muted-foreground); }
.theme-events__upcoming-add { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; background: none; border: none; padding: 0; color: inherit; }
.theme-events__download-all { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; background: none; border: none; color: inherit; padding: 0; }

.theme-deals { border-top: 1px solid var(--border); margin-top: 4rem; padding-top: 2.5rem; }
.theme-deals__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 768px) { .theme-deals__grid { grid-template-columns: repeat(3, 1fr); } }
.theme-deal-card { background: var(--forest-deep); }
.theme-deal-card__icon { margin-bottom: 1.25rem; }
.theme-deal-card__title { font-size: 1.5rem; font-weight: 300; line-height: 1.2; margin-bottom: 0.75rem; }
.theme-deal-card__detail { font-size: 14px; color: var(--muted-foreground); line-height: 1.6; }
.theme-deal-card__code { display: inline-block; margin-top: 1rem; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); padding: 0.25rem 0.75rem; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.theme-about__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .theme-about__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.theme-about__image { position: relative; aspect-ratio: 3 / 4; }
@media (min-width: 768px) { .theme-about__image { min-height: 560px; aspect-ratio: auto; } }
.theme-about__image img { object-position: 50% 65%; }
.theme-about__content > .theme-eyebrow { margin-bottom: 1.5rem; }
.theme-about__content > .theme-heading--about { margin-bottom: 2rem; }
.theme-about__body { margin-bottom: 1.25rem; line-height: 1.8; color: color-mix(in srgb, var(--foreground) 75%, transparent); }
.theme-about__content .theme-about__body:last-of-type { margin-bottom: 2rem; }

/* ==========================================================================
   CATEGORY TILES
   ========================================================================== */
.theme-tiles { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
@media (min-width: 768px) { .theme-tiles { grid-template-columns: 1fr 1fr; } }
.theme-tile { position: relative; background: var(--background); }
.theme-tile--link { display: block; color: inherit; text-decoration: none; }
.theme-tile__image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
@media (min-width: 768px) { .theme-tile__image-wrap { aspect-ratio: auto; height: calc(100vh - 14rem); } }
.theme-tile__image { transition: transform 0.7s var(--transition-smooth); }
.theme-tile:hover .theme-tile__image { transform: scale(1.03); }
.theme-tile__caption { padding: 2rem 1.5rem; }
@media (min-width: 768px) { .theme-tile__caption { padding: 1.5rem 2.5rem; } }
.theme-tile__eyebrow { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.theme-tile__label { font-size: 1rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }

/* ==========================================================================
   BANNER (ACOTAR-style + Lifestyle)
   ========================================================================== */
.theme-banner { position: relative; border-top: 1px solid var(--border); overflow: hidden; background: var(--ink); min-height: 26rem; display: flex; }
.theme-banner__gradient { position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--ink) 70%, transparent), color-mix(in srgb, var(--ink) 60%, transparent), color-mix(in srgb, var(--ink) 85%, transparent)); }
.theme-banner__gradient--dark { background: color-mix(in srgb, var(--ink) 60%, transparent); }
.theme-banner__inner {
	position: relative; z-index: 2; display: flex; justify-content: flex-end;
	padding-top: 4rem; padding-bottom: 4rem; padding-left: 1.5rem; padding-right: 1.5rem;
	width: 100%; align-items: center; box-sizing: border-box;
}
@media (min-width: 1024px) {
	.theme-banner__inner { padding-left: 2rem; padding-right: 2rem; }
}
.theme-banner--lifestyle { min-height: 60vh; align-items: flex-end; }
@media (min-width: 768px) { .theme-banner--lifestyle { min-height: 70vh; } }
.theme-banner__inner--bottom {
	align-items: flex-end; padding-top: 4rem; padding-bottom: 4rem; justify-content: flex-start;
}
@media (min-width: 768px) {
	.theme-banner__inner--bottom { padding-top: 5rem; padding-bottom: 5rem; }
}
.theme-banner__content { color: var(--paper); max-width: 28rem; }
.theme-banner--lifestyle .theme-banner__content > .theme-eyebrow {
	margin-bottom: 1.25rem; opacity: 0.9;
}
.theme-banner--lifestyle .theme-banner__content > .theme-heading--banner {
	font-weight: 300; font-size: 1.875rem; line-height: 1.1; margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
	.theme-banner--lifestyle .theme-banner__content > .theme-heading--banner { font-size: 3rem; }
}
.theme-banner__author { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.8; margin-bottom: 0.75rem; }
.theme-banner__body { margin: 0.75rem 0 1.25rem; line-height: 1.7; }
.theme-banner__price { font-size: 1.125rem; margin-bottom: 1.5rem; }
.theme-banner__cta { min-width: 200px; }

/* ==========================================================================
   STORE TOUR
   ========================================================================== */
#store-tour .theme-section__header--center { margin-bottom: 2.5rem; }
.theme-tour__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-tour__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.theme-tour__clip { position: relative; aspect-ratio: 9 / 16; border-radius: 2px; overflow: hidden; border: 1px solid var(--border); background: var(--mist); }
.theme-tour__poster { z-index: 0; }
.theme-tour__video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .motion-reduce-hide { display: none; } }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.theme-marquee { background: var(--foreground); color: var(--background); border-top: 1px solid var(--foreground); border-bottom: 1px solid var(--foreground); padding: 1.5rem 0; overflow: hidden; }
@media (min-width: 768px) { .theme-marquee { padding: 2rem 0; } }
.theme-marquee__track { display: flex; white-space: nowrap; animation: marquee 40s linear infinite; width: max-content; }
.theme-marquee__item { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: 1.875rem; padding: 0 2rem; }
@media (min-width: 768px) { .theme-marquee__item { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-marquee__item { font-size: 3.75rem; } }
.theme-marquee__sep { font-size: 1.5rem; opacity: 0.5; }
@media (min-width: 768px) { .theme-marquee__sep { font-size: 1.875rem; } }

/* ==========================================================================
   PRODUCT GRID / CARD
   ========================================================================== */
.theme-product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.5rem; align-items: stretch; }
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, 1fr); } }
.theme-product-grid--fixed4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .theme-product-grid--fixed4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-product-grid--fixed4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-product-grid--best { grid-template-columns: repeat(1, 1fr); max-width: 64rem; margin: 0 auto; gap: 2.5rem 3.5rem; }
@media (min-width: 640px) { .theme-product-grid--best { grid-template-columns: repeat(2, 1fr); } }

.theme-product-card-wrap { display: flex; }
.theme-product-card { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; }
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }

.theme-product-card__image {
	position: relative; aspect-ratio: 2 / 3; background: var(--secondary); overflow: hidden; margin-bottom: 1rem;
	border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); padding: 1rem;
	display: flex; align-items: center; justify-content: center;
}
.theme-product-card__image img { max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; transition: transform 0.7s var(--transition-smooth); }
.theme-product-card:hover .theme-product-card__image img { transform: scale(1.03); }
.theme-badge { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.25rem 0.6rem; font-size: 10px; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.18em; border-radius: 2px; z-index: 3; }
.theme-badge--soldout { background: var(--foreground); color: var(--background); }
.theme-badge--preorder { background: var(--accent); color: var(--background); }
.theme-badge--new { background: var(--primary); color: var(--primary-foreground); }
.theme-product-card__info { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 0.25rem; }
.theme-product-card__author, .theme-product-card__category { font-size: 12px; color: var(--muted-foreground); margin: 0; }
.theme-product-card__category { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.theme-product-card__name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 400; color: var(--foreground); transition: color 0.3s; margin: 0; }
.theme-product-card:hover .theme-product-card__name { color: var(--accent); }
.theme-product-card__price { font-size: 15px; color: var(--primary); margin: 0; }

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.theme-reviews__header { text-align: left; align-items: flex-end; }
.theme-reviews__stars { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.theme-icon-star { color: var(--border); }
.theme-icon-star.is-filled { color: var(--primary); }
.theme-icon-star.is-filled svg { fill: currentColor; }
.theme-reviews__count { margin-left: 0.5rem; font-size: 13px; color: var(--muted-foreground); }
.theme-reviews__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .theme-reviews__grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.theme-review-card { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 640px) { .theme-review-card { flex-direction: row; } }
.theme-review-card__image { width: 100%; height: 10rem; object-fit: cover; background: var(--secondary); }
@media (min-width: 640px) { .theme-review-card__image { width: 7rem; height: 7rem; flex-shrink: 0; } }
.theme-review-card__stars { display: flex; gap: 2px; margin-bottom: 0.5rem; }
.theme-review-card__text { font-size: 15px; color: color-mix(in srgb, var(--foreground) 80%, transparent); line-height: 1.625; margin-bottom: 0.75rem; }
.theme-review-card__meta { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0; }
.theme-review-card__link { margin-top: 0.5rem; display: inline-block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }

/* ==========================================================================
   SHOP FILTERS
   ========================================================================== */
.theme-shop__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.theme-shop__count { font-size: 13px; letter-spacing: 0.1em; }
.theme-shop__filter-toggle { display: inline-flex; align-items: center; gap: 0.4rem; background: none; border: none; color: inherit; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; }
.theme-shop__filter-toggle .theme-icon { transition: transform 0.3s; }
.theme-shop__filter-toggle.is-open .theme-icon { transform: rotate(180deg); }
.theme-shop__categories { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.theme-product-grid--shop { margin-top: 2.5rem; }
.theme-shop__cat-btn { background: none; border: none; padding: 0 0 2px; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; font-family: var(--font-body); color: var(--muted-foreground); border-bottom: 1px solid transparent; }
.theme-shop__cat-btn:hover { color: var(--foreground); }
.theme-shop__cat-btn.is-active { color: var(--foreground); border-bottom-color: var(--foreground); }
.theme-shop__filters { overflow: hidden; transition: max-height 0.3s ease; }
.theme-shop__filters[hidden] { display: none; }
.theme-shop__search {
	display: flex; align-items: center; gap: 0.75rem;
	margin: 1.5rem 0; max-width: 24rem;
	padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.theme-shop__search .theme-icon { flex-shrink: 0; pointer-events: none; }
.theme-shop__search-input {
	flex: 1; min-width: 0; padding: 0.5rem 0; background: transparent; border: none;
	border-radius: 0; color: var(--foreground); font-family: var(--font-body);
}
.theme-shop__search-input:focus { outline: none; }
.theme-shop__search:focus-within { border-bottom-color: var(--foreground); }
.theme-shop__price-filter { max-width: 24rem; }
.theme-shop__price-label { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem; display: flex; justify-content: space-between; }

.price-range-wrapper { position: relative; height: 1.5rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.range-track-bg { left: 0; right: 0; background: var(--border); }
.range-track-fill { background: var(--primary); }
.range-input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 2px solid var(--background); cursor: pointer; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 2px solid var(--background); cursor: pointer; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-shop-item.is-hidden-initial { display: none; }
.theme-shop-item.is-filtered-out { display: none !important; }
.theme-shop__empty { text-align: center; padding: 2rem 0; color: var(--muted-foreground); }
.theme-shop__show-more { display: block; margin: 2.5rem auto 0; background: none; border: none; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: inherit; }
.theme-shop__show-more.is-hidden { display: none; }

/* ==========================================================================
   FAQ ACCORDION (custom, matches src/components/ui/accordion.tsx behavior)
   ========================================================================== */
.theme-accordion__item { border-bottom: 1px solid var(--border); }
.theme-accordion__trigger {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	background: none; border: none; padding: 1.25rem 0; text-align: left; font-size: 15px; font-family: var(--font-body); color: inherit;
}
.theme-accordion__chevron { transition: transform 0.3s; flex-shrink: 0; }
.theme-accordion__trigger[aria-expanded="true"] .theme-accordion__chevron { transform: rotate(180deg); }
.theme-accordion__panel { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 0.3s ease; }
.theme-accordion__panel.is-open { grid-template-rows: 1fr; }
.theme-accordion__panel-inner { min-height: 0; overflow: hidden; }
.theme-accordion__panel-inner p { padding-bottom: 1.25rem; font-size: 15px; color: var(--muted-foreground); line-height: 1.6; }
.theme-accordion--product .theme-accordion__panel-inner { padding-bottom: 1.25rem; }

/* ==========================================================================
   CONTACT CTA SECTION
   ========================================================================== */
.theme-contact-cta { position: relative; overflow: hidden; border-top: 1px solid var(--border); background: var(--background); min-height: 32rem; display: flex; align-items: center; }
.theme-contact-cta__bg-image { z-index: 0; }
.theme-contact-cta__bg-video { z-index: 1; }
.theme-contact-cta__overlay { position: absolute; inset: 0; z-index: 2; background: color-mix(in srgb, var(--background) 85%, transparent); }
.theme-contact-cta__inner {
	position: relative; z-index: 3; text-align: center; max-width: 40rem; margin: 0 auto;
	padding: 5rem 1.5rem; box-sizing: border-box;
}
@media (min-width: 768px) { .theme-contact-cta__inner { padding: 7rem 1.5rem; } }
@media (min-width: 1024px) { .theme-contact-cta__inner { padding-left: 2rem; padding-right: 2rem; } }
.theme-contact-cta__inner .theme-eyebrow { margin-bottom: 1.5rem; }
.theme-contact-cta__inner .theme-heading--contact { margin-bottom: 1.5rem; }
.theme-contact-cta__body { margin: 0 0 2.5rem; line-height: 1.8; color: color-mix(in srgb, var(--foreground) 75%, transparent); font-size: 1rem; }
.theme-contact-cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 0; }
.theme-contact-cta__footer { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 2rem; font-size: 13px; color: var(--muted-foreground); flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); }
.site-footer__inner { padding-top: 2.5rem; padding-bottom: 1rem; }
@media (min-width: 768px) { .site-footer__inner { padding-top: 3rem; padding-bottom: 1.25rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.site-footer__logo-wrap { display: flex; align-items: center; height: 4rem; margin-bottom: 1rem; }
.site-footer__logo { height: 100% !important; width: auto !important; max-height: 100%; object-fit: contain; margin-bottom: 0; }
.site-footer__tagline { font-size: 13px; color: var(--muted-foreground); max-width: 20rem; line-height: 1.6; margin-top: 0.75rem; }
.site-footer__heading { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 1.25rem; }
.site-footer__list { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__link { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-foreground); transition: color 0.3s; display: inline-flex; align-items: center; gap: 0.5rem; }
.site-footer__link:hover { color: var(--foreground); }
.site-footer__bottom { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.5rem; justify-content: space-between; font-size: 12px; color: var(--muted-foreground); }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }

/* ==========================================================================
   CART DRAWER + OVERLAY
   ========================================================================== */
#theme-cart-overlay {
	position: fixed; inset: 0; background: color-mix(in srgb, var(--foreground) 20%, transparent);
	z-index: 55; opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity 0.3s var(--transition-smooth), visibility 0.3s var(--transition-smooth);
}
body.cart-open #theme-cart-overlay {
	opacity: 1; visibility: visible; pointer-events: auto;
}
#theme-cart-drawer {
	position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem; background: var(--background);
	z-index: 60; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column;
	opacity: 0; transform: translateY(20px); visibility: hidden; pointer-events: none;
	transition: opacity 0.4s var(--transition-smooth), transform 0.4s var(--transition-smooth), visibility 0.4s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer {
	opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto;
}
body.cart-open { overflow: hidden; }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.theme-cart-drawer__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { background: none; border: none; color: inherit; padding: 0.25rem; cursor: pointer; transition: opacity 0.3s; }
.theme-cart-drawer__close:hover { opacity: 0.6; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; }
.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__thumb { width: 5rem; height: 6rem; background: var(--secondary); overflow: hidden; flex-shrink: 0; display: block; }
.theme-cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__name { font-size: 14px; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-item__price { font-size: 14px; color: var(--muted-foreground); margin-top: 2px; }
.theme-cart-item__variation { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 2px; }
.theme-cart-item__note { font-size: 12px; font-style: italic; color: var(--muted-foreground); margin-top: 4px; line-height: 1.4; }
.theme-cart-item__qty-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.6rem; }
.theme-cart-item__qty { display: inline-flex; align-items: center; gap: 0.6rem; border: 1px solid var(--border); padding: 0.2rem 0.5rem; }
.theme-cart-item__qty button { background: none; border: none; color: inherit; display: flex; }
.theme-cart-item__qty-value { font-size: 14px; width: 1.5rem; text-align: center; }
.theme-cart-item__remove { margin-left: auto; font-size: 12px; text-decoration: underline; background: none; border: none; color: var(--muted-foreground); white-space: nowrap; }
.theme-cart-item__remove:hover { color: var(--foreground); }
.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; }
.theme-cart-drawer__shipping-note { font-size: 12px; color: var(--muted-foreground); text-align: center; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: var(--btn-radius); font-family: var(--font-body); font-size: var(--btn-font-size); letter-spacing: var(--btn-letter-spacing); text-transform: var(--btn-text-transform); font-weight: var(--btn-font-weight); padding: 0.85rem 1.5rem; border: 1px solid transparent; cursor: pointer; }
.theme-btn--primary { background: var(--foreground); color: var(--background); }
.theme-btn--outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.theme-btn--lg { width: 100%; padding: 1rem 1.5rem; }
.theme-btn--sm { padding: 0.5rem 1rem; font-size: 10px; width: 100%; }

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart */
.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; }

/* ==========================================================================
   CONTACT MODAL
   ========================================================================== */
.theme-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90; display: none; }
.theme-modal-overlay.is-open { display: block; animation: fadeIn 0.3s var(--transition-smooth); }
.theme-modal { position: fixed; inset: 0; z-index: 91; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.theme-modal.is-open { display: flex; }
.theme-modal__panel { background: var(--background); border: 1px solid var(--border); max-width: 32rem; width: 100%; max-height: 90vh; overflow-y: auto; padding: 2rem; position: relative; border-radius: var(--card-radius); animation: slideUp 0.4s var(--transition-smooth); }
.theme-modal__close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: inherit; }
.theme-modal__title { font-size: 1.5rem; margin-bottom: 0.75rem; }
.theme-modal__description { color: var(--muted-foreground); margin-bottom: 1.5rem; line-height: 1.6; }
.theme-modal__contact-links { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.theme-modal__contact-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 14px; color: var(--muted-foreground); }
.theme-form-row { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.theme-form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .theme-form-grid { grid-template-columns: 1fr 1fr; } }
.theme-form-grid .theme-form-row { margin-bottom: 0; }
.theme-form-row label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.theme-input { width: 100%; padding: 0.65rem 0.75rem; background: var(--background); border: 1px solid var(--border); font-size: 15px; font-family: var(--font-body); border-radius: var(--radius); color: var(--foreground); }
.theme-input::placeholder { color: var(--muted-foreground); }
.theme-input:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent); }
.theme-modal__submit { width: 100%; margin-top: 0.5rem; }
.theme-modal__success { text-align: center; padding: 2rem 0; }
.theme-modal__success-icon { width: 3.5rem; height: 3.5rem; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; color: var(--primary-foreground); }
.theme-modal__success-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-modal__success-body { color: var(--muted-foreground); }

/* ==========================================================================
   ORDERS PAUSED BANNER
   ========================================================================== */
.theme-paused-banner {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
	background: var(--forest-deep); border-top: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
	box-shadow: 0 -8px 40px -12px rgba(0,0,0,0.6);
	transform: translateY(100%); opacity: 0; transition: transform 0.5s cubic-bezier(0.25,0.4,0.25,1), opacity 0.5s cubic-bezier(0.25,0.4,0.25,1);
}
.theme-paused-banner.is-visible { transform: translateY(0); opacity: 1; }
.theme-paused-banner__accent { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, color-mix(in srgb, var(--gold) 60%, transparent), transparent); }
.theme-paused-banner__content {
	display: flex; align-items: flex-start; gap: 0.75rem; flex: 1; min-width: 0;
}
.theme-paused-banner__inner {
	display: flex; flex-direction: column; align-items: stretch; gap: 1rem;
	padding-top: 1rem; padding-bottom: 1rem;
}
@media (min-width: 768px) {
	.theme-paused-banner__inner {
		flex-direction: row; align-items: center; justify-content: space-between;
		flex-wrap: nowrap; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem;
	}
}
.theme-paused-banner__icon {
	display: none; width: 2rem; height: 2rem; border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
	background: color-mix(in srgb, var(--gold) 10%, transparent); color: var(--gold);
	align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.125rem;
}
@media (min-width: 640px) { .theme-paused-banner__icon { display: inline-flex; } }
.theme-paused-banner__text { min-width: 0; }
.theme-paused-banner__title { font-family: var(--font-display); font-size: 1.125rem; color: var(--cream); margin-bottom: 0.25rem; line-height: 1.2; }
@media (min-width: 768px) { .theme-paused-banner__title { font-size: 1.25rem; } }
.theme-paused-banner__body { font-size: 14px; color: var(--muted-foreground); line-height: 1.6; max-width: 36rem; }
.theme-paused-banner__actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; flex-shrink: 0; }
.theme-paused-banner__cta { font-size: 10px; padding: 0.6rem 1rem; white-space: nowrap; }
@media (min-width: 768px) { .theme-paused-banner__cta { padding: 0.6rem 1.25rem; } }
.theme-paused-banner__close { background: none; border: none; color: var(--muted-foreground); padding: 0.25rem; flex-shrink: 0; }

/* ==========================================================================
   ICONS
   ========================================================================== */
.theme-icon { width: 20px; height: 20px; flex-shrink: 0; }
.theme-icon--xs { width: 12px; height: 12px; }
.theme-icon--sm { width: 14px; height: 14px; }
.theme-icon--md { width: 16px; height: 16px; }
.theme-icon--review { width: 14px; height: 14px; }
.theme-icon--lg { width: 48px; height: 48px; }
.theme-icon--accent { color: var(--accent); }

/* ==========================================================================
   404
   ========================================================================== */
.theme-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--mist); }
.theme-404__inner { text-align: center; padding: 2rem 1.5rem; }
.theme-404__title { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.theme-404__body { font-size: 1.25rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.theme-404__link { text-decoration: underline; color: var(--primary); }

/* ==========================================================================
   SINGLE PRODUCT (Lovable ProductDetail parity)
   ========================================================================== */
.theme-single-product .theme-breadcrumb {
	padding: 1.5rem 0; font-size: 13px; letter-spacing: 0.2em;
	text-transform: uppercase; color: var(--muted-foreground); font-family: var(--font-body);
}
.theme-breadcrumb a { transition: color 0.3s; }
.theme-breadcrumb a:hover { color: var(--foreground); }
.theme-breadcrumb__sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb__current { color: var(--foreground); }

.theme-product-layout {
	display: grid; grid-template-columns: 1fr; gap: 2.5rem;
	padding-top: 1rem; padding-bottom: 6rem; min-width: 0; align-items: start;
}
@media (min-width: 1024px) {
	.theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; }
}
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-info { position: relative; align-self: start; }
@media (min-width: 1024px) {
	.theme-product-info { position: sticky; top: 7rem; padding-left: 1rem; }
}

/* Gallery — images fill container at height:100% */
.theme-product-gallery__mobile { display: block; }
.theme-product-gallery__desktop { display: none; }
@media (min-width: 1024px) {
	.theme-product-gallery__mobile { display: none; }
	.theme-product-gallery__desktop { display: flex; flex-direction: column; gap: 1rem; }
}
.theme-product-gallery__mobile-main,
.theme-product-gallery__desktop-item {
	position: relative; width: 100%; background: var(--secondary); overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.theme-product-gallery__mobile-main { aspect-ratio: 3 / 4; }
.theme-product-gallery__desktop-item { aspect-ratio: 2 / 3; max-width: 32rem; margin: 0 auto; }
.theme-product-gallery__mobile-img,
.theme-product-gallery__desktop-img {
	position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; display: block;
}
.theme-product-thumbnails--mobile {
	display: flex; flex-wrap: nowrap; gap: 0.75rem; margin-top: 1rem;
	max-width: 100%; overflow-x: auto; padding-bottom: 0.25rem;
}
.theme-thumbnail {
	position: relative; width: 5rem; height: 5rem; padding: 0; border: none;
	background: var(--secondary); flex-shrink: 0; overflow: hidden; cursor: pointer;
}
.theme-thumbnail img {
	width: 100%; height: 100%; object-fit: cover; opacity: 0.6;
	transition: opacity 0.3s var(--transition-smooth);
}
.theme-thumbnail:hover img,
.theme-thumbnail.is-active img { opacity: 1; }
.theme-thumbnail::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: var(--foreground); opacity: 0; transition: opacity 0.3s var(--transition-smooth);
}
.theme-thumbnail.is-active::after { opacity: 1; }

/* Info column */
.theme-product-info__category {
	font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase;
	color: var(--muted-foreground); margin: 0; font-family: var(--font-body);
}
.theme-product-info__title {
	font-family: var(--font-display); font-weight: 400; font-size: 1.875rem;
	line-height: 1.1; margin: 0.75rem 0 1.25rem;
}
@media (min-width: 768px) { .theme-product-info__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-info__title { font-size: 2.75rem; } }
.theme-product-info__price {
	font-size: 1.25rem; line-height: 1.4; margin: 0 0 1.5rem;
	font-family: var(--font-body); color: var(--foreground);
}
.theme-product-info__excerpt {
	color: var(--muted-foreground); line-height: 1.625; margin: 0 0 2rem;
	font-size: 1rem; font-family: var(--font-body);
}
.theme-product-qty-label { margin-bottom: 0.75rem; }
.theme-product-qty-label h3 {
	font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--muted-foreground); margin: 0; font-family: var(--font-body); font-weight: 400;
}
.theme-product-addons { margin-bottom: 1.5rem; }
.theme-product-addons__label {
	font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--muted-foreground); margin: 0 0 0.75rem; font-family: var(--font-body); font-weight: 400;
}
.theme-product-addons__optional { opacity: 0.6; }
.theme-product-addons__options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.theme-addon-btn {
	padding: 0.5rem 1rem; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
	border: 1px solid var(--border); border-radius: 999px; background: transparent; color: inherit;
	font-family: var(--font-body); transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
.theme-addon-btn:hover { border-color: color-mix(in srgb, var(--foreground) 60%, transparent); }
.theme-addon-btn.is-active { background: var(--foreground); color: var(--background); border-color: var(--foreground); }

/* Variation pills */
.theme-variations { margin-bottom: 0; }
.theme-variation-field { margin-bottom: 1.5rem; }
.theme-variation-field__label {
	font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--muted-foreground); margin: 0 0 0.75rem; font-family: var(--font-body); font-weight: 400;
}
.theme-variation-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-variation-pill {
	padding: 0.5rem 1rem; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
	border: 1px solid var(--border); border-radius: 999px; background: transparent; color: inherit;
	font-family: var(--font-body); transition: border-color 0.3s, background-color 0.3s, color 0.3s; cursor: pointer;
}
.theme-variation-pill:hover { border-color: color-mix(in srgb, var(--foreground) 60%, transparent); }
.theme-variation-pill.is-active { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.theme-variation-select-wrap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.theme-variation-select-hidden { position: absolute; left: -9999px; width: auto; height: auto; opacity: 0; }
.variations_form table.variations { display: none !important; }
.single_variation_wrap .woocommerce-variation,
.single_variation_wrap .woocommerce-variation-price,
.single_variation_wrap .woocommerce-variation-availability,
.variations_form .woocommerce-variation-price {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
.theme-product-info__price-value { display: inline-block; }
.theme-product-note-field { margin-bottom: 1.5rem; }
.theme-product-note-field .theme-input,
.theme-product-addons__note {
	padding: 0.75rem 1rem; font-size: 1rem; border-radius: 0;
	transition: border-color 0.3s var(--transition-smooth);
}
.theme-product-note-field .theme-input:focus,
.theme-product-addons__note:focus {
	outline: none; border-color: var(--foreground); box-shadow: none;
}

.theme-btn-add-to-cart {
	display: inline-flex; align-items: center; justify-content: center; width: 100%;
	background: var(--foreground); color: var(--background); border: 1px solid var(--foreground);
	padding: 1rem 1.5rem; min-height: 0;
	font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
	font-family: var(--font-body); font-weight: 500;
	transition: background-color 0.3s, color 0.3s, opacity 0.3s; border-radius: var(--radius); cursor: pointer;
}
.theme-btn-add-to-cart:hover { background: color-mix(in srgb, var(--foreground) 90%, transparent); color: var(--background); }
.theme-btn-add-to-cart:disabled, .theme-btn-add-to-cart.disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--border); }
.theme-quantity-wrapper button {
	background: none; border: none; color: inherit; padding: 0.5rem 0.75rem;
	display: flex; cursor: pointer; transition: background-color 0.3s;
}
.theme-quantity-wrapper button:hover { background: var(--secondary); }
.theme-qty-input {
	width: 2.75rem; min-width: 2.75rem; text-align: center; border: none; background: none;
	color: inherit; font-family: var(--font-body); font-size: 14px; -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-product-info__stock.is-out {
	color: var(--destructive, #a33); font-size: 13px; margin-bottom: 1rem;
	text-transform: uppercase; letter-spacing: 0.1em;
}
.theme-accordion--product {
	margin-top: 2.5rem; border-top: 1px solid var(--border);
}
.theme-accordion--product .theme-accordion__item { border-bottom: 1px solid var(--border); }
.theme-accordion--product .theme-accordion__item:last-child { border-bottom: none; }
.theme-accordion--product .theme-accordion__trigger {
	padding: 1.25rem 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
}
.theme-accordion--product .theme-accordion__panel-inner {
	padding-bottom: 1.5rem; font-family: var(--font-body);
}
.theme-accordion--product .theme-product-info__description,
.theme-accordion--product .theme-accordion__panel-inner p {
	font-size: 15px; color: var(--muted-foreground); line-height: 1.625;
}
.theme-product-info__description { margin-bottom: 1rem; white-space: pre-line; }
.theme-product-info__details-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0; }
.theme-product-info__details-list li {
	display: flex; align-items: flex-start; gap: 0.75rem;
	font-size: 15px; color: var(--muted-foreground); line-height: 1.625;
}
.theme-dot { width: 4px; height: 4px; background: var(--foreground); border-radius: 50%; margin-top: 0.55rem; flex-shrink: 0; }

.theme-related-products {
	padding: 5rem 0; border-top: 1px solid var(--border); margin-top: 0;
}
.theme-related-products__header { text-align: center; margin-bottom: 3rem; }
.theme-related-products__eyebrow {
	font-family: var(--font-display); font-style: italic; font-size: 1rem;
	color: var(--muted-foreground); margin: 0 0 0.5rem;
}
.theme-related-products .theme-heading--collection { font-weight: 400; }

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

.single_add_to_cart_button.button:not(.theme-btn-paper):not(.theme-btn-add-to-cart),
.add_to_cart_button.button:not(.theme-btn-paper):not(.theme-btn-add-to-cart),
a.single_add_to_cart_button:not(.theme-btn-add-to-cart),
a.add_to_cart_button:not(.theme-btn-paper) {
	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: none !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
	flex: 1 1 auto;
	min-width: 160px;
}
.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;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

/* Card compact button (product cards use full label button, no override needed) */
.theme-product-card .add_to_cart_button.ajax_add_to_cart { position: relative; z-index: 3; pointer-events: auto; }

/* Variation table stacking */
.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; }
.single-product .variations tbody td.value { padding-top: 0; }
.single-product .theme-add-to-cart-area,
.single-product .theme-variation-add-to-cart,
.single-product .theme-add-to-cart-area--variable {
	display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin-bottom: 1rem;
}
.single-product .theme-quantity-wrapper { align-self: flex-start; }
.single-product .theme-btn-add-to-cart,
.single-product .single_add_to_cart_button.theme-btn-add-to-cart { width: 100%; flex: none; min-width: 0; }
.single-product .single_variation_wrap { margin-top: 0; }

/* WooCommerce notices scoping (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border: 1px solid var(--border); padding: 1rem 1.25rem; border-radius: var(--radius); font-size: 14px; list-style: none; margin: 0 0 1.5rem;
}

/* ==========================================================================
   ARCHIVE / SHOP PAGE (WooCommerce default archive template)
   ========================================================================== */
.theme-shop-archive { padding-top: var(--header-height); }
.theme-archive-header { margin-bottom: 2rem; padding-top: 2rem; }
.theme-generic-page { padding-top: var(--header-height); padding-bottom: 4rem; }
.page-title { font-size: 2rem; margin-bottom: 1.5rem; padding-top: 2rem; }
.entry-content { line-height: 1.75; }

/* ==========================================================================
   CHECKOUT BLOCK (Section 13)
   ========================================================================== */
body.woocommerce-checkout .theme-checkout-page {
	padding-top: var(--header-height);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .theme-checkout-page__title,
body.woocommerce-checkout .page-title {
	max-width: 80rem;
	margin: 0 auto 0.75rem;
	padding: 0.35rem 1.5rem 0;
	font-size: 2rem;
	line-height: 1.2;
}

body.woocommerce-checkout .theme-checkout-page__content,
body.woocommerce-checkout .entry-content {
	max-width: 100%;
	width: 100%;
}

/* Fallback when checkout still uses the generic page wrapper */
body.woocommerce-checkout main.theme-generic-page .theme-section__inner {
	padding-top: 0;
	padding-bottom: 0;
}

/* One top-level 2-column grid — equal width, no nested sidebar grids */
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout,
body.woocommerce-checkout form.wc-block-checkout > .wc-block-components-sidebar-layout {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: var(--checkout-gap) !important;
	align-items: start !important;
	width: 100% !important;
	max-width: 80rem !important;
	margin: 0 auto !important;
	padding: 0 1.5rem !important;
	box-sizing: border-box !important;
	flex-direction: unset !important;
	flex-wrap: nowrap !important;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout,
	body.woocommerce-checkout form.wc-block-checkout > .wc-block-components-sidebar-layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	}
}

body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout > .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout > .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout > .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout > .wc-block-checkout__sidebar,
body.woocommerce-checkout form.wc-block-checkout > .wc-block-components-sidebar-layout > .wc-block-components-main,
body.woocommerce-checkout form.wc-block-checkout > .wc-block-components-sidebar-layout > .wc-block-checkout__main,
body.woocommerce-checkout form.wc-block-checkout > .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
body.woocommerce-checkout form.wc-block-checkout > .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar {
	min-width: 0 !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

/* Flatten any nested sidebar layouts inside checkout columns */
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-components-sidebar-layout:not(.wc-block-checkout),
body.woocommerce-checkout form.wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar-layout {
	display: block !important;
	grid-template-columns: none !important;
	gap: 0 !important;
	flex-direction: column !important;
	width: 100% !important;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-country-input select,
body.woocommerce-checkout .wc-block-components-state-input select,
body.woocommerce-checkout .wc-block-components-address-form select,
body.woocommerce-checkout select.wc-block-components-select-control,
body.woocommerce-checkout .wc-block-components-form select,
body.woocommerce-checkout .components-custom-select-control__button,
body.woocommerce-checkout .wc-block-components-combobox-control input.components-combobox-control__input {
	width: 100% !important;
	max-width: none !important;
	min-height: 3rem !important;
	font-family: var(--font-body) !important;
	font-size: 16px !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius) !important;
	background: var(--background) !important;
	color: var(--foreground) !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-country-input select:focus,
body.woocommerce-checkout .wc-block-components-state-input select:focus,
body.woocommerce-checkout .wc-block-components-address-form select:focus,
body.woocommerce-checkout select.wc-block-components-select-control:focus,
body.woocommerce-checkout .components-custom-select-control__button:focus {
	outline: none !important;
	border-color: var(--primary) !important;
	box-shadow: 0 0 0 1px var(--primary) !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--secondary) !important;
	border-radius: var(--card-radius) !important;
	padding: var(--section-padding) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--foreground) !important; color: var(--background) !important; border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important; letter-spacing: 0.15em !important; text-transform: uppercase !important;
}
body.woocommerce-account .page-title,
body.woocommerce-cart .page-title {
	max-width: 80rem; margin: 0 auto 1rem; padding: 0.5rem 1.5rem 0;
}

/* Cart / My Account width parity (Section 13.7) */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }

/* ==========================================================================
   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 .woocommerce-order-details table { width: 100%; table-layout: fixed; }
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-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { padding: 0 0 1rem 0; font-size: 1.5rem; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; }
