/* ==========================================================================
   TsWickedSpice theme.css
   Design tokens are emitted as :root CSS custom properties via
   wp_add_inline_style() in functions.php (Section 6.1 / 22.9).
   ========================================================================== */

:root {
	/* Design system color tokens — mirror src/index.css (Customizer overrides via inline CSS). */
	--background: 280 6% 4%;
	--foreground: 0 0% 100%;
	--card: 270 7% 9%;
	--card-foreground: 0 0% 100%;
	--primary: 0 78% 52%;
	--primary-foreground: 0 0% 100%;
	--secondary: 270 7% 12%;
	--secondary-foreground: 0 0% 100%;
	--muted: 270 6% 16%;
	--muted-foreground: 240 5% 65%;
	--accent: 33 100% 50%;
	--accent-foreground: 280 6% 4%;
	--border: 270 6% 19%;
	--input: 270 6% 19%;
	--ring: 0 78% 52%;
	--chrome: 213 27% 90%;
	--chrome-dim: 215 20% 65%;

	--radius: 0.125rem;
	--font-display: 'Permanent Marker', 'Impact', 'Helvetica Neue', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, monospace;
	--font-body: 'Plus Jakarta Sans', Inter, 'Helvetica Neue', sans-serif;

	--shadow-elevated: 0 18px 48px -14px hsl(0 78% 52% / 0.45);
	--shadow-ember: 0 0 0 1px hsl(0 78% 52% / 0.45), 0 22px 60px -20px hsl(33 100% 50% / 0.5);
	--transition-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);

	--btn-radius: 0;
	--btn-height: 3rem;
	--btn-padding: 0 2rem;
	--btn-font-size: 0.75rem;
	--btn-font-size-compact: 0.75rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.28em;
	--btn-text-transform: uppercase;
	--header-height: 5.2rem;
	--checkout-gap: 2rem;
	--checkout-max-width: 1280px;
	--card-radius: 0.25rem;
	--section-padding: 2rem;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }

:root {
	--scroll-padding-admin: 0px;
}
body.admin-bar {
	--scroll-padding-admin: 46px;
}
@media screen and (min-width: 783px) {
	body.admin-bar {
		--scroll-padding-admin: 32px;
	}
}
html {
	scroll-padding-top: calc(var(--header-height, 5.2rem) + var(--scroll-padding-admin) + 1rem);
}

body {
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.625;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
	opacity: 0.03;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 128px 128px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: 0.01em;
	text-wrap: balance;
	margin: 0;
}

p, li { text-wrap: pretty; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select { font-family: inherit; }

img:not(.cover-img):not(.product-card-img):not(.theme-product-card__image):not(#product-main-img):not(.theme-product-thumb img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .product-card-img img, .theme-product-card__image, #product-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container-wide { padding: 0 2.5rem; } }

.font-mono { font-family: var(--font-mono); }
.label-eyebrow {
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-weight: 600;
	color: hsl(var(--muted-foreground));
}

.scroll-mt-32 { scroll-margin-top: 8rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-hero-primary, .btn-hero-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--btn-height);
	padding: var(--btn-padding);
	min-height: 2.75rem;
	font-family: var(--font-mono);
	font-size: var(--btn-font-size);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	border-radius: var(--btn-radius);
	transition: all 0.3s ease;
	cursor: pointer;
	white-space: nowrap;
}
.btn-hero-primary {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 1px solid hsl(var(--primary));
}
.btn-hero-primary:hover { filter: brightness(1.1); box-shadow: var(--shadow-ember); }
.btn-hero-outline {
	background-color: transparent;
	color: hsl(var(--foreground));
	border: 1px solid hsl(var(--muted-foreground));
}
.btn-hero-outline:hover { border-color: hsl(var(--accent)); color: hsl(var(--accent)); }

.btn-outline-hero,
a.btn-outline-hero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid hsl(var(--border));
	background: transparent;
	color: hsl(var(--foreground));
	transition: border-color 0.2s, color 0.2s;
}
.btn-outline-hero:hover { border-color: hsl(var(--accent)); color: hsl(var(--accent)); }

.theme-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	z-index: 70;
	pointer-events: none;
	background: hsl(var(--primary));
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* ==========================================================================
   Reveal animations (Section 2.1) — mirrors framer-motion whileInView
   opacity 0 -> 1, translateY(24px) -> 0, duration 0.55s, custom ease.
   ========================================================================== */

.reveal-up, .reveal-item {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.55s var(--transition-smooth), transform 0.55s var(--transition-smooth);
}
.reveal-up.is-visible, .reveal-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}
body.is-customizer .reveal-up,
body.is-customizer .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.reveal-up, .reveal-item { transition: none; opacity: 1; transform: none; }
}

.animate-fade-in { animation: theme-fade-in 0.8s var(--transition-smooth) forwards; }
.animate-slide-up { animation: theme-slide-up 0.8s var(--transition-smooth) forwards; }
@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-ken-burns { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }
.animate-ken-burns { animation: theme-ken-burns 18s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .animate-ken-burns { animation: none; } }

.ember-card { transition: all 0.3s ease; border: 1px solid hsl(var(--border)); background-color: hsl(var(--card)); }
.ember-card:hover { transform: translateY(-4px); border-color: hsl(var(--primary) / 0.7); box-shadow: var(--shadow-ember); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0.75rem;
	left: 0;
	right: 0;
	z-index: 50;
	padding: 0 0.75rem;
	pointer-events: none;
}
@media (min-width: 768px) { .site-header { top: 1.25rem; padding: 0 1.5rem; } }

/* WordPress admin bar — keep fixed header below the toolbar in Customizer preview. */
body.admin-bar .site-header {
	top: calc(46px + 0.75rem);
}
@media screen and (min-width: 783px) {
	body.admin-bar .site-header {
		top: calc(32px + 1.25rem);
	}
}

/* Pointer cursor on interactive elements. */
a[href],
button,
[role="button"],
.cat-tile,
.theme-product-card,
.theme-nav-link,
.site-footer__link,
.site-footer__terms,
.theme-search-cat-link,
.shop-chip,
.faq-item__question,
.theme-row-arrow,
.theme-contact-modal__dropzone,
.mobile-menu__overlay,
.theme-search-dialog__overlay,
.site-header__brand {
	cursor: pointer;
}

.site-header__inner {
	pointer-events: auto;
	margin: 0 auto;
	max-width: 80rem;
	background-color: hsl(var(--background) / 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid hsl(var(--border) / 0.6);
	box-shadow: 0 10px 40px -12px rgba(0,0,0,0.7);
	color: hsl(var(--foreground));
}
.site-header__row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4.2rem;
	padding: 0 1rem;
}
@media (min-width: 768px) { .site-header__row { padding: 0 1.5rem; } }

.site-header__left { display: flex; align-items: center; gap: 1.5rem; }
.site-header__menu-toggle { padding: 0.5rem; margin-left: -0.5rem; color: hsl(var(--foreground)); }
.site-header__menu-toggle:hover { opacity: 0.6; }
.site-header__nav-desktop { display: none; }
@media (min-width: 1024px) { .site-header__nav-desktop { display: flex; } .site-header__menu-toggle { display: none; } }

