/* =========================================================================
   Light & Shadow — theme stylesheet
   ========================================================================= */

:root {
	--color-background: #0b0f19;
	--color-foreground: #f5f1eb;
	--color-card: #131825;
	--color-primary: #d1a861;
	--color-primary-foreground: #0b0f19;
	--color-secondary: #181f2f;
	--color-muted: #2d3443;
	--color-muted-foreground: #bcb6a9;
	--color-accent: #8c2c2f;
	--color-destructive: #ab2b2f;
	--color-border: #222939;
	--logo-height: 44px;

	--font-display: 'Archivo Black', sans-serif;
	--font-body: 'Hind', sans-serif;
	--font-serif: 'Cormorant Garamond', serif;

	--radius: 0px;
	--btn-radius: 0px;
	--btn-height: 3rem;
	--btn-padding: 0 2rem;
	--btn-font-size: 0.8125rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.2em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.5rem;
	--color-button-text: var(--color-primary-foreground);
	--header-height: 80px;
	--checkout-gap: 2rem;
	--shadow-elevated: 0 10px 40px -8px color-mix(in srgb, var(--color-primary) 25%, transparent);
	--container-max: 1280px;
	--ease-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);
}

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

img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.theme-product-main-image):not(.theme-product-thumb img) {
	max-width: 100%;
	height: auto;
	display: block;
}
.cover-img, .hero-bg-img, .product-card-img, .theme-product-main-image, .theme-product-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

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

.site-main { min-height: 60vh; }
body.theme-no-hero .site-main { padding-top: var(--header-height); }

/* ------------------------------- Buttons -------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: var(--btn-height);
	padding: var(--btn-padding);
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	border: 1px solid transparent;
	border-radius: var(--btn-radius);
	white-space: nowrap;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-primary, .btn.btn-primary { background: var(--color-primary); color: var(--color-primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
	background: transparent;
	border-color: color-mix(in srgb, var(--color-foreground) 30%, transparent);
	color: var(--color-foreground);
}
.btn-outline:hover { background: var(--color-foreground); color: var(--color-background); }
.btn-hero-outline { border-color: color-mix(in srgb, var(--color-foreground) 30%, transparent); }
.theme-hover-scale { transition: transform 0.2s ease; }
.theme-hover-scale:hover { transform: scale(1.05); }
.theme-hover-scale:active { transform: scale(0.97); }

/* ---------------------------- Section heading tokens --------------------- */
.section-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.75rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--color-primary);
	font-weight: 600;
	margin-bottom: 1.25rem;
}
.section-kicker--center { display: flex; justify-content: center; margin: 0 auto 0.75rem; }
.section-kicker__line { height: 1px; width: 2.5rem; background: var(--color-primary); display: inline-block; }
.section-kicker__icon { color: var(--color-primary); }
.text-accent-gold { color: var(--color-primary); }
.text-serif-italic { font-family: var(--font-serif); font-style: italic; }

.section-heading { font-family: var(--font-display); line-height: 1.05; }
.about-section__heading { font-size: 2.25rem; margin-bottom: 1.5rem; }
.author-section__heading { font-size: 2.25rem; margin-bottom: 1.5rem; }
.shop-heading { font-size: 2.75rem; margin: 0.75rem 0 1rem; }
.novel-section__heading { font-size: 2.25rem; margin-bottom: 1.5rem; }
.story-section__heading { font-size: 2.5rem; margin: 0.75rem 0 1rem; }
.devotional-section__heading { font-size: 2.25rem; margin-bottom: 2.5rem; }
.pricing-section__heading { font-size: 2.75rem; margin: 0.75rem 0 1rem; }
.contact-section__heading { font-size: 2.75rem; margin: 1.5rem 0; line-height: 0.95; }
@media (min-width: 768px) {
	.about-section__heading, .author-section__heading, .novel-section__heading { font-size: 3.5rem; }
	.shop-heading, .story-section__heading, .pricing-section__heading { font-size: 4rem; }
	.devotional-section__heading { font-size: 3.25rem; }
	.contact-section__heading { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
	.about-section__heading, .author-section__heading, .novel-section__heading { font-size: 4rem; }
	.shop-heading, .story-section__heading, .pricing-section__heading { font-size: 4.75rem; }
	.contact-section__heading { font-size: 5.5rem; }
}

/* ------------------------------- Reveal animations ----------------------- */
.reveal-up, .reveal-fade, .reveal-scale, .reveal-item, .reveal-up-slow {
	opacity: 0;
	will-change: opacity, transform;
}
.reveal-up, .reveal-item { transform: translateY(40px); transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }
.reveal-up-slow { transform: translateY(80px); transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth); }
.reveal-fade { transition: opacity 0.8s var(--ease-smooth); }
.reveal-scale { transform: scale(0.95); transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth); }

