/* =========================================================================
   N-SITE theme stylesheet.
   Color tokens are injected as CSS variables on :root via wp_add_inline_style
   (see functions.php). Everything below consumes var(--color-*) only —
   no hardcoded color values for tokens that have a Customizer control.
   ========================================================================= */

:root {
	--radius: 0.75rem;
	--font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	--font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
	--shadow-glow: 0 10px 30px -10px color-mix(in oklab, var(--color-primary) 40%, transparent);
	--shadow-glow-strong: 0 18px 50px -12px color-mix(in oklab, var(--color-primary) 60%, transparent);

	--btn-radius: 999px;
	--btn-height: 44px;
	--btn-padding: 0 1.5rem;
	--btn-font-size: 13px;
	--btn-font-weight: 600;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0.5rem;
	--header-height: 80px;
	--checkout-gap: 2rem;
	--card-radius: 1rem;
	--section-padding: 2rem;
}

/* =========================================================================
   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-sans);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.theme-product-gallery__image):not(.theme-service-item__bg):not(.site-logo-img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero-bg-img, .product-card-img, .theme-product-gallery__image, .theme-service-item__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
textarea,
select { cursor: text; }
[role="button"],
.theme-btn,
.theme-cart-toggle,
.theme-mobile-toggle,
.theme-faq-item__question,
.theme-gallery-nav,
.theme-product-card,
.theme-contact-form__call,
.theme-back-link,
.theme-cart-drawer__item-remove,
.theme-cart-qty__btn,
.about-section__link,
.contact-section__item,
.related-products-section__view-all,
.site-header__brand,
.theme-nav-list a,
.site-header__nav-link { cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4, h5, h6, .font-display {
	font-weight: inherit;
	font-size: inherit;
}
h1, h2, h3, h4, .font-display {
	font-family: var(--font-display);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-weight: 700;
	line-height: 1.05;
	margin: 0;
}
h1 em, h2 em, h3 em, h4 em, .font-display em,
h1 i, h2 i, h3 i, h4 i, .font-display i {
	text-transform: none;
	letter-spacing: 0;
	font-style: normal;
}

.theme-container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; min-width: 0; }
.theme-container--narrow { max-width: 48rem; }
@media (min-width: 640px) { .theme-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .theme-container { padding: 0 2rem; } }

.screen-reader-text { position: absolute !important; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; position: fixed; z-index: 9999; background: var(--color-card); color: var(--color-foreground); padding: 0.5rem 1rem; border-radius: 0.5rem; }

/* =========================================================================
   Keyframes / motion primitives (Section 2.1)
   ========================================================================= */
@keyframes theme-shine { 0% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(250%) skewX(-20deg); } }
@keyframes theme-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes theme-pulse-glow {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-signal) 45%, transparent); }
	50% { opacity: 0.85; box-shadow: 0 0 0 6px color-mix(in oklab, var(--color-signal) 0%, transparent); }
}
@keyframes theme-particle-float {
	0% { opacity: 0; transform: translate(0, 0); }
	15%, 85% { opacity: 0.9; }
	50% { transform: translate(calc(var(--drift) / 2), var(--drift)); }
	100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes theme-blob-pulse {
	0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.95); }
	50% { opacity: 0.65; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes theme-image-float {
	0%, 100% { transform: translate(-50%, -50%); }
	50% { transform: translate(-50%, calc(-50% - 14px)); }
}
@keyframes theme-fade-up {
	from { opacity: 0; transform: translateY(32px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }

.animate-pulse-glow { animation: theme-pulse-glow 2.4s ease-in-out infinite; }

.hover-lift { transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s cubic-bezier(0.22,1,0.36,1); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }

.glass-panel {
	background-color: color-mix(in oklab, var(--color-card) 70%, transparent);
	backdrop-filter: blur(14px);
	border: 1px solid color-mix(in oklab, var(--color-primary) 22%, transparent);
}

.story-link { position: relative; display: inline-block; }
.story-link::after {
	content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
	background-color: var(--color-primary); transform: scaleX(0); transform-origin: bottom right;
	transition: transform 0.3s ease;
}
.story-link:hover::after { transform: scaleX(1); transform-origin: bottom left; }

.text-gradient-hero {
	background-image: linear-gradient(90deg, var(--color-primary), var(--color-depth));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	display: inline-block;
	padding-right: 0.12em;
	padding-bottom: 0.05em;
	margin-right: -0.08em;
	line-height: 1.15;
}
.text-gradient-signal {
	background-image: linear-gradient(90deg, var(--color-signal), var(--color-primary));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	display: inline-block;
	padding-bottom: 0.05em;
	line-height: 1.15;
}
.section-heading em.text-gradient-hero,
.section-heading em.text-gradient-signal {
	font-style: italic;
}
.theme-accent-text { color: var(--color-primary); }

/* =========================================================================
   Reveal-on-scroll (Section 2.1)
   ========================================================================= */
.reveal-item { opacity: 0; transform: translateY(32px); transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.reveal-item[data-reveal="fade"] { transform: none; }
.reveal-item[data-reveal="scale"] { transform: scale(0.96); }
.reveal-item[data-reveal="scale"].is-visible { transform: scale(1); }

/* Customizer preview fallback — reveal content must never stay hidden while editing. */
body.is-customizer .reveal-item,
body.is-customizer .theme-product-card-wrap {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item, .hover-lift, .animate-pulse-glow, .theme-service-item, .theme-faq-item__panel {
		animation: none !important;
		transition: none !important;
	}
	.reveal-item { opacity: 1 !important; transform: none !important; }
	.hover-lift:hover { transform: none !important; }
}

/* =========================================================================
   Section heading scales (per-section, Section 2.2.5)
   ========================================================================= */
.section-heading { text-wrap: balance; }
.about-section__heading { font-size: 2.25rem; }
.shop-heading { font-size: 2.25rem; }
.offerings-section__heading { font-size: 2.25rem; }
.faq-section__heading { font-size: 2.25rem; text-align: center; }
.contact-title { font-size: 2.25rem; }
@media (min-width: 640px) {
	.about-section__heading { font-size: 3rem; }
	.shop-heading { font-size: 3rem; }
	.offerings-section__heading { font-size: 3rem; }
	.faq-section__heading { font-size: 3rem; }
	.contact-title { font-size: 3rem; }
}
@media (min-width: 1024px) {
	.about-section__heading { font-size: 3.75rem; }
	.shop-heading { font-size: 3.75rem; }
	.offerings-section__heading { font-size: 3.75rem; }
	.contact-title { font-size: 3.75rem; }
}

.theme-eyebrow-badge {
	display: inline-flex; align-items: center; gap: 0.75rem;
	font-family: var(--font-mono); font-size: 11px; font-weight: 700;
	letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-primary);
}
.theme-eyebrow-badge--line::before { content: ""; width: 2rem; height: 1px; background: var(--color-primary); }
.theme-eyebrow-badge--center { justify-content: center; width: 100%; }

/* =========================================================================
   Buttons
   ========================================================================= */
.theme-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 44px; padding: 0 1.5rem; border-radius: 999px;
	font-family: var(--font-sans); font-size: 13px; font-weight: 600;
	transition: all 0.2s ease; white-space: nowrap;
}
.theme-btn--pill { border-radius: 999px; }
.theme-btn--lg { min-height: 48px; padding: 0 1.75rem; }
.theme-btn--full { width: 100%; }
.theme-btn--primary { background: var(--color-primary); color: var(--color-primary-foreground); box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--color-primary) 40%, transparent); }
.theme-btn--primary:hover { filter: brightness(1.1); }
.theme-btn--outline {
	border: 1px solid color-mix(in oklab, var(--color-primary) 25%, transparent);
	background: color-mix(in oklab, var(--color-card) 60%, transparent);
	color: var(--color-foreground);
	backdrop-filter: blur(8px);
}
.theme-btn--outline:hover { border-color: color-mix(in oklab, var(--color-primary) 50%, transparent); background: var(--color-card); }
.theme-btn--dark { background: var(--color-foreground); color: var(--color-background); }
.theme-btn--dark:hover { opacity: 0.9; }
.theme-btn__arrow { transition: transform 0.2s ease; }
.theme-btn:hover .theme-btn__arrow { transform: translateX(2px); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	transition: background-color 0.3s ease, border-color 0.3s ease, top 0.2s ease;
}
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
.site-header.is-solid,
body:not(.theme-no-hero) .site-header.is-solid {
	border-bottom: 1px solid color-mix(in oklab, var(--color-primary) 15%, transparent);
	background-color: color-mix(in oklab, var(--color-background) 90%, transparent);
	backdrop-filter: blur(20px);
}
.site-header__inner {
	max-width: 80rem; margin: 0 auto; height: 5rem; padding: 0 1rem;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	position: relative;
}
@media (min-width: 640px) { .site-header__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .site-header__inner { padding: 0 2rem; } }

