/* ==========================================================================
   Brian Edwards Books — theme.css
   Colors are re-declared here as a static fallback; the live values are
   injected on :root via wp_add_inline_style() (Section 22.9) and kept in
   sync with the HSL->hex pipeline in functions.php (Section 6.1).
   ========================================================================== */

:root {
	--color-background: #fff9f0;
	--color-foreground: #423024;
	--color-card: #ffffff;
	--color-primary: #f1843b;
	--color-primary-foreground: #fffbf5;
	--color-secondary: #ffd48a;
	--color-secondary-foreground: #4c3524;
	--color-muted: #f7efe3;
	--color-muted-foreground: #7b685b;
	--color-accent: #3f7d88;
	--color-accent-foreground: #fffbf5;
	--color-destructive: #dd382c;
	--color-border: #eee2d3;

	--wp-admin-bar-height: 0px;

	--font-display: 'Outfit', sans-serif;
	--font-body: 'Figtree', sans-serif;

	--radius: 1rem;
	--card-radius: 1.5rem;
	--shadow-soft: 0 6px 24px -8px rgba(90, 60, 20, 0.16);
	--shadow-elevated: 0 22px 50px -18px rgba(180, 90, 20, 0.30);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--logo-height: 44px;
	--header-height: 80px;

	--btn-radius: 999px;
	--btn-height: 3rem;
	--btn-padding: 0 1.75rem;
	--btn-font-size: 1rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0.6rem;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
	margin: 0;
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

body.mobile-nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }

/* Section 15.1 — cover/full-bleed image exclusion list. Every class used for
   a cover image below MUST be listed here. */
img:not(.cover-img):not(.hero-image):not(.hero-floating-card-img):not(.theme-product-card__image):not(.theme-product-main-image):not(.theme-related-card__image):not(.theme-product-thumb-img):not(.theme-cart-drawer-item-image):not(.book-feature-image):not(.bundle-banner img) {
	max-width: 100%;
	height: auto;
}

.cover-img,
.theme-product-card__image,
.theme-product-thumb-img,
.theme-cart-drawer-item-image,
.bundle-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.hero-floating-card-img {
	display: block;
	width: 3rem;
	height: 3.75rem;
	object-fit: cover;
	object-position: center;
	border-radius: 0.375rem;
	flex-shrink: 0;
}

.theme-product-main-image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	position: static !important;
	object-fit: cover;
}
.theme-related-card__image-wrap .theme-related-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: static !important;
}

img { opacity: 0; transition: opacity 0.5s var(--transition-smooth); }
img.is-loaded { opacity: 1; }

a { color: inherit; text-decoration: none; cursor: pointer; }

.theme-nav-link,
.theme-footer-nav-link,
.theme-card-link,
.site-brand,
.cart-toggle-btn,
.mobile-menu-toggle,
.contact-mailto,
.contact-instagram,
.footer-mailto,
.footer-instagram-link,
.theme-404-cta,
.theme-cart-drawer-item-title,
.theme-cart-drawer-item-img,
.back-to-shop-link,
.theme-product-thumb,
.btn-primary-pill,
.btn-outline-pill,
.btn-hero-primary,
.btn-hero-outline {
	cursor: pointer;
}

/* Heading font-weight reset (Tailwind preflight parity, Section 2.2). */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
	font-weight: 700;
	margin: 0;
	line-height: 1.15;
}

p { margin: 0; line-height: 1.6; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }

/* ==========================================================================
   Layout utilities
   ========================================================================== */

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.25rem;
	min-width: 0;
}
@media (min-width: 640px) { .container-wide { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding: 0 2rem; } }

.scroll-mt { scroll-margin-top: 6rem; }

.section-pad { padding: 4rem 0; }
@media (min-width: 768px) { .section-pad { padding: 6rem 0; } }

.bg-background { background-color: var(--color-background); }
.bg-muted-soft { background-color: color-mix(in srgb, var(--color-muted) 80%, transparent); }

.gradient-warm { background: linear-gradient(180deg, var(--color-background) 0%, color-mix(in srgb, var(--color-secondary) 35%, var(--color-background)) 100%); }
.gradient-sun { background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%); }

.section-heading-wrap { text-align: center; max-width: 42rem; margin: 0 auto 3.5rem; }
.section-subtitle { color: var(--color-muted-foreground); font-size: 1rem; margin-top: 1rem; }
@media (min-width: 768px) { .section-subtitle { font-size: 1.125rem; } }
.section-body { color: var(--color-muted-foreground); font-size: 1rem; line-height: 1.7; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .section-body { font-size: 1.125rem; } }

.eyebrow-badge {
	display: inline-flex; align-items: center; gap: 0.5rem;
	border-radius: 999px; background: var(--color-secondary); color: var(--color-secondary-foreground);
	padding: 0.4rem 1rem; font-size: 0.875rem; font-weight: 600;
}
.eyebrow-badge--outline { background: var(--color-card); border: 1px solid var(--color-border); color: var(--color-accent); }
.eyebrow-badge--card { background: var(--color-card); border: 1px solid var(--color-border); color: var(--color-accent); }

.badge-pill {
	display: inline-block; width: fit-content; align-self: flex-start;
	border-radius: 999px; padding: 0.3rem 0.85rem;
	font-size: 0.875rem; font-weight: 600;
}
.badge-pill--primary { background: var(--color-primary); color: var(--color-primary-foreground); }
.badge-pill--accent { background: var(--color-accent); color: var(--color-accent-foreground); }

