/* ==========================================================================
   3R's of Foundational Education — Theme Stylesheet
   Ported from the original source design (Tailwind v3 + shadcn tokens).
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
	--color-background: #f9f6f1;
	--color-foreground: #2d1d30;
	--color-primary: #592c63;
	--color-primary-foreground: #fbf9f4;
	--color-secondary: #f1ede4;
	--color-muted-foreground: #69556d;
	--color-accent: #e95f49;
	--color-accent-foreground: #fbf9f4;
	--color-border: #d5ccd7;
	--color-surface-oat: #f7f2e9;
	--color-surface-blush: #f6e7df;
	--color-surface-sage: #e0e7da;
	--color-surface-sky: #dee8ed;
	--color-surface-butter: #f6e8cb;

	--radius: 0.25rem;
	--font-display: 'DM Serif Display', 'Cormorant Garamond', Georgia, serif;
	--font-body: 'Inter', 'Helvetica Neue', sans-serif;

	--shadow-soft: 0 6px 24px -8px rgba(45, 29, 48, 0.14);
	--shadow-elevated: 0 14px 40px -12px rgba(45, 29, 48, 0.22);
	--ease-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);

	--header-height: 76px;
	--logo-height: 60px;

	--btn-radius: 9999px;
	--btn-height: 3rem;
	--btn-padding: 0 2rem;
	--btn-font-size: 0.75rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.28em;
	--btn-text-transform: uppercase;
	--color-button-text: var(--color-primary-foreground);
	--card-radius: 0.5rem;
	--section-padding: 2rem;
	--checkout-gap: 2rem;
	--container-padding-x: 1.5rem;
}

@media (min-width: 1024px) {
	:root {
		--header-height: 92px;
		--container-padding-x: 2.5rem;
	}
}

/* -------------------------------------------------------------------------
   2. Reset / base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.theme-product-gallery__main-img):not(.curriculum-card__img):not(.theme-cart-item__image img) {
	height: auto;
}
.cover-img, .hero-bg-img, .product-card-img, .theme-product-gallery__main-img, .curriculum-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: inherit;
	letter-spacing: -0.015em;
	text-transform: none;
	margin: 0;
	line-height: 1.1;
}

.section-heading {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.015em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus {
	position: fixed; top: 1rem; left: 1rem; z-index: 9999;
	background: var(--color-primary); color: var(--color-primary-foreground);
	padding: 0.75rem 1.25rem; border-radius: 0.5rem;
}

/* -------------------------------------------------------------------------
   3. Containers & typography helpers
   ------------------------------------------------------------------------- */
.container-wide { width: 100%; max-width: 80rem; margin: 0 auto; padding-left: var(--container-padding-x); padding-right: var(--container-padding-x); }
.container-editorial { width: 100%; max-width: 64rem; margin: 0 auto; padding-left: var(--container-padding-x); padding-right: var(--container-padding-x); }

.label-eyebrow {
	font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
	font-weight: 600; color: var(--color-muted-foreground); display: block;
}
.label-eyebrow--on-primary { color: color-mix(in srgb, var(--color-primary-foreground) 90%, transparent); }

.eyebrow {
	font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
	font-weight: 600; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); display: block;
}

.heading-accent-rule {
	display: inline-block; width: 48px; height: 3px; border-radius: 9999px;
	background-image: linear-gradient(90deg, var(--color-primary), var(--color-accent));
	margin-top: 1.25rem;
}

.drop-cap::first-letter {
	font-family: var(--font-display);
	float: left; margin-right: 0.75rem; margin-top: 0.25rem;
	font-size: 4.5rem; line-height: 0.85; color: var(--color-primary);
}

.theme-icon { flex-shrink: 0; }

/* -------------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------------- */
.btn-gradient, .btn-hero-outline, .btn-membership-pill, .btn-membership-block,
.theme-btn-outline, .theme-btn-full, .btn-modal-submit, .btn-contact-cta,
.btn-message-block, .shop-filter-chip {
	font-family: var(--font-body);
}

.btn-gradient {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	height: 3rem; padding: 0 2rem; border-radius: 9999px;
	font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
	color: var(--color-primary-foreground);
	background-image: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent) 100%);
	box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--color-primary) 35%, transparent);
	transition: transform 0.3s var(--ease-smooth);
	border: none;
}
.btn-gradient:hover { transform: translateY(-1px); }