.site-header__brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; max-width: 50%; }
.site-header__brand .site-logo-img {
	height: 2.25rem !important;
	width: auto !important;
	max-width: none !important;
	min-height: 0;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
	filter: drop-shadow(0 0 12px color-mix(in oklab, var(--color-primary) 45%, transparent));
	transition: transform 0.2s ease;
}
@media (min-width: 640px) {
	.site-header__brand .site-logo-img {
		height: var(--logo-height, 44px) !important;
	}
}
.site-header__brand:hover .site-logo-img { transform: scale(1.05); }
.site-logo-text {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 2.25rem;
	display: none;
}
@media (min-width: 640px) {
	.site-logo-text {
		display: inline;
		line-height: var(--logo-height, 44px);
	}
}

/* Inner / WooCommerce routes — WC general styles can reset img sizing on shop, cart, checkout, PDP */
body.theme-no-hero .site-header__brand .site-logo-img,
body.woocommerce-page .site-header__brand .site-logo-img,
body.woocommerce-checkout .site-header__brand .site-logo-img,
body.woocommerce-cart .site-header__brand .site-logo-img,
body.single-product .site-header__brand .site-logo-img,
body.post-type-archive-product .site-header__brand .site-logo-img {
	height: 2.25rem !important;
	width: auto !important;
	max-width: none !important;
	object-fit: contain;
}
@media (min-width: 640px) {
	body.theme-no-hero .site-header__brand .site-logo-img,
	body.woocommerce-page .site-header__brand .site-logo-img,
	body.woocommerce-checkout .site-header__brand .site-logo-img,
	body.woocommerce-cart .site-header__brand .site-logo-img,
	body.single-product .site-header__brand .site-logo-img,
	body.post-type-archive-product .site-header__brand .site-logo-img {
		height: var(--logo-height, 44px) !important;
	}
}

.site-header__nav {
	position: absolute; left: 50%; transform: translateX(-50%);
	display: none; align-items: center; gap: 0.25rem;
	border: 1px solid color-mix(in oklab, var(--color-primary) 15%, transparent);
	border-radius: 999px; padding: 0.375rem 0.5rem;
	background: color-mix(in oklab, var(--color-card) 40%, transparent);
	backdrop-filter: blur(20px);
}
@media (min-width: 1024px) { .site-header__nav { display: flex; } }
.site-header__nav .theme-nav-list,
.site-header__nav > a { display: flex; align-items: center; gap: 0.25rem; }
.theme-nav-list { display: flex; align-items: center; gap: 0.25rem; }
.site-header__nav a,
.theme-nav-list a,
.site-header__nav-link {
	position: relative; border-radius: 999px; padding: 0.625rem 1.25rem;
	font-size: 14px; font-weight: 600; color: var(--color-muted-foreground);
	transition: color 0.2s ease;
}
.site-header__nav a:hover,
.theme-nav-list a:hover { color: var(--color-foreground); }
.site-header__nav a.is-active,
.theme-nav-list a.is-active {
	color: var(--color-primary-foreground);
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-depth) 100%);
	box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--color-primary) 45%, transparent), inset 0 1px 0 rgba(255,255,255,0.25);
}

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 1023px) {
	.site-header__actions .theme-cart-toggle { display: inline-flex; }
}
.theme-cart-toggle {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem; border-radius: 999px;
	border: 1px solid color-mix(in oklab, var(--color-primary) 25%, transparent);
	background: color-mix(in oklab, var(--color-card) 60%, transparent);
	color: var(--color-foreground); backdrop-filter: blur(8px); transition: all 0.2s ease;
}
.theme-cart-toggle:hover { border-color: color-mix(in oklab, var(--color-primary) 60%, transparent); background: var(--color-card); }
.theme-cart-count {
	position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
	display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
	border-radius: 999px; background: var(--color-signal); color: var(--color-signal-foreground);
	font-family: var(--font-mono); font-size: 10px; font-weight: 700;
}
.theme-cart-count:empty { display: none; }
.site-header__cta { display: none; }
@media (min-width: 1024px) { .site-header__cta { display: inline-flex; } }