.reveal-up.is-visible, .reveal-item.is-visible, .reveal-up-slow.is-visible { opacity: 1; transform: translateY(0); }
.reveal-fade.is-visible { opacity: 1; }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

body.is-customizer .reveal-up,
body.is-customizer .reveal-item,
body.is-customizer .reveal-up-slow,
body.is-customizer .reveal-fade,
body.is-customizer .reveal-scale {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-up, .reveal-item, .reveal-up-slow, .reveal-fade, .reveal-scale,
	.theme-marquee__track, .theme-hover-scale, * {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes theme-scale-check { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes theme-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes theme-spin { to { transform: rotate(360deg); } }
@keyframes theme-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes theme-pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.4; } }

.animate-fade-in { animation: theme-fade-in 0.6s var(--ease-smooth) forwards; }
.animate-slide-up { animation: theme-slide-up 0.6s var(--ease-smooth) forwards; }

/* ------------------------------- Page loader ------------------------------ */
#theme-page-loader {
	position: fixed; inset: 0; z-index: 200;
	display: flex; align-items: center; justify-content: center;
	background: var(--color-background);
	transition: opacity 0.6s var(--ease-smooth);
}
#theme-page-loader.is-hidden { opacity: 0; pointer-events: none; }
.theme-page-loader__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.theme-page-loader__rings { position: relative; width: 4rem; height: 4rem; }
.theme-page-loader__ring { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); }
.theme-page-loader__ring--outer { inset: 0; animation: theme-spin 8s linear infinite; }
.theme-page-loader__ring--inner { inset: 0.5rem; border-color: color-mix(in srgb, var(--color-primary) 60%, transparent); animation: theme-spin-reverse 6s linear infinite; }
.theme-page-loader__dot { position: absolute; top: 50%; left: 50%; width: 0.5rem; height: 0.5rem; margin: -0.25rem; background: var(--color-primary); animation: theme-pulse-dot 1.4s ease-in-out infinite; }
.theme-page-loader__label { display: flex; align-items: center; gap: 0.75rem; }
.theme-page-loader__line { height: 1px; width: 1.5rem; background: var(--color-primary); }
.theme-page-loader__text { font-size: 10px; letter-spacing: 0.45em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; }

#theme-scroll-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 2px;
	background: var(--color-primary);
	transform-origin: 0 50%;
	transform: scaleX(0);
	z-index: 60;
	pointer-events: none;
	box-shadow: 0 0 12px color-mix(in srgb, var(--color-primary) 60%, transparent);
	transition: transform 0.1s linear;
}