.site-header__nav-desktop ul.theme-nav-list, .theme-nav-fallback {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
}
.site-header__nav-desktop .theme-nav-link,
.site-header__nav-desktop a {
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: hsl(var(--foreground));
	transition: color 0.2s ease;
}
.site-header__nav-desktop .theme-nav-link:hover, .site-header__nav-desktop a:hover { color: hsl(var(--primary)); }

.site-header__brand {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}
.site-logo-img { height: var(--logo-height, 60px) !important; width: auto !important; display: block; }
.site-logo-text { line-height: var(--logo-height, 60px); display: block; font-family: var(--font-display); font-size: 1.25rem; color: hsl(var(--foreground)); }
.site-logo-text--with-image { margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--primary)); line-height: 1; }

.site-header__right { display: flex; align-items: center; gap: 0.125rem; }
.site-header__link {
	display: none;
	min-height: 2.75rem;
	align-items: center;
	font-size: 0.8125rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 500;
	color: hsl(var(--foreground));
	padding: 0 0.75rem;
	transition: color 0.2s ease;
}
@media (min-width: 1024px) { .site-header__link { display: inline-flex; } }
.site-header__link:hover { color: hsl(var(--primary)); }

.site-header__icon-btn {
	position: relative;
	width: 2.75rem;
	height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: hsl(var(--foreground));
	transition: color 0.2s ease;
}
.site-header__icon-btn:hover { color: hsl(var(--primary)); }
.site-header__search-btn { display: none; }
@media (min-width: 640px) { .site-header__search-btn { display: inline-flex; } }

.theme-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 1.25rem;
	height: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-radius: 999px;
}
.theme-cart-count:empty { display: none; }