.bullet-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; margin-top: 0.6rem; flex-shrink: 0; display: inline-block; }
.bullet-dot--primary { background: var(--color-primary); }
.bullet-dot--accent { background: var(--color-accent); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary-pill, .btn-outline-pill, .btn-hero-primary, .btn-hero-outline {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	border-radius: 999px; padding: 0.85rem 1.75rem; font-size: 1rem; font-weight: 600;
	font-family: var(--font-body); text-transform: none; transition: transform 0.25s var(--transition-smooth), opacity 0.2s ease, background-color 0.2s ease;
	cursor: pointer; white-space: nowrap;
}
.btn-primary-pill, .btn-hero-primary {
	background: var(--color-primary); color: var(--color-primary-foreground); border: none;
}
.btn-primary-pill:hover, .btn-hero-primary:hover { transform: scale(1.04); opacity: 0.92; }
.btn-outline-pill, .btn-hero-outline {
	background: transparent; color: var(--color-foreground);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
}
.btn-outline-pill:hover, .btn-hero-outline:hover { background: var(--color-muted); transform: scale(1.04); }
.btn-outline-pill--onlight { background: color-mix(in srgb, var(--color-card) 60%, transparent); border-color: color-mix(in srgb, var(--color-secondary-foreground) 20%, transparent); }
.btn-full { width: 100%; }
.btn-arrow { transition: transform 0.3s var(--transition-smooth); }
.btn-hero-primary:hover .btn-arrow { transform: translateX(4px); }

/* ==========================================================================
   Scroll progress + page loader
   ========================================================================== */

.theme-scroll-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
	background: linear-gradient(to right, color-mix(in srgb, var(--color-primary) 60%, transparent), var(--color-primary), color-mix(in srgb, var(--color-primary) 60%, transparent));
	transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
	transition: transform 0.1s linear;
}

.theme-page-loader {
	position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
	background: var(--color-background); opacity: 1; transition: opacity 0.55s var(--transition-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.25rem; }
.theme-page-loader-logo { width: 5rem; height: 5rem; object-fit: contain; animation: loaderBob 1.6s ease-in-out infinite; }
.theme-page-loader-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
@keyframes loaderBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	background: color-mix(in srgb, var(--color-background) 70%, transparent);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-solid, .site-header.mobile-menu-open {
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	border-bottom-color: var(--color-border);
	box-shadow: var(--shadow-soft);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 0.75rem; }
@media (min-width: 1024px) { .site-nav { height: 5rem; } }

.site-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }
.site-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.site-brand-name { display: none; font-family: var(--font-display); font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .site-brand-name { display: block; } }
@media (min-width: 1024px) { .site-brand-name { font-size: 1.125rem; } }