/* ------------------------------- Header ----------------------------------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-solid {
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(6px);
	border-bottom-color: var(--color-border);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 1024px) { .site-nav { height: 80px; } }

.site-brand { display: flex; align-items: center; gap: 0.75rem; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; object-fit: contain; }
.site-logo-text { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.15em; text-transform: uppercase; }
.site-brand-name {
	display: none;
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-foreground);
}
.site-header:not(.is-solid) .site-brand-name { color: #fff; }
@media (min-width: 640px) { .site-brand-name { display: block; } }

.site-nav-desktop { display: none; }
@media (min-width: 1024px) { .site-nav-desktop { display: flex; align-items: center; gap: 1.5rem; } }
.theme-nav-list { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.theme-nav-link {
	position: relative;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 600;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	transition: color 0.3s ease;
}
.site-header:not(.is-solid) .theme-nav-link { color: rgba(255,255,255,0.8); }
.theme-nav-link:hover { color: var(--color-foreground); }
.site-header:not(.is-solid) .theme-nav-link:hover { color: #fff; }
.theme-nav-link::after {
	content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px;
	background: var(--color-primary); transform: scaleX(0); transform-origin: left;
	transition: transform 0.3s var(--ease-smooth);
}
.theme-nav-link:hover::after { transform: scaleX(1); }

.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-cart-toggle { position: relative; padding: 0.5rem; color: var(--color-foreground); transition: color 0.2s ease; }
.site-header:not(.is-solid) .theme-cart-toggle { color: #fff; }
.theme-cart-toggle:hover { color: var(--color-primary); }
.theme-cart-count {
	position: absolute; top: -2px; right: -2px;
	min-width: 1.25rem; height: 1.25rem; padding: 0 3px;
	display: flex; align-items: center; justify-content: center;
	font-size: 10px; font-weight: 700;
	background: var(--color-primary); color: var(--color-primary-foreground);
}
.theme-cart-count:empty { display: none; }

.theme-mobile-toggle { padding: 0.5rem; color: var(--color-foreground); }
.site-header:not(.is-solid) .theme-mobile-toggle { color: #fff; }
.theme-mobile-toggle .icon-close { display: none; }
.theme-mobile-toggle.is-open .icon-menu { display: none; }
.theme-mobile-toggle.is-open .icon-close { display: block; }
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }

.site-nav-mobile {
	display: none;
	border-top: 1px solid var(--color-border);
	padding: 1rem 0;
}
.site-nav-mobile.is-open { display: block; animation: theme-fade-in 0.3s var(--ease-smooth); }
.theme-nav-list-mobile { display: flex; flex-direction: column; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.theme-nav-list-mobile .menu-item { display: block; width: 100%; }
.theme-nav-list-mobile a,
.theme-nav-list-mobile .theme-nav-link {
	display: block;
	text-align: left;
	padding: 0.5rem 0;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 600;
	color: var(--color-foreground);
	transition: color 0.2s ease;
}
.theme-nav-list-mobile a:hover,
.theme-nav-list-mobile .theme-nav-link:hover { color: var(--color-primary); }
.theme-nav-list-mobile .theme-nav-link::after { display: none; }
@media (min-width: 1024px) { .site-nav-mobile { display: none !important; } }

/* ------------------------------- Hero -------------------------------------- */
.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--color-background);
}
.hero-section__media { position: absolute; inset: 0; }
.hero-section__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-section__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-background) 60%, transparent); }
.hero-section__gradient {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to bottom,
		color-mix(in srgb, var(--color-background) 60%, transparent) 0%,
		color-mix(in srgb, var(--color-background) 40%, transparent) 50%,
		color-mix(in srgb, var(--color-background) 95%, transparent) 100%);
}
.hero-section__content { position: relative; z-index: 10; text-align: center; padding: 5rem 0; }
.hero-section__kicker { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.hero-section__kicker-line { height: 1px; width: 2.5rem; background: var(--color-primary); display: inline-block; }
.hero-section__kicker-text { font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; }
.hero-section__title-mask { overflow: hidden; margin-bottom: 0.5rem; }
.hero-section__title { font-family: var(--font-display); font-size: 2.5rem; line-height: 1.2; padding: 0.25rem 0; color: var(--color-foreground); }
@media (min-width: 768px) { .hero-section__title { font-size: 4rem; } }
@media (min-width: 1024px) { .hero-section__title { font-size: 6rem; } }
.hero-section__subtitle { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); max-width: 36rem; margin: 2rem auto 2.5rem; font-size: 1rem; }
@media (min-width: 768px) { .hero-section__subtitle { font-size: 1.125rem; } }
.hero-section__ctas { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; padding: 0 1rem; }
@media (min-width: 640px) { .hero-section__ctas { flex-direction: row; } }
.btn-hero-primary, .btn-hero-outline { padding: 0 2.5rem; }

/* ------------------------------- Marquee ------------------------------------ */
.theme-marquee { position: relative; width: 100%; overflow: hidden; background: var(--color-card); border-top: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent); }
.theme-marquee__fade { position: absolute; top: 0; bottom: 0; width: 6rem; z-index: 10; pointer-events: none; }
.theme-marquee__fade--left { left: 0; background: linear-gradient(to right, var(--color-card), transparent); }
.theme-marquee__fade--right { right: 0; background: linear-gradient(to left, var(--color-card), transparent); }
.theme-marquee__row { padding: 1.25rem 0; }
.theme-marquee__track { display: flex; align-items: center; white-space: nowrap; width: max-content; animation: theme-marquee-scroll linear infinite; animation-duration: var(--marquee-duration, 40s); }
.theme-marquee__item { display: flex; align-items: center; }
.theme-marquee__text { font-family: var(--font-serif); font-size: 0.875rem; letter-spacing: 0.25em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); padding: 0 1.5rem; }
@media (min-width: 640px) { .theme-marquee__text { font-size: 1rem; padding: 0 2rem; } }
.theme-marquee__icon { color: color-mix(in srgb, var(--color-primary) 70%, transparent); flex-shrink: 0; }

