/* =====================================================================
   Stone Laine theme styles.
   Design tokens ported from the original site design (index.css,
   tailwind.config.ts). Colors are emitted as CSS custom properties via
   wp_add_inline_style (Section 22.9) — the values below are defaults
   used until that inline block loads / as a fallback.
   ===================================================================== */

:root {
	--color-background: #f7f6f2;
	--color-foreground: #131f25;
	--color-card: #ffffff;
	--color-primary: #195f6b;
	--color-primary-foreground: #fbfaf8;
	--color-secondary: #f1eee9;
	--color-secondary-foreground: #17252c;
	--color-muted: #eeece7;
	--color-muted-foreground: #5a6a72;
	--color-accent: #d38b0d;
	--color-accent-foreground: #ffffff;
	--color-destructive: #ba1c1c;
	--color-border: #dce4e5;
	--color-obsidian: #0d171b;
	--color-obsidian-soft: #17262c;
	--color-gold-light: #f6b51e;
	--color-glow: #66d6cd;
	--button-text-color: #fbfaf8;

	--font-display: 'Cinzel', serif;
	--font-body: 'Plus Jakarta Sans', sans-serif;
	--font-label: 'Outfit', sans-serif;

	--radius: 1rem;
	--btn-radius: 999px;
	--btn-height: 44px;
	--btn-padding: 0 1.5rem;
	--btn-font-size: 0.75rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.18em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0;

	--logo-height: 60px;
	--header-height: 80px;

	--shadow-soft: 0 6px 24px -8px rgba(19, 31, 37, 0.16);
	--shadow-elevated: 0 18px 48px -16px rgba(19, 31, 37, 0.28);
	--shadow-glow: 0 0 40px -8px rgba(102, 214, 205, 0.5);

	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================================
   Reset & base
   ===================================================================== */

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Tailwind preflight parity — headings inherit size/weight until set explicitly per element. */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	line-height: 1.15;
	margin: 0;
}

h1 { font-weight: 700; letter-spacing: 0.02em; line-height: 1.08; }
h2 { font-weight: 600; letter-spacing: 0.02em; }
h3 { font-weight: 600; letter-spacing: 0.03em; }
h4, h5, h6 { font-weight: 600; letter-spacing: 0.08em; }

p { margin: 0; }

a {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

a,
button,
label[for],
summary,
select,
[role="button"],
[role="link"],
[role="tab"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
input[type="range"] {
	cursor: pointer;
}

img, video {
	max-width: 100%;
	display: block;
}

button {
	font-family: inherit;
	cursor: pointer;
}

input, textarea, select {
	font-family: inherit;
	font-size: inherit;
}

svg {
	display: inline-block;
}

/* Cover / full-bleed image exclusion list (Section 15.1) — every cover
   image class used anywhere in the theme MUST be listed here. */
img:not(.cover-img) {
	max-width: 100%;
	height: auto;
}
.cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide {
		padding: 0 2rem;
	}
}

.is-hidden {
	display: none !important;
}

/* =====================================================================
   Animation utilities (Section 2.1) — tailwindcss-animate equivalents
   and the scroll-reveal system driven by main.js.
   ===================================================================== */

@keyframes theme-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
.animate-fade-in { animation: theme-fade-in 0.6s var(--transition-smooth) forwards; }

@keyframes theme-marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.reveal-item {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}
.reveal-item.fade-only { transform: none; }
.reveal-item.slide-right-item { transform: translateX(-30px); }
.reveal-item[data-delay] { transition-delay: var(--reveal-delay, 0s); }
.reveal-item.is-visible {
	opacity: 1;
	transform: none;
}
.theme-product-card.reveal-item {
	transform: scale(0.96);
}
.theme-product-card.reveal-item.is-visible {
	transform: scale(1);
}

/* Customizer preview fallback — reveal content MUST be visible while editing (Section 2.1 rule 5). */
body.is-customizer .reveal-item,
body.is-customizer .theme-product-card {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

.shine-sweep { position: relative; overflow: hidden; }
.shine-sweep::after {
	content: '';
	position: absolute;
	inset: 0;
	transform: translateX(-120%);
	background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
	transition: transform 0.8s var(--transition-smooth);
	pointer-events: none;
}
.shine-sweep:hover::after { transform: translateX(120%); }

/* =====================================================================
   Shared text utilities
   ===================================================================== */

.eyebrow {
	font-family: var(--font-label);
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--color-primary);
}

.micro-label {
	font-family: var(--font-label);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.22em;
}

.text-glow { color: var(--color-glow); }
.surface-soft { background-color: var(--color-muted); position: relative; }
.surface-cosmic {
	background-image: linear-gradient(135deg, var(--color-obsidian) 0%, var(--color-obsidian-soft) 55%, #164a56 100%);
}

/* =====================================================================
   Buttons (theme-btn — replaces shadcn Button component variants)
   ===================================================================== */

.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: var(--btn-height);
	padding: var(--btn-padding);
	border-radius: var(--btn-radius);
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	white-space: nowrap;
	border: none;
	transition: all 0.2s var(--transition-smooth);
	cursor: pointer;
}
.theme-btn__icon { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }

.theme-btn--pill {
	background-color: var(--color-primary);
	color: var(--button-text-color);
	box-shadow: var(--shadow-glow);
}
.theme-btn--pill:hover {
	background-color: color-mix(in srgb, var(--color-primary) 90%, black);
	transform: translateY(-2px);
}

.theme-btn--pill-gold {
	background-color: var(--color-accent);
	color: var(--color-accent-foreground);
	box-shadow: var(--shadow-glow);
}
.theme-btn--pill-gold:hover {
	background-color: color-mix(in srgb, var(--color-accent) 90%, black);
	transform: translateY(-2px);
}

.theme-btn--outline {
	background-color: transparent;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
}
.theme-btn--outline:hover {
	background-color: var(--color-muted);
}

.theme-btn--ghost {
	background-color: transparent;
	color: var(--color-muted-foreground);
	text-transform: none;
	letter-spacing: normal;
	font-weight: 500;
}
.theme-btn--ghost:hover { background-color: var(--color-muted); }

.theme-btn--full { width: 100%; }

.theme-btn--primary-round {
	background-color: var(--color-primary);
	color: var(--button-text-color);
	box-shadow: var(--shadow-glow);
	padding: 0 2rem;
}
.theme-btn--primary-round:hover { background-color: var(--color-accent); color: var(--color-accent-foreground); }

.theme-btn.disabled,
.theme-btn:disabled {
	opacity: 0.5;
	pointer-events: none;
	cursor: not-allowed;
}

.theme-anchor-link { cursor: pointer; }

/* Offer button (Make an offer — src/components/shop/MakeOfferButton.tsx) */
.theme-offer-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	border: 1px solid var(--color-primary);
	color: var(--color-primary);
	background: transparent;
	font-family: var(--font-label);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	transition: all 0.2s ease;
}
.theme-offer-button:hover {
	background-color: var(--color-primary);
	color: var(--button-text-color);
}
.theme-offer-button--compact {
	width: auto;
	padding: 0.5rem 1rem;
	font-size: 0.6875rem;
}
.theme-offer-button--compact .theme-offer-button__icon { width: 0.875rem; height: 0.875rem; }
.theme-offer-button__icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* =====================================================================
   Header
   ===================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 40;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: all 0.3s ease;
}
.site-header.is-solid {
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-soft);
}
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
}
@media (min-width: 1024px) {
	.site-nav { height: 5rem; }
}