.btn-hero-outline {
	display: inline-flex; align-items: center; gap: 0.5rem;
	height: 2.75rem; padding: 0 1.25rem; border-radius: 9999px;
	border: 1px solid color-mix(in srgb, var(--color-primary-foreground) 70%, transparent);
	font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
	color: var(--color-primary-foreground);
	transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-hero-outline:hover { background-color: var(--color-primary-foreground); color: var(--color-primary); }

.btn-membership-pill {
	display: inline-flex; align-items: center; gap: 0.5rem;
	height: 2.5rem; padding: 0 1rem; border-radius: 9999px;
	background-color: var(--color-primary); color: var(--color-primary-foreground);
	font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
	transition: opacity 0.2s ease;
}
.btn-membership-pill:hover { opacity: 0.9; }

.btn-membership-block, .btn-message-block {
	display: flex; align-items: center; justify-content: center; gap: 0.5rem;
	width: 100%; height: 3rem; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
}
.btn-membership-block { background-color: var(--color-primary); color: var(--color-primary-foreground); }
.btn-message-block { border: 1px solid var(--color-foreground); color: var(--color-foreground); background: transparent; }

.theme-btn-outline {
	display: inline-flex; align-items: center; justify-content: center;
	height: 2.5rem; padding: 0 1.5rem; border: 1px solid var(--color-primary);
	font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; background: transparent; color: var(--color-foreground);
	transition: all 0.2s ease;
}
.theme-btn-outline:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.theme-btn-full, a.theme-btn-full {
	display: flex; align-items: center; justify-content: center; width: 100%;
	height: 3.5rem; font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
	background-color: var(--color-foreground); color: var(--color-background);
	border: 1px solid var(--color-foreground); transition: all 0.25s ease;
}
.theme-btn-full:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.theme-btn-full.disabled, .theme-btn-full[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.btn-contact-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	height: 3rem; padding: 0 2rem; background-color: var(--color-background); color: var(--color-foreground);
	font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
	box-shadow: var(--shadow-elevated); border-radius: 9999px; transition: background-color 0.2s ease;
}
.btn-contact-cta:hover { background-color: color-mix(in srgb, var(--color-background) 90%, transparent); }

.btn-modal-submit {
	display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 1.5rem;
	background-color: var(--color-primary); color: var(--color-primary-foreground);
	font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
	border: 1px solid var(--color-primary); transition: all 0.2s ease;
}
.btn-modal-submit:hover { background-color: transparent; color: var(--color-primary); }
.btn-modal-submit:disabled { opacity: 0.6; cursor: wait; }

/* -------------------------------------------------------------------------
   5. Scroll reveal / motion
   ------------------------------------------------------------------------- */
.reveal-item, .reveal-hero {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-item.is-visible, .reveal-hero.is-visible { opacity: 1; transform: translateY(0); }
.reveal-hero { transform: translateY(20px); transition-duration: 0.9s; }

body.is-customizer .reveal-item,
body.is-customizer .reveal-hero {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item, .reveal-hero { transition: none; opacity: 1; transform: none; }
	.marquee-track, .image-zoom, .curriculum-card__img { animation: none !important; transition: none !important; }
}

.theme-scroll-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
	background-color: var(--color-primary); transform-origin: 0 50%; transform: scaleX(0);
	transition: background-color 0.3s ease; pointer-events: none;
}
body.contact-modal-open .theme-scroll-progress,
body.cart-open .theme-scroll-progress { background-color: var(--color-primary-foreground); }

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes theme-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------------------------------------------------------------------------
   6. Header
   ------------------------------------------------------------------------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-solid { border-bottom-color: var(--color-border); }

.site-nav {
	position: relative; display: flex; align-items: center; justify-content: space-between;
	height: var(--header-height);
}

.site-nav__mobile-toggle { display: flex; align-items: center; flex: 1; }
.theme-mobile-menu-btn { padding: 0.5rem; }

.site-branding {
	display: flex; align-items: center; gap: 0.75rem;
	position: absolute; left: 50%; transform: translateX(-50%);
}
.site-badge {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem; border-radius: 9999px;
	background-color: var(--color-primary); color: var(--color-primary-foreground);
	font-family: var(--font-display); font-size: 1.125rem; line-height: 1; flex-shrink: 0;
}
.site-badge--sm { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
.site-name-group { display: none; flex-direction: column; line-height: 1.2; }
.site-name { font-family: var(--font-display); font-size: 1.125rem; color: var(--color-foreground); }
.site-tagline { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: var(--color-muted-foreground); }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }

.site-nav__mobile-cart { display: flex; align-items: center; justify-content: flex-end; flex: 1; }
.site-nav__right { display: none; align-items: center; gap: 2rem; justify-content: flex-end; flex: 1; }

.theme-nav-list { display: flex; align-items: center; gap: 1.25rem; }
.nav-link {
	font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
	color: var(--color-foreground); transition: color 0.3s ease;
}
.nav-link:hover { color: var(--color-primary); }

.theme-cart-btn { position: relative; padding: 0.5rem; transition: opacity 0.3s ease; }
.theme-cart-btn:hover { opacity: 0.7; }
.theme-cart-count {
	position: absolute; top: -2px; right: -2px; width: 1.25rem; height: 1.25rem;
	display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600;
	background-color: var(--color-accent); color: var(--color-accent-foreground); border-radius: 9999px;
}
.theme-cart-count:empty { display: none; }

@media (min-width: 640px) { .site-name-group { display: flex; } }
@media (min-width: 768px) { .btn-membership-pill { display: inline-flex; } }
@media (max-width: 767px) { .btn-membership-pill { display: none; } }
@media (min-width: 1024px) {
	.site-nav__mobile-toggle, .site-nav__mobile-cart { display: none; }
	.site-branding { position: static; transform: none; flex: 1; justify-content: flex-start; }
	.site-nav__right { display: flex; }
}

/* Mobile menu drawer */
.theme-mobile-menu {
	position: fixed; top: 0; left: 0; height: 100%; width: 88vw; max-width: 24rem;
	background-color: var(--color-background); border-right: 1px solid var(--color-border);
	z-index: 80; transform: translateX(-100%); transition: transform 0.3s var(--ease-smooth);
}
body.mobile-menu-open .theme-mobile-menu { transform: translateX(0); }
.theme-mobile-menu__panel {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.theme-mobile-menu-overlay {
	position: fixed; inset: 0; background-color: color-mix(in srgb, var(--color-foreground) 30%, transparent);
	z-index: 79; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
body.mobile-menu-open .theme-mobile-menu-overlay { opacity: 1; pointer-events: auto; }

.theme-mobile-menu__header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 1.25rem; height: 76px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
	flex-shrink: 0;
}
.site-branding--compact { position: static; transform: none; }
.site-name--compact { font-family: var(--font-display); font-size: 1rem; }
.theme-mobile-menu-close { padding: 0.25rem; }
.theme-mobile-menu__nav {
	flex: 1;
	overflow-y: auto;
	padding: 0.75rem 0.5rem;
	display: flex;
	flex-direction: column;
}
.theme-mobile-nav-list,
.theme-mobile-menu__nav .theme-nav-list,
.theme-mobile-menu__nav .menu {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}
.theme-mobile-nav-list li { border-bottom: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent); }
.theme-mobile-nav-list a {
	display: block; width: 100%; padding: 1rem 0.75rem; font-family: var(--font-display); font-size: 1.125rem; color: var(--color-foreground);
}
.theme-mobile-menu__actions {
	padding: 1rem 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex-shrink: 0;
	border-top: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
}

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */
.hero-section { position: relative; width: 100%; height: 100svh; overflow: hidden; background-color: var(--color-foreground); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-gradient {
	position: absolute; inset: 0;
	background-image: linear-gradient(to right,
		color-mix(in srgb, hsl(290 25% 10%) 85%, transparent) 0%,
		color-mix(in srgb, hsl(290 25% 10%) 50%, transparent) 50%,
		color-mix(in srgb, hsl(290 25% 10%) 25%, transparent) 100%);
}
@media (min-width: 1024px) {
	.hero-gradient { background-image: linear-gradient(to right,
		color-mix(in srgb, hsl(290 25% 10%) 75%, transparent) 0%,
		color-mix(in srgb, hsl(290 25% 10%) 40%, transparent) 50%,
		transparent 100%); }
}
.hero-inner {
	position: relative; z-index: 10; height: 100%;
	display: flex; align-items: center; justify-content: center;
	padding: 6rem var(--container-padding-x) 4rem;
}
@media (min-width: 1024px) { .hero-inner { padding: 6rem var(--container-padding-x) 0; } }
.hero-content { max-width: 48rem; color: hsl(40 50% 97%); text-align: center; }
.hero-eyebrow {
	display: block; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600;
	color: color-mix(in srgb, hsl(40 50% 97%) 85%, transparent); margin-bottom: 1rem;
}
@media (min-width: 640px) { .hero-eyebrow { font-size: 11px; } }
.hero-title {
	font-size: 2rem; line-height: 1.05; letter-spacing: -0.015em; font-weight: 400;
	text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
@media (min-width: 640px) { .hero-title { font-size: 2.25rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-subtitle {
	margin-top: 1rem; max-width: 42rem; margin-left: auto; margin-right: auto;
	font-size: 0.875rem; color: color-mix(in srgb, hsl(40 50% 97%) 90%, transparent); line-height: 1.7;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1rem; } }
.hero-cta-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }

/* -------------------------------------------------------------------------
   8. Pillars
   ------------------------------------------------------------------------- */
.pillars-section { background-color: var(--color-background); scroll-margin-top: 6rem; }
.pillars-inner { padding: 5rem var(--container-padding-x); }
@media (min-width: 1024px) { .pillars-inner { padding: 7rem var(--container-padding-x); } }
.pillars-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.pillars-intro { grid-column: span 1; }
@media (min-width: 1024px) { .pillars-intro { grid-column: span 4; position: sticky; top: 8rem; align-self: flex-start; } }
.pillars-intro .label-eyebrow { margin-bottom: 1rem; }
.pillars-heading { color: var(--color-foreground); font-size: 1.875rem; line-height: 1.1; margin-top: 0; }
@media (min-width: 768px) { .pillars-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .pillars-heading { font-size: 2.75rem; } }
.pillars-heading em { font-style: italic; }
.pillars-intro .heading-accent-rule { margin-top: 1.5rem; }
.pillars-body { margin-top: 1.5rem; font-size: 15px; color: var(--color-muted-foreground); line-height: 1.625; }

.pillars-cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; grid-column: span 1; }
@media (min-width: 640px) { .pillars-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pillars-cards { grid-template-columns: repeat(3, 1fr); grid-column: span 8; } }

.pillar-card {
	position: relative; background-color: var(--color-background);
	border: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
	padding: 1.75rem; display: flex; flex-direction: column;
	transition: all 0.4s var(--ease-smooth);
}
.pillar-card::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
	background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
	opacity: 0; transition: opacity 0.4s var(--ease-smooth);
}
.pillar-card:hover {
	border-color: color-mix(in srgb, var(--color-primary) 25%, transparent);
	box-shadow: var(--shadow-soft); transform: translateY(-3px);
}
.pillar-card:hover::before { opacity: 1; }
@media (min-width: 1024px) { .pillar-card { padding: 2rem; } }
.pillar-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.pillar-card__icon {
	width: 2.75rem; height: 2.75rem; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
	display: inline-flex; align-items: center; justify-content: center; color: var(--color-primary);
}
.pillar-card__number { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 1.875rem; color: color-mix(in srgb, var(--color-foreground) 15%, transparent); }
.pillar-card__label { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-foreground); margin-bottom: 0.5rem; }
.pillar-card__body { font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.7; }