/* ------------------------------- Generic section layout --------------------- */
.about-section, .author-section, .novel-section, .story-section, .devotional-section, .pricing-section { position: relative; overflow: hidden; }
.about-section { background: var(--color-card); }
.about-section__wrap, .author-section__wrap, .novel-section__wrap, .story-section__wrap, .pricing-section__wrap { padding: 4rem 0; }
@media (min-width: 768px) { .about-section__wrap, .author-section__wrap, .novel-section__wrap, .story-section__wrap, .pricing-section__wrap { padding: 6rem 0; } }
.about-section__glow { position: absolute; pointer-events: none; border-radius: 9999px; filter: blur(64px); }
.about-section__glow--gold { top: -8rem; right: -5rem; width: 28rem; height: 28rem; background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.about-section__glow--accent { bottom: -8rem; left: -5rem; width: 24rem; height: 24rem; background: color-mix(in srgb, var(--color-accent) 10%, transparent); }

.about-section__grid, .author-section__grid { display: grid; gap: 2.5rem; align-items: stretch; }
@media (min-width: 1024px) { .about-section__grid { grid-template-columns: 5fr 7fr; gap: 4rem; } .author-section__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.about-section__media { position: relative; }
.about-section__media-glow { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-primary) 20%, transparent); filter: blur(48px); transform: scale(0.9); }
.about-section__media-frame { position: relative; height: 100%; min-height: 320px; background: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent); overflow: hidden; }
.about-section__image { }
.about-section__badge { position: absolute; bottom: -1rem; right: -1rem; background: var(--color-primary); color: var(--color-primary-foreground); padding: 0.5rem 1rem; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; }

.about-section__paragraph, .author-section__paragraph, .novel-section__paragraph { font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; max-width: 40rem; }
@media (min-width: 768px) { .about-section__paragraph, .author-section__paragraph, .novel-section__paragraph { font-size: 1.125rem; } }
.about-section__paragraph--muted, .author-section__paragraph--muted, .novel-section__paragraph--muted { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

.about-section__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; padding: 1.25rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.about-section__stat-label { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); font-weight: 600; }
.about-section__stat-value { font-family: var(--font-display); font-size: 1.25rem; margin-top: 0.25rem; }
@media (min-width: 768px) { .about-section__stat-value { font-size: 1.5rem; } }
.about-section__cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
@media (min-width: 640px) { .about-section__cta-row { flex-direction: row; align-items: center; } }
.about-section__tagline { color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.875rem; }

.author-section__media { position: relative; order: 2; min-height: 420px; }
.author-section__media-border { position: absolute; inset: -1rem; border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); pointer-events: none; }
.author-section__copy { order: 1; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .author-section__media { order: 1; min-height: 0; } .author-section__copy { order: 2; } }
.author-section__badge { position: absolute; bottom: 1.5rem; left: 1.5rem; background: color-mix(in srgb, var(--color-background) 90%, transparent); backdrop-filter: blur(6px); padding: 0.5rem 1rem; border-left: 2px solid var(--color-primary); }
.author-section__badge-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--color-primary); font-weight: 600; }
.author-section__badge-name { font-family: var(--font-display); font-size: 1.125rem; }
.author-section__info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 28rem; }
.author-section__info-item { border-left: 2px solid var(--color-primary); padding-left: 1rem; }
.author-section__info-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.author-section__info-value { font-family: var(--font-display); font-size: 1.125rem; margin-top: 0.25rem; }

/* ------------------------------- Shop --------------------------------------- */
.shop-section { padding: 5rem 0; }
@media (min-width: 768px) { .shop-section { padding: 7rem 0; } }
.shop-section__intro { text-align: center; margin-bottom: 3.5rem; }
.shop-section__subtitle { max-width: 36rem; margin: 0 auto 2.5rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

.theme-cat-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-cat-filter {
	padding: 0.625rem 1.25rem;
	font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600;
	border: 1px solid var(--color-border);
	background: transparent; color: var(--color-foreground);
	transition: all 0.3s ease;
}
.theme-cat-filter:hover { border-color: var(--color-primary); color: var(--color-primary); }
.theme-cat-filter.is-active { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

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

.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(--color-border); }
.range-track-fill { background: var(--color-primary); }
.range-input {
	position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0;
	-webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.range-input::-webkit-slider-thumb {
	-webkit-appearance: none; pointer-events: auto;
	width: 18px; height: 18px; border-radius: 50%;
	background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer;
}
.range-input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer; }
.range-input::-moz-range-track { background: transparent; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-product-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-product-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-product-grid__item.is-beyond-initial { display: none; }
.theme-product-grid.is-expanded .theme-product-grid__item.is-beyond-initial { display: block; }
.theme-product-grid__item.is-filtered-out { display: none !important; }

.theme-product-card-wrap { display: block; height: 100%; }
.theme-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1 / 1; background: var(--color-secondary); overflow: hidden; margin-bottom: 1rem; }
.theme-product-card__image { transition: transform 0.6s var(--ease-smooth); }
.theme-product-card-wrap:hover .theme-product-card__image { transform: scale(1.08); }
.theme-product-card__image.is-sold-out { opacity: 0.6; }
.theme-product-card__image-overlay { position: absolute; inset: 0; background: transparent; transition: background-color 0.5s ease; pointer-events: none; }
.theme-product-card-wrap:hover .theme-product-card__image-overlay { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-badge-soldout { position: absolute; top: 0.5rem; left: 0.5rem; padding: 0.375rem 0.75rem; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--color-foreground); color: var(--color-background); }
@media (min-width: 768px) { .theme-badge-soldout { top: 0.75rem; left: 0.75rem; } }
.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.theme-product-card__title { font-size: 0.875rem; font-weight: 500; transition: color 0.3s ease; }
.theme-product-card-wrap:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 0.875rem; color: var(--color-muted-foreground); font-weight: 600; }
.theme-product-card__price ins { text-decoration: none; }
.theme-product-card__price del { opacity: 0.6; margin-right: 0.35rem; }
.theme-price-currency { text-transform: uppercase; font-size: 0.75em; }