.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; list-style: none; margin: 0; padding: 0; }
.theme-nav-link, .theme-nav-list a {
	font-size: 0.9rem; font-weight: 600; color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	position: relative; display: inline-block; transition: color 0.3s ease;
}
.theme-nav-link::after, .theme-nav-list a::after {
	content: ''; position: absolute; left: 0; bottom: -0.25rem; width: 100%; height: 2px;
	background: var(--color-primary); border-radius: 999px; transform: scaleX(0); transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover, .theme-nav-list a:hover { color: var(--color-primary); }
.theme-nav-link:hover::after, .theme-nav-list a:hover::after { transform: scaleX(1); }

.site-nav-actions { display: flex; align-items: center; gap: 0.25rem; }
.cart-toggle-btn, .mobile-menu-toggle {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem; border-radius: 999px; color: var(--color-foreground);
	transition: background-color 0.2s ease, color 0.2s ease;
}
.cart-toggle-btn:hover, .mobile-menu-toggle:hover { background: var(--color-muted); color: var(--color-primary); }
.theme-cart-count {
	position: absolute; top: -0.1rem; right: -0.1rem; min-width: 1.25rem; height: 1.25rem; padding: 0 0.2rem;
	border-radius: 999px; background: var(--color-primary); color: var(--color-primary-foreground);
	font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav-mobile {
	display: none;
	border-top: 1px solid var(--color-border);
	padding: 0.75rem 0;
	max-height: calc(100dvh - 4rem - var(--wp-admin-bar-height, 0px));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
@media (min-width: 1024px) {
	.site-nav-mobile { max-height: none; }
}
.site-nav-mobile.is-open { display: block; animation: fadeIn 0.3s var(--transition-smooth); }
@media (min-width: 1024px) { .site-nav-mobile { display: none !important; } }
.theme-nav-list-mobile {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.theme-nav-list-mobile a {
	display: block;
	width: 100%;
	padding: 0.75rem 0.5rem;
	border-radius: 0.5rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-foreground);
	text-align: left;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.theme-nav-list-mobile a::after { display: none !important; content: none !important; }
.theme-nav-list-mobile a:hover,
.theme-nav-list-mobile a:focus-visible {
	background: var(--color-muted);
	color: var(--color-primary);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Home hero fills viewport under the fixed transparent header (Section 22.7). */
.theme-no-hero .site-main { padding-top: var(--header-height); }

/* WordPress admin bar — prevent overlap with fixed header */
body.admin-bar { --wp-admin-bar-height: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar { --wp-admin-bar-height: 46px; }
}
body.admin-bar .site-header { top: var(--wp-admin-bar-height); }
body.admin-bar.theme-no-hero .site-main,
body.admin-bar.woocommerce-checkout .site-main,
body.admin-bar.woocommerce-account .site-main,
body.admin-bar.theme-thankyou-page .site-main {
	padding-top: calc(var(--header-height) + var(--wp-admin-bar-height));
}
body.admin-bar .hero-section { padding-top: calc(6rem + var(--wp-admin-bar-height)); }
@media (min-width: 1024px) {
	body.admin-bar .hero-section { padding-top: calc(7rem + var(--wp-admin-bar-height)); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-section {
	position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center;
	padding: 6rem 0 4rem;
	isolation: isolate;
}
@media (min-width: 1024px) { .hero-section { padding-top: 7rem; } }

.hero-blob { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.hero-blob-1 { top: -6rem; right: -6rem; width: 24rem; height: 24rem; background: color-mix(in srgb, var(--color-secondary) 50%, transparent); animation: blobFloat1 14s ease-in-out infinite; }
.hero-blob-2 { bottom: -8rem; left: -6rem; width: 24rem; height: 24rem; background: color-mix(in srgb, var(--color-accent) 15%, transparent); animation: blobFloat2 18s ease-in-out infinite; animation-delay: 1.5s; }
.hero-blob-3 { display: none; top: 33%; left: 50%; width: 6rem; height: 6rem; background: color-mix(in srgb, var(--color-primary) 10%, transparent); animation: blobFloat3 9s ease-in-out infinite; }
@media (min-width: 1024px) { .hero-blob-3 { display: block; } }
@keyframes blobFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,24px) scale(1.08); } }
@keyframes blobFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(34px,-20px) scale(1.12); } }
@keyframes blobFloat3 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(8deg); } }

.hero-inner { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.hero-anim { opacity: 0; transform: translateY(30px); animation: heroReveal 0.7s var(--transition-smooth) forwards; animation-delay: var(--reveal-delay, 0s); }
.hero-badge.hero-anim { transform: translateY(-10px); animation-duration: 0.6s; }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }

.hero-badge {
	display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; background: var(--color-secondary);
	color: var(--color-secondary-foreground); padding: 0.4rem 1rem; font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-badge-icon-spin { display: inline-flex; animation: spinPulse 3.5s ease-in-out infinite; }
@keyframes spinPulse { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(18deg) scale(1.15); } 70% { transform: rotate(-12deg) scale(1.1); } 100% { transform: rotate(0) scale(1); } }

.hero-title { font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1280px) { .hero-title { font-size: 4.5rem; } }

.hero-description { font-size: 1rem; color: var(--color-muted-foreground); max-width: 36rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .hero-description { font-size: 1.125rem; } }

.hero-ctas { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }

.hero-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.hero-stat { display: flex; align-items: center; gap: 0.5rem; }
.hero-stat-icon-bob, .hero-stat-icon-wiggle { display: inline-flex; color: var(--color-primary); }
.hero-stat-icon-bob { animation: statBob 2.6s ease-in-out infinite; }
.hero-stat-icon-wiggle { animation: statWiggle 4s ease-in-out infinite; animation-delay: 0.8s; }
@keyframes statBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes statWiggle { 0%,100% { transform: rotate(0); } 33% { transform: rotate(20deg); } 66% { transform: rotate(-20deg); } }

.hero-media { position: relative; opacity: 0; transform: scale(0.95); animation: heroMediaReveal 0.8s var(--transition-smooth) forwards; animation-delay: 0.15s; }
@keyframes heroMediaReveal { to { opacity: 1; transform: scale(1); } }
.hero-media-float { border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow-elevated); border: 4px solid var(--color-card); animation: heroFloat 7s ease-in-out infinite; }
@keyframes heroFloat { 0%,100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-14px) rotate(0.6deg); } }

.hero-floating-card {
	display: none; position: absolute; bottom: -1.5rem; left: -1rem; z-index: 2; align-items: center; gap: 0.75rem;
	border-radius: 1rem; background: var(--color-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft);
	padding: 0.75rem 1rem; animation: floatCard 6s ease-in-out infinite; animation-delay: 0.6s;
}
@media (min-width: 640px) { .hero-floating-card { display: flex; } }
@media (min-width: 1024px) { .hero-floating-card { left: -2rem; } }
@keyframes floatCard { 0%,100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(12px) rotate(-1.5deg); } }
.hero-floating-card-title { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; margin: 0; }
.hero-floating-card-sub { font-size: 0.875rem; color: var(--color-muted-foreground); margin: 0; }

/* ==========================================================================
   Marquee (Section 8)
   ========================================================================== */

.marquee-band { position: relative; width: 100%; overflow: hidden; background: color-mix(in srgb, var(--color-secondary) 70%, transparent); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.marquee-fade { position: absolute; top: 0; bottom: 0; width: 3rem; z-index: 1; pointer-events: none; }
@media (min-width: 640px) { .marquee-fade { width: 6rem; } }
.marquee-fade--left { left: 0; background: linear-gradient(to right, color-mix(in srgb, var(--color-secondary) 90%, transparent), transparent); }
.marquee-fade--right { right: 0; background: linear-gradient(to left, color-mix(in srgb, var(--color-secondary) 90%, transparent), transparent); }
.marquee-row { padding: 1rem 0; }
@media (min-width: 640px) { .marquee-row { padding: 1.25rem 0; } }
.marquee-track { display: flex; align-items: center; white-space: nowrap; width: max-content; animation-name: marqueeScroll; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; }
.marquee-item-text { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--color-secondary-foreground); padding: 0 1.25rem; }
@media (min-width: 640px) { .marquee-item-text { font-size: 1rem; padding: 0 1.75rem; } }
.marquee-item-icon { color: var(--color-primary); flex-shrink: 0; }

/* ==========================================================================
   Books showcase
   ========================================================================== */

.books-section-heading { font-size: 1.875rem; margin-top: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .books-section-heading { font-size: 3rem; } }