.site-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.5rem 0;
	color: var(--color-foreground);
	transition: color 0.3s ease;
}
.site-header:not(.is-solid) .site-logo-link {
	color: #ffffff;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}
.theme-logo-icon {
	width: 1.75rem;
	height: 1.75rem;
}
@media (min-width: 640px) {
	.theme-logo-icon { width: 2rem; height: 2rem; }
}
.site-logo-text {
	font-family: var(--font-display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 1rem;
	line-height: 1;
}
@media (min-width: 640px) { .site-logo-text { font-size: 1.125rem; } }
@media (min-width: 1024px) { .site-logo-text { font-size: 1.25rem; } }

.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
}

.site-nav__links { display: none; margin-left: auto; margin-right: 1.5rem; }
@media (min-width: 1024px) {
	.site-nav__links { display: flex; align-items: center; gap: 2rem; }
}
.theme-nav-list {
	display: flex;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.theme-nav-link {
	font-family: var(--font-label);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	padding: 0.75rem 0;
	color: var(--color-foreground);
	opacity: 0.8;
	transition: color 0.3s ease, opacity 0.3s ease;
	display: block;
}
.theme-nav-link:hover { opacity: 1; color: var(--color-primary); }
.site-header:not(.is-solid) .theme-nav-link,
.site-header:not(.is-solid) .theme-nav-list a {
	color: rgba(255, 255, 255, 0.85);
	opacity: 1;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.site-header:not(.is-solid) .theme-nav-link:hover,
.site-header:not(.is-solid) .theme-nav-list a:hover { color: #ffffff; }

.site-nav__actions { display: flex; align-items: center; gap: 0.25rem; }

.theme-cart-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: transparent;
	border: none;
	color: var(--color-foreground);
	transition: background-color 0.2s ease;
}
.theme-cart-toggle:hover { background-color: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.site-header:not(.is-solid) .theme-cart-toggle { color: #ffffff; }
.theme-cart-toggle__icon { width: 1.25rem; height: 1.25rem; }
.theme-cart-count {
	position: absolute;
	top: 0.25rem;
	right: 0.25rem;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background-color: var(--color-primary);
	color: var(--button-text-color);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}
.theme-cart-count:empty { display: none; }

.theme-mobile-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: transparent;
	border: none;
	color: var(--color-foreground);
}
.site-header:not(.is-solid) .theme-mobile-toggle { color: #ffffff; }
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }
.theme-mobile-toggle__icon-open { width: 1.25rem; height: 1.25rem; }
.theme-mobile-toggle__icon-close { width: 1.25rem; height: 1.25rem; display: none; }
.theme-mobile-toggle.is-open .theme-mobile-toggle__icon-open { display: none; }
.theme-mobile-toggle.is-open .theme-mobile-toggle__icon-close { display: block; }

.theme-mobile-menu {
	display: none;
	border-top: 1px solid var(--color-border);
	padding: 0.75rem 0;
	background: transparent;
}
.theme-mobile-menu.is-open { display: block; animation: theme-fade-in 0.3s var(--transition-smooth); }
.theme-mobile-nav-list {
	display: flex;
	flex-direction: column;
	list-style: none;
	margin: 0;
	padding: 0;
}
.theme-mobile-nav-list > li {
	margin: 0;
	padding: 0;
}
.theme-mobile-nav-list a,
.theme-mobile-nav-list .theme-nav-link {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
	font-family: var(--font-label);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	padding: 0.75rem 0.25rem;
	color: var(--color-foreground);
	opacity: 1;
	text-shadow: none;
	transition: color 0.3s ease;
}
.theme-mobile-nav-list a:hover,
.theme-mobile-nav-list .theme-nav-link:hover { color: var(--color-primary); opacity: 1; }
@media (min-width: 1024px) { .theme-mobile-menu { display: none !important; } }

/* =====================================================================
   Hero
   ===================================================================== */

.hero-section {
	position: relative;
	min-height: 85vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
@media (min-width: 768px) { .hero-section { min-height: 100vh; } }

.hero-section__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-section__video { object-fit: cover; }
.hero-section__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--color-obsidian) 0%, color-mix(in srgb, var(--color-obsidian) 70%, transparent) 55%, color-mix(in srgb, var(--color-obsidian) 40%, transparent) 100%);
}
.hero-section__glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 60% 30%, color-mix(in srgb, var(--color-glow) 28%, transparent), transparent 60%);
}