/* Mobile menu */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 60;
	pointer-events: none;
	visibility: hidden;
	isolation: isolate;
}
.mobile-menu.is-open { pointer-events: auto; visibility: visible; }
.mobile-menu__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: hsl(var(--background) / 0.7);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}
.mobile-menu.is-open .mobile-menu__overlay {
	opacity: 1;
	pointer-events: auto;
}
.mobile-menu__panel {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	height: 100%;
	width: 88vw;
	max-width: 24rem;
	background-color: hsl(var(--background));
	border-right: 1px solid hsl(var(--border));
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.35s var(--transition-smooth);
	pointer-events: auto;
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__header { display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; height: 4.8rem; border-bottom: 1px solid hsl(var(--border)); flex-shrink: 0; }
.mobile-menu__close { color: hsl(var(--foreground)); padding: 0.25rem; }
.mobile-menu__nav { flex: 1; overflow-y: auto; padding: 0.75rem 0.5rem; }
.mobile-menu__list { list-style: none; display: flex; flex-direction: column; }
.mobile-menu__list li, .mobile-menu__nav .theme-nav-fallback li { border-bottom: 1px solid hsl(var(--border) / 0.4); }
.mobile-menu__list a,
.mobile-menu__list button.theme-nav-link,
.mobile-menu__nav .theme-nav-fallback a {
	display: block; width: 100%; text-align: left; padding: 1rem 0.75rem; min-height: 2.75rem;
	font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0.22em; text-transform: uppercase;
	color: hsl(var(--foreground));
	background: none; border: none;
}
.mobile-menu__list--supplement { margin-top: 0; }
.mobile-menu__footer { border-top: 1px solid hsl(var(--border)); padding: 1rem 0.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; flex-shrink: 0; }
.mobile-menu__action {
	display: flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.75rem; min-height: 2.75rem; border: 1px solid hsl(var(--border));
	font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: 0.22em; text-transform: uppercase;
	color: hsl(var(--foreground)); transition: all 0.2s ease;
}
.mobile-menu__action:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.mobile-menu__action--primary { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }

/* ==========================================================================
   Search dialog
   ========================================================================== */

.theme-search-dialog { position: fixed; inset: 0; z-index: 80; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.theme-search-dialog.is-open { opacity: 1; pointer-events: auto; }
.theme-search-dialog__overlay { position: absolute; inset: 0; background: hsl(var(--background) / 0.4); backdrop-filter: blur(4px); border: none; }
.theme-search-dialog__panel {
	position: relative; background-color: hsl(var(--background)); width: 100%; max-height: 92vh; overflow-y: auto;
	border-bottom: 1px solid hsl(var(--border)); box-shadow: var(--shadow-elevated);
}
.theme-search-dialog__close { position: absolute; top: 1.25rem; right: 1.25rem; padding: 0.5rem; opacity: 0.7; z-index: 10; }
.theme-search-dialog__close:hover { opacity: 1; }
.theme-search-dialog__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 1.5rem; }
@media (min-width: 1024px) { .theme-search-dialog__grid { grid-template-columns: 260px 1fr; gap: 4rem; padding: 3.5rem 2.5rem; } }
.theme-search-dialog__categories h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.theme-search-dialog__categories ul { list-style: none; display: flex; flex-direction: column; gap: 0.875rem; }
.theme-search-dialog__categories button { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: hsl(var(--foreground) / 0.85); }
.theme-search-dialog__categories button:hover { color: hsl(var(--primary)); }
.theme-search-dialog__input-row { display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid hsl(var(--border)); padding-bottom: 0.75rem; }
.theme-search-dialog__input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--font-display); font-size: 1.5rem; color: hsl(var(--foreground)); }
.theme-search-dialog__input::placeholder { color: hsl(var(--muted-foreground)); }
.theme-search-dialog__results { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .theme-search-dialog__results { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .theme-search-dialog__results { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.theme-search-result { display: block; text-align: left; }
.theme-search-result__img { aspect-ratio: 1/1; overflow: hidden; background-color: hsl(var(--secondary)); }
.theme-search-result__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.theme-search-result:hover .theme-search-result__img img { transform: scale(1.05); }
.theme-search-result__name { margin-top: 0.75rem; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.4; }
.theme-search-result__price { margin-top: 0.25rem; font-size: 0.75rem; color: hsl(var(--foreground) / 0.7); }
.theme-search-empty { font-size: 0.875rem; color: hsl(var(--foreground) / 0.6); }
.theme-search-heading { font-size: 1.5rem; margin-bottom: 1.5rem; }

/* ==========================================================================
   Contact modal & Terms modal
   ========================================================================== */

.theme-contact-modal, .theme-terms-modal {
	position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
	padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.theme-contact-modal.is-open, .theme-terms-modal.is-open { opacity: 1; pointer-events: auto; }
.theme-contact-modal__overlay, .theme-terms-modal__overlay {
	position: absolute; inset: 0; background: hsl(var(--background) / 0.85); backdrop-filter: blur(4px); border: none;
}
.theme-contact-modal__panel, .theme-terms-modal__panel {
	position: relative; background-color: hsl(var(--background)); border: 1px solid hsl(var(--border));
	max-width: 32rem; width: 100%; max-height: 90vh; overflow-y: auto; padding: 1.75rem;
	transform: scale(0.96); transition: transform 0.25s ease;
}
.theme-terms-modal__panel { max-width: 42rem; }
.theme-contact-modal.is-open .theme-contact-modal__panel,
.theme-terms-modal.is-open .theme-terms-modal__panel { transform: scale(1); }
.theme-contact-modal__close, .theme-terms-modal__close { position: absolute; top: 1rem; right: 1rem; opacity: 0.7; }
.theme-contact-modal__close:hover, .theme-terms-modal__close:hover { opacity: 1; }
.theme-contact-modal__title, .theme-terms-modal__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.25;
	text-wrap: balance;
	margin-top: 0.25rem;
}
.theme-contact-modal__desc, .theme-terms-modal__updated { font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.625; margin-top: 0.5rem; color: hsl(var(--muted-foreground)); }
.theme-contact-modal__quick-links { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); border-top: 1px solid hsl(var(--border)); padding-top: 1rem; margin-top: 0.5rem; }
.theme-contact-modal__quick-links a { display: flex; align-items: center; gap: 0.5rem; }
.theme-contact-modal__quick-links a:hover { color: hsl(var(--foreground)); }
.theme-contact-modal__form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.theme-contact-modal__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-contact-modal__row { grid-template-columns: 1fr 1fr; } }
.theme-contact-modal__field label { display: block; margin-bottom: 0.375rem; }
.theme-contact-modal__field input, .theme-contact-modal__field textarea {
	width: 100%; padding: 0.625rem 0.75rem; background-color: hsl(var(--background)); border: 1px solid hsl(var(--border));
	font-size: 0.875rem; color: hsl(var(--foreground)); transition: border-color 0.2s ease;
}
.theme-contact-modal__field textarea { resize: none; }
.theme-contact-modal__field input:focus, .theme-contact-modal__field textarea:focus { outline: none; border-color: hsl(var(--primary)); }
.theme-contact-modal__dropzone {
	padding: 1.5rem 1rem; border: 1px dashed hsl(var(--border)); text-align: center; cursor: pointer; transition: border-color 0.2s ease;
}
.theme-contact-modal__dropzone:hover, .theme-contact-modal__dropzone.is-dragging { border-color: hsl(var(--primary)); background-color: hsl(var(--primary) / 0.05); }
.theme-contact-modal__dropzone svg { margin: 0 auto 0.5rem; color: hsl(var(--muted-foreground)); }
.theme-contact-modal__hint { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }
.theme-contact-modal__file-list { list-style: none; margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.theme-contact-modal__file-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border: 1px solid hsl(var(--border)); padding: 0.5rem 0.75rem; font-size: 0.75rem; }
.theme-contact-modal__submit-row { display: flex; justify-content: flex-end; }
.theme-contact-modal__submit { height: 2.75rem; padding: 0 1.5rem; }
.theme-contact-modal__submit:disabled { opacity: 0.6; pointer-events: none; }
.theme-contact-modal__success { text-align: center; padding: 2rem 0; }
.theme-contact-modal__success-icon {
	width: 3.5rem; height: 3.5rem; background-color: hsl(var(--primary)); border-radius: 50%;
	display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: hsl(var(--primary-foreground));
}
.theme-contact-modal__success h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-contact-modal__success p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

.theme-terms-modal__body { display: flex; flex-direction: column; gap: 1.25rem; font-family: var(--font-body); font-size: 0.875rem; color: hsl(var(--foreground) / 0.9); line-height: 1.625; padding-right: 0.25rem; margin-top: 1rem; }
.theme-terms-modal__body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1rem; margin-bottom: 0.375rem; }
.theme-terms-modal__body p { color: hsl(var(--foreground) / 0.7); }
.theme-terms-modal__footer { display: flex; justify-content: flex-end; padding-top: 1rem; border-top: 1px solid hsl(var(--border)); margin-top: 1rem; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-section { position: relative; width: 100%; }
.hero-section__media {
	position: relative;
	width: 100%;
	min-height: 100dvh;
	overflow: hidden;
	background-color: hsl(var(--background));
}
.hero-section__image { position: absolute; inset: 0; z-index: 0; opacity: 0.7; }
.hero-section__gradient { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-section__gradient--h { background: linear-gradient(to right, hsl(var(--background)), hsl(var(--background) / 0.85), hsl(var(--background) / 0.4)); }
.hero-section__gradient--v { background: linear-gradient(to top, hsl(var(--background)), transparent, hsl(var(--background) / 0.7)); }
.hero-section__content-wrap {
	position: relative;
	z-index: 2;
	min-height: 100dvh;
	display: flex;
	align-items: flex-end;
}
.hero-section__content { width: 100%; padding-top: 8rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .hero-section__content { padding-bottom: 6rem; } }
@media (min-width: 1024px) { .hero-section__content { padding-bottom: 7rem; } }
.hero-section__eyebrow { font-size: 0.75rem; letter-spacing: 0.32em; text-transform: uppercase; color: hsl(var(--primary)); margin-bottom: 1rem; }
@media (min-width: 768px) { .hero-section__eyebrow { font-size: 0.875rem; } }
.hero-section__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 3rem;
	line-height: 1.05;
	color: hsl(var(--foreground));
	text-transform: uppercase;
	text-wrap: balance;
	margin-bottom: 1.5rem;
	max-width: 48rem;
}
@media (min-width: 768px) { .hero-section__title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-section__title { font-size: 6rem; } }
.hero-section__subtitle { font-family: var(--font-body); font-size: 0.875rem; color: hsl(var(--muted-foreground)); max-width: 32rem; margin-bottom: 2rem; line-height: 1.625; }
@media (min-width: 768px) { .hero-section__subtitle { font-size: 1rem; } }
.hero-section__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   Product row (featured carousel)
   ========================================================================== */

.product-row-section { background-color: hsl(var(--background)); padding: 3.5rem 0; }
@media (min-width: 1024px) { .product-row-section { padding: 5rem 0; } }
.product-row-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.product-row-section__eyebrow { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--primary)); }
.product-row-section__title,
.shop-heading {
	margin-top: 0.5rem;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 1.25;
	text-transform: uppercase;
	text-wrap: balance;
}
@media (min-width: 768px) {
	.product-row-section__title,
	.shop-heading {
		font-size: 2.25rem;
	}
}
.product-row-section__arrows { display: flex; gap: 0.5rem; flex-shrink: 0; }
.theme-row-arrow {
	width: 2.75rem; height: 2.75rem; border: 1px solid hsl(var(--border)); display: flex; align-items: center; justify-content: center;
	color: hsl(var(--foreground)); transition: all 0.2s ease;
}
.theme-row-arrow:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }

.theme-product-row {
	display: flex;
	gap: 1.25rem;
	align-items: stretch;
	overflow-x: auto;
	overflow-y: visible;
	scroll-snap-type: x mandatory;
	/* Room for card hover lift (-4px) + ember shadow inside the scrollport */
	padding-top: 0.5rem;
	padding-bottom: 1rem;
	scrollbar-width: none;
	margin: 0 -2rem;
	padding-left: 2rem;
	padding-right: 2rem;
}
.theme-product-row::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .theme-product-row { gap: 1.5rem; } }
.theme-product-row__item {
	flex-shrink: 0;
	width: calc(100% - 2rem);
	scroll-snap-align: center;
	overflow: visible;
}
.theme-product-row .theme-product-card-wrap { overflow: visible; }
@media (min-width: 640px) { .theme-product-row__item { width: 40vw; } }
@media (min-width: 768px) { .theme-product-row__item { width: calc((100% - 1.25rem)/2); } }
@media (min-width: 1024px) { .theme-product-row__item { width: calc((100% - 4.5rem)/4); } }