.book-feature-card { border-radius: 2rem; background: var(--color-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); overflow: hidden; margin-top: 2rem; }
.book-feature-card:first-of-type { margin-top: 0; }
.book-feature-grid { display: grid; }
@media (min-width: 1024px) { .book-feature-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.book-feature-card--reverse .book-feature-grid { direction: ltr; }
@media (min-width: 1024px) { .book-feature-card--reverse .book-feature-grid { grid-template-areas: "copy image"; } .book-feature-card--reverse .book-feature-copy { grid-area: copy; } .book-feature-card--reverse .book-feature-image-wrap { grid-area: image; } }

.book-feature-image-wrap { display: flex; align-items: center; justify-content: center; padding: 2rem; }
@media (min-width: 768px) { .book-feature-image-wrap { padding: 3rem; } }
.book-feature-image-wrap--secondary { background: color-mix(in srgb, var(--color-secondary) 40%, transparent); }
.book-feature-image-wrap--accent { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.book-feature-image-frame {
	position: relative;
	overflow: hidden;
	max-width: 20rem;
	width: 100%;
	border-radius: 1rem;
	box-shadow: var(--shadow-elevated);
	background: transparent;
}
.book-feature-image,
.book-feature-image-frame img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.book-feature-copy { padding: 2rem; }
@media (min-width: 768px) { .book-feature-copy { padding: 3rem; } }
.book-feature-title { font-size: 1.5rem; margin-top: 1rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .book-feature-title { font-size: 2.25rem; } }
.book-feature-desc { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 1.25rem; }
.book-feature-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.75rem; }
.book-feature-list li { display: flex; align-items: flex-start; gap: 0.5rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.book-feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.book-feature-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }

.bundle-banner { margin-top: 2rem; border-radius: 2rem; padding: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
@media (min-width: 768px) { .bundle-banner { flex-direction: row; padding: 2.5rem; gap: 2.5rem; } }
.bundle-banner img { width: 10rem; height: 10rem; border-radius: 1rem; box-shadow: var(--shadow-soft); flex-shrink: 0; }
@media (min-width: 768px) { .bundle-banner img { width: 12rem; height: 12rem; } }
.bundle-banner-copy { flex: 1; text-align: center; }
@media (min-width: 768px) { .bundle-banner-copy { text-align: left; } }
.bundle-banner-title { font-size: 1.5rem; color: var(--color-secondary-foreground); margin-bottom: 0.5rem; }
@media (min-width: 768px) { .bundle-banner-title { font-size: 1.875rem; } }
.bundle-banner-desc { color: color-mix(in srgb, var(--color-secondary-foreground) 85%, transparent); margin-bottom: 1.25rem; max-width: 36rem; }
.bundle-banner-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
@media (min-width: 768px) { .bundle-banner-actions { justify-content: flex-start; } }

/* ==========================================================================
   Meet Gary
   ========================================================================== */

.meet-gary-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .meet-gary-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.meet-gary-image { border-radius: 2rem; border: 4px solid var(--color-card); box-shadow: var(--shadow-soft); aspect-ratio: 1/1; }
.meet-gary-heading { font-size: 1.875rem; margin-top: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .meet-gary-heading { font-size: 3rem; } }
.meet-gary-cards { display: grid; gap: 1rem; margin-top: 0.5rem; }
@media (min-width: 640px) { .meet-gary-cards { grid-template-columns: 1fr 1fr; } }
.meet-gary-card { border-radius: 1rem; background: var(--color-card); border: 1px solid var(--color-border); padding: 1.25rem; }
.meet-gary-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin-bottom: 0.25rem; }
.meet-gary-card-text { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ==========================================================================
   Resources
   ========================================================================== */

.offerings-heading { font-size: 1.875rem; margin-top: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .offerings-heading { font-size: 3rem; } }

.resources-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .resources-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .resources-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.resource-card { border-radius: 1.25rem; background: var(--color-card); border: 1px solid var(--color-border); padding: 1.5rem; height: 100%; transition: box-shadow 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth); }
.resource-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-4px); }
.resource-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 999px; background: var(--color-secondary); color: var(--color-secondary-foreground); margin-bottom: 1rem; }
.resource-card-title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.resource-card-text { font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; }

.author-visit-banner { margin-top: 2rem; border-radius: 2rem; overflow: hidden; background: var(--color-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); display: grid; }
@media (min-width: 1024px) { .author-visit-banner { grid-template-columns: 1fr 1fr; } }
.author-visit-image { min-height: 15rem; }
.author-visit-copy { padding: 2rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
@media (min-width: 768px) { .author-visit-copy { padding: 3rem; } }
.author-visit-title { font-size: 1.5rem; margin-top: 1rem; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .author-visit-title { font-size: 1.875rem; } }
.author-visit-text { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 1.5rem; }
.author-visit-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   Shop / product grid & card (Sections 19, 31.3, 31.9)
   ========================================================================== */

.shop-heading { font-size: 1.875rem; margin-top: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }

.theme-product-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }

.theme-product-card-wrap { height: 100%; display: flex; }
.theme-product-card {
	position: relative; height: 100%; width: 100%; display: flex; flex-direction: column;
	border-radius: 1rem; background: var(--color-card); border: 1px solid var(--color-border);
	box-shadow: var(--shadow-soft); overflow: hidden; transition: box-shadow 0.5s var(--transition-smooth);
}
.theme-product-card:hover { box-shadow: var(--shadow-elevated); }
.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-wrapper { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--color-muted); }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.06); }
.theme-product-card__image { transition: transform 0.7s var(--transition-smooth); }