.theme-mobile-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem; border-radius: 999px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--color-foreground);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.theme-mobile-toggle:hover {
	background: var(--color-card);
	color: var(--color-primary);
}
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }
.theme-icon--close { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .theme-icon--open { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .theme-icon--close { display: block; }

.theme-mobile-menu {
	position: absolute; right: 1rem; top: calc(var(--header-height) - 0.25rem); z-index: 60;
	width: min(92vw, 20rem);
	transform-origin: top right;
	border-radius: 1rem; padding: 0.75rem;
	border: 1px solid color-mix(in oklab, var(--color-primary) 20%, transparent);
	background: color-mix(in oklab, var(--color-card) 95%, transparent);
	backdrop-filter: blur(20px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
	display: flex; flex-direction: column; gap: 0.25rem;
	opacity: 0; visibility: hidden; pointer-events: none;
	transform: translateY(-8px) scale(0.98);
	transition: opacity 0.22s cubic-bezier(0.22,1,0.36,1), transform 0.22s cubic-bezier(0.22,1,0.36,1), visibility 0.22s;
}
@media (min-width: 640px) { .theme-mobile-menu { right: 1.5rem; } }
@media (min-width: 1024px) { .theme-mobile-menu { display: none !important; } }
.theme-mobile-menu.is-open {
	opacity: 1; visibility: visible; pointer-events: auto;
	transform: translateY(0) scale(1);
}
.theme-mobile-menu[hidden] { display: none !important; }
.theme-mobile-menu.is-open[hidden] { display: flex !important; }

.theme-mobile-nav-list,
.theme-mobile-menu .theme-nav-list {
	display: flex; flex-direction: column; gap: 0.25rem;
	list-style: none; margin: 0; padding: 0; width: 100%;
}
.theme-mobile-nav-list a,
.theme-mobile-menu .theme-nav-list a,
.theme-mobile-nav-link {
	display: block; width: 100%;
	border-radius: 0.5rem; padding: 0.625rem 0.75rem;
	font-size: 0.875rem; font-weight: 500; line-height: 1.4;
	color: color-mix(in oklab, var(--color-foreground) 80%, transparent);
	transition: background-color 0.2s ease, color 0.2s ease;
}
.theme-mobile-nav-list a:hover,
.theme-mobile-menu .theme-nav-list a:hover,
.theme-mobile-nav-link:hover {
	background: color-mix(in oklab, var(--color-primary) 10%, transparent);
	color: var(--color-primary);
}
.theme-mobile-menu__cart {
	margin-top: 0.5rem;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-size: 12px;
	font-weight: 600;
	padding: 0.75rem 1rem;
}

#primary.site-main,
.theme-generic-main,
.single-product,
.theme-shop-archive {
	overflow-x: clip;
	max-width: 100%;
}
body.theme-no-hero .site-main,
body.theme-no-hero .theme-generic-main,
body.theme-no-hero .single-product,
body.theme-no-hero .theme-shop-archive,
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: var(--header-height);
	padding-bottom: 4rem;
}
body.woocommerce-checkout .site-main { padding-bottom: 4rem; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero-section {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	min-height: 100vh; background: var(--color-background);
	padding-top: 6rem;
}
@media (min-width: 768px) { .hero-section { padding-top: 7rem; } }
.hero-section__grid-bg {
	position: absolute; inset: 0; pointer-events: none; opacity: 0.16;
	background-image: linear-gradient(to right, rgba(34,211,238,0.22) 1px, transparent 1px), linear-gradient(to bottom, rgba(34,211,238,0.22) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
}
.hero-section__inner { position: relative; z-index: 10; flex: 1; display: flex; align-items: center; }
.hero-section__grid { display: grid; width: 100%; align-items: center; gap: 2.5rem; min-width: 0; }
@media (min-width: 768px) { .hero-section__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; } }

.hero-section__copy { min-width: 0; }

.hero-section__eyebrow {
	display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
	border: 1px solid color-mix(in oklab, var(--color-primary) 25%, transparent);
	background: color-mix(in oklab, var(--color-primary) 10%, transparent);
	padding: 0.375rem 0.75rem; font-family: var(--font-mono); font-size: 11px;
	font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-primary);
	backdrop-filter: blur(8px);
}
.hero-section__eyebrow-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--color-signal); animation: theme-pulse-glow 2.4s ease-in-out infinite; }

.hero-section__title { margin-top: 1.25rem; font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 640px) { .hero-section__title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-section__title { font-size: 3.75rem; } }
@media (min-width: 1280px) { .hero-section__title { font-size: 4.5rem; } }

.hero-section__paragraph { margin-top: 1.25rem; max-width: 28rem; font-size: 0.875rem; line-height: 1.7; color: var(--color-muted-foreground); }
@media (min-width: 640px) { .hero-section__paragraph { font-size: 1rem; } }

.hero-section__badges { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-section__badge {
	display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 0.5rem;
	border: 1px solid var(--color-border); background: color-mix(in oklab, var(--color-card) 70%, transparent);
	padding: 0.5rem 0.75rem; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-signal); backdrop-filter: blur(8px);
}
.hero-section__ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.hero-section__visual { position: relative; height: 320px; min-width: 0; overflow: hidden; }
@media (min-width: 640px) { .hero-section__visual { height: 400px; } }
@media (min-width: 768px) { .hero-section__visual { height: 480px; } }
@media (min-width: 1024px) { .hero-section__visual { height: 540px; } }
.hero-section__glow {
	position: absolute; left: 50%; top: 50%; pointer-events: none;
	width: min(720px, 92vw); height: 560px;
	background: radial-gradient(ellipse at center, var(--color-depth) 0%, var(--color-primary) 45%, transparent 70%);
	border-radius: 999px; filter: blur(130px);
	transform: translate(-50%, -50%);
	animation: theme-blob-pulse 6s ease-in-out infinite;
}
.hero-section__particles { position: absolute; inset: 0; pointer-events: none; }
.hero-section__particle { position: absolute; border-radius: 999px; opacity: 0; animation-name: theme-particle-float; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.hero-section__image {
	position: absolute; left: 50%; top: 50%; width: min(108%, 660px); max-width: 100%;
	object-fit: contain; user-select: none;
	filter: drop-shadow(0 30px 50px rgba(6,182,212,0.35));
	animation: theme-image-float 6s ease-in-out infinite;
	animation-delay: 0.6s;
}

/* =========================================================================
   Brands marquee
   ========================================================================= */
.brands-marquee {
	position: relative; overflow: hidden; width: 100%; flex-shrink: 0; padding: 2.5rem 0;
	border-top: 1px solid color-mix(in oklab, var(--color-primary) 15%, transparent);
	border-bottom: 1px solid color-mix(in oklab, var(--color-primary) 15%, transparent);
	background: color-mix(in oklab, var(--color-card) 40%, transparent);
	backdrop-filter: blur(8px);
}
.brands-marquee__fade { position: absolute; inset: 0 auto 0 0; z-index: 10; width: 6rem; pointer-events: none; }
.brands-marquee__fade--left { background: linear-gradient(to right, var(--color-background), transparent); }
.brands-marquee__fade--right { left: auto; right: 0; background: linear-gradient(to left, var(--color-background), transparent); }
.brands-marquee__track {
	display: flex; width: max-content; align-items: center; gap: 4rem;
	flex-wrap: nowrap; white-space: nowrap; will-change: transform;
	animation: theme-marquee 35s linear infinite;
}
.brands-marquee:hover .brands-marquee__track { animation-play-state: paused; }
.brands-marquee__logo {
	flex-shrink: 0;
	display: block;
	height: 2rem;
	width: 2rem;
	max-width: none;
	background-color: var(--color-muted-foreground);
	mask-image: var(--brand-mask);
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-image: var(--brand-mask);
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}
.brands-marquee__logo:hover { opacity: 1; }
@media (min-width: 640px) {
	.brands-marquee__logo { height: 2.5rem; width: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
	.brands-marquee__track { animation: none; }
}

/* =========================================================================
   About section
   ========================================================================= */
.about-section { position: relative; background: var(--color-background); padding: 6rem 0; }
@media (min-width: 640px) { .about-section { padding: 8rem 0; } }
.about-section__grid { display: grid; gap: 2.5rem; min-width: 0; }
@media (min-width: 1024px) { .about-section__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: stretch; } }
.about-section__intro { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.about-section__paragraph { font-size: 1rem; line-height: 1.7; color: var(--color-muted-foreground); }
.about-section__paragraph + .about-section__paragraph { margin-top: 1.25rem; }
@media (min-width: 640px) { .about-section__paragraph { font-size: 1.125rem; } }
.about-section__link { margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-primary); transition: color 0.2s ease; }
.about-section__link:hover { color: var(--color-signal); }
.about-section__body-spacer { display: none; }
@media (min-width: 1024px) {
	.about-section__body-spacer { display: block; height: calc(30px + 1.5rem); }
}
.about-section__stats {
	margin: 3rem 0 0;
	padding: 2.5rem 0 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	border-top: 1px solid var(--color-border);
}
@media (min-width: 640px) {
	.about-section__stats { grid-template-columns: repeat(3, 1fr); }
}
.about-section__stat { margin: 0; }
.about-section__stat-value {
	margin: 0;
	font-family: var(--font-display);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-foreground);
}
@media (min-width: 640px) { .about-section__stat-value { font-size: 3rem; } }
.about-section__stat-label {
	margin: 0.75rem 0 0;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-muted-foreground);
}
.about-section__divider { margin-top: 4rem; height: 1px; width: 100%; background: var(--color-border); }
@media (min-width: 640px) { .about-section__divider { margin-top: 5rem; } }