/* -------------------------------------------------------------------------
   9. Curriculum
   ------------------------------------------------------------------------- */
.curriculum-section { position: relative; overflow: hidden; background-color: var(--color-primary); scroll-margin-top: 6rem; }
.curriculum-inner { position: relative; z-index: 10; padding: 5rem var(--container-padding-x); }
@media (min-width: 1024px) { .curriculum-inner { padding: 7rem var(--container-padding-x); } }
.curriculum-intro { text-align: center; max-width: 42rem; margin: 0 auto 3.5rem; }
.curriculum-heading { color: hsl(40 50% 97%); font-size: 1.875rem; line-height: 1.2; margin-top: 0.75rem; }
@media (min-width: 768px) { .curriculum-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .curriculum-heading { font-size: 3rem; } }
.curriculum-heading em { font-style: italic; }

.curriculum-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .curriculum-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .curriculum-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }

.curriculum-card {
	text-align: left; overflow: hidden; background-color: var(--color-background);
	display: flex; flex-direction: column; width: 100%;
	transition: all 0.5s var(--ease-smooth);
}
.curriculum-card:hover { box-shadow: var(--shadow-elevated); }
.curriculum-card__image-wrapper { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.curriculum-card__img { transition: transform 0.7s ease-out; }
.curriculum-card:hover .curriculum-card__img { transform: scale(1.03); }
.curriculum-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .curriculum-card__body { padding: 1.75rem; } }
.curriculum-card__icon {
	width: 2.75rem; height: 2.75rem; border-radius: 9999px; background-color: color-mix(in srgb, var(--color-accent) 15%, transparent);
	color: var(--color-accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.curriculum-card__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-foreground); margin-bottom: 0.5rem; }
.curriculum-card__desc { font-size: 14px; color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 1.25rem; flex: 1; }
.curriculum-card__cta {
	display: inline-flex; align-items: center; gap: 0.375rem; font-size: 11px; letter-spacing: 0.24em;
	text-transform: uppercase; font-weight: 600; color: var(--color-primary); transition: gap 0.3s ease; width: fit-content;
}
.curriculum-card:hover .curriculum-card__cta { gap: 0.5rem; }

/* -------------------------------------------------------------------------
   10. Marquee
   ------------------------------------------------------------------------- */