.theme-product-badge {
	position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3; border-radius: 999px;
	padding: 0.25rem 0.75rem; font-size: 0.8rem; font-weight: 600;
}
.theme-product-badge--new { background: var(--color-primary); color: var(--color-primary-foreground); }
.theme-product-badge--soldout { background: var(--color-destructive); color: #fff; }

.theme-product-card__info { flex: 1; display: flex; flex-direction: column; padding: 1rem; }
.theme-product-card__title { font-size: 1.125rem; margin: 0; }
.theme-product-card__category { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-product-card__price { margin-top: auto; padding-top: 0.75rem; font-size: 1rem; font-weight: 700; }
.theme-product-card__price .amount, .theme-product-card__price .woocommerce-Price-amount { font-size: 1rem; font-weight: 700; color: var(--color-foreground); }

.theme-empty-shop { text-align: center; color: var(--color-muted-foreground); padding: 3rem 0; grid-column: 1 / -1; }

/* ==========================================================================
   About
   ========================================================================== */

.about-grid { display: grid; gap: 2.5rem; align-items: stretch; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 2fr 3fr; gap: 4rem; } }
.about-photo-wrap { border-radius: 2rem; border: 4px solid var(--color-card); box-shadow: var(--shadow-elevated); overflow: hidden; height: 100%; min-height: 20rem; }
.about-section-heading { font-size: 1.875rem; margin-top: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .about-section-heading { font-size: 3rem; } }
.about-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-bottom: 2rem; }
.about-stat { border-radius: 1rem; background: var(--color-muted); padding: 1rem; }
.about-stat-label { font-size: 0.875rem; color: var(--color-muted-foreground); }
.about-stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin-top: 0.25rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter-section { position: relative; overflow: hidden; }
.newsletter-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	pointer-events: none;
}
.newsletter-overlay-1 { position: absolute; inset: 0; z-index: 1; background: color-mix(in srgb, var(--color-primary) 45%, transparent); }
.newsletter-overlay-2 { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, color-mix(in srgb, var(--color-primary) 70%, transparent), color-mix(in srgb, var(--color-primary) 20%, transparent), color-mix(in srgb, var(--color-primary) 50%, transparent)); }
.newsletter-shell { position: relative; z-index: 2; }
.newsletter-inner { padding: 5rem 1.25rem; }
@media (min-width: 640px) { .newsletter-inner { padding: 5rem 2.5rem; } }
@media (min-width: 768px) { .newsletter-inner { padding: 7rem 3rem; } }
.newsletter-content { max-width: 42rem; margin: 0 auto; text-align: center; }
.newsletter-badge {
	display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
	background: color-mix(in srgb, var(--color-primary-foreground) 15%, transparent); backdrop-filter: blur(4px);
	padding: 0.4rem 1rem; font-size: 0.875rem; font-weight: 600; color: var(--color-primary-foreground);
}
.newsletter-title { font-size: 1.875rem; margin-top: 1.25rem; margin-bottom: 1rem; color: var(--color-primary-foreground); }
@media (min-width: 768px) { .newsletter-title { font-size: 3rem; } }
.newsletter-text { color: color-mix(in srgb, var(--color-primary-foreground) 85%, transparent); font-size: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .newsletter-text { font-size: 1.125rem; } }
.newsletter-form { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; max-width: 32rem; margin: 0 auto; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-input {
	flex: 1; height: 3.5rem; border-radius: 999px; background: var(--color-card); padding: 0 1.5rem;
	font-size: 1rem; color: var(--color-foreground); border: 1px solid transparent; box-shadow: var(--shadow-soft);
}
.newsletter-input:focus { outline: none; border-color: var(--color-primary); }
.newsletter-submit-btn {
	height: 3.5rem; border-radius: 999px; padding: 0 2rem; font-size: 1rem; font-weight: 600;
	box-shadow: var(--shadow-soft); background: var(--color-accent); color: var(--color-accent-foreground);
	transition: opacity 0.2s ease;
}
.newsletter-submit-btn:hover { opacity: 0.9; }
.newsletter-success {
	display: inline-flex; align-items: center; gap: 0.75rem; border-radius: 1rem; background: var(--color-card);
	padding: 1rem 1.5rem; text-align: left; box-shadow: var(--shadow-soft); margin: 0 auto;
}
.newsletter-success[hidden] { display: none; }
.newsletter-success-icon { width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--color-primary); color: var(--color-primary-foreground); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.newsletter-success-title { font-family: var(--font-display); font-weight: 700; color: var(--color-foreground); margin: 0; }
.newsletter-success-text { font-size: 0.875rem; color: var(--color-muted-foreground); margin: 0; }
.newsletter-footnote { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-primary-foreground) 75%, transparent); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact-title { font-size: 1.875rem; margin-top: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .contact-title { font-size: 3rem; } }
.contact-text { max-width: 32rem; margin-bottom: 2rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-info-icon { width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--color-muted); display: flex; align-items: center; justify-content: center; color: var(--color-primary); flex-shrink: 0; }
.contact-mailto, .contact-instagram, .contact-info-text {
	padding-top: 0.5rem;
	font-size: 1rem;
	line-height: 1.5;
	font-family: var(--font-body);
}
.contact-mailto, .contact-instagram { word-break: break-all; transition: color 0.2s ease; }
.contact-mailto:hover, .contact-instagram:hover { color: var(--color-primary); }