/* Tighter handoff from About → Shop (avoid doubled section padding). */
.about-section:has(+ .shop-section) { padding-bottom: 3rem; }
.about-section + .shop-section { padding-top: 3rem; }
@media (min-width: 640px) {
	.about-section:has(+ .shop-section) { padding-bottom: 4rem; }
	.about-section + .shop-section { padding-top: 4rem; }
}

/* =========================================================================
   Shop section + product grid + product card
   ========================================================================= */
.shop-section, .theme-shop-archive { position: relative; background: var(--color-background); padding: 6rem 0; }
@media (min-width: 640px) { .shop-section, .theme-shop-archive { padding: 8rem 0; } }

/* Shop + Services intro headers — Lovable: grid gap-8 lg:grid-cols-12 lg:items-end */
.shop-section__header,
.services-section__header {
	display: grid;
	gap: 2rem;
	align-items: end;
}
@media (min-width: 1024px) {
	.shop-section__header,
	.services-section__header {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.shop-section__header-copy,
	.services-section__header-copy {
		grid-column: span 7;
		min-width: 0;
	}
	.shop-section__paragraph,
	.services-section__paragraph {
		grid-column: span 5;
		min-width: 0;
	}
}
.shop-section__header-copy .section-heading,
.services-section__header-copy .section-heading {
	margin-top: 1.5rem;
}
.shop-section__paragraph,
.services-section__paragraph { font-size: 1rem; line-height: 1.5; color: var(--color-muted-foreground); }

.theme-product-grid {
	margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem 1.5rem;
	align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 5rem; row-gap: 3rem; } }

.theme-product-card-wrap { display: flex; }
.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; width: 100%; }

.theme-product-card__image-wrapper {
	position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1rem;
	border: 1px solid color-mix(in oklab, var(--color-primary) 15%, transparent);
	background: var(--color-card);
	transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s cubic-bezier(0.22,1,0.36,1);
}
.theme-product-card__image-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	color: inherit;
}
.theme-product-card:hover .theme-product-card__image-wrapper { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.theme-product-card__image-wrapper img { transition: transform 0.7s ease-out; }
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.04); }
.theme-product-card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in oklab, var(--color-background) 85%, transparent), color-mix(in oklab, var(--color-background) 10%, transparent) 60%, transparent); pointer-events: none; }

.theme-product-card__badge {
	position: absolute; z-index: 2; pointer-events: none;
	border-radius: 0.375rem; border: 1px solid color-mix(in oklab, var(--color-primary) 30%, transparent);
	background: color-mix(in oklab, var(--color-background) 80%, transparent);
	padding: 0.25rem 0.625rem; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-primary); backdrop-filter: blur(8px);
}
.theme-product-card__badge--cat { top: 0.75rem; left: 0.75rem; }
.theme-product-card__badge--spec { bottom: 0.75rem; left: 0.75rem; color: var(--color-signal); border-color: color-mix(in oklab, var(--color-signal) 30%, transparent); }
.theme-product-card__badge--oos { bottom: 0.75rem; right: 0.75rem; color: var(--color-destructive); }

.theme-product-card__add.add_to_cart_button.ajax_add_to_cart {
	position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 3;
	pointer-events: auto;
	min-height: 2.25rem !important; padding: 0.5rem 0.75rem !important;
	display: inline-flex !important; align-items: center; gap: 0.375rem;
	border-radius: 0.5rem !important; transform: translateY(0.5rem); opacity: 0;
	transition: all 0.3s ease;
	font-family: var(--font-mono) !important; font-size: 10px !important; font-weight: 700 !important;
	text-transform: uppercase !important; letter-spacing: 0.1em !important;
}
.theme-product-card:hover .theme-product-card__add,
.theme-product-card:focus-within .theme-product-card__add { transform: translateY(0); opacity: 1; }