.marquee-band { background-color: var(--color-primary); color: var(--color-primary-foreground); overflow: hidden; padding: 1rem 0; }
@media (min-width: 1024px) { .marquee-band { padding: 1.25rem 0; } }
.marquee-track { display: flex; white-space: nowrap; animation: theme-marquee 30s linear infinite; width: fit-content; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item { display: flex; align-items: center; }
.marquee-text { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; padding: 0 1.5rem; }
@media (min-width: 768px) { .marquee-text { font-size: 13px; padding: 0 2rem; } }
@media (min-width: 1024px) { .marquee-text { padding: 0 2.5rem; } }
.marquee-dot { width: 6px; height: 6px; border-radius: 9999px; background-color: color-mix(in srgb, var(--color-primary-foreground) 60%, transparent); }

/* -------------------------------------------------------------------------
   11. About / letter paper
   ------------------------------------------------------------------------- */
.about-section { background-color: var(--color-background); scroll-margin-top: 6rem; }
.about-inner { padding: 5rem var(--container-padding-x); }
@media (min-width: 1024px) { .about-inner { padding: 7rem var(--container-padding-x); } }

.letter-paper {
	position: relative; max-width: 48rem; margin: 0 auto; padding: 3rem 2rem;
	color: var(--color-foreground); background-color: var(--color-surface-butter);
	background-image:
		linear-gradient(90deg, transparent 39px, color-mix(in srgb, var(--color-accent) 12%, transparent) 39px, color-mix(in srgb, var(--color-accent) 12%, transparent) 40px, transparent 40px),
		linear-gradient(color-mix(in srgb, var(--color-foreground) 6%, transparent) 1px, transparent 1px);
	background-size: 100% 1.7rem;
	box-shadow: 0 1px 1px color-mix(in srgb, var(--color-foreground) 8%, transparent),
		0 8px 28px -6px color-mix(in srgb, var(--color-foreground) 15%, transparent),
		0 18px 48px -12px color-mix(in srgb, var(--color-foreground) 12%, transparent);
	border-radius: 2px;
}
@media (min-width: 768px) { .letter-paper { padding: 4rem 3.5rem; } }
@media (min-width: 1024px) { .letter-paper { padding: 5rem 4.5rem; } }
.letter-paper__content { position: relative; z-index: 10; }
.letter-paragraph { font-family: var(--font-display); color: color-mix(in srgb, var(--color-foreground) 90%, transparent); font-size: 1.125rem; line-height: 1.7; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .letter-paragraph { font-size: 1.25rem; } }
@media (min-width: 1024px) { .letter-paragraph { font-size: 1.5rem; } }
.letter-paragraph--last { margin-bottom: 2.5rem; }
.letter-signoff { font-family: var(--font-display); color: var(--color-foreground); font-size: 1.25rem; font-style: italic; }
@media (min-width: 768px) { .letter-signoff { font-size: 1.5rem; } }
.letter-founder-name { font-family: var(--font-display); color: var(--color-foreground); font-size: 1.5rem; margin-top: 0.5rem; }
@media (min-width: 768px) { .letter-founder-name { font-size: 1.875rem; } }
.letter-founder-title { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted-foreground); margin-top: 0.25rem; }

.about-watermark {
	position: relative; overflow: hidden; padding: 0.5rem 0 1.5rem; margin-top: -1.5rem;
	pointer-events: none; user-select: none;
}
@media (min-width: 1024px) { .about-watermark { padding: 0.5rem 0 2.5rem; margin-top: -2.5rem; } }
.about-watermark p {
	font-family: var(--font-display); font-size: clamp(1.125rem, 3.2vw, 2.25rem);
	color: color-mix(in srgb, var(--color-foreground) 5%, transparent);
	white-space: nowrap; text-align: center; line-height: 1;
}

/* -------------------------------------------------------------------------
   12. Shop
   ------------------------------------------------------------------------- */