.theme-shop-showmore-wrap { text-align: center; margin-top: 2.5rem; }
.theme-shop-empty { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }

/* ------------------------------- Novel -------------------------------------- */
.novel-section { background: linear-gradient(135deg, var(--color-background) 0%, color-mix(in srgb, var(--color-background) 85%, #2a3550) 50%, color-mix(in srgb, var(--color-accent) 40%, var(--color-background)) 100%); }
.novel-section__noise { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 3px 3px; }
.novel-section__grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .novel-section__grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.novel-section__media { position: relative; max-width: 24rem; margin: 0 auto; }
.novel-section__media-glow { position: absolute; inset: -1.5rem; background: color-mix(in srgb, var(--color-primary) 20%, transparent); filter: blur(48px); pointer-events: none; }
.novel-section__cover { position: relative; width: 100%; height: auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.novel-section__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ------------------------------- Story -------------------------------------- */
.story-section { padding: 5rem 0; }
@media (min-width: 768px) { .story-section { padding: 7rem 0; } }
.story-section__intro { text-align: center; margin-bottom: 3.5rem; }
.story-section__subtitle { max-width: 36rem; margin: 0 auto; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.story-section__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .story-section__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .story-section__grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
.story-card { position: relative; border: 1px solid var(--color-border); overflow: hidden; background: var(--color-card); }
.story-card__image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.story-card__image { transition: transform 0.7s var(--ease-smooth); }
.story-card:hover .story-card__image { transform: scale(1.06); }
.story-card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-background) 90%, transparent), color-mix(in srgb, var(--color-background) 10%, transparent) 60%, transparent); pointer-events: none; }
.story-card__caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; }
.story-card__title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--color-primary); font-weight: 600; margin-bottom: 0.5rem; }
.story-card__text { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.6; }

/* ------------------------------- Devotional --------------------------------- */
.devotional-section { position: relative; }
.devotional-section__bg { position: absolute; inset: 0; z-index: 0; }
.devotional-section__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-background) 65%, transparent); }
.devotional-section__gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-background) 50%, transparent), color-mix(in srgb, var(--color-background) 60%, transparent), color-mix(in srgb, var(--color-background) 85%, transparent)); pointer-events: none; }
.devotional-section__content { position: relative; z-index: 10; padding: 5rem 0; }
@media (min-width: 768px) { .devotional-section__content { padding: 7rem 0; } }
.devotional-section__inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.devotional-section__verse-box { position: relative; border-top: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent); padding: 2.5rem 0; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .devotional-section__verse-box { padding: 3.5rem 0; } }
.devotional-section__verse-icon { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--color-card); padding: 0 1rem; color: var(--color-primary); }
.devotional-section__verse { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; line-height: 1.4; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .devotional-section__verse { font-size: 1.875rem; } }
@media (min-width: 1024px) { .devotional-section__verse { font-size: 2.25rem; } }
.devotional-section__reference { color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.75rem; }
.devotional-section__reflection { font-size: 1rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.7; max-width: 42rem; margin: 2.5rem auto 0; }
@media (min-width: 768px) { .devotional-section__reflection { font-size: 1.125rem; } }
.devotional-section__footer { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--color-muted-foreground); margin-top: 2rem; }