/* ==========================================================================
   Product cards (shared everywhere — Section 31.13)
   ========================================================================== */

.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.5rem; } }

.theme-related-products__grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .theme-related-products__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-related-products__grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.theme-product-card-wrap { display: flex; height: 100%; }
.theme-product-card {
	display: flex; flex-direction: column; height: 100%; width: 100%;
	background-color: hsl(var(--card)); border: 1px solid hsl(var(--border)); padding: 0.75rem;
	transition: all 0.3s ease;
}
.theme-product-card:hover { transform: translateY(-4px); border-color: hsl(var(--primary) / 0.7); box-shadow: var(--shadow-ember); }
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1/1; background-color: hsl(var(--background)); overflow: hidden; }
.theme-product-card__image { transition: transform 0.5s ease; }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.05); }
.theme-product-card__image--soldout { opacity: 0.6; }
.theme-product-card__badge {
	position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; font-family: var(--font-mono);
	font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; padding: 0.375rem 0.75rem;
	background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}
.theme-product-card__badge--stock { background-color: hsl(var(--background) / 0.9); backdrop-filter: blur(4px); color: hsl(var(--foreground)); }
.theme-product-card__heat {
	position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; display: flex; align-items: center; gap: 0.25rem;
	background-color: hsl(var(--background) / 0.85); backdrop-filter: blur(4px); padding: 0.375rem 0.625rem;
}
.theme-flame-icon { color: hsl(var(--accent)); }
.theme-flame-icon--lg { width: 20px; height: 20px; }
.theme-product-card__info { padding-top: 1rem; text-align: center; flex: 1; display: flex; flex-direction: column; }
.theme-product-card__brand { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: hsl(var(--primary)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-product-card__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.375;
	color: hsl(var(--foreground));
	margin-top: 0.375rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.2s ease;
}
.theme-product-card:hover .theme-product-card__title { color: hsl(var(--primary)); }
.theme-product-card__heat-label { font-family: var(--font-body); font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-product-card__price { font-family: var(--font-body); font-size: 0.875rem; color: hsl(var(--chrome)); margin-top: 0.375rem; margin-top: auto; padding-top: 0.375rem; }
.theme-product-card__price .woocommerce-Price-amount { color: hsl(var(--chrome)); }

/* ==========================================================================
   Category tiles
   ========================================================================== */

.cat-tiles-section { background-color: hsl(var(--background)); padding-bottom: 4rem; }
@media (min-width: 768px) { .cat-tiles-section { padding-bottom: 6rem; } }
.cat-tiles-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .cat-tiles-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.cat-tile { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background-color: hsl(var(--card)); border: 1px solid hsl(var(--border)); transition: border-color 0.2s ease; }
.cat-tile:hover { border-color: hsl(var(--primary) / 0.7); }
.cat-tile__image { position: absolute; inset: 0; opacity: 0.7; transition: all 0.7s ease; }
.cat-tile:hover .cat-tile__image { transform: scale(1.05); opacity: 0.9; }
.cat-tile__gradient { position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--background)), hsl(var(--background) / 0.4), transparent); }
.cat-tile__label-wrap { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2rem; }
.cat-tile__label {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.25;
	text-transform: uppercase;
	text-align: center;
	text-wrap: balance;
	padding: 0 1rem;
	color: hsl(var(--foreground));
	transition: color 0.2s ease;
}
@media (min-width: 768px) { .cat-tile__label { font-size: 1.875rem; } }
.cat-tile:hover .cat-tile__label { color: hsl(var(--primary)); }

/* ==========================================================================
   Shop section
   ========================================================================== */

.shop-section { background-color: hsl(var(--background)); padding: 3.5rem 0; }
@media (min-width: 1024px) { .shop-section { padding: 5rem 0; } }
.shop-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.shop-section__eyebrow { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--primary)); }
.shop-heading { margin-top: 0.5rem; }
.shop-section__count { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.shop-section__controls { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; align-items: flex-end; }
@media (min-width: 1024px) { .shop-section__controls { grid-template-columns: 1fr auto; gap: 2.5rem; } }
.shop-section__search { position: relative; max-width: 28rem; width: 100%; }
.shop-section__search svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: hsl(var(--muted-foreground)); }
.shop-section__search-input {
	width: 100%; height: 3rem; padding: 0 1rem 0 2.5rem; background-color: hsl(var(--card)); border: 1px solid hsl(var(--border));
	font-size: 0.875rem; color: hsl(var(--foreground));
}
.shop-section__search-input::placeholder { color: hsl(var(--muted-foreground)); }
.shop-section__search-input:focus { outline: none; border-color: hsl(var(--foreground)); }
.shop-section__price { width: 100%; }
@media (min-width: 1024px) { .shop-section__price { width: 18rem; } }
.shop-section__price-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.75rem; }
.shop-section__price-head span.font-mono { letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.shop-section__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.shop-chip {
	padding: 0 1.25rem; min-height: 2.75rem; display: inline-flex; align-items: center; font-family: var(--font-mono);
	font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; border: 1px solid hsl(var(--border));
	background-color: hsl(var(--card)); color: hsl(var(--muted-foreground)); transition: all 0.3s ease;
}
.shop-chip:hover { border-color: hsl(var(--primary)); color: hsl(var(--foreground)); }
.shop-chip.is-active { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); box-shadow: var(--shadow-ember); }
.shop-section__empty { font-size: 0.875rem; color: hsl(var(--muted-foreground)); padding: 4rem 0; text-align: center; }

/* Dual-handle price range (Section 31.4) */
.price-range-wrapper { position: relative; height: 1.5rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.range-track-bg { left: 0; right: 0; background: hsl(var(--secondary)); }
.range-track-fill { background: hsl(var(--primary)); }
.range-input {
	position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0;
	-webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.range-input::-webkit-slider-thumb {
	-webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
	background: hsl(var(--background)); border: 2px solid hsl(var(--primary)); cursor: pointer; margin-top: 0;
}
.range-input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: hsl(var(--background)); border: 2px solid hsl(var(--primary)); cursor: pointer; }
.range-input::-webkit-slider-runnable-track { background: transparent; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

/* ==========================================================================
   Brand story section
   ========================================================================== */

.brand-section { background-color: hsl(var(--card)); padding: 5rem 0; border-top: 1px solid hsl(var(--border)); }
@media (min-width: 1024px) { .brand-section { padding: 7rem 0; } }
.brand-section__intro { max-width: 42rem; margin-bottom: 3rem; }
@media (min-width: 1024px) { .brand-section__intro { margin-bottom: 4rem; } }
.brand-section__eyebrow { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--primary)); }
.about-section__heading {
	margin-top: 0.75rem;
	margin-bottom: 1.25rem;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.25rem;
	line-height: 1.25;
	text-transform: uppercase;
	text-wrap: balance;
}
@media (min-width: 768px) { .about-section__heading { font-size: 3rem; } }
.brand-section__body { font-family: var(--font-body); color: hsl(var(--muted-foreground)); line-height: 1.625; }
.brand-section__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .brand-section__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.brand-card { background-color: hsl(var(--background)); padding: 1.5rem; }
@media (min-width: 1024px) { .brand-card { padding: 2.5rem; } }
.brand-card__eyebrow { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--primary)); }
.brand-card__eyebrow--accent { color: hsl(var(--accent)); }
.brand-card__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 1.25;
	text-transform: uppercase;
	text-wrap: balance;
	margin-top: 0.75rem;
	margin-bottom: 1rem;
}
@media (min-width: 768px) { .brand-card__title { font-size: 2.25rem; } }
.brand-card__body { font-family: var(--font-body); color: hsl(var(--muted-foreground)); line-height: 1.625; margin-bottom: 1rem; }
.brand-card__body:last-child { margin-bottom: 0; }
.brand-section__ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   Heat scale section
   ========================================================================== */