.theme-product-card__info { flex: 1; margin-top: 1.25rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.theme-product-card__info-main { min-width: 0; }
.theme-product-card__index { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--color-muted-foreground); }
.theme-product-card__name { margin-top: 0.25rem; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s ease; }
.theme-product-card__title-link { color: inherit; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-product-card__title-link:hover { color: var(--color-primary); }
@media (min-width: 640px) { .theme-product-card__name { font-size: 1.125rem; } }
.theme-product-card:hover .theme-product-card__name,
.theme-product-card:hover .theme-product-card__title-link { color: var(--color-primary); }
.theme-product-card__tagline { margin-top: 0.25rem; font-size: 0.75rem; color: var(--color-muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-product-card__info-price { flex-shrink: 0; text-align: right; }
.theme-product-card__price { font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-transform: none; }
.theme-product-card__price .woocommerce-Price-amount { font-family: var(--font-display); }
.theme-product-card__instant { margin-top: 0.25rem; display: inline-flex; align-items: center; gap: 0.25rem; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-signal); }

.theme-empty-state { margin-top: 3rem; text-align: center; color: var(--color-muted-foreground); }

/* Add-to-cart button style override (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-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, var(--font-sans)) !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;
}
/* Card compact button — overrides global rules (scoped, placed after) */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: unset !important;
}

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

.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; }

/* Scoped WooCommerce notice visibility (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-radius: 0.5rem; border: 1px solid var(--color-border); background: var(--color-card);
	color: var(--color-foreground); font-family: var(--font-sans); padding: 1rem 1.25rem; margin: 0 0 1.5rem;
	list-style: none;
}
.woocommerce-error { border-color: color-mix(in oklab, var(--color-destructive) 40%, transparent); }

/* =========================================================================
   Services
   ========================================================================= */
.services-section { position: relative; background: var(--color-onyx); color: var(--color-foreground); padding: 6rem 0; }
@media (min-width: 640px) { .services-section { padding: 8rem 0; } }

.theme-services-expand { margin-top: 4rem; display: flex; flex-direction: column; gap: 0.5rem; overflow: hidden; }
.theme-service-item {
	position: relative; width: 100%; overflow: hidden; border-radius: 1rem; text-align: left;
	height: 80px; transition: height 0.6s cubic-bezier(0.22,1,0.36,1);
}
.theme-service-item.is-active { height: 360px; }
.theme-service-item__bg { transition: transform 0.7s ease; }
.theme-service-item:hover .theme-service-item__bg { transform: scale(1.05); }
.theme-service-item__scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.2)); }
.theme-service-item__collapsed {
	position: absolute; inset: 0; display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem;
	transition: opacity 0.3s ease; opacity: 1;
}
@media (min-width: 640px) { .theme-service-item__collapsed { padding: 0 2rem; } }
.theme-service-item.is-active .theme-service-item__collapsed { opacity: 0; }
.theme-service-item__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); }
.theme-service-item__name-sm { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.28em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 640px) { .theme-service-item__name-sm { font-size: 14px; } }
.theme-service-item__expanded {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
	padding: 1.5rem; opacity: 0; transition: opacity 0.4s ease;
}
@media (min-width: 640px) { .theme-service-item__expanded { padding: 2.5rem; } }
.theme-service-item.is-active .theme-service-item__expanded { opacity: 1; transition-delay: 0.2s; }
.theme-service-item__tag {
	display: inline-flex; width: fit-content; background: var(--color-primary); color: var(--color-primary-foreground);
	padding: 0.25rem 0.75rem; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em;
}
.theme-service-item__name { margin-top: 1rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; text-transform: none; letter-spacing: normal; color: #fff; }
@media (min-width: 640px) { .theme-service-item__name { font-size: 2.25rem; } }
.theme-service-item__description { margin-top: 0.75rem; max-width: 42rem; font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.8); }
@media (min-width: 640px) { .theme-service-item__description { font-size: 1rem; } }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-section { position: relative; isolation: isolate; overflow: hidden; background-color: var(--color-onyx); background-size: cover; background-position: center; background-repeat: no-repeat; padding: 6rem 0; }
@media (min-width: 640px) { .faq-section { padding: 8rem 0; } }
.faq-section__overlay {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to bottom, color-mix(in oklab, var(--color-background) 90%, transparent), color-mix(in oklab, var(--color-background) 85%, transparent), color-mix(in oklab, var(--color-background) 97%, transparent));
}
.faq-section__glow {
	position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(ellipse at top right, color-mix(in oklab, var(--color-primary) 18%, transparent) 0%, transparent 65%);
}
.faq-section__header { text-align: center; }
.theme-faq-list { margin-top: 3.5rem; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.theme-faq-item { border-bottom: 1px solid var(--color-border); }
.theme-faq-item:last-child { border-bottom: none; }
.theme-faq-item__question {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1.5rem;
	padding: 1.5rem 0; text-align: left; color: var(--color-foreground); transition: color 0.2s ease;
}
.theme-faq-item__question:hover { color: var(--color-primary); }
.theme-faq-item__q-text { font-family: var(--font-display); font-size: 1rem; text-transform: none; letter-spacing: normal; font-weight: 700; }
@media (min-width: 640px) { .theme-faq-item__q-text { font-size: 1.125rem; } }
.theme-faq-item__icon {
	display: flex; flex-shrink: 0; height: 2rem; width: 2rem; align-items: center; justify-content: center;
	border-radius: 0.5rem; border: 1px solid color-mix(in oklab, var(--color-primary) 30%, transparent); color: var(--color-primary);
}
.theme-faq-item__icon-plus { display: block; }
.theme-faq-item__icon-minus { display: none; }
.theme-faq-item__question.is-open .theme-faq-item__icon-plus { display: none; }
.theme-faq-item__question.is-open .theme-faq-item__icon-minus { display: block; }
.theme-faq-item__panel { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.22,1,0.36,1); }
.theme-faq-item__panel.is-open { max-height: 400px; padding-bottom: 1.5rem; }
.theme-faq-item__answer { max-width: 42rem; font-size: 1rem; line-height: 1.7; color: var(--color-muted-foreground); }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-section { position: relative; padding: 6rem 0; }
@media (min-width: 640px) { .contact-section { padding: 8rem 0; } }
.contact-section__grid { display: grid; gap: 4rem; min-width: 0; }
@media (min-width: 1024px) { .contact-section__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } }
.contact-section__info { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.contact-section__paragraph { margin-top: 1.5rem; max-width: 36rem; font-size: 1rem; color: var(--color-muted-foreground); }
@media (min-width: 640px) { .contact-section__paragraph { font-size: 1.125rem; } }
.contact-section__list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; color: var(--color-foreground); }
.contact-section__item { display: flex; align-items: center; gap: 1rem; }
.contact-section__icon-box {
	display: flex; height: 3rem; width: 3rem; flex-shrink: 0; align-items: center; justify-content: center;
	border-radius: 0.75rem; border: 1px solid var(--color-border); color: var(--color-primary); transition: all 0.2s ease;
}
.contact-section__item:hover .contact-section__icon-box { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-primary-foreground); }
.contact-section__item-label { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted-foreground); }
.contact-section__item-value { display: block; margin-top: 0.25rem; font-size: 1rem; overflow-wrap: break-word; }
.contact-section__browse { margin-top: 2rem; width: fit-content; }
.contact-section__map { margin-top: 2.5rem; min-height: 280px; flex: 1; overflow: hidden; border-radius: 1rem; border: 1px solid var(--color-border); }
.contact-section__map iframe { width: 100%; height: 100%; border: 0; min-height: 280px; }