/* ------------------------------- Pricing ------------------------------------ */
.pricing-section__intro { text-align: center; margin-bottom: 3.5rem; }
.pricing-section__subtitle { max-width: 36rem; margin: 0 auto; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.pricing-section__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 768px) { .pricing-section__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; } }
.pricing-card { position: relative; padding: 2rem; border: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-card) 50%, transparent); display: flex; flex-direction: column; }
@media (min-width: 768px) { .pricing-card { padding: 2.5rem; } }
.pricing-card.is-highlighted { border-color: var(--color-primary); background: var(--color-card); box-shadow: var(--shadow-elevated); }
.pricing-card__tag--floating { position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: var(--color-primary-foreground); padding: 0.25rem 1rem; font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; font-weight: 600; }
.pricing-card__tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--color-muted-foreground); font-weight: 600; margin-bottom: 0.75rem; }
.pricing-card__name { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .pricing-card__name { font-size: 1.875rem; } }
.pricing-card__price-row { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 1.25rem; }
.pricing-card__price { font-family: var(--font-display); font-size: 2.25rem; color: var(--color-primary); }
@media (min-width: 768px) { .pricing-card__price { font-size: 3rem; } }
.pricing-card__currency { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-foreground); }
.pricing-card__description { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); margin-bottom: 1.5rem; }
.pricing-card__features { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; flex: 1; }
.pricing-card__features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
.pricing-card__features svg { color: var(--color-primary); margin-top: 0.2rem; flex-shrink: 0; }
.pricing-card__cta { width: 100%; }