.hero-section__inner {
	position: relative;
	z-index: 10;
	width: 100%;
	padding-top: 8rem;
	padding-bottom: 6rem;
}
@media (min-width: 768px) { .hero-section__inner { padding-bottom: 7rem; } }
@media (min-width: 1024px) { .hero-section__inner { padding-bottom: 9rem; } }

.hero-section__row {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}
@media (min-width: 1024px) {
	.hero-section__row {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
}

.hero-section__copy { max-width: 48rem; }
.hero-section__eyebrow { color: var(--color-glow); margin-bottom: 1.25rem; display: block; }
.hero-section__title {
	font-family: var(--font-display);
	color: #ffffff;
	font-weight: 700;
	font-size: 1.875rem;
	line-height: 1.08;
}
@media (min-width: 640px) { .hero-section__title { font-size: 2.25rem; } }
@media (min-width: 768px) { .hero-section__title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-section__title { font-size: 3.75rem; } }

.hero-section__actions { max-width: 28rem; }
.hero-section__paragraph {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-section__paragraph { font-size: 1rem; } }

.hero-section__buttons {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.hero-section__buttons .theme-btn { width: 100%; }
@media (min-width: 640px) {
	.hero-section__buttons { flex-direction: row; }
	.hero-section__buttons .theme-btn { width: auto; flex-shrink: 0; }
}

.hero-section__marquee {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 20;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	background-color: color-mix(in srgb, var(--color-obsidian) 70%, transparent);
	backdrop-filter: blur(2px);
	padding: 0.75rem 0;
	overflow: hidden;
}
@media (min-width: 768px) { .hero-section__marquee { padding: 1rem 0; } }
.hero-section__marquee-track {
	display: flex;
	width: max-content;
	white-space: nowrap;
	animation: theme-marquee 30s linear infinite;
	will-change: transform;
}
.hero-section__marquee-group { display: flex; align-items: center; }
.hero-section__marquee-item {
	display: flex;
	align-items: center;
	font-family: var(--font-label);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: rgba(255, 255, 255, 0.85);
}
@media (min-width: 640px) { .hero-section__marquee-item { font-size: 0.875rem; } }
.hero-section__marquee-dot { margin: 0 1.25rem; color: var(--color-gold-light); }
@media (min-width: 768px) { .hero-section__marquee-dot { margin: 0 1.75rem; } }

/* =====================================================================
   About
   ===================================================================== */

.about-section {
	position: relative;
	padding: 3.5rem 0;
	overflow: hidden;
}
@media (min-width: 768px) { .about-section { padding: 6rem 0; } }
@media (min-width: 1024px) { .about-section { padding: 8rem 0; } }

.about-section__blob { position: absolute; border-radius: 999px; pointer-events: none; filter: blur(64px); }
.about-section__blob--1 { top: -6rem; left: -6rem; width: 26rem; height: 26rem; background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.about-section__blob--2 { bottom: -8rem; right: -6rem; width: 30rem; height: 30rem; background: color-mix(in srgb, var(--color-accent) 10%, transparent); }

.about-section__inner { position: relative; }
.about-section__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
}
@media (min-width: 1024px) {
	.about-section__grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
}

.about-section__media { position: relative; }
.about-section__image-wrap { position: relative; }
.about-section__image-backdrop {
	position: absolute;
	left: -1rem;
	bottom: -1rem;
	width: 100%;
	height: 100%;
	border-radius: 1.5rem;
	background-color: color-mix(in srgb, var(--color-primary) 25%, transparent);
}
@media (min-width: 1024px) { .about-section__image-backdrop { left: -1.5rem; bottom: -1.5rem; } }
.about-section__image-ring {
	position: absolute;
	right: -0.75rem;
	top: -0.75rem;
	width: 6rem;
	height: 6rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
}
@media (min-width: 1024px) { .about-section__image-ring { width: 8rem; height: 8rem; } }
.about-section__image {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	border-radius: 1.5rem;
	box-shadow: var(--shadow-elevated);
}

.about-section__copy .eyebrow { margin-bottom: 0; }
.about-section__title.section-heading { color: var(--color-foreground); }

.about-section__paragraph {
	margin-top: 1.25rem;
	color: var(--color-muted-foreground);
	line-height: 1.7;
}
.about-section__paragraph + .about-section__paragraph { margin-top: 1rem; }

.about-section__founder {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
@media (min-width: 640px) {
	.about-section__founder { flex-direction: row; align-items: center; }
}
.about-section__founder-info { display: flex; align-items: center; gap: 0.75rem; }
.about-section__founder-badge {
	display: inline-flex;
	width: 3rem;
	height: 3rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-primary);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 30%, transparent);
}
.about-section__founder-name { font-family: var(--font-display); font-size: 1rem; color: var(--color-foreground); font-weight: 600; }
.about-section__founder-title {
	font-family: var(--font-label);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-muted-foreground);
}
.about-section__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	transition: all 0.2s ease;
}
@media (min-width: 640px) { .about-section__social { margin-left: auto; } }
.about-section__social:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.about-section__social-icon { width: 1rem; height: 1rem; }