.heat-section { position: relative; overflow: hidden; border-top: 1px solid hsl(var(--border)); padding: 5rem 0; }
@media (min-width: 1024px) { .heat-section { padding: 7rem 0; } }
.heat-section__bg { position: absolute; inset: 0; opacity: 0.4; }
.heat-section__gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--background) / 0.85), hsl(var(--background))); }
.heat-section__content { position: relative; z-index: 1; }
.heat-section__intro { max-width: 42rem; margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .heat-section__intro { margin-bottom: 3.5rem; } }
.heat-section__eyebrow { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--accent)); }
.offerings-section__heading {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.25rem;
	margin-top: 0.75rem;
	margin-bottom: 1.25rem;
	text-transform: uppercase;
	line-height: 1.25;
	text-wrap: balance;
}
@media (min-width: 768px) { .offerings-section__heading { font-size: 3rem; } }
.heat-section__body { font-family: var(--font-body); color: hsl(var(--muted-foreground)); line-height: 1.625; }
.heat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(0, 1fr)); grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .heat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; } }
.heat-card { background-color: hsl(var(--card) / 0.9); backdrop-filter: blur(4px); padding: 1.5rem; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .heat-card { padding: 2rem; } }
.heat-card__flames { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 1rem; color: hsl(var(--accent)); }
.heat-card__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.5rem;
	text-transform: uppercase;
	line-height: 1.25;
	text-wrap: balance;
}
.heat-card__body { font-family: var(--font-body); font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.625; margin-top: 0.75rem; flex: 1; }
.heat-card__list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; list-style: none; }
.heat-card__list li { font-family: var(--font-body); font-size: 0.875rem; color: hsl(var(--chrome)); display: flex; align-items: flex-start; gap: 0.625rem; }
.heat-card__list svg { color: hsl(var(--primary)); margin-top: 0.125rem; flex-shrink: 0; }
.heat-section__cta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   FAQ section
   ========================================================================== */

.faq-section { position: relative; background-color: hsl(var(--card)); padding: 5rem 0; border-top: 1px solid hsl(var(--border)); }
@media (min-width: 1024px) { .faq-section { padding: 7rem 0; } }
.faq-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: flex-start; }
@media (min-width: 1024px) { .faq-section__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.faq-section__intro { position: sticky; top: 8rem; align-self: flex-start; }
@media (max-width: 1023px) { .faq-section__intro { position: static; } }
.faq-section__eyebrow { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--primary)); }
.faq-section__heading {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.25rem;
	margin-top: 0.75rem;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	line-height: 1.25;
	text-wrap: balance;
}
@media (min-width: 768px) { .faq-section__heading { font-size: 3rem; } }
.faq-section__body { font-family: var(--font-body); color: hsl(var(--muted-foreground)); line-height: 1.625; max-width: 28rem; }
.faq-item { border-bottom: 1px solid hsl(var(--border)); }
.faq-item__question { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 1.25rem 0; min-height: 2.75rem; gap: 1.5rem; }
.faq-item__question span {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.375;
	color: hsl(var(--foreground));
	transition: color 0.2s ease;
}
@media (min-width: 768px) {
	.faq-item__question span { font-size: 1rem; }
}
.faq-item__question:hover span { color: hsl(var(--primary)); }
.faq-item__icon-plus, .faq-item__icon-minus { flex-shrink: 0; color: hsl(var(--primary)); }
.faq-item__icon-minus { display: none; }
.faq-item.is-open .faq-item__icon-plus { display: none; }
.faq-item.is-open .faq-item__icon-minus { display: block; }
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item__answer p { font-family: var(--font-body); font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.625; padding-bottom: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 768px) {
	.faq-item__answer p { font-size: 1rem; }
}
.faq-item.is-open .faq-item__answer { max-height: 40rem; }

/* ==========================================================================
   Contact section
   ========================================================================== */

.contact-section { background-color: hsl(var(--background)); padding: 5rem 0; border-top: 1px solid hsl(var(--border)); }
@media (min-width: 1024px) { .contact-section { padding: 7rem 0; } }
.contact-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-section__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact-section__eyebrow { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--primary)); }
.contact-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.25rem;
	margin-top: 0.75rem;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	line-height: 1.25;
	text-wrap: balance;
}
@media (min-width: 768px) { .contact-title { font-size: 3rem; } }
.contact-section__body { font-family: var(--font-body); color: hsl(var(--muted-foreground)); line-height: 1.625; max-width: 28rem; margin-bottom: 2rem; }
.contact-section__links { display: flex; flex-direction: column; gap: 1rem; }
.contact-section__link { font-family: var(--font-body); display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; font-size: 0.875rem; color: hsl(var(--foreground)); transition: color 0.2s ease; word-break: break-all; }
.contact-section__link:hover { color: hsl(var(--primary)); }
.contact-section__link--static { color: hsl(var(--muted-foreground)); }
.contact-section__panel { position: relative; overflow: hidden; padding: 2rem; display: flex; flex-direction: column; justify-content: center; border: 1px solid hsl(var(--border)); min-height: 22rem; }
@media (min-width: 1024px) { .contact-section__panel { padding: 3rem; } }
.contact-section__panel-img { position: absolute; inset: 0; opacity: 0.5; }
.contact-section__panel-gradient { position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--background)), hsl(var(--background) / 0.8), hsl(var(--background) / 0.5)); }
.contact-section__panel-content { position: relative; z-index: 1; }
.contact-section__panel-eyebrow { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--accent)); margin-bottom: 0.75rem; }
.contact-section__panel-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	line-height: 1.25;
	text-wrap: balance;
}
@media (min-width: 768px) { .contact-section__panel-title { font-size: 1.875rem; } }
.contact-section__panel-body { font-family: var(--font-body); font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.625; margin-bottom: 2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background-color: hsl(var(--card)); color: hsl(var(--foreground)); border-top: 1px solid hsl(var(--border)); }
.site-footer__top { padding-top: 4rem; padding-bottom: 1.25rem; }
@media (min-width: 1024px) { .site-footer__top { padding-top: 5rem; padding-bottom: 1.5rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 3rem; } }
.site-footer__logo { display: inline-flex; }
.site-footer__tagline { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--primary)); }
.site-footer__body { margin-top: 1rem; font-family: var(--font-body); font-size: 0.875rem; color: hsl(var(--muted-foreground)); max-width: 20rem; line-height: 1.625; }
.site-footer__heading { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: hsl(var(--primary)); margin-bottom: 1.25rem; }
.site-footer__list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__link { min-height: 2.75rem; font-family: var(--font-body); font-size: 0.875rem; color: hsl(var(--muted-foreground)); transition: color 0.2s ease; text-align: left; display: inline-flex; align-items: center; }
.site-footer__link:hover { color: hsl(var(--primary)); }
.site-footer__list--contact li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.site-footer__list--contact a:hover { color: hsl(var(--primary)); }
.site-footer__bottom { margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid hsl(var(--border)); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; }
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__copyright { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: hsl(var(--muted-foreground)); text-align: center; order: 1; }
@media (min-width: 768px) { .site-footer__copyright { text-align: left; } }
.site-footer__terms { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: hsl(var(--muted-foreground)); order: 2; }
.site-footer__terms:hover { color: hsl(var(--primary)); }
.site-footer__credit { order: 3; font-family: var(--font-body); font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-align: center; }
@media (min-width: 768px) { .site-footer__credit { text-align: right; } }
.site-footer__credit a { color: hsl(var(--primary)); }
.site-footer__credit a:hover { text-decoration: underline; }