.contact-form-card { border-radius: 1.5rem; background: var(--color-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); padding: 1.5rem; }
@media (min-width: 768px) { .contact-form-card { padding: 2rem; } }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .contact-form-row { grid-template-columns: 1fr 1fr; } }
.contact-field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; font-family: var(--font-body); }
.contact-field input, .contact-field textarea {
	width: 100%;
	box-sizing: border-box;
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--color-foreground);
	transition: border-color 0.2s ease;
}
.contact-field input::placeholder, .contact-field textarea::placeholder {
	color: var(--color-muted-foreground);
	opacity: 1;
}
.contact-field input:focus, .contact-field textarea:focus { outline: none; border-color: var(--color-primary); }
.contact-field textarea { resize: none; }
.contact-submit-btn { width: 100%; }
.contact-success { display: none; text-align: center; padding: 2.5rem 0; }
.contact-success:not([hidden]) { display: block; }
.contact-success-icon { width: 4rem; height: 4rem; border-radius: 999px; background: var(--color-primary); color: var(--color-primary-foreground); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.contact-success h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-success p { color: var(--color-muted-foreground); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--color-border); background: var(--color-muted); }
.footer-grid { display: grid; gap: 2.5rem; padding: 3rem 0 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3rem; padding: 4rem 0; } }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.footer-description { margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; max-width: 24rem; }
.footer-instagram-link {
	margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
	border: 1px solid var(--color-border); background: var(--color-card); padding: 0.5rem 1rem; font-size: 0.875rem;
	font-weight: 600; transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-instagram-link:hover { color: var(--color-primary); border-color: var(--color-primary); }
.footer-heading { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1rem; color: var(--color-accent); }
.theme-footer-nav-list, .theme-footer-nav-list-mobile { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-footer-nav-list a { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.theme-footer-nav-list a:hover { color: var(--color-primary); }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.footer-mailto { word-break: break-all; transition: color 0.2s ease; }
.footer-mailto:hover { color: var(--color-primary); }
.footer-bottom {
	border-top: 1px solid var(--color-border); padding: 1.5rem 0; display: flex; flex-direction: column;
	gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-credit a { color: var(--color-primary); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* ==========================================================================
   404
   ========================================================================== */

.theme-404-main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0 1.5rem; }
.theme-404-wrap { text-align: center; max-width: 28rem; }
.theme-404-code { font-family: var(--font-display); font-size: 3.75rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.5rem; }
.theme-404-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
.theme-404-text { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-404-cta { display: inline-block; border-radius: 999px; background: var(--color-primary); color: var(--color-primary-foreground); padding: 0.75rem 2rem; font-weight: 600; transition: opacity 0.2s ease; }
.theme-404-cta:hover { opacity: 0.9; }

.section-heading,
.contact-title,
.books-section-heading,
.shop-heading,
.offerings-heading,
.about-section-heading,
.meet-gary-heading {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.site-main,
.scroll-reveal-section,
section[id] {
	max-width: 100%;
	overflow-x: clip;
}

.site-header .container-wide {
	overflow-x: clip;
}

.hero-grid > *,
.contact-grid > *,
.book-feature-grid > *,
.about-grid > *,
.meet-gary-grid > *,
.resources-grid > *,
.theme-product-grid > *,
.bundle-banner-copy,
.newsletter-form > * {
	min-width: 0;
}

/* ==========================================================================
   Scroll reveal (Section 2.1) + Customizer preview fallback
   ========================================================================== */

.reveal-item, .scale-in-item {
	opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}
.scale-in-item { transform: translateY(20px) scale(0.96); }
.reveal-item.is-visible, .scale-in-item.is-visible { opacity: 1; transform: translateY(0) scale(1); }

body.is-customizer .reveal-item,
body.is-customizer .scale-in-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item, .scale-in-item, .hero-anim, .hero-media, .hero-media-float,
	.hero-blob, .hero-badge-icon-spin, .hero-stat-icon-bob, .hero-stat-icon-wiggle,
	.hero-floating-card, .marquee-track, .theme-page-loader-logo {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ==========================================================================
   WooCommerce — Add to Cart button 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-primary-foreground) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: 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-primary-foreground) !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; }

/* Section 11.4.2 — hide the injected "View cart" link. */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* ==========================================================================
   WooCommerce — single product (ProductDetail.tsx parity)
   ========================================================================== */

/* ProductDetail.tsx: main pt-24 lg:pt-28 — total offset from viewport top (not header + pt). */
body.theme-no-hero .site-main.single-product-main {
	padding-top: 6rem !important;
	padding-bottom: 0;
}
@media (min-width: 1024px) {
	body.theme-no-hero .site-main.single-product-main {
		padding-top: 7rem !important;
	}
}
body.admin-bar.theme-no-hero .site-main.single-product-main {
	padding-top: calc(6rem + var(--wp-admin-bar-height)) !important;
}
@media (min-width: 1024px) {
	body.admin-bar.theme-no-hero .site-main.single-product-main {
		padding-top: calc(7rem + var(--wp-admin-bar-height)) !important;
	}
}

.back-to-shop-row { padding: 1.5rem 0; }
.back-to-shop-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.back-to-shop-link:hover { color: var(--color-foreground); }

.theme-product-layout { display: grid; gap: 2.5rem; padding-bottom: 5rem; min-width: 0; }
@media (min-width: 1024px) {
	.theme-product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
}
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; padding-bottom: 2.5rem; } }

.theme-product-main-image-wrap {
	aspect-ratio: 3 / 4;
	background: color-mix(in srgb, var(--color-secondary) 100%, transparent);
	overflow: hidden;
	margin-bottom: 1rem;
	border-radius: 0;
}
.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; max-width: 100%; }
.theme-product-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 2px solid transparent;
	opacity: 0.6;
	transition: opacity 0.2s ease, border-color 0.2s ease;
	padding: 0;
	background: var(--color-muted);
}
.theme-product-thumb.is-active, .theme-product-thumb:hover { opacity: 1; border-color: var(--color-primary); }
.theme-product-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.theme-product-category { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); }
.product-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	line-height: 1.15;
}
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }
.theme-product-price {
	font-family: var(--font-body);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 1.5rem;
}
.theme-product-description {
	color: var(--color-muted-foreground);
	line-height: 1.7;
	margin-bottom: 2rem;
	font-family: var(--font-body);
	white-space: pre-line;
	overflow-wrap: break-word;
}

.theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.single-product-main .theme-single-atc { flex: 1 1 auto; min-width: 10rem; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 999px; }
.theme-qty-minus, .theme-qty-plus { padding: 0.75rem 1rem; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-muted); }
.theme-qty-display {
	min-width: 3rem;
	text-align: center;
	padding: 0.75rem 0.5rem;
	font-family: var(--font-body);
}
.theme-qty-input { display: none; }

.theme-inquiry-cta { margin-bottom: 2rem; }
.theme-inquiry-note { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.75rem; font-family: var(--font-body); }

.theme-product-details { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.theme-product-details-heading { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; font-family: var(--font-body); }
.theme-product-details-list { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-details-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--color-muted-foreground); font-family: var(--font-body); }

.theme-variation-group { margin-bottom: 1.5rem; }
.theme-variation-label { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; font-family: var(--font-body); }
.theme-variation-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-variation-pills--color { gap: 0.75rem; }
.theme-product-option-group { margin-bottom: 1.5rem; }
.theme-variation-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	border: 1px solid var(--color-border);
	background: transparent;
	font-family: var(--font-body);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.theme-variation-pill:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-variation-pill.is-active { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.theme-variation-pill--color.is-active { background: color-mix(in srgb, var(--color-primary) 8%, transparent); color: var(--color-foreground); border-color: var(--color-primary); }
.theme-variation-swatch { width: 1rem; height: 1rem; border-radius: 999px; border: 1px solid var(--color-border); flex-shrink: 0; }
.theme-variation-select-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-products-heading { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .related-products-heading { font-size: 1.5rem; } }

.theme-related-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}
@media (min-width: 1024px) {
	.theme-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}
.theme-related-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 1rem;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	transition: box-shadow 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth);
}
.theme-related-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-6px); }
.theme-related-card__image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-muted); }
.theme-related-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--transition-smooth); }
.theme-related-card:hover .theme-related-card__image { transform: scale(1.06); }
.theme-related-card__badge {
	position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1;
	border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.875rem; font-weight: 600;
	background: var(--color-primary); color: var(--color-primary-foreground);
}
.theme-related-card__body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.theme-related-card__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; margin: 0; transition: color 0.3s ease; }
.theme-related-card:hover .theme-related-card__title { color: var(--color-primary); }
.theme-related-card__category { font-size: 0.875rem; color: var(--color-muted-foreground); margin: 0.25rem 0 0; font-family: var(--font-body); }
.theme-related-card__price { margin-top: auto; padding-top: 0.75rem; font-size: 1rem; font-weight: 700; font-family: var(--font-body); color: var(--color-foreground); }

.single-product-main .woocommerce-message,
.single-product-main .woocommerce-info,
.single-product-main .woocommerce-breadcrumb,
.single-product-main .product_meta,
.single-product-main .woocommerce-tabs,
.single-product-main .woocommerce-product-gallery { display: none !important; }

/* Variations — hide legacy table if any WC hook injects it */
.single-product-main .variations.shop_attributes { display: none !important; }
.single-product-main .single_variation_wrap .woocommerce-variation-price { display: none; }

/* ==========================================================================
   WooCommerce — Side Cart Drawer (Section 12, 22.5)
   ========================================================================== */

#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 28rem; z-index: 95;
	background: var(--color-background); box-shadow: var(--shadow-elevated); display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform 0.4s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer-title { font-size: 1.125rem; }
.theme-cart-drawer-close { padding: 0.25rem; opacity: 0.7; transition: opacity 0.2s ease; }
.theme-cart-drawer-close:hover { opacity: 1; }

.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; color: var(--color-muted-foreground); }

.theme-cart-drawer-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-drawer-item { display: flex; gap: 1rem; }
.theme-cart-drawer-item-img { width: 5rem; height: 6rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); display: block; }
.theme-cart-drawer-item-img .theme-cart-drawer-item-image { width: 100%; height: 100%; object-fit: cover; display: block; }
#theme-cart-drawer .theme-cart-drawer-item-image { opacity: 1; }
.theme-cart-drawer-item-info { flex: 1; min-width: 0; }
.theme-cart-drawer-item-title { font-size: 0.875rem; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-drawer-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.15rem; }
.theme-cart-item-meta { list-style: none; margin: 0.35rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.theme-cart-item-meta__row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--color-muted-foreground); font-family: var(--font-body); }
.theme-cart-item-meta__swatch { width: 0.75rem; height: 0.75rem; border-radius: 999px; border: 1px solid var(--color-border); flex-shrink: 0; display: inline-block; }
.theme-cart-item-meta__swatch--inline { vertical-align: middle; margin-right: 0.25rem; }
.theme-cart-item-meta__value { line-height: 1.3; }
.theme-cart-drawer-item-variation { display: none; }
.theme-cart-drawer-item-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s ease; }
.theme-cart-qty-btn:hover { background: var(--color-muted); }
.theme-cart-drawer-item-qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-remove-btn { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.theme-cart-remove-btn: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-shipping-note { font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-checkout-btn { text-align: center; }

/* ==========================================================================
   WooCommerce notices (Section 14.1)
   ========================================================================== */

.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	list-style: none; padding: 1rem 1.5rem; border-radius: 0.75rem; margin-bottom: 1.5rem;
	background: var(--color-muted); color: var(--color-foreground); font-size: 0.9rem;
}
.woocommerce-error { background: color-mix(in srgb, var(--color-destructive) 12%, var(--color-background)); color: var(--color-destructive); }

/* ==========================================================================
   WooCommerce — Checkout Block (Checkout.tsx parity)
   Dual selectors: dedicated checkout page + embedded block in .entry-content
   ========================================================================== */

body.woocommerce-checkout .site-main.theme-checkout-main,
body.woocommerce-checkout .site-main { padding-top: 6rem; padding-bottom: 4rem; }
@media (min-width: 1024px) {
	body.woocommerce-checkout .site-main.theme-checkout-main,
	body.woocommerce-checkout .site-main { padding-top: 7rem; }
}
body.admin-bar.woocommerce-checkout .site-main { padding-top: calc(6rem + var(--wp-admin-bar-height)); }
@media (min-width: 1024px) {
	body.admin-bar.woocommerce-checkout .site-main { padding-top: calc(7rem + var(--wp-admin-bar-height)); }
}

body.woocommerce-checkout .theme-checkout-wrap,
body.woocommerce-checkout .entry-content-wrap,
.entry-content .theme-checkout-wrap {
	max-width: none;
	width: 100%;
	padding-top: 0;
}

.theme-checkout-header { margin-bottom: 2.5rem; }
.theme-checkout-back-link {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 0.875rem; color: var(--color-muted-foreground);
	margin-bottom: 2rem; transition: color 0.2s ease; font-family: var(--font-body);
}
.theme-checkout-back-link:hover { color: var(--color-foreground); }
.theme-checkout-title {
	font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; margin: 0 0 0.75rem;
}
@media (min-width: 768px) { .theme-checkout-title { font-size: 2.25rem; } }
.theme-checkout-intro { color: var(--color-muted-foreground); font-family: var(--font-body); margin: 0 0 2rem; max-width: 42rem; }

/* D — full-width checkout container */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	display: block;
	width: 100%;
	max-width: 80rem;
	margin-inline: auto;
	box-sizing: border-box;
}