/* Section titles match Lovable: Cinzel, text-2xl → lg:text-5xl. */
.section-heading {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.15;
	text-wrap: balance;
	-webkit-font-smoothing: antialiased;
	margin-top: 0.75rem;
	font-size: 1.5rem;
}
@media (min-width: 640px) { .section-heading { font-size: 1.875rem; } }
@media (min-width: 768px) { .section-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-heading { font-size: 3rem; } }

/* =====================================================================
   Shop section
   ===================================================================== */

.shop-section { padding: 3rem 0; background-color: var(--color-background); }
@media (min-width: 768px) { .shop-section { padding: 5rem 0; } }
@media (min-width: 1024px) { .shop-section { padding: 7rem 0; } }

.shop-section__intro { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.shop-section__title.section-heading { color: var(--color-foreground); }
.shop-section__paragraph { margin-top: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }

.shop-section__filterbar {
	margin-bottom: 2.5rem;
	padding: 1.25rem 0;
	border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.shop-section__cats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}
.theme-cat-pill {
	padding: 0.625rem 1.25rem;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-foreground);
	font-family: var(--font-label);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	transition: all 0.2s ease;
}
.theme-cat-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.theme-cat-pill.is-active {
	background-color: var(--color-primary);
	color: var(--button-text-color);
	border-color: var(--color-primary);
	box-shadow: var(--shadow-soft);
}

.shop-section__controls {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 1rem;
}
@media (min-width: 640px) {
	.shop-section__controls { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; }
}

.shop-section__sort {
	height: 2.75rem;
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--color-border);
	border-radius: 0;
	background: transparent;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-foreground);
	padding: 0 0.25rem;
}
@media (min-width: 640px) { .shop-section__sort { width: 10rem; } }
.shop-section__sort:focus { outline: none; border-color: var(--color-primary); }

.shop-section__price-filter {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
}
@media (min-width: 640px) { .shop-section__price-filter { min-width: 220px; flex: 1; max-width: 28rem; } }
.shop-section__price-label {
	font-family: var(--font-label);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--color-primary);
	white-space: nowrap;
}
.shop-section__price-values { font-size: 0.75rem; font-weight: 500; color: var(--color-foreground); white-space: nowrap; }

/* Section 31.4 — dual overlapping range inputs */
.price-range-wrapper { position: relative; height: 1.5rem; flex: 1; }
.range-track-bg, .range-track-fill {
	position: absolute;
	height: 4px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	border-radius: 999px;
}
.range-track-bg { left: 0; right: 0; background: var(--color-secondary); }
.range-track-fill { background: var(--color-primary); }
.range-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}
.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: var(--color-background);
	border: 1px solid color-mix(in srgb, var(--color-primary) 50%, transparent);
	box-shadow: var(--shadow-soft);
	cursor: pointer;
}
.range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: var(--color-background);
	border: 1px solid color-mix(in srgb, var(--color-primary) 50%, transparent);
	box-shadow: var(--shadow-soft);
	cursor: pointer;
}
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.shop-section__clear {
	padding: 0.75rem 0;
	background: transparent;
	border: none;
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--color-muted-foreground);
	white-space: nowrap;
	transition: color 0.2s ease;
}
.shop-section__clear:hover { color: var(--color-primary); }

.shop-section__count { text-align: center; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 2rem; }

.shop-section__empty { padding: 5rem 0; text-align: center; color: var(--color-muted-foreground); }
.shop-section__reset-link { margin-left: 0.5rem; background: none; border: none; color: var(--color-foreground); text-decoration: underline; }

.shop-section__load-more { margin-top: 3.5rem; display: flex; justify-content: center; }
.shop-section__load-more[hidden],
.theme-btn[hidden],
[hidden] {
	display: none !important;
}

/* =====================================================================
   Product grid + card (shared across shop, vault, related, archive —
   Section 31.13)
   ===================================================================== */

.theme-product-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem 1.5rem;
}
.theme-product-card-wrap {
	width: 100%;
}
@media (min-width: 640px) { .theme-product-card-wrap { width: calc(50% - 12px); } }
@media (min-width: 1024px) { .theme-product-card-wrap { width: calc(33.333% - 16px); } }
@media (min-width: 1280px) { .theme-product-card-wrap { width: calc(25% - 18px); } }