/* ==========================================================================
   Site main / generic pages
   ========================================================================== */

.site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
.home-main { padding-top: 0; }
.page-title { font-size: 2.25rem; margin-bottom: 2rem; text-transform: uppercase; }
.entry-content { line-height: 1.7; }
.entry-content p { margin-bottom: 1rem; }

.theme-404-main { padding-top: var(--header-height); }
.theme-404 { padding: 6rem 0; text-align: center; }
.theme-404__title { font-size: 2.5rem; text-transform: uppercase; margin-bottom: 1rem; }
.theme-404__text { color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }

.theme-no-hero .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main { padding-top: var(--header-height); }

.single-product-main { padding-top: calc(var(--header-height) + 2rem); }
.theme-archive-main { padding-top: var(--header-height); }
.theme-archive-empty { padding: 4rem 0; text-align: center; color: hsl(var(--muted-foreground)); }

/* ==========================================================================
   Single product page
   ========================================================================== */

.single-product .theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	align-items: flex-start;
	min-width: 0;
}
@media (min-width: 1024px) { .single-product .theme-product-layout { grid-template-columns: 1fr 440px; } }
@media (min-width: 1280px) { .single-product .theme-product-layout { grid-template-columns: 1fr 500px; } }

.single-product .theme-product-gallery, .single-product .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery { position: relative; background-color: hsl(var(--background)); }
@media (min-width: 1024px) { .theme-product-gallery { position: sticky; top: calc(var(--header-height) + 1rem); align-self: flex-start; } }
.theme-product-gallery__row { display: flex; }
.theme-product-thumbnails { display: none; flex-direction: column; gap: 0.75rem; padding: 1rem; background-color: hsl(var(--background) / 0.4); flex-wrap: wrap; max-width: 100%; }
@media (min-width: 768px) { .theme-product-thumbnails { display: flex; } }
@media (min-width: 1024px) { .theme-product-thumbnails { padding: 1.5rem; } }
.theme-product-thumbnails--mobile { display: flex; flex-direction: row; overflow-x: auto; padding: 1rem; }
@media (min-width: 768px) { .theme-product-thumbnails--mobile { display: none; } }
.theme-product-thumb { width: 3.5rem; height: 3.5rem; overflow: hidden; border: 1px solid transparent; opacity: 0.6; border-radius: 0.375rem; transition: all 0.2s ease; flex-shrink: 0; }
@media (min-width: 1024px) { .theme-product-thumb { width: 4rem; height: 4rem; } }
.theme-product-thumb.is-active { border-color: hsl(var(--foreground)); opacity: 1; }
.theme-product-thumb:hover { opacity: 1; }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-product-main-image-wrap { flex: 1; min-height: 60vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
@media (min-width: 768px) { .theme-product-main-image-wrap { min-height: 78vh; } }
@media (min-width: 1024px) { .theme-product-main-image-wrap { min-height: 88vh; } }
#product-main-img { max-height: 88vh; object-fit: contain; }

.theme-product-info { padding: 2.5rem 1.5rem; }
@media (min-width: 768px) { .theme-product-info { padding: 2.5rem 2.5rem; } }
@media (min-width: 1024px) { .theme-product-info { padding: 4rem 3rem; } }
.theme-product-breadcrumb { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }
.theme-product-breadcrumb a:hover { color: hsl(var(--foreground)); }
.theme-product-breadcrumb span { margin: 0 0.5rem; }
.theme-product-title, .product-title {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 0.9375rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	line-height: 1.5;
	color: hsl(var(--foreground));
}
@media (min-width: 768px) { .theme-product-title { font-size: 1rem; } }
.theme-product-sku { margin-top: 0.75rem; font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.theme-product-divider { height: 1px; background-color: hsl(var(--border)); margin: 1.75rem 0; }
.theme-product-price { font-family: var(--font-body); font-size: 1.125rem; line-height: 1.625; color: hsl(var(--foreground)); }
.theme-product-price ins { text-decoration: none; }
.theme-product-stock--out { margin-top: 0.5rem; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.15em; color: hsl(var(--primary)); }
.theme-product-note { margin-top: 1.75rem; background-color: hsl(var(--secondary) / 0.7); padding: 1rem 1.25rem; font-family: var(--font-body); font-size: 0.8125rem; color: hsl(var(--foreground) / 0.85); line-height: 1.625; border-radius: 0.375rem; }

.theme-attr-group { margin-top: 1.75rem; }
.theme-attr-group__label { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: 0.75rem; font-family: var(--font-body); font-weight: 600; }
.theme-variation-pills,
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-variation-pill,
.theme-attr-pill {
	min-width: 3.5rem;
	padding: 0.625rem 1rem;
	font-size: 0.75rem;
	font-family: var(--font-body);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: 1px solid hsl(var(--border));
	border-radius: 999px;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
	color: hsl(var(--foreground));
}
.theme-variation-pill:hover:not(:disabled),
.theme-attr-pill:hover:not(:disabled) { border-color: hsl(var(--foreground)); }
.theme-variation-pill.is-selected,
.theme-attr-pill.is-selected {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
}
.theme-variation-pill:disabled,
.theme-attr-pill:disabled { opacity: 0.45; cursor: not-allowed; }
.theme-variations-table--hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.variations_form.cart .theme-attr-select-hidden.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.theme-cart-drawer__item-meta {
	margin-top: 0.375rem;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
	color: hsl(var(--muted-foreground));
	font-style: italic;
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}
.theme-cart-drawer__item-meta-label { font-style: normal; }

.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}
.theme-quantity-wrapper { display: flex; align-items: center; border: 1px solid hsl(var(--border)); }
.theme-quantity-wrapper button { padding: 0 1rem; height: 3.5rem; }
.theme-quantity-wrapper button:hover { background-color: hsl(var(--secondary)); }
.theme-qty-input {
	width: 3rem; text-align: center; background: transparent; border: none; color: hsl(var(--foreground)); font-size: 0.875rem;
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.single-product .single_add_to_cart_button,
.single-product .theme-btn-primary { flex: 1 1 auto; min-width: 160px; }

.theme-product-details { margin-top: 3rem; }
.theme-product-details__heading { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: hsl(var(--foreground)); margin-bottom: 1.25rem; font-family: var(--font-body); font-weight: 600; }
.theme-product-details__description { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.55; color: hsl(var(--foreground) / 0.9); }
.theme-product-details__description p { margin-bottom: 1rem; }
.theme-product-details__list ul { margin-top: 1.5rem; list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.625rem; }
.theme-product-details__list li { font-size: 0.875rem; color: hsl(var(--foreground) / 0.8); line-height: 1.6; }
.theme-product-details__list li::marker { color: hsl(var(--primary)); }

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

.theme-related-products { padding: 6rem 0; border-top: 1px solid hsl(var(--border)); margin-top: 3rem; }
.theme-related-products__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; }
.theme-related-products__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 1.25;
	text-wrap: balance;
}
@media (min-width: 768px) { .theme-related-products__title { font-size: 2.25rem; } }
.theme-related-products__title-accent {
	font-style: italic;
	color: hsl(var(--primary));
}