.shop-section { background-color: var(--color-background); scroll-margin-top: 6rem; }
.shop-inner { padding: 5rem var(--container-padding-x) 4rem; }
@media (min-width: 1024px) { .shop-inner { padding: 7rem var(--container-padding-x) 5rem; } }
.shop-intro { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.shop-heading { font-size: 2.25rem; line-height: 1.05; margin-top: 0.75rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .shop-heading { font-size: 3.75rem; } }
.shop-heading em { font-style: italic; }
.shop-subtitle { margin-top: 1.25rem; font-size: 15px; color: var(--color-muted-foreground); line-height: 1.7; }

.shop-filter-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.shop-filter-chip {
	padding: 0.5rem 1rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
	border: 1px solid var(--color-border); color: var(--color-foreground); transition: all 0.2s ease; background: transparent;
}
.shop-filter-chip:hover { border-color: var(--color-foreground); }
.shop-filter-chip.is-active { background-color: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }

.theme-product-grid { display: grid; grid-template-columns: 1fr; column-gap: 0.75rem; row-gap: 2rem; align-items: stretch; }
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.theme-product-card__img { transition: opacity 0.7s ease-out; }
.theme-product-card__img--primary { opacity: 1; }
.theme-product-card__img--lifestyle { opacity: 0; }
.theme-product-card:hover .theme-product-card__img--primary { opacity: 0; }
.theme-product-card:hover .theme-product-card__img--lifestyle { opacity: 1; }
.theme-product-card__img.is-muted { opacity: 0.6; }
.theme-product-card__badge {
	position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3;
	padding: 0.25rem 0.625rem; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
	background-color: var(--color-foreground); color: var(--color-background);
}
.theme-product-card__info { padding: 1rem 0 0.25rem; flex: 1; display: flex; flex-direction: column; }
.theme-product-card__title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.theme-product-card__title {
	font-family: var(--font-display); font-weight: 400;
	font-size: 20px; line-height: 1.25; color: var(--color-foreground); transition: color 0.3s ease;
	min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 15px; color: var(--color-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.theme-product-card__price ins { text-decoration: none; color: var(--color-accent); font-weight: 500; }
.theme-product-card__price del { color: var(--color-muted-foreground); font-size: 13px; }
.theme-product-card__meta-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-top: 0.25rem; }
.theme-product-card__category { font-size: 13px; color: var(--color-muted-foreground); }
.theme-product-card__sale-badge { padding: 0.125rem 0.5rem; font-size: 11px; background-color: var(--color-surface-butter); color: var(--color-foreground); border-radius: 0.125rem; white-space: nowrap; }
.theme-product-card__format { margin-top: 0.5rem; font-size: 12px; color: var(--color-muted-foreground); }
.theme-no-products { text-align: center; color: var(--color-muted-foreground); grid-column: 1 / -1; padding: 3rem 0; }

.shop-footer-cta { margin-top: 4rem; text-align: center; }
.shop-footer-note { margin-top: 1rem; font-size: 12px; color: var(--color-muted-foreground); }

.surface-oat { background-color: var(--color-surface-oat); }
.surface-blush { background-color: var(--color-surface-blush); }
.surface-sage { background-color: var(--color-surface-sage); }
.surface-sky { background-color: var(--color-surface-sky); }
.surface-butter { background-color: var(--color-surface-butter); }

/* -------------------------------------------------------------------------
   13. Founder
   ------------------------------------------------------------------------- */
.founder-section { background-color: var(--color-surface-butter); scroll-margin-top: 6rem; }
.founder-grid { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .founder-grid { grid-template-columns: 1fr 1fr; } }
.founder-copy { order: 2; padding: 4rem var(--container-padding-x); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .founder-copy { order: 1; padding: 6rem 5rem; } }
.founder-heading { line-height: 0.95; letter-spacing: -0.015em; color: var(--color-foreground); margin-bottom: 2.5rem; font-size: 3rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .founder-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .founder-heading { font-size: 4.5rem; } }
.founder-text { color: color-mix(in srgb, var(--color-foreground) 85%, transparent); font-size: 15px; line-height: 1.7; max-width: 36rem; display: flex; flex-direction: column; gap: 1.25rem; }
.founder-text__intro { font-size: 16px; }
.founder-text__quote { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-foreground); padding-top: 1rem; font-style: italic; }
@media (min-width: 1024px) { .founder-text__quote { font-size: 1.875rem; } }
.founder-portrait { order: 1; position: relative; min-height: 420px; }
@media (min-width: 1024px) { .founder-portrait { order: 2; min-height: 720px; } }

/* -------------------------------------------------------------------------
   14. FAQ
   ------------------------------------------------------------------------- */
.faq-section { background-color: var(--color-background); padding: 5rem 0; scroll-margin-top: 6rem; }
@media (min-width: 1024px) { .faq-section { padding: 7rem 0; } }
.faq-heading { text-align: center; margin-bottom: 4rem; font-size: 2.25rem; line-height: 1.2; }
@media (min-width: 768px) { .faq-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .faq-heading { font-size: 3.75rem; } }
.faq-heading em { font-style: italic; }
.faq-list { max-width: 48rem; margin: 0 auto; border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; text-align: left; }
@media (min-width: 768px) { .faq-item__question { padding: 1.5rem 0; } }
.faq-item__question-text { font-size: 1rem; color: var(--color-foreground); padding-right: 1rem; transition: color 0.3s ease; }
@media (min-width: 768px) { .faq-item__question-text { font-size: 1.125rem; } }
.faq-item__question:hover .faq-item__question-text { color: var(--color-primary); }
.faq-item__icon {
	flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 0.375rem;
	background-color: var(--color-foreground); color: var(--color-background);
	display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.faq-item__icon-plus, .faq-item__icon-minus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s ease; }
.faq-item__icon-minus { opacity: 0; }
.faq-item.is-open .faq-item__icon-plus { opacity: 0; }
.faq-item.is-open .faq-item__icon-minus { opacity: 1; }
.faq-item__answer { height: 0; opacity: 0; overflow: hidden; transition: height 0.35s var(--ease-smooth), opacity 0.35s var(--ease-smooth); }
.faq-item__answer p { padding-bottom: 1.5rem; padding-right: 1rem; color: var(--color-muted-foreground); font-size: 15px; line-height: 1.7; }
@media (min-width: 768px) { .faq-item__answer p { padding-right: 3rem; } }

/* -------------------------------------------------------------------------
   15. Contact band
   ------------------------------------------------------------------------- */
.contact-section { scroll-margin-top: 6rem; }
.contact-inner { padding: 5rem var(--container-padding-x); }
@media (min-width: 1024px) { .contact-inner { padding: 7rem var(--container-padding-x); } }
.contact-band { position: relative; overflow: hidden; border-radius: 2px; color: var(--color-primary-foreground); padding: 4rem 1.5rem; }
@media (min-width: 768px) { .contact-band { padding: 5rem 3rem; } }
@media (min-width: 1024px) { .contact-band { padding: 6rem 3rem; } }
.contact-band__overlay { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.contact-band__content { position: relative; max-width: 42rem; margin: 0 auto; text-align: center; }
.contact-title { font-size: 2.25rem; line-height: 1.05; margin: 1.25rem 0 1.5rem; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
@media (min-width: 768px) { .contact-title { font-size: 3rem; } }
@media (min-width: 1024px) { .contact-title { font-size: 3.75rem; } }
.contact-band__body { font-size: 15px; color: color-mix(in srgb, var(--color-primary-foreground) 90%, transparent); line-height: 1.7; max-width: 36rem; margin: 0 auto 2.5rem; }
@media (min-width: 768px) { .contact-band__body { font-size: 16px; } }
.contact-band__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
@media (min-width: 640px) { .contact-band__actions { flex-direction: row; } }
.contact-band__mailto {
	display: inline-flex; align-items: center; gap: 0.5rem; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
	color: color-mix(in srgb, var(--color-primary-foreground) 85%, transparent);
	text-decoration: underline; text-underline-offset: 6px; transition: color 0.2s ease;
}
.contact-band__mailto:hover { color: var(--color-primary-foreground); }

/* -------------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------------- */
.site-footer { background-color: var(--color-secondary); color: var(--color-foreground); }
.footer-topbar { border-bottom: 1px solid var(--color-border); }
.footer-topbar__inner {
	padding: 3.5rem var(--container-padding-x);
	display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}
@media (min-width: 1024px) {
	.footer-topbar__inner { grid-template-columns: repeat(12, 1fr); padding: 4rem var(--container-padding-x); }
}
.footer-topbar__copy { grid-column: span 1; }
.footer-topbar__eyebrow { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.footer-topbar__title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.05; }
@media (min-width: 1024px) {
	.footer-topbar__copy { grid-column: span 7; }
	.footer-topbar__title { font-size: 2.25rem; }
}
.footer-topbar__cta { grid-column: span 1; display: flex; }
@media (min-width: 1024px) {
	.footer-topbar__cta { grid-column: span 5; justify-content: flex-end; }
}

.footer-main { padding: 4rem var(--container-padding-x); }
@media (min-width: 1024px) { .footer-main { padding: 5rem var(--container-padding-x); } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) {
	.footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem; }
	.footer-col.footer-col--brand { grid-column: span 4; min-width: 0; }
	.footer-col:not(.footer-col--brand) { grid-column: span 2; min-width: 0; }
}
.footer-col--brand .site-branding {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	position: static;
	transform: none;
}
.footer-col--brand .site-badge {
	width: 2.75rem; height: 2.75rem; font-size: 1.125rem;
	flex-shrink: 0;
}
.footer-col--brand .site-name {
	font-family: var(--font-display);
	font-size: 1.25rem;
	line-height: 1.25;
}
.footer-col__desc { margin-top: 1.25rem; font-size: 14px; color: var(--color-muted-foreground); max-width: 24rem; line-height: 1.625; }
.footer-col__title { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-footer-links { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.theme-footer-links a,
.theme-footer-links button {
	font-family: var(--font-body);
	font-size: 14px;
	text-align: left;
	color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
	transition: color 0.2s ease;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
}
.theme-footer-links a:hover,
.theme-footer-links button:hover { color: var(--color-primary); }
.theme-footer-contact__item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 14px;
	color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
}
.theme-footer-contact__item .theme-icon { margin-top: 0.125rem; flex-shrink: 0; }
.theme-footer-contact__item a { word-break: break-all; color: inherit; transition: color 0.2s ease; }
.theme-footer-contact__item a:hover { color: var(--color-primary); }

.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; gap: 1.5rem; } }
.footer-copyright { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; color: var(--color-muted-foreground); text-align: center; }

/* -------------------------------------------------------------------------
   17. Contact modal (dialog)
   ------------------------------------------------------------------------- */
.theme-modal-overlay {
	position: fixed; inset: 0; background-color: color-mix(in srgb, var(--color-foreground) 40%, transparent);
	z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.theme-modal {
	position: fixed; top: 50%; left: 50%; width: calc(100% - 2rem); max-width: 32rem; max-height: 90vh; overflow-y: auto;
	background-color: var(--color-background); border: 1px solid var(--color-border);
	z-index: 91; padding: 2rem;
	transform: translate(-50%, -48%) scale(0.97); opacity: 0; pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
body.contact-modal-open .theme-modal-overlay { opacity: 1; pointer-events: auto; }
body.contact-modal-open .theme-modal { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.theme-modal__close { position: absolute; top: 1.25rem; right: 1.25rem; padding: 0.25rem; }
.theme-modal__header { padding-right: 2rem; }
.theme-modal__title { font-size: 1.5rem; line-height: 1.2; margin-top: 0.5rem; }
.theme-modal__description { margin-top: 0.75rem; font-size: 15px; color: var(--color-muted-foreground); line-height: 1.7; }
.theme-modal__contact-lines {
	display: flex; flex-direction: column; gap: 0.5rem; font-size: 14px; color: var(--color-muted-foreground);
	border-top: 1px solid var(--color-border); padding-top: 1rem; margin-top: 0.5rem;
}
.theme-modal__contact-line { display: flex; align-items: center; gap: 0.5rem; }
.theme-modal__contact-line a:hover { color: var(--color-foreground); }
.theme-modal__body { margin-top: 1.25rem; }
.theme-contact-form { display: flex; flex-direction: column; gap: 1rem; }
.theme-contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-contact-form__row { grid-template-columns: 1fr 1fr; } }
.theme-form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.theme-form-field input, .theme-form-field textarea {
	width: 100%; padding: 0.625rem 0.75rem; background-color: var(--color-background);
	border: 1px solid var(--color-border); font-size: 14px; color: var(--color-foreground);
	transition: border-color 0.2s ease;
}
.theme-form-field textarea { resize: none; }
.theme-form-field input:focus, .theme-form-field textarea:focus { outline: none; border-color: var(--color-primary); }
.theme-form-field input::placeholder, .theme-form-field textarea::placeholder { color: var(--color-muted-foreground); }
.theme-contact-form__actions { display: flex; justify-content: flex-end; }
.theme-contact-form__success { text-align: center; padding: 2rem 0; }
.theme-contact-form__success-icon {
	width: 3.5rem; height: 3.5rem; border-radius: 9999px; background-color: var(--color-primary); color: var(--color-primary-foreground);
	display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.theme-contact-form__success h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-contact-form__success p { font-size: 14px; color: var(--color-muted-foreground); }

/* -------------------------------------------------------------------------
   18. Side cart drawer
   ------------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; background-color: color-mix(in srgb, var(--color-foreground) 30%, transparent);
	z-index: 95; 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; right: 0; top: 0; height: 100%; width: 100%; max-width: 32rem;
	background-color: var(--color-background); z-index: 96; box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform 0.35s 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: 2rem 2rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-size: 1.5rem; font-style: italic; }
.theme-cart-drawer__close { padding: 0.25rem; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.theme-cart-drawer__empty-icon { color: var(--color-muted-foreground); margin-bottom: 1.25rem; display: inline-flex; }
.theme-cart-drawer__empty-text { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 2rem; }
.theme-cart-item { display: flex; gap: 1.25rem; }
.theme-cart-item__image { width: 6rem; height: 8rem; background-color: var(--color-secondary); overflow: hidden; flex-shrink: 0; }
.theme-cart-item__image img { width: 100%; height: 100% !important; object-fit: cover; }
.theme-cart-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.theme-cart-item__name { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-foreground); }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__variation { font-size: 12px; color: var(--color-muted-foreground); margin-top: 0.375rem; font-style: italic; }
.theme-cart-item__price { font-size: 14px; margin-top: 0.375rem; }
.theme-cart-item__controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.theme-cart-item__qty { display: flex; align-items: center; border: 1px solid var(--color-border); }
.theme-cart-qty-btn { padding: 0.375rem 0.625rem; transition: background-color 0.2s ease; }
.theme-cart-qty-btn:hover { background-color: var(--color-secondary); }
.theme-cart-item__qty-value { padding: 0 0.75rem; font-size: 14px; min-width: 28px; text-align: center; }
.theme-cart-item__remove { font-size: 12px; color: var(--color-muted-foreground); text-decoration: underline; text-underline-offset: 4px; }
.theme-cart-item__remove:hover { color: var(--color-foreground); }
.theme-cart-drawer__footer { padding: 1.5rem 2rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal-row { display: flex; align-items: baseline; justify-content: space-between; }
.theme-cart-drawer__subtotal-label, .theme-cart-drawer__subtotal-value { font-family: var(--font-display); font-size: 1.25rem; }
.theme-cart-drawer__tax-note { font-size: 12px; color: var(--color-muted-foreground); }

/* -------------------------------------------------------------------------
   19. Single product page
   ------------------------------------------------------------------------- */
.single-product-main { padding-top: 7rem; background-color: var(--color-background); }
@media (min-width: 1024px) { .single-product-main { padding-top: 8rem; } }
.theme-product-layout { display: grid; grid-template-columns: 1fr; align-items: start; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 440px; } }
@media (min-width: 1280px) { .theme-product-layout { grid-template-columns: 1fr 500px; } }

.theme-product-gallery { position: relative; background-color: var(--color-background); min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-gallery { position: sticky; top: 8rem; align-self: flex-start; } }
.theme-product-gallery__main {
	position: relative; min-height: 60vh; display: flex; align-items: center; justify-content: center;
	padding: 1rem; overflow: hidden;
}
@media (min-width: 768px) { .theme-product-gallery__main { min-height: 78vh; padding: 2rem; } }
@media (min-width: 1024px) { .theme-product-gallery__main { min-height: 88vh; } }
.theme-product-gallery__main-img {
	width: 100%; height: 100%; max-height: 88vh; object-fit: contain;
}
.theme-product-thumbnails { display: flex; gap: 0.75rem; padding: 1rem; overflow-x: auto; justify-content: center; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { width: 4rem; height: 4rem; flex-shrink: 0; overflow: hidden; border: 1px solid transparent; opacity: 0.6; transition: all 0.3s ease; }
.theme-product-thumb:hover, .theme-product-thumb.is-active { opacity: 1; border-color: var(--color-foreground); }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.theme-product-info { padding: 2.5rem 1.5rem; min-width: 0; max-width: 100%; }
@media (min-width: 768px) { .theme-product-info { padding: 2.5rem 2.5rem; } }
@media (min-width: 1024px) { .theme-product-info { padding: 4rem 3rem; } }
.theme-breadcrumb { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb__sep { margin: 0 0.5rem; }
.product-title {
	font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: 0.22em;
	text-transform: uppercase; line-height: 1.5; color: var(--color-foreground);
}
@media (min-width: 768px) { .product-title { font-size: 16px; } }
.theme-product-sku { margin-top: 0.75rem; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-rule { height: 1px; background-color: var(--color-border); margin: 1.75rem 0; }
.theme-product-price { font-size: 1.125rem; color: var(--color-foreground); display: flex; align-items: baseline; gap: 0.375rem; }
.theme-product-currency { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-stock-indicator--out { margin-top: 0.75rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; }
.theme-product-note {
	margin-top: 1.75rem; background-color: color-mix(in srgb, var(--color-secondary) 70%, transparent);
	padding: 1rem 1.25rem; font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); line-height: 1.7;
	overflow-wrap: break-word; word-break: break-word;
}

.theme-grade-selector { margin-top: 1.75rem; }
.theme-grade-selector__label { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.theme-grade-selector__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-grade-pill {
	min-width: 56px; padding: 0.625rem 1rem; font-size: 12px; letter-spacing: 0.05em;
	border: 1px solid var(--color-border); color: var(--color-foreground); transition: all 0.2s ease;
}
.theme-grade-pill:hover { border-color: var(--color-foreground); }
.theme-grade-pill.is-selected { background-color: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }

.theme-variations { margin-top: 1.75rem; }
.theme-variation-attribute { position: relative; }
.theme-variation-attribute + .theme-variation-attribute { margin-top: 1.25rem; }
.theme-variation-attribute__label {
	font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--color-muted-foreground); margin-bottom: 0.75rem; display: block;
}
.theme-variation-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-variation-pill {
	min-width: 56px; padding: 0.625rem 1rem; font-size: 12px; letter-spacing: 0.05em;
	border: 1px solid var(--color-border); color: var(--color-foreground); background: transparent;
	transition: all 0.2s ease; cursor: pointer;
}
.theme-variation-pill:hover:not(:disabled) { border-color: var(--color-foreground); }
.theme-variation-pill.is-selected {
	background-color: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground);
}
.theme-variation-pill:disabled,
.theme-variation-pill.is-unavailable {
	opacity: 0.35; cursor: not-allowed; pointer-events: none;
}
.theme-variation-select-wrap {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.theme-variations .reset_variations { display: none; }
.single-product .woocommerce-variation-price { display: none; }
.single-product .variations_form .single_variation_wrap { margin-top: 0; }
.single-product .variations_form .woocommerce-variation.single_variation { margin: 0; }

.theme-add-to-cart-area { margin-top: 2rem; display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; }
.theme-quantity-wrapper--hidden { display: none; }
.theme-add-to-cart-area .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.theme-product-details { margin-top: 3rem; }
.theme-product-details__heading { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-foreground); margin-bottom: 1.25rem; }
.theme-product-details__description {
	font-family: var(--font-display); font-size: 19px; line-height: 1.55; color: color-mix(in srgb, var(--color-foreground) 90%, transparent);
	overflow-wrap: break-word; word-break: break-word;
}
.theme-product-details__description p { margin-bottom: 1rem; }
.theme-product-details__short { margin-top: 1.5rem; }
.theme-product-details__short .theme-product-details__list { margin-top: 0; }
.theme-product-details__list { margin-top: 1.5rem; padding-left: 1.25rem; list-style: disc; display: flex; flex-direction: column; gap: 0.625rem; }
.theme-product-details__list li { font-family: var(--font-body); font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; }
.theme-product-details__list li::marker { color: var(--color-primary); }

.related-products-section { padding: 6rem 0; border-top: 1px solid var(--color-border); margin-top: 3rem; }
.related-products-section .theme-product-grid { column-gap: 2rem; row-gap: 3rem; }
.related-products-heading { font-size: 1.875rem; line-height: 1.2; margin-bottom: 3rem; }
@media (min-width: 768px) { .related-products-heading { font-size: 2.25rem; } }
.related-products-heading em { font-style: italic; }

/* -------------------------------------------------------------------------
   20. WooCommerce: add-to-cart button overrides (Section 11.4.1)
   ------------------------------------------------------------------------- */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single-product .single_add_to_cart_button.button,
.single-product a.single_add_to_cart_button {
	background-color: var(--color-foreground) !important;
	border-radius: 0 !important;
	border: 1px solid var(--color-foreground) !important;
	width: 100%;
	min-height: 3.5rem !important;
	height: 3.5rem !important;
	font-size: 12px !important;
	letter-spacing: 0.28em !important;
	text-transform: uppercase !important;
}
.single-product .single_add_to_cart_button.button:hover {
	background-color: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
	opacity: 1 !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;
}

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

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

/* Variations — native selects are visually hidden; pills are the UI */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-weight: 600; font-family: var(--font-body); }
.single-product .variations tbody td.value { padding-top: 0; }
.single-product .variations tbody td.value select,
.single-product .theme-variation-select-wrap select { width: 100%; max-width: 260px; }
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

/* WC notices — scoped hiding on single product (drawer provides feedback) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-error {
	background-color: color-mix(in srgb, var(--color-accent) 10%, var(--color-background));
	border: 1px solid var(--color-accent); color: var(--color-foreground);
	padding: 1rem 1.25rem; border-radius: 0.375rem; list-style: none; font-size: 14px;
}
.woocommerce-message, .woocommerce-info {
	background-color: color-mix(in srgb, var(--color-primary) 8%, var(--color-background));
	border: 1px solid var(--color-border); padding: 1rem 1.25rem; border-radius: 0.375rem; font-size: 14px;
}

/* -------------------------------------------------------------------------
   21. Shop archive (non-homepage category/tag archives)
   ------------------------------------------------------------------------- */
.shop-archive-main { padding-top: 7rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .shop-archive-main { padding-top: 9rem; } }
.shop-archive-title { font-size: 2.25rem; margin-bottom: 2.5rem; }
.woocommerce-breadcrumb { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.woocommerce-breadcrumb a:hover { color: var(--color-primary); }

/* -------------------------------------------------------------------------
   22. Page shell / generic pages / 404
   ------------------------------------------------------------------------- */
.theme-no-hero .generic-content-wrap {
	padding-top: var(--header-height);
}
.page-shell { padding: 4rem 0 6rem; }
body.woocommerce-checkout .page-shell,
body.woocommerce-cart .page-shell,
body.woocommerce-account .page-shell {
	padding-left: var(--container-padding-x);
	padding-right: var(--container-padding-x);
}
.page-title { font-size: 2.5rem; margin-bottom: 2rem; }

.theme-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding-top: var(--header-height); }
.theme-404__inner { text-align: center; padding: 2rem; }
.theme-404__code { font-size: 5rem; margin-bottom: 1rem; }
.theme-404__title { font-size: 1.5rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-404__body { color: var(--color-muted-foreground); margin-bottom: 2rem; }
.theme-404__link { color: var(--color-primary); text-decoration: underline; }

/* -------------------------------------------------------------------------
   23. WooCommerce Checkout Block (Section 13)
   ------------------------------------------------------------------------- */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .generic-content-wrap {
	padding-top: var(--header-height);
	padding-bottom: 4rem;
}
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-cart .wc-block-cart {
	background: transparent;
}

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

/* Flatten WC nested sidebar grids — single 2-column checkout layout */
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	gap: 3rem !important;
	align-items: start;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100% !important;
	max-width: none !important;
	display: block !important;
	grid-column: auto !important;
}

body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-components-main .wc-block-components-sidebar-layout {
	display: block !important;
	grid-template-columns: none !important;
}

@media (max-width: 767px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
		grid-template-columns: 1fr !important;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-surface-oat);
	border-radius: var(--card-radius);
	padding: var(--section-padding, 2rem);
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-country-input select,
body.woocommerce-checkout .wc-block-components-state-input select {
	font-family: var(--font-body) !important;
	font-size: 14px !important;
	color: var(--color-foreground) !important;
	border: 1px solid var(--color-border) !important;
	border-radius: 0.375rem !important;
	background-color: var(--color-background) !important;
	width: 100% !important;
	max-width: none !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-country-input select:focus,
body.woocommerce-checkout .wc-block-components-state-input select:focus {
	outline: none !important;
	border-color: var(--color-primary) !important;
	box-shadow: 0 0 0 1px var(--color-primary) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-combobox-control input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: var(--color-muted-foreground) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: 9999px !important;
	font-family: var(--font-body) !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 13px;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.375rem;
	font-family: var(--font-body);
}

body.woocommerce-checkout h2,
body.woocommerce-checkout .wc-block-components-title {
	font-family: var(--font-display);
	font-weight: inherit;
}

/* Cart & My Account width/alignment parity (Section 13.7) */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.woocommerce-cart .generic-content-wrap,
body.woocommerce-account .generic-content-wrap {
	padding-top: var(--header-height);
	padding-bottom: 4rem;
}
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
	min-width: 0; width: 100%;
}
body.woocommerce-cart .wc-block-cart__sidebar {
	background-color: var(--color-surface-oat);
	border-radius: var(--card-radius);
	padding: var(--section-padding, 2rem);
}

/* -------------------------------------------------------------------------
   24. Thank-you page (Section 22.8)
   ------------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .theme-thankyou {
	max-width: 64rem; margin: 0 auto; padding: 2rem 0 5rem;
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-size: 1.5rem;
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
	font-size: 13px; color: var(--color-muted-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview li strong { color: var(--color-foreground); display: block; font-size: 15px; }
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details {
	display: flex; flex-direction: column; gap: 1.5rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px; overflow-wrap: break-word; font-style: normal; line-height: 1.7;
}
@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; }
}

/* -------------------------------------------------------------------------
   25. Misc utility
   ------------------------------------------------------------------------- */
.theme-mobile-toggle-btn { padding: 0.5rem; }
.theme-anchor-link { cursor: pointer; }