.theme-product-grid--vault .theme-product-card-wrap,
.theme-product-grid--related .theme-product-card-wrap {
	width: 100%;
}
@media (min-width: 640px) {
	.theme-product-grid--vault .theme-product-card-wrap,
	.theme-product-grid--related .theme-product-card-wrap { width: calc(50% - 12px); }
}
@media (min-width: 1024px) {
	.theme-product-grid--vault .theme-product-card-wrap,
	.theme-product-grid--related .theme-product-card-wrap { width: calc(33.333% - 16px); }
}

.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	height: 100%;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
}
.theme-product-card *:not(.theme-card-link) {
	pointer-events: none;
}
.theme-product-card .theme-card-quickadd,
.theme-product-card .theme-offer-button,
.theme-product-card .theme-product-card__title {
	pointer-events: auto;
}
.theme-product-card .theme-offer-button,
.theme-product-card .theme-product-card__title {
	position: relative;
	z-index: 3;
}

.theme-product-card__image-wrapper {
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
	border-radius: 1.5rem;
	aspect-ratio: 3 / 4;
	background-color: var(--color-secondary);
}
.theme-product-card__image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease-out;
}
.theme-product-card:hover .theme-product-card__image-wrapper img {
	transform: scale(1.05);
}

.theme-card-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	border-radius: 999px;
	background-color: color-mix(in srgb, var(--color-background) 85%, transparent);
	backdrop-filter: blur(4px);
	padding: 0.25rem 0.75rem;
	font-family: var(--font-label);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--color-foreground);
	box-shadow: var(--shadow-soft);
	z-index: 3;
}
.theme-card-badge--vault {
	background-color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	color: var(--color-background);
}
.theme-card-badge__icon { width: 0.75rem; height: 0.75rem; }
.theme-card-badge--stock {
	top: auto;
	bottom: 0.75rem;
	left: 0.75rem;
	background-color: var(--color-destructive);
	color: #fff;
}

.theme-card-quickadd {
	position: absolute;
	bottom: 1rem;
	right: 1rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background-color: var(--color-primary);
	color: var(--button-text-color);
	box-shadow: var(--shadow-glow);
	border: none;
	opacity: 1;
	transform: translateY(0);
	transition: all 0.2s ease;
}
@media (min-width: 640px) {
	.theme-card-quickadd { opacity: 0; transform: translateY(0.5rem); }
	.theme-product-card:hover .theme-card-quickadd { opacity: 1; transform: translateY(0); }
}
.theme-card-quickadd:hover { background-color: var(--color-accent); color: var(--color-accent-foreground); }
.theme-card-quickadd__icon { width: 1rem; height: 1rem; }
.theme-card-quickadd--offer { background-color: var(--color-primary); }

.theme-product-card__info {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-width: 0;
}
.theme-product-card__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; width: 100%; min-width: 0; }
.theme-product-card__title-col { min-width: 0; flex: 1; }
.theme-product-card__title {
	display: block;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--color-foreground);
	text-wrap: balance;
	transition: color 0.2s ease;
	min-width: 0;
}
.theme-product-card__title:hover { color: var(--color-primary); }
.theme-product-card__price {
	font-family: var(--font-body);
	font-weight: 600;
	color: var(--color-foreground);
	font-size: 0.875rem;
	white-space: nowrap;
}
.theme-product-card__price .price ins { text-decoration: none; }
.theme-product-card__size { margin-top: 0.125rem; font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-product-card__desc {
	margin-top: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	line-height: 1.625;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.theme-product-card__offer { margin-top: 1rem; }
.theme-product-card:not(.is-vault) .theme-product-card__offer .theme-offer-button {
	width: auto;
	padding: 0.5rem 1rem;
	font-size: 0.6875rem;
}
.theme-product-card.is-vault .theme-product-card__offer .theme-offer-button {
	width: 100%;
	padding: 0.75rem 1.5rem;
	font-size: 0.75rem;
	white-space: nowrap;
}

/* =====================================================================
   Vault section
   ===================================================================== */

.vault-section { padding: 3rem 0; }
@media (min-width: 768px) { .vault-section { padding: 5rem 0; } }
@media (min-width: 1024px) { .vault-section { padding: 7rem 0; } }
.vault-section__intro { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.vault-section__eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; }
.vault-section__eyebrow-icon { width: 0.875rem; height: 0.875rem; }
.vault-section__title.section-heading { color: var(--color-foreground); }
.vault-section__paragraph { margin-top: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }

/* =====================================================================
   Contact section
   ===================================================================== */

.contact-section { position: relative; padding: 3rem 0; overflow: hidden; }
@media (min-width: 768px) { .contact-section { padding: 5rem 0; } }
@media (min-width: 1024px) { .contact-section { padding: 7rem 0; } }
.contact-section__media { position: absolute; inset: 0; z-index: 0; }
.contact-section__overlay { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-obsidian) 85%, transparent); }
.contact-section__inner { position: relative; z-index: 10; }
.contact-section__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-section__grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }

.contact-section__eyebrow {
	font-family: var(--font-label);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--color-glow);
}
.contact-section__title.section-heading { color: #ffffff; }
.contact-section__paragraph { margin-top: 1.25rem; color: rgba(255, 255, 255, 0.75); line-height: 1.7; }

.contact-section__list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; list-style: none; padding: 0; }
.contact-section__list-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.contact-section__list-item:first-child { align-items: flex-start; }
.contact-section__icon { width: 1.25rem; height: 1.25rem; color: var(--color-gold-light); flex-shrink: 0; }
.contact-section__list-item:first-child .contact-section__icon { margin-top: 0.125rem; }
.contact-section__address, .contact-section__link { color: rgba(255, 255, 255, 0.8); }
.contact-section__link {
	display: inline-flex;
	align-items: center;
	min-height: 1.25rem;
	padding: 0;
	line-height: 1.25rem;
	transition: color 0.2s ease;
	word-break: break-all;
}
.contact-section__link:hover { color: #ffffff; }

.contact-section__form-wrap { }
.contact-section__form {
	background-color: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: 1.5rem;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	box-shadow: var(--shadow-soft);
}
@media (min-width: 1024px) { .contact-section__form { padding: 2rem; } }

.theme-form-field { display: flex; flex-direction: column; }
.theme-form-label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--color-foreground); }
.theme-form-input, .theme-form-textarea {
	width: 100%;
	border: 1px solid var(--color-input);
	background-color: var(--color-background);
	border-radius: 0.5rem;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	color: var(--color-foreground);
}
.theme-form-input { height: 3rem; }
.theme-form-textarea { resize: vertical; }
.theme-form-input:focus, .theme-form-textarea:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--color-primary);
}
.theme-form-input::placeholder, .theme-form-textarea::placeholder { color: var(--color-muted-foreground); }

.contact-section__form-note { font-size: 0.75rem; color: var(--color-muted-foreground); text-align: center; }

/* =====================================================================
   Footer
   ===================================================================== */

.site-footer {
	border-top: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
	background-image: linear-gradient(135deg, var(--color-obsidian) 0%, var(--color-obsidian-soft) 55%, #164a56 100%);
	color: #ffffff;
}
.site-footer__inner { padding-top: 3rem; padding-bottom: 1.25rem; }
@media (min-width: 768px) { .site-footer__inner { padding-top: 4rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }

.site-footer .site-logo-link { color: #ffffff; }
.site-footer .theme-logo-icon { color: var(--color-glow); }
.site-footer .site-logo-text { font-size: 1.5rem; }
.site-footer__tagline { margin-top: 1.25rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); max-width: 24rem; line-height: 1.7; }
.site-footer__social { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.theme-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.2s ease;
}
.theme-social-link:hover { background-color: var(--color-primary); border-color: var(--color-primary); }
.theme-social-link__icon { width: 1rem; height: 1rem; }

.site-footer__heading {
	font-family: var(--font-label);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--color-glow);
	margin-bottom: 1rem;
}
.theme-footer-nav-list { list-style: none; margin: 0; padding: 0; }
.theme-footer-nav-link, .theme-footer-nav-list a {
	display: inline-block;
	padding: 0.5rem 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.2s ease;
	background: none;
	border: none;
	text-align: left;
}
.theme-footer-nav-link:hover, .theme-footer-nav-list a:hover { color: #ffffff; }

.theme-footer-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-footer-contact-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.theme-footer-contact-item:first-child { align-items: flex-start; }
.theme-footer-contact-item__icon { width: 1rem; height: 1rem; color: var(--color-gold-light); flex-shrink: 0; }
.theme-footer-contact-item:first-child .theme-footer-contact-item__icon { margin-top: 0.125rem; }
.theme-footer-link {
	display: inline-flex;
	align-items: center;
	min-height: 1rem;
	padding: 0;
	line-height: 1.25rem;
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.2s ease;
	word-break: break-all;
}
.theme-footer-link:hover { color: #ffffff; }

.site-footer__bottom {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.site-footer__copyright, .site-footer__builtby { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); text-align: center; }
.theme-footer-builtby-link { text-decoration: underline; }
.theme-footer-builtby-link:hover { color: #ffffff; }

/* =====================================================================
   404
   ===================================================================== */

.theme-404-main {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-muted);
}
.theme-404-content { text-align: center; }
.theme-404-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; font-family: var(--font-body); }
.theme-404-message { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-404-link { color: var(--color-primary); text-decoration: underline; }
.theme-404-link:hover { color: color-mix(in srgb, var(--color-primary) 90%, black); }

/* =====================================================================
   Generic page / archive
   ===================================================================== */

.theme-page-main, .theme-generic-main, .theme-archive-main {
	padding-top: 7rem;
	padding-bottom: 5rem;
}
body.theme-no-hero .theme-page-main,
body.theme-no-hero .theme-generic-main,
body.theme-no-hero .theme-archive-main {
	padding-top: 8rem;
}
@media (min-width: 1024px) {
	.theme-page-main, .theme-generic-main, .theme-archive-main { padding-top: 8.5rem; }
}
.page-title, .theme-archive-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 2rem;
	margin-bottom: 2rem;
}
@media (min-width: 768px) { .page-title, .theme-archive-title { font-size: 2.5rem; } }
.theme-archive-empty { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }

/* =====================================================================
   Single product page
   ===================================================================== */

.theme-product-main { padding-top: 6rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .theme-product-main { padding-top: 8rem; } }

.theme-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--color-muted-foreground);
	margin-bottom: 2rem;
	transition: color 0.2s ease;
}
.theme-back-link:hover { color: var(--color-foreground); }
.theme-back-link__icon { width: 0.875rem; height: 0.875rem; }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	min-width: 0;
}
@media (min-width: 1024px) {
	.theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; }
}