/* ==========================================================================
   WooCommerce: buttons, notices, thumbnails, price
   ========================================================================== */

.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button,
button.single_add_to_cart_button {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--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-mono) !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: hsl(var(--primary)) !important;
	color: hsl(var(--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: hsl(var(--primary)) !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; }

.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

/* Notices — scoped visibility (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* Cart drawer thumbs: override global img { height: auto } (higher specificity + !important on cells). */
#theme-cart-drawer .theme-cart-drawer__item-image img,
#theme-cart-drawer .theme-cart-drawer__pair-image img {
	max-width: none;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	font-family: var(--font-body); font-size: 0.875rem; padding: 1rem 1.25rem; border-radius: 0.375rem;
	background-color: hsl(var(--card)); border: 1px solid hsl(var(--border)); list-style: none; margin-bottom: 1.5rem;
	color: hsl(var(--foreground));
}
.woocommerce-error { border-color: hsl(var(--primary)); }

.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }

.woocommerce-Price-amount { color: inherit; }
del .woocommerce-Price-amount { color: hsl(var(--muted-foreground)); opacity: 0.7; }
ins { text-decoration: none; }

/* ==========================================================================
   Side cart drawer
   ========================================================================== */

#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 55; background: hsl(var(--background) / 0.85); backdrop-filter: blur(4px);
	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: hsl(var(--background));
	z-index: 56; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 2rem 2rem 1.25rem; border-bottom: 1px solid hsl(var(--border)); }
.theme-cart-drawer__title { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; }
.theme-cart-drawer__close:hover { opacity: 0.6; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; gap: 0.5rem; }
.theme-cart-drawer__empty svg { color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; }
.theme-cart-drawer__empty p { color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 2rem; }
.theme-cart-drawer__item { display: flex; gap: 1.25rem; }
.theme-cart-drawer__item-image {
	display: grid;
	width: 6rem;
	height: 8rem;
	overflow: hidden;
	flex-shrink: 0;
	background-color: hsl(var(--secondary));
}
.theme-cart-drawer__item-image img {
	grid-area: 1 / 1;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center;
}
.theme-cart-drawer__item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.theme-cart-drawer__item-name { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: hsl(var(--foreground)); }
.theme-cart-drawer__item-name:hover { opacity: 0.7; }
.theme-cart-drawer__item-variant { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.375rem; font-style: italic; }
.theme-cart-drawer__item-price { font-size: 0.875rem; margin-top: 0.375rem; }
.theme-cart-drawer__item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.theme-cart-drawer__qty { display: flex; align-items: center; border: 1px solid hsl(var(--border)); }
.theme-cart-drawer__qty button { padding: 0.375rem 0.625rem; }
.theme-cart-drawer__qty button:hover { background-color: hsl(var(--secondary)); }
.theme-cart-drawer__qty span { padding: 0 0.75rem; font-size: 0.875rem; min-width: 28px; text-align: center; display: inline-block; }
.theme-cart-drawer__remove { font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-decoration: underline; text-underline-offset: 4px; }
.theme-cart-drawer__remove:hover { color: hsl(var(--foreground)); }
.theme-cart-drawer__pair { padding-top: 1rem; border-top: 1px solid hsl(var(--border)); }
.theme-cart-drawer__pair-title { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; margin-bottom: 1rem; }
.theme-cart-drawer__pair-row { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; }
.theme-cart-drawer__pair-item { flex-shrink: 0; width: 8rem; display: block; }
.theme-cart-drawer__pair-image {
	display: grid;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	margin-bottom: 0.5rem;
	background-color: hsl(var(--secondary));
}
.theme-cart-drawer__pair-image img {
	grid-area: 1 / 1;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform 0.7s ease;
}
.theme-cart-drawer__pair-item:hover .theme-cart-drawer__pair-image img { transform: scale(1.05); }
.theme-cart-drawer__pair-name { display: block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-drawer__pair-price { display: block; font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }
.theme-cart-drawer__footer { padding: 1.5rem 2rem; border-top: 1px solid hsl(var(--border)); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal-row { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-display); font-size: 1.25rem; }
.theme-cart-drawer__note { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.theme-cart-drawer__checkout { width: 100%; }

/* ==========================================================================
   WooCommerce Checkout Block (Section 13) — Lovable parity
   ========================================================================== */

body.woocommerce-checkout .theme-checkout-main {
	padding-top: 0;
	padding-bottom: 4rem;
}

.theme-checkout-shell {
	width: 100%;
	max-width: var(--checkout-max-width);
	margin-inline: auto;
	box-sizing: border-box;
	padding-block: 0.5rem 4rem;
	padding-top: calc(var(--header-height) + 0.5rem);
	padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
	.theme-checkout-shell { padding-inline: 2.5rem; }
}

.theme-checkout-header {
	max-width: none;
	width: 100%;
	margin-inline: 0;
	margin-bottom: 0;
	box-sizing: border-box;
	padding-inline: 0;
}

.checkout-continue-link,
.theme-checkout-continue {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	transition: color 0.2s ease;
}
.checkout-continue-link:hover,
.theme-checkout-continue:hover { color: hsl(var(--foreground)); }

.theme-checkout-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 1.2;
	text-transform: uppercase;
	margin: 0;
}
@media (min-width: 768px) { .theme-checkout-title { font-size: 2.25rem; } }

.theme-checkout-intro {
	margin: 0.75rem 0 0;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	line-height: 1.625;
}

body.woocommerce-checkout .theme-checkout-main > .container-wide,
body.woocommerce-checkout .theme-checkout-shell,
body.woocommerce-checkout .theme-checkout-main .entry-content {
	max-width: none;
	width: 100%;
}

body.woocommerce-checkout .theme-checkout-main .entry-content,
.entry-content:has(.wc-block-checkout) {
	margin-top: 0;
	padding-top: 0;
}

body.woocommerce-checkout .theme-checkout-main .entry-content > .wc-block-checkout,
body.woocommerce-checkout .theme-checkout-main .entry-content > .wp-block-woocommerce-checkout,
.entry-content > .wc-block-checkout:first-child,
.entry-content > .wp-block-woocommerce-checkout:first-child {
	margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout {
	display: block;
	max-width: none;
	width: 100%;
	min-width: 0;
	margin-inline: 0;
	margin-top: 0;
	padding-top: 0;
	box-sizing: border-box;
	padding-inline: 0;
}

/* WC Blocks adds horizontal padding on the main column — flush with theme checkout title */
body.woocommerce-checkout .wc-block-checkout .wc-block-components-main,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout.is-large .wc-block-components-main,
.entry-content .wc-block-checkout .wc-block-components-main,
.entry-content .wc-block-checkout .wc-block-checkout__main {
	padding-inline: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout .wc-block-components-form,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout__form,
.entry-content .wc-block-checkout .wc-block-components-form {
	padding-inline: 0 !important;
	margin-inline: 0;
}

body.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-step__container,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-step__content,
.entry-content .wc-block-checkout .wc-block-components-checkout-step__content {
	padding-inline: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout.alignwide,
.entry-content .wc-block-checkout.alignwide {
	margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-components-main {
	margin-top: 0;
	padding-top: 0;
}

body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
	margin-top: 0;
	padding-top: 0;
}

body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices:empty,
.entry-content .wc-block-checkout > .wc-block-components-notices:empty {
	display: none;
	margin: 0;
	padding: 0;
}

body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: none;
	width: 100%;
	margin-inline: 0;
	margin-top: 0;
	padding-top: 0;
	margin-bottom: var(--checkout-gap);
	box-sizing: border-box;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
		flex-direction: unset;
		flex-wrap: nowrap;
		margin: 0;
	}

	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
		width: auto !important;
		max-width: 100%;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
	}
}

body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar),
.entry-content .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar) {
	display: grid;
	grid-template-columns: 1fr minmax(360px, 400px);
	gap: var(--checkout-gap);
	align-items: start;
}

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-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 {
	background: transparent;
	border-radius: 0;
	padding: 0;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	background-color: hsl(var(--card));
	border-radius: var(--card-radius);
	padding: var(--section-padding);
	box-sizing: border-box;
}