.theme-contact-form { display: flex; height: 100%; flex-direction: column; border-radius: 1rem; padding: 2rem; }
@media (min-width: 640px) { .theme-contact-form { padding: 2.5rem; } }
.theme-contact-form__title { font-size: 1.5rem; }
@media (min-width: 640px) { .theme-contact-form__title { font-size: 1.875rem; } }
.theme-contact-form__subtitle { margin-top: 0.75rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-contact-form__form { margin-top: 1.5rem; display: flex; flex: 1; flex-direction: column; gap: 1rem; }
.theme-contact-form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .theme-contact-form__row { grid-template-columns: 1fr 1fr; } }
.theme-field { display: flex; flex-direction: column; }
.theme-field--grow { flex: 1; }
.theme-field label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.theme-field input, .theme-field textarea {
	border-radius: 0.75rem; border: 1px solid var(--color-border); background: color-mix(in oklab, var(--color-background) 40%, transparent);
	color: var(--color-foreground); font-family: var(--font-sans); font-size: 0.95rem; padding: 0.65rem 0.9rem;
	transition: border-color 0.2s ease;
}
.theme-field input, .theme-field textarea { width: 100%; max-width: 100%; }
.theme-field textarea { min-height: 120px; flex: 1; resize: vertical; }
.theme-contact-form { min-width: 0; }
.theme-field input:focus, .theme-field textarea:focus { outline: none; border-color: var(--color-primary); }
.theme-field input::placeholder, .theme-field textarea::placeholder { color: var(--color-muted-foreground); opacity: 0.7; }
.theme-contact-form__actions { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-contact-form__call { text-align: center; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted-foreground); }
.theme-contact-form__call:hover { color: var(--color-primary); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { position: relative; overflow-x: clip; border-top: 1px solid color-mix(in oklab, var(--color-primary) 15%, transparent); background: var(--color-onyx); color: var(--color-foreground); }
.site-footer__inner { max-width: 80rem; margin: 0 auto; padding: 5rem 1rem 2.5rem; }
@media (min-width: 640px) { .site-footer__inner { padding: 5rem 1.5rem 2.5rem; } }
@media (min-width: 1024px) { .site-footer__inner { padding: 5rem 2rem 2.5rem; } }
.site-footer__wordmark {
	font-family: var(--font-display);
	font-size: 15vw;
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: 0.025em;
	word-break: break-word;
	color: var(--color-foreground);
}
@media (min-width: 640px) { .site-footer__wordmark { font-size: 11vw; } }
@media (min-width: 1024px) { .site-footer__wordmark { font-size: 8rem; } }
.site-footer__cols { margin-top: 4rem; display: grid; gap: 3rem; }
@media (min-width: 768px) { .site-footer__cols { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.site-footer__label {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-primary);
}
.site-footer__text { margin: 1.25rem 0 0; max-width: 24rem; color: var(--color-muted-foreground); }
.site-footer__links {
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem 1.5rem;
	font-size: 1rem;
	line-height: 1.5;
}
.site-footer__links--stack { grid-template-columns: 1fr; gap: 0.75rem; }
.site-footer__links li { margin: 0; }
.site-footer__links a { display: inline-block; color: var(--color-muted-foreground); transition: color 0.2s ease; overflow-wrap: break-word; }
.site-footer__links a:hover { color: var(--color-primary); }
.site-footer__links--stack > li { color: var(--color-muted-foreground); }
.site-footer__bottom {
	margin-top: 4rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
	border-top: 1px solid var(--color-border); padding-top: 2rem;
	font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted-foreground);
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }

/* =========================================================================
   Cart drawer + overlay (Section 12)
   ========================================================================= */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.6);
	opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(2px);
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
	width: min(420px, 100%); display: flex; flex-direction: column;
	background: var(--color-card); border-left: 1px solid var(--color-border);
	box-shadow: -20px 0 60px -20px rgba(0,0,0,0.5);
	transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-size: 1.25rem; }
.theme-cart-drawer__close { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; }
.theme-cart-drawer__close:hover { background: color-mix(in oklab, var(--color-primary) 10%, transparent); color: var(--color-primary); }

.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 2.5rem 1.5rem; text-align: center; }
.theme-cart-drawer__empty-title { font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.03em; }
.theme-cart-drawer__empty-sub { color: var(--color-muted-foreground); margin-bottom: 0.5rem; }

.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-cart-drawer__item { display: flex; gap: 0.75rem; }
.theme-cart-drawer__item-image { flex-shrink: 0; width: 4.5rem; height: 4.5rem; border-radius: 0.5rem; overflow: hidden; border: 1px solid var(--color-border); }
.theme-cart-drawer__item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-cart-drawer__item-body { flex: 1; min-width: 0; }
.theme-cart-drawer__item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.theme-cart-drawer__item-name { font-family: var(--font-display); font-size: 0.9rem; text-transform: none; letter-spacing: normal; font-weight: 600; }
.theme-cart-drawer__item-remove { color: var(--color-muted-foreground); flex-shrink: 0; }
.theme-cart-drawer__item-remove:hover { color: var(--color-destructive); }
.theme-cart-drawer__item-variation { margin-top: 0.25rem; font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__item-bottom { margin-top: 0.5rem; display: flex; align-items: center; justify-content: space-between; }
.theme-cart-drawer__item-price { font-size: 0.9rem; }
.theme-cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 0.5rem; }
.theme-cart-qty__btn { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; }
.theme-cart-qty__btn:hover { background: color-mix(in oklab, var(--color-primary) 10%, transparent); }
.theme-cart-qty__value { width: 1.75rem; text-align: center; font-size: 0.85rem; }

.theme-cart-drawer__footer { border-top: 1px solid var(--color-border); padding: 1.5rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 1rem; margin-bottom: 1rem; }
.theme-cart-drawer__checkout { margin-top: 0; }

/* =========================================================================
   Single product page (Section 11.13)
   ========================================================================= */
.single-product .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
.theme-back-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-muted-foreground); }
.theme-back-link:hover { color: var(--color-primary); }