.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery { display: flex; flex-direction: column; gap: 1rem; }
.theme-product-gallery__main {
	position: relative;
	border-radius: 1rem;
	overflow: hidden;
	background-color: var(--color-secondary);
	aspect-ratio: 4 / 5;
}
@media (min-width: 1024px) { .theme-product-gallery__main { aspect-ratio: 5 / 6; } }
.theme-product-gallery__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease; }

.theme-product-thumbnails { display: flex; gap: 0.75rem; overflow-x: auto; max-width: 100%; padding-bottom: 0.5rem; flex-wrap: wrap; }
.theme-product-thumb {
	position: relative;
	flex-shrink: 0;
	width: 5rem;
	height: 5rem;
	border-radius: 0.75rem;
	overflow: hidden;
	border: 2px solid transparent;
	background: none;
	padding: 0;
	transition: all 0.3s ease;
}
@media (min-width: 640px) { .theme-product-thumb { width: 6rem; height: 6rem; } }
.theme-product-thumb:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.theme-product-thumb.is-active { border-color: var(--color-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 20%, transparent); }
.theme-product-thumb__image { width: 100%; height: 100%; object-fit: cover; }

.theme-product-title.product-title {
	font-family: var(--font-body);
	font-weight: 600;
	margin-top: 0.75rem;
	font-size: 2.25rem;
	line-height: 1.05;
	color: var(--color-foreground);
}
@media (min-width: 640px) { .theme-product-title.product-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-product-title.product-title { font-size: 3.75rem; } }
.theme-product-tagline { margin-top: 1rem; color: var(--color-muted-foreground); }
.theme-product-separator { border: none; border-top: 1px solid var(--color-border); margin: 1.5rem 0; }
.theme-product-description {
	color: color-mix(in srgb, var(--color-foreground) 90%, transparent);
	line-height: 1.7;
	overflow-wrap: break-word;
	word-break: break-word;
}
.theme-product-description p + p { margin-top: 1rem; }

.theme-product-price-block { margin-top: 2rem; }
.theme-product-size { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--color-muted-foreground); }
.theme-product-price { font-family: var(--font-body); font-size: 1.5rem; font-weight: 600; margin-top: 0.25rem; }
.theme-product-price__suffix { font-size: 1rem; font-weight: 400; color: var(--color-muted-foreground); }
.theme-stock-badge { margin-top: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.theme-stock-badge--out { color: var(--color-destructive); }

.theme-add-to-cart-area {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: stretch;
	flex-wrap: wrap;
}
.theme-add-to-cart-area .theme-quantity-wrapper { align-self: flex-start; }
.theme-add-to-cart-area .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}

.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	overflow: hidden;
}
.theme-qty-minus, .theme-qty-plus {
	width: 2.75rem;
	height: 2.75rem;
	background: transparent;
	border: none;
	font-size: 1.125rem;
	color: var(--color-foreground);
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-muted); }
.theme-qty-input {
	width: 3rem;
	height: 2.75rem;
	border: none;
	border-left: 1px solid var(--color-border);
	border-right: 1px solid var(--color-border);
	text-align: center;
	background: transparent;
	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-note, .theme-product-variation-note {
	margin-top: 0.75rem;
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	line-height: 1.6;
	overflow-wrap: break-word;
	word-break: break-word;
}
.theme-product-variation-note { margin-top: 2rem; }

.theme-accordion { margin-top: 2rem; }
.theme-accordion__item { border-bottom: 1px solid var(--color-border); }
.theme-accordion__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0;
	background: none;
	border: none;
	font-family: var(--font-body);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 500;
	color: var(--color-foreground);
	text-align: left;
}
.theme-accordion__trigger:hover { text-decoration: underline; }
.theme-accordion__chevron { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform 0.2s ease; }
.theme-accordion__item.is-open .theme-accordion__chevron { transform: rotate(180deg); }
.theme-accordion__content { overflow: hidden; max-height: 0; transition: max-height 0.25s ease; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; }
.theme-accordion__item.is-open .theme-accordion__content { max-height: 40rem; padding-bottom: 1rem; }
.theme-accordion__list { list-style: disc; padding-left: 1.25rem; margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }

.theme-related-products { margin-top: 6rem; }
.theme-related-products__title {
	margin-top: 0.75rem;
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.15;
	text-wrap: balance;
	font-size: 1.5rem;
	color: var(--color-foreground);
}
@media (min-width: 640px) { .theme-related-products__title { font-size: 1.875rem; } }
@media (min-width: 1024px) { .theme-related-products__title { font-size: 2.25rem; } }
.theme-related-products .theme-product-grid { margin-top: 2.5rem; }

/* =====================================================================
   Side cart drawer + overlay
   ===================================================================== */

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background-color: color-mix(in srgb, var(--color-foreground) 30%, transparent);
	z-index: 50;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
	position: fixed;
	right: 0;
	top: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background-color: var(--color-background);
	z-index: 51;
	box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
	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: 1.5rem;
	border-bottom: 1px solid var(--color-border);
}
.theme-cart-drawer__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--color-foreground); }
.theme-cart-drawer__close {
	padding: 0.375rem;
	border-radius: 999px;
	background: transparent;
	border: none;
	transition: background-color 0.2s ease;
}
.theme-cart-drawer__close:hover { background-color: var(--color-secondary); }
.theme-cart-drawer__close-icon { width: 1.25rem; height: 1.25rem; }