body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .entry-content-wrap .entry-content,
.entry-content .entry-content {
	max-width: none;
}

/* E — two-column sidebar layout */
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout.is-large,
	.entry-content .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-checkout.is-large {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: 1.5rem;
		align-items: start;
		width: 100%;
		max-width: 80rem;
		margin-inline: auto;
		box-sizing: border-box;
	}
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *,
.entry-content .wc-block-components-sidebar-layout > *,
.entry-content .wc-block-checkout-sidebar-layout > * {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	grid-column: 1 / -1;
	order: 1;
	max-width: 80rem;
	margin-inline: auto;
	width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-components-main {
	order: 2;
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar {
	order: 3;
	min-width: 0;
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout__sidebar,
	.entry-content .wc-block-components-sidebar {
		min-width: min(360px, 100%);
	}
}

body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

/* F — sidebar bg only on order summary */
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar,
.entry-content .wp-block-woocommerce-checkout-totals-block {
	background: none;
	border-radius: 0;
	padding: 0;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	background-color: var(--color-muted);
	border-radius: var(--card-radius, 1rem);
	padding: 2rem;
	box-sizing: border-box;
}

/* Order summary thumbnails — WC Blocks (no theme fade-in / no responsive shrink) */
body.woocommerce-checkout .wc-block-components-order-summary-item,
.entry-content .wc-block-components-order-summary-item {
	overflow: visible;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image,
.entry-content .wc-block-components-order-summary-item__image {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	position: relative;
	overflow: visible;
	margin-top: 0.25rem;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image img,
.entry-content .wc-block-components-order-summary-item__image img {
	opacity: 1;
	width: 48px;
	height: 48px;
	max-width: 48px;
	min-width: 48px;
	min-height: 48px;
	object-fit: cover;
	display: block;
	border-radius: 0.25rem;
}

/* Quantity badge (top-right circle — not a remove control) */
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity,
.entry-content .wc-block-components-order-summary-item__quantity {
	align-items: center;
	background-color: var(--color-foreground);
	border: 2px solid var(--color-background);
	box-shadow: 0 0 0 2px var(--color-background);
	color: var(--color-background);
	display: flex;
	justify-content: center;
	line-height: 1;
	min-height: 20px;
	min-width: 20px;
	border-radius: 999px;
	position: absolute;
	right: 0;
	top: 0;
	transform: translate(50%, -50%);
	white-space: nowrap;
	z-index: 2;
	pointer-events: none;
	font-size: 0.75rem;
	font-weight: 700;
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity span,
.entry-content .wc-block-components-order-summary-item__quantity span {
	color: var(--color-background);
	padding: 0 0.4em;
}

body.woocommerce-checkout .wc-block-components-order-summary__content,
.entry-content .wc-block-components-order-summary__content {
	overflow: visible;
	padding-top: 0.5rem;
}

/* H — empty checkout cart */
body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
	margin-inline: auto;
	max-width: 36rem;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select,
.entry-content .wc-block-components-text-input input,
.entry-content .wc-block-components-select select,
.entry-content .wc-block-components-textarea textarea {
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;
	background-color: var(--color-background);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-components-text-input input:focus,
.entry-content .wc-block-components-select select:focus {
	outline: none;
	border-color: var(--color-primary);
}
body.woocommerce-checkout .wc-block-components-text-input input,
.entry-content .wc-block-components-text-input input {
	padding: revert;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	text-transform: none !important;
}

/* ==========================================================================
   Cart / My Account / Thank-you width parity (Section 13.7)
   ========================================================================== */

body.woocommerce-cart .site-main,
body.woocommerce-account .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }

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; }
body.theme-thankyou-page .woocommerce-customer-details {
	display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 30rem; overflow-wrap: break-word;
	border: 1px solid var(--color-border); border-radius: 0.75rem; padding: 1rem; font-style: normal;
}