.theme-product-layout { display: grid; gap: 3rem; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-gallery__main { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-card); border-radius: 1rem; }
.theme-product-gallery__badge { position: absolute; left: 1rem; top: 1rem; background: var(--color-primary); color: var(--color-primary-foreground); padding: 0.25rem 0.75rem; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; }
.theme-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--color-border); background: color-mix(in oklab, var(--color-background) 90%, transparent); border-radius: 999px; }
.theme-gallery-nav:hover { background: var(--color-background); }
.theme-gallery-nav--prev { left: 0.75rem; }
.theme-gallery-nav--next { right: 0.75rem; }
.theme-product-thumbnails { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 2px solid var(--color-border); border-radius: 0.5rem; }
.theme-product-thumb.is-active { border-color: var(--color-primary); }
.theme-product-thumb:hover { border-color: color-mix(in oklab, var(--color-primary) 50%, transparent); }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.theme-product-info__tagline { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.32em; color: var(--color-primary); }
.theme-product-info__title { margin-top: 0.75rem; font-size: 2.25rem; font-weight: 300; }
@media (min-width: 768px) { .theme-product-info__title { font-size: 3rem; } }
.theme-product-info__price { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.5rem; color: var(--color-primary); text-transform: none; letter-spacing: normal; }
.theme-stock-indicator--oos { margin-top: 0.75rem; font-weight: 700; color: var(--color-destructive); }
.theme-product-info__description { margin-top: 2rem; line-height: 1.75; color: var(--color-muted-foreground); overflow-wrap: break-word; word-break: break-word; }
.theme-trust-badges { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-muted-foreground); }
.theme-trust-badges span { display: inline-flex; align-items: center; gap: 0.375rem; }

.theme-add-to-cart-area { margin-top: 2rem; display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; }
.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 0.75rem; overflow: hidden; }
.theme-qty-minus, .theme-qty-plus { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: color-mix(in oklab, var(--color-primary) 10%, transparent); }
.theme-qty-input { width: 3rem; height: 2.5rem; text-align: center; font-family: var(--font-display); font-size: 1rem; background: transparent; border: none; color: var(--color-foreground); -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-product-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.theme-product-cta-row .single_add_to_cart_button,
.theme-product-cta-row .theme-buy-now-button { flex: 1 1 auto; min-width: 160px; }
.theme-buy-now-button { min-height: 44px; }

/* Product option swatches + pills */
.theme-variations,
.theme-product-options { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-variation-row { display: flex; flex-direction: column; gap: 0.625rem; }
.theme-variation-row__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--color-muted-foreground);
}
.theme-option-swatches { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.theme-option-swatch {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border: 2px solid var(--color-border);
	border-radius: 999px;
	background: transparent;
	color: var(--color-foreground);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.theme-option-swatch:hover { border-color: color-mix(in oklab, var(--color-primary) 50%, var(--color-border)); }
.theme-option-swatch.is-selected {
	border-color: var(--color-primary);
	background: color-mix(in oklab, var(--color-primary) 5%, transparent);
	color: var(--color-foreground);
}
.theme-option-swatch__dot {
	width: 1rem;
	height: 1rem;
	border-radius: 999px;
	background: var(--swatch-color, var(--color-muted-foreground));
	border: 1px solid color-mix(in oklab, var(--color-foreground) 15%, transparent);
	flex-shrink: 0;
}
.theme-option-swatch__label { font-size: 0.8125rem; font-weight: 500; }

.theme-option-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.theme-option-pill {
	padding: 0.5rem 1rem;
	border: 2px solid var(--color-border);
	border-radius: 999px;
	background: transparent;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.theme-option-pill:hover { border-color: color-mix(in oklab, var(--color-primary) 50%, var(--color-border)); }
.theme-option-pill.is-selected {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: var(--color-primary-foreground);
}

.theme-color-swatch {
	display: inline-block;
	width: 0.875rem;
	height: 0.875rem;
	border-radius: 999px;
	background: var(--swatch-color, var(--color-muted-foreground));
	border: 1px solid color-mix(in oklab, var(--color-foreground) 15%, transparent);
	vertical-align: middle;
}
.theme-color-swatch--sm { width: 0.75rem; height: 0.75rem; }

.theme-cart-item-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.theme-cart-item-meta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-item-meta__label { font-weight: 600; }
.theme-cart-item-meta__color { display: inline-flex; align-items: center; gap: 0.375rem; }

.theme-product-info__details { margin-top: 2.5rem; border-top: 1px solid var(--color-border); padding-top: 2rem; }
.theme-product-info__details-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.woocommerce-variation-description, .posted_in { overflow-wrap: break-word; word-break: break-word; }

.related-products-section { margin-top: 6rem; }
.related-products-section__header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; }
.related-products-section__heading { font-size: 1.875rem; font-weight: 300; }
@media (min-width: 768px) { .related-products-section__heading { font-size: 2.25rem; } }
.related-products-section__view-all { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-primary); }
.related-products-section__view-all:hover { text-decoration: underline; }
.theme-product-grid--related { grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 640px) { .theme-product-grid--related { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* =========================================================================
   404 / generic pages
   ========================================================================= */
.theme-generic-main { padding-top: calc(var(--header-height) + 3rem); padding-bottom: 6rem; min-height: 60vh; }
.theme-404 { min-height: 100vh; display: flex; align-items: center; }
.theme-404__inner { text-align: center; }
.theme-404__code { font-size: 4.5rem; }
.theme-404__title { margin-top: 1rem; font-size: 1.5rem; }
.theme-404__text { margin-top: 0.75rem; color: var(--color-muted-foreground); }
.theme-404__inner .theme-btn { margin-top: 2rem; }
.page-title { padding: 6rem 0 1.5rem; font-size: 2.25rem; }

/* =========================================================================
   Checkout page header
   ========================================================================= */
.theme-checkout-shell {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1rem;
	box-sizing: border-box;
}
@media (min-width: 640px) { .theme-checkout-shell { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .theme-checkout-shell { padding: 0 2rem; } }

.theme-checkout-header { padding-top: 2rem; margin-bottom: 2rem; }
.theme-checkout-header__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--color-muted-foreground);
}
.theme-checkout-header__back:hover { color: var(--color-primary); }
.theme-checkout-header__title {
	font-family: var(--font-display);
	font-size: 2.25rem;
	font-weight: 300;
	letter-spacing: -0.02em;
}
@media (min-width: 768px) { .theme-checkout-header__title { font-size: 3rem; } }
.theme-checkout-header__intro { margin-top: 0.5rem; font-size: 0.875rem; font-style: italic; color: var(--color-muted-foreground); }

body.theme-checkout-page .page-title { display: none; }

/* =========================================================================
   WooCommerce Checkout Block overrides (Section 13)
   ========================================================================= */
body.woocommerce-checkout .theme-container,
body.theme-checkout-page .theme-container,
body.woocommerce-checkout .theme-checkout-shell,
body.theme-checkout-page .theme-checkout-shell,
body.woocommerce-checkout .theme-checkout-shell .entry-content,
body.theme-checkout-page .theme-checkout-shell .entry-content {
	max-width: none;
	width: 100%;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	container-type: inline-size;
	max-width: 80rem;
	width: 100% !important;
	margin-inline: auto;
	box-sizing: border-box;
	font-family: var(--font-sans);
	color: var(--color-foreground);
}

/* WordPress alignwide can cap checkout below theme width — neutralize on checkout. */
body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide,
body.woocommerce-checkout .wc-block-checkout.alignwide,
.entry-content .wp-block-woocommerce-checkout.alignwide,
.entry-content .wc-block-checkout.alignwide {
	max-width: 80rem !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

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-cart .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-textarea textarea {
	font-family: var(--font-sans);
	font-size: 0.95rem;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
	border-radius: 0.65rem;
	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-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .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-checkout .wc-block-components-text-input input {
	padding: revert;
}
body.woocommerce-checkout ::placeholder,
.entry-content .wc-block-checkout ::placeholder { color: var(--color-muted-foreground); }

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: 999px !important;
	font-family: var(--font-sans) !important;
	font-weight: 600 !important;
	text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-checkout .wc-block-components-notice-banner {
	border-radius: 0.65rem;
	font-family: var(--font-sans);
}

body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: 80rem;
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
}

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;
}

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-card);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
	box-sizing: border-box;
}

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;
}