.theme-cart-drawer__empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	text-align: center;
}
.theme-cart-drawer__empty-icon { width: 3rem; height: 3rem; color: color-mix(in srgb, var(--color-muted-foreground) 50%, transparent); margin-bottom: 1rem; }
.theme-cart-drawer__empty-text { color: var(--color-muted-foreground); margin-bottom: 1.5rem; font-size: 0.875rem; }

.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__image { width: 5rem; height: 6rem; background-color: var(--color-secondary); border-radius: 0.375rem; overflow: hidden; flex-shrink: 0; }
.theme-cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s ease; }
.theme-cart-item__name:hover { color: var(--color-accent); }
.theme-cart-item__price { font-size: 0.8125rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.theme-cart-item__qty-btn { padding: 0.25rem; background: transparent; border: none; border-radius: 0.25rem; transition: background-color 0.2s ease; display: inline-flex; }
.theme-cart-item__qty-btn:hover { background-color: var(--color-secondary); }
.theme-cart-item__qty-icon { width: 0.75rem; height: 0.75rem; }
.theme-cart-item__qty-value { font-size: 0.8125rem; width: 1.5rem; text-align: center; }
.theme-cart-item__remove { margin-left: auto; font-size: 0.8125rem; color: var(--color-muted-foreground); background: none; border: none; transition: color 0.2s ease; }
.theme-cart-item__remove:hover { color: var(--color-destructive); }

.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); background-color: color-mix(in srgb, var(--color-secondary) 40%, transparent); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal-value { font-weight: 500; }
.theme-cart-drawer__note { font-size: 0.8125rem; color: var(--color-muted-foreground); line-height: 1.6; }

/* =====================================================================
   WooCommerce overrides — Section 11.4.1, 11.4.2, 14
   ===================================================================== */

.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(--button-text-color) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--button-text-color) !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 icon-only button overrides the global rules above. */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-product-card .theme-card-quickadd {
	min-height: unset !important;
	padding: var(--btn-icon-padding) !important;
	border-radius: 50% !important;
	width: 2.75rem !important;
	height: 2.75rem !important;
	text-transform: none !important;
}

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
	display: none !important;
}

/* Section 14.1 — scoped notice hiding only where the drawer already gives feedback. */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	font-family: var(--font-body);
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	border-top: none;
	background-color: var(--color-secondary);
	color: var(--color-foreground);
}
.woocommerce-error { background-color: color-mix(in srgb, var(--color-destructive) 12%, var(--color-background)); color: var(--color-destructive); }

/* Variable product variations table (Section 11.5.1). */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-weight: 600; }
.single-product .variations tbody td.value { padding-top: 0; }

/* =====================================================================
   Checkout, Cart, My Account — Blocks overrides (Section 13, 13.7)
   ===================================================================== */

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	/* Clear the fixed header; the default 80px left the title flush with it. */
	padding-top: calc(var(--header-height, 80px) + 3.5rem);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	max-width: 80rem;
	margin-top: 0;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1.5rem;
	position: relative;
	z-index: 1;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wc-block-cart {
	font-family: var(--font-body);
	color: var(--color-foreground);
}

body.woocommerce-checkout .wc-block-checkout { display: block; }

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout__main + .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-components-notice-banner {
		grid-column: 1 / -1;
	}
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--color-foreground);
	border: 1px solid var(--color-input);
	border-radius: 0.5rem;
	background-color: var(--color-background);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--color-primary);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--color-muted-foreground); }

body.woocommerce-checkout .wc-block-components-sidebar.wc-block-checkout__sidebar,
body.woocommerce-cart .wc-block-cart__sidebar {
	background-color: var(--color-secondary);
	border-radius: var(--radius);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	grid-template-columns: minmax(0, 1fr);
}

/* Empty sidebar notices sit beside the summary and steal half the column. */
body.woocommerce-checkout .wc-block-checkout__sidebar > .wc-block-components-notices:empty,
body.woocommerce-checkout .wc-block-checkout__sidebar > .wc-block-components-notices:not(:has(*)) {
	display: none;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	flex: 0 0 0;
	overflow: hidden;
}

/* Order summary should fill its sidebar column, not shrink to the item text. */
body.woocommerce-checkout .wc-block-checkout__sidebar > .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout .checkout-order-summary-block-fill,
body.woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-components-order-summary-item,
body.woocommerce-checkout .wc-block-components-panel,
body.woocommerce-checkout .wc-block-components-totals-wrapper {
	width: 100%;
	max-width: none;
	flex: 1 1 auto;
	box-sizing: border-box;
	align-self: stretch;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-metadata {
	max-width: none;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wp-block-woocommerce-checkout-actions-block .wc-block-components-button,
body.woocommerce-cart .wc-block-cart__submit-button {
	background-color: var(--color-primary) !important;
	color: var(--button-text-color) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	text-transform: none !important;
	font-weight: 500 !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: color-mix(in srgb, var(--color-primary) 90%, black) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
}

/* Mobile: form first, order summary second (source order already matches DOM order). */

/* =====================================================================
   Thank-you page (Section 22.8)
   ===================================================================== */

body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 1.5rem;
	background-color: var(--color-secondary);
	border-radius: var(--radius);
	margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}
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;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
}

/* =====================================================================
   Misc scoped hover-safety utilities
   ===================================================================== */

.tabular-nums { font-variant-numeric: tabular-nums; }