/* Order summary quantity: circle uses `background: currentColor` on the wrapper — only style the inner span */
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity > span,
.entry-content .wc-block-checkout .wc-block-components-order-summary-item__quantity > span,
body.woocommerce-cart .wc-block-components-order-summary-item__quantity > span,
body.woocommerce-cart .wc-block-cart-item__quantity > span {
	color: #000 !important;
}

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;
}

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,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-select select {
	font-family: var(--font-body);
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	width: 100% !important;
	max-width: none !important;
}

body.woocommerce-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-select select {
	color: hsl(var(--foreground));
	background-color: hsl(var(--card));
}

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 {
	border-color: hsl(var(--primary));
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: var(--btn-radius) !important;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-family: var(--font-body);
}

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.85;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner {
	border-radius: 0.375rem;
}

body.woocommerce-cart .wc-block-cart__sidebar {
	background-color: hsl(var(--card));
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}

body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

/* Cart / My Account width parity (Section 13.7) */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main { padding-top: var(--header-height); }

/* ==========================================================================
   Thank you page (Section 22.8)
   ========================================================================== */

body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: var(--header-height); }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { padding: 0 0 1rem 0; font-size: 1.5rem; }
body.theme-thankyou-page .woocommerce-order-overview { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin: 1.5rem 0; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 1.5rem 0; }
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 hsl(var(--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; margin-top: 2rem; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; font-style: normal; line-height: 1.6; }

/* ==========================================================================
   Contact form reuse tokens for checkout inputs (Section 13.4)
   ========================================================================== */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
	padding: revert;
}

/* Checkout select labels — float on WC’s light select chrome; must stay dark for contrast */
body.woocommerce-checkout .wc-blocks-components-select__label,
body.woocommerce-checkout .wc-block-components-select__label,
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__label,
.entry-content .wc-block-checkout .wc-blocks-components-select__label,
.entry-content .wc-block-checkout .wc-block-components-select__label {
	color: #000 !important;
	opacity: 1 !important;
}

/*
 * Checkout text fields: WC toggles .is-active (light chrome) vs idle (dark card).
 * Pair label + input colors via --checkout-field-* on the wrapper.
 */
body.woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-components-textarea,
body.woocommerce-checkout .wc-block-components-combobox,
.entry-content .wc-block-checkout .wc-block-components-text-input,
.entry-content .wc-block-checkout .wc-block-components-textarea,
.entry-content .wc-block-checkout .wc-block-components-combobox {
	--checkout-field-bg: hsl(var(--card));
	--checkout-field-fg: hsl(var(--foreground));
	--checkout-label-fg: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-text-input.is-active,
body.woocommerce-checkout .wc-block-components-text-input:focus-within,
body.woocommerce-checkout .wc-block-components-textarea.is-active,
body.woocommerce-checkout .wc-block-components-textarea:focus-within,
body.woocommerce-checkout .wc-block-components-combobox.is-active,
body.woocommerce-checkout .wc-block-components-combobox:focus-within,
.entry-content .wc-block-checkout .wc-block-components-text-input.is-active,
.entry-content .wc-block-checkout .wc-block-components-text-input:focus-within,
.entry-content .wc-block-checkout .wc-block-components-textarea.is-active,
.entry-content .wc-block-checkout .wc-block-components-textarea:focus-within,
.entry-content .wc-block-checkout .wc-block-components-combobox.is-active,
.entry-content .wc-block-checkout .wc-block-components-combobox:focus-within {
	--checkout-field-bg: #fff;
	--checkout-field-fg: #000;
	--checkout-label-fg: #000;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-textarea label,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control label,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-textarea label,
body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__label,
.entry-content .wc-block-checkout .wc-block-components-text-input label,
.entry-content .wc-block-checkout .wc-block-components-textarea label,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input label,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-textarea label {
	color: var(--checkout-label-fg) !important;
	opacity: 1 !important;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-combobox input,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-textarea textarea,
.entry-content .wc-block-checkout .wc-block-components-combobox input {
	background-color: var(--checkout-field-bg) !important;
	color: var(--checkout-field-fg) !important;
	caret-color: var(--checkout-field-fg);
}

body.woocommerce-checkout .wc-block-components-text-input.is-active input::placeholder,
body.woocommerce-checkout .wc-block-components-text-input:focus-within input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-text-input.is-active input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-text-input:focus-within input::placeholder {
	color: rgb(0 0 0 / 0.45);
}

body.woocommerce-checkout .wc-block-components-text-input:not(.is-active):not(:focus-within) input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-text-input:not(.is-active):not(:focus-within) input::placeholder {
	color: hsl(var(--muted-foreground));
}

body.woocommerce-checkout .wc-block-components-text-input.is-active input:-webkit-autofill,
body.woocommerce-checkout .wc-block-components-text-input.is-active input:-webkit-autofill:focus,
body.woocommerce-checkout .wc-block-components-text-input:focus-within input:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-text-input.is-active input:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-text-input:focus-within input:-webkit-autofill {
	-webkit-text-fill-color: #000 !important;
	box-shadow: 0 0 0 1000px #fff inset !important;
}

body.woocommerce-checkout .wc-block-components-text-input:not(.is-active):not(:focus-within) input:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-text-input:not(.is-active):not(:focus-within) input:-webkit-autofill {
	-webkit-text-fill-color: hsl(var(--foreground)) !important;
	box-shadow: 0 0 0 1000px hsl(var(--card)) inset !important;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
.entry-content .wc-block-checkout .wc-block-components-title,
.entry-content .wc-block-checkout .wc-block-components-checkout-step__title {
	color: hsl(var(--foreground));
}