/* Two-column layout — target the real WC sidebar layout container (not .wc-block-checkout). */
@container (min-width: 700px) {
	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 {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
		flex-wrap: nowrap !important;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-fields-block,
	body.woocommerce-checkout .wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-totals-block,
	.entry-content .wc-block-components-sidebar-layout .wc-block-components-main,
	.entry-content .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.entry-content .wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-fields-block,
	.entry-content .wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-totals-block {
		width: 100% !important;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
		padding-left: 0;
		padding-right: 0;
		margin: 0;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-notices,
	.entry-content .wc-block-components-sidebar-layout .wc-block-components-notices {
		grid-column: 1 / -1;
		order: 1;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-fields-block,
	.entry-content .wc-block-components-sidebar-layout .wc-block-components-main,
	.entry-content .wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-fields-block {
		order: 2;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-totals-block,
	.entry-content .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.entry-content .wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-totals-block {
		order: 3;
	}
}

/* Media-query fallback when container queries are unavailable or blocked by a parent container. */
@media (min-width: 768px) {
	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 {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
		flex-wrap: nowrap !important;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-fields-block,
	body.woocommerce-checkout .wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-totals-block,
	.entry-content .wc-block-components-sidebar-layout .wc-block-components-main,
	.entry-content .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.entry-content .wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-fields-block,
	.entry-content .wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-totals-block {
		width: 100% !important;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
		padding-left: 0;
		padding-right: 0;
		margin: 0;
	}

	body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices,
	.entry-content .wc-block-checkout > .wc-block-components-notices {
		grid-column: 1 / -1;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-notices,
	.entry-content .wc-block-components-sidebar-layout .wc-block-components-notices {
		grid-column: 1 / -1;
		order: 1;
	}

	body.woocommerce-checkout .wc-block-components-notice-banner,
	.entry-content .wc-block-components-notice-banner {
		grid-column: 1 / -1;
	}

	/* Fallback: fields + totals as direct children of the checkout block (no sidebar-layout wrapper). */
	body.woocommerce-checkout .wp-block-woocommerce-checkout:has(> .wp-block-woocommerce-checkout-fields-block):has(> .wp-block-woocommerce-checkout-totals-block),
	body.woocommerce-checkout .wc-block-checkout:has(> .wp-block-woocommerce-checkout-fields-block):has(> .wp-block-woocommerce-checkout-totals-block),
	.entry-content .wp-block-woocommerce-checkout:has(> .wp-block-woocommerce-checkout-fields-block):has(> .wp-block-woocommerce-checkout-totals-block),
	.entry-content .wc-block-checkout:has(> .wp-block-woocommerce-checkout-fields-block):has(> .wp-block-woocommerce-checkout-totals-block) {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
	}

	body.woocommerce-checkout .wp-block-woocommerce-checkout > .wp-block-woocommerce-checkout-fields-block,
	body.woocommerce-checkout .wc-block-checkout > .wp-block-woocommerce-checkout-fields-block,
	.entry-content .wp-block-woocommerce-checkout > .wp-block-woocommerce-checkout-fields-block,
	.entry-content .wc-block-checkout > .wp-block-woocommerce-checkout-fields-block {
		grid-column: 1;
		width: 100% !important;
		min-width: 0;
		padding: 0 !important;
	}

	body.woocommerce-checkout .wp-block-woocommerce-checkout > .wp-block-woocommerce-checkout-totals-block,
	body.woocommerce-checkout .wc-block-checkout > .wp-block-woocommerce-checkout-totals-block,
	.entry-content .wp-block-woocommerce-checkout > .wp-block-woocommerce-checkout-totals-block,
	.entry-content .wc-block-checkout > .wp-block-woocommerce-checkout-totals-block {
		grid-column: 2;
		width: 100% !important;
		min-width: 0;
		padding: 0 !important;
	}

	body.woocommerce-checkout .wp-block-woocommerce-checkout > .wc-block-components-notices,
	body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices,
	.entry-content .wp-block-woocommerce-checkout > .wc-block-components-notices,
	.entry-content .wc-block-checkout > .wc-block-components-notices {
		grid-column: 1 / -1;
	}
}

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: var(--header-height);
	padding-bottom: 4rem;
}

/* =========================================================================
   Thank-you page (Section 22.8)
   ========================================================================= */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details {
	font-family: var(--font-sans);
	color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 2rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview li { border-right: none; }
body.theme-thankyou-page h2, body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em;
	font-size: 1.5rem; padding: 0 0 1rem 0; display: block;
}
body.theme-thankyou-page .woocommerce-order-details table { margin-bottom: 2rem; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details 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 address {
	max-width: 480px; overflow-wrap: break-word; border: 1px solid var(--color-border); border-radius: 0.75rem; padding: 1.25rem; font-style: normal;
}
@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; }
}

/* =========================================================================
   Toast notifications (top-center, matches source's sonner toaster)
   ========================================================================= */
.theme-toast-root {
	position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 200;
	display: flex; flex-direction: column; gap: 0.5rem; align-items: center; pointer-events: none;
}
.theme-toast {
	pointer-events: auto; padding: 0.75rem 1.25rem; border-radius: 0.75rem;
	background: var(--color-card); color: var(--color-foreground);
	border: 1px solid var(--color-border); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
	font-size: 0.875rem; font-family: var(--font-sans);
	opacity: 0; transform: translateY(-12px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.theme-toast.is-visible { opacity: 1; transform: translateY(0); }
.theme-toast--success { border-color: color-mix(in oklab, var(--color-signal) 40%, transparent); }
.theme-toast--error { border-color: color-mix(in oklab, var(--color-destructive) 40%, transparent); }

/* =========================================================================
   Customizer control CSS (also see assets/css/customizer-controls.css)
   ========================================================================= */