/* ------------------------------- Contact ------------------------------------- */
.contact-section { position: relative; overflow: hidden; }
.contact-section__bg { position: absolute; inset: 0; z-index: 0; }
.contact-section__video { width: 100%; height: 100%; object-fit: cover; }
.contact-section__gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-background) 85%, transparent), color-mix(in srgb, var(--color-background) 70%, transparent), color-mix(in srgb, var(--color-background) 95%, transparent)); }
.contact-section__radial { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 0%, color-mix(in srgb, var(--color-background) 60%, transparent) 100%); }
.contact-section__content { position: relative; z-index: 10; padding: 6rem 0; }
@media (min-width: 768px) { .contact-section__content { padding: 9rem 0; } }
.contact-section__inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.contact-section__subtitle { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); font-size: 1.125rem; max-width: 36rem; margin: 0 auto 3rem; }
.contact-section__cta { position: relative; display: inline-flex; align-items: center; gap: 1rem; background: var(--color-primary); color: var(--color-primary-foreground); padding: 1.25rem 2.5rem; text-transform: uppercase; letter-spacing: 0.25em; font-weight: 700; font-size: 0.875rem; overflow: hidden; }
@media (min-width: 768px) { .contact-section__cta { padding: 1.5rem 3.5rem; font-size: 1rem; } }
.contact-section__cta-fill { position: absolute; inset: 0; background: var(--color-foreground); transform: translateY(100%); transition: transform 0.5s ease-out; }
.contact-section__cta:hover .contact-section__cta-fill { transform: translateY(0); }
.contact-section__cta-label { position: relative; display: flex; align-items: center; gap: 1rem; transition: color 0.5s ease; }
.contact-section__cta:hover .contact-section__cta-label { color: var(--color-primary-foreground); }
.contact-section__strip { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.contact-section__strip-link, .contact-section__strip-item { display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s ease; }
.contact-section__strip-link:hover { color: var(--color-primary); }
.contact-section__strip svg { color: var(--color-primary); }

/* ------------------------------- Contact modal ------------------------------- */
.contact-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.contact-modal[hidden] { display: none; }
.contact-modal__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-background) 70%, transparent); backdrop-filter: blur(10px); animation: theme-fade-in 0.3s ease; }
.contact-modal__panel {
	position: relative; width: 100%; max-width: 36rem; max-height: 90vh; overflow-y: auto;
	background: color-mix(in srgb, var(--color-card) 40%, transparent);
	backdrop-filter: blur(30px);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	box-shadow: 0 20px 80px -20px color-mix(in srgb, var(--color-primary) 40%, transparent);
	padding: 2rem;
	animation: theme-modal-in 0.45s var(--ease-smooth);
}
@media (min-width: 768px) { .contact-modal__panel { padding: 2.5rem; } }
@keyframes theme-modal-in { from { opacity: 0; transform: scale(0.92) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.contact-modal.is-closing .contact-modal__panel { animation: theme-modal-out 0.3s var(--ease-smooth) forwards; }
.contact-modal.is-closing .contact-modal__backdrop { animation: theme-fade-in 0.3s ease reverse forwards; }
@keyframes theme-modal-out { from { opacity: 1; transform: scale(1) translateY(0); } to { opacity: 0; transform: scale(0.95) translateY(20px); } }
.contact-modal__glow { position: absolute; width: 15rem; height: 15rem; border-radius: 9999px; filter: blur(64px); pointer-events: none; }
.contact-modal__glow--top { top: -5rem; right: -5rem; background: color-mix(in srgb, var(--color-primary) 30%, transparent); }
.contact-modal__glow--bottom { bottom: -5rem; left: -5rem; background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.contact-modal__close { position: absolute; top: 1rem; right: 1rem; width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); z-index: 10; transition: all 0.2s ease; }
.contact-modal__close:hover { color: var(--color-foreground); background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.contact-modal__intro { margin-bottom: 1.75rem; position: relative; }
.contact-modal__kicker { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-primary); font-weight: 700; }
.contact-modal__heading { font-family: var(--font-display); font-size: 1.875rem; margin-top: 0.5rem; line-height: 1; }
@media (min-width: 768px) { .contact-modal__heading { font-size: 2.25rem; } }

.contact-form { position: relative; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.contact-form__field label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; font-weight: 700; margin-bottom: 0.5rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.contact-form__field input, .contact-form__field textarea {
	width: 100%; padding: 0.75rem 1rem;
	background: color-mix(in srgb, var(--color-background) 40%, transparent);
	backdrop-filter: blur(4px);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	font-size: 0.875rem;
	transition: all 0.3s ease;
}
.contact-form__field input::placeholder, .contact-form__field textarea::placeholder { color: var(--color-muted-foreground); }
.contact-form__field input:focus, .contact-form__field textarea:focus {
	outline: none; border-color: var(--color-primary);
	background: color-mix(in srgb, var(--color-background) 60%, transparent);
}
.contact-form__field textarea { resize: none; }
.contact-form__submit { width: 100%; font-weight: 700; }
.contact-form__submit:disabled { opacity: 0.6; cursor: wait; }

.contact-modal__success { text-align: center; padding: 2.5rem 0; animation: theme-fade-in 0.5s var(--ease-smooth); }
.contact-modal__success[hidden] { display: none; }
.contact-modal__success-icon { width: 4rem; height: 4rem; background: var(--color-primary); color: var(--color-primary-foreground); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; animation: theme-scale-check 0.5s var(--ease-smooth) 0.1s both; }
.contact-modal__success-text { color: var(--color-muted-foreground); margin-top: 0.5rem; }

/* ------------------------------- Footer -------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-background); padding: 3rem 0 2rem; }
@media (min-width: 1024px) { .site-footer { padding: 4rem 0 2rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.site-footer__tagline { margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); max-width: 24rem; line-height: 1.6; }
.site-footer__slogan { margin-top: 0.75rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--color-primary); font-weight: 700; }
.site-footer__social { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.site-footer__social-link { width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); color: var(--color-muted-foreground); transition: all 0.2s ease; }
.site-footer__social-link:hover { color: var(--color-primary); border-color: var(--color-primary); }
.site-footer__heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 1rem; color: var(--color-primary); }
.theme-footer-nav-list { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.theme-footer-nav-list .menu-item { display: block; width: 100%; }
.theme-footer-nav-list a,
.theme-footer-nav-link { display: block; font-size: 14px; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.theme-footer-nav-list a:hover,
.theme-footer-nav-link:hover { color: var(--color-foreground); }
.site-footer__contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__contact-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.site-footer__contact-list svg { flex-shrink: 0; margin-top: 2px; }
.site-footer__contact-list a { transition: color 0.2s ease; word-break: break-all; }
.site-footer__contact-list a:hover { color: var(--color-foreground); }
.site-footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); text-align: center; }
.site-footer__bottom p { font-size: 0.75rem; color: var(--color-muted-foreground); }

/* ------------------------------- 404 ------------------------------------------ */
.theme-fallback-content { padding: 6rem 0; }
.theme-404__wrap { padding: 8rem 0; text-align: center; }
.theme-404__title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1rem; }
.theme-404__text { color: var(--color-muted-foreground); margin-bottom: 2rem; }

/* ------------------------------- Cart drawer / overlay ------------------------ */
#theme-cart-overlay { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, var(--color-foreground) 20%, transparent); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 28rem;
	background: var(--color-background); z-index: 71;
	box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s var(--ease-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { padding: 0.25rem; transition: opacity 0.2s ease; }
.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; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty svg { color: var(--color-muted-foreground); }
.theme-cart-drawer__empty p { color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__image { position: relative; width: 5rem; height: 6rem; background: var(--color-secondary); overflow: hidden; flex-shrink: 0; display: block; }
.theme-cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.2s ease; }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-item__variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-item__qty-btn { padding: 0.25rem; transition: background-color 0.2s ease; }
.theme-cart-item__qty-btn:hover { background: var(--color-secondary); }
.theme-cart-item__qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-item__remove { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.theme-cart-item__remove:hover { color: var(--color-foreground); }
.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal-row span:first-child { color: var(--color-muted-foreground); }
.theme-cart-drawer__subtotal-row span:last-child { font-weight: 500; }
.theme-cart-drawer__note { font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__checkout { width: 100%; }

/* WooCommerce "View cart" link after AJAX add — never used in the design */
.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; }

/* Notices — scoped, not global */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	font-family: var(--font-body); font-size: 0.875rem;
	background: var(--color-card); color: var(--color-foreground);
	border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary);
	padding: 1rem 1.5rem; margin: 0 0 1.5rem; list-style: none;
}
.woocommerce-error { border-left-color: var(--color-destructive); }

/* ------------------------------- Single product ------------------------------- */
.single-product-main { padding-top: calc(var(--header-height) + 1.5rem); padding-bottom: 4rem; }
.single-product__back { margin-bottom: 1.5rem; }
.single-product__back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.single-product__back-link:hover { color: var(--color-foreground); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 5rem; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-main-image-wrap { position: relative; aspect-ratio: 3 / 4; background: var(--color-secondary); overflow: hidden; margin-bottom: 1rem; }
.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; border: 2px solid transparent; opacity: 0.6; transition: all 0.2s ease; }
.theme-product-thumb.is-active, .theme-product-thumb:hover { opacity: 1; border-color: var(--color-primary); }

.theme-product-category-list a { color: var(--color-muted-foreground); text-decoration: underline; }
.theme-product-category { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.product-title { font-family: var(--font-body); font-weight: 700; font-size: 1.5rem; margin-top: 0.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }
.theme-product-price { font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 600; color: var(--color-primary); }
.theme-stock-indicator { font-size: 0.875rem; margin-bottom: 1rem; }
.theme-stock-indicator--out { color: var(--color-destructive); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.theme-product-description { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }
.theme-product-description p { margin-bottom: 1rem; }

.theme-attr-group { margin-bottom: 1.5rem; }
.theme-attr-group__label { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill { padding: 0.5rem 1rem; font-size: 0.875rem; border: 1px solid var(--color-border); transition: all 0.2s ease; }
.theme-attr-pill:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-attr-pill.is-selected { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

.theme-quantity-wrapper { display: flex; align-items: center; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { padding: 0 1rem; height: var(--btn-height); display: flex; align-items: center; justify-content: center; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input { width: 3rem; text-align: center; background: transparent; border: none; -moz-appearance: textfield; appearance: textfield; height: var(--btn-height); }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-product-details { border-top: 1px solid var(--color-border); padding-top: 2rem; margin-top: 1rem; }
.theme-product-details__label { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.theme-product-details__content { color: var(--color-muted-foreground); font-size: 0.875rem; overflow-wrap: break-word; word-break: break-word; }
.theme-product-details__content ul { list-style: none; padding: 0; }
.theme-product-details__content li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.5rem; }
.theme-product-details__content li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); margin-top: 0.4rem; flex-shrink: 0; }

.related-products-section { padding: 5rem 0 0; margin-top: 3rem; border-top: 1px solid var(--color-border); }
.related-products-section__heading { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .related-products-section__heading { font-size: 1.5rem; } }

.single-product .theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }
.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-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; }
.theme-attr-select-hidden { display: none !important; }
.theme-variations-table-hidden { display: none !important; }
.woocommerce-variation-price { margin-bottom: 1rem; }
.woocommerce-variation-availability { margin-bottom: 1rem; font-size: 0.875rem; }

/* 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;
}
.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; }

/* ------------------------------- WooCommerce Checkout Block override ---------- */
body.woocommerce-checkout .entry-content { max-width: 100%; }
body.woocommerce-checkout .site-main { padding-top: calc(var(--header-height) + 1.5rem); padding-bottom: 4rem; }
body.woocommerce-checkout .page-title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 2rem; }

body.woocommerce-checkout .wc-block-checkout { display: block; }
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-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;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	color: var(--color-foreground);
	font-family: var(--font-body);
	border-radius: var(--radius);
	padding: revert;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { border-color: var(--color-primary); outline: none; }
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--color-muted-foreground); }
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-card);
	border-radius: var(--radius);
	padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	text-transform: var(--btn-text-transform);
	letter-spacing: var(--btn-letter-spacing);
	font-weight: var(--btn-font-weight);
}
body.woocommerce-checkout .wc-block-components-notice-banner { border-radius: var(--radius); }

/* ------------------------------- Thank-you page -------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details { font-family: var(--font-body); }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 2rem 0; }
body.theme-thankyou-page .woocommerce-order-overview li { background: var(--color-card); padding: 1rem 1.5rem; border: 1px solid var(--color-border); }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); font-size: 1.5rem; padding: 0 0 1rem 0; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; }

/* ------------------------------- Customizer control CSS (front-end no-op) ----- */
