/* ==========================================================================
   Set in Stone Fine Gems — theme.css
   ========================================================================== */

:root {
	--color-background: #f9f8f5;
	--color-foreground: #272421;
	--color-card: #f5f3ef;
	--color-primary: #2c2926;
	--color-primary-foreground: #f9f8f5;
	--color-secondary: #f0eeea;
	--color-muted: #e9e6e2;
	--color-muted-foreground: #726b65;
	--color-accent: #b9a483;
	--color-destructive: #b42d2d;
	--color-border: #e2ded9;

	--font-display: 'Cormorant Garamond', Georgia, serif;
	--font-body: 'Jost', system-ui, sans-serif;

	/* Tailwind-aligned type scale (base 16px) — matches src/index.css + components */
	--text-xs: 0.75rem;
	--text-sm: 0.875rem;
	--text-base: 1rem;
	--text-lg: 1.125rem;
	--text-xl: 1.25rem;
	--text-2xl: 1.5rem;
	--text-3xl: 1.875rem;
	--text-4xl: 2.25rem;
	--text-5xl: 3rem;
	--text-6xl: 3.75rem;
	--text-7xl: 4.5rem;
	--leading-snug: 1.375;
	--leading-relaxed: 1.625;
	--leading-tight: 1.25;
	--tracking-eyebrow: 0.28em;
	--tracking-nav: 0.18em;
	--tracking-cta: 0.22em;
	--tracking-cta-tight: 0.2em;
	--tracking-hero-eyebrow: 0.32em;

	--radius: 2px;
	--card-radius: 2px;
	--logo-height: 5.25rem;
	--logo-height-lg: 6rem;
	--header-height: 6rem;

	--btn-radius: 0px;
	--btn-height: 52px;
	--btn-padding: 1rem 2.25rem;
	--btn-font-size: var(--text-xs);
	--btn-font-size-compact: var(--text-xs);
	--btn-font-weight: 400;
	--btn-letter-spacing: var(--tracking-cta-tight);
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.6rem;

	--color-button-text: var(--color-primary-foreground);
	--checkout-max-width: 1280px;
	--checkout-gap: 2rem;

	--shadow-elevated: 0 10px 50px -12px rgba(39, 36, 33, 0.14);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
.site-main,
.entry-content,
.page-content-wrap,
.theme-checkout-shell {
	min-width: 0;
	max-width: 100%;
}
table { max-width: 100%; }
.entry-content,
.product-description,
.cart-drawer-item-name {
	overflow-wrap: anywhere;
	word-break: break-word;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; }

a[href],
button,
[role="button"],
summary,
label[for],
select,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
.theme-card-link,
.link-cta,
.view-all-btn,
.filter-dropdown-trigger,
.filter-option,
.gallery-item,
.faq-question,
.cart-toggle,
.menu-toggle,
.modal-close,
.lightbox-close,
.cart-drawer-remove,
.contact-card,
.site-brand {
	cursor: pointer;
}
ul { list-style: none; margin: 0; padding: 0; }

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;
}

.container-wide {
	width: 100%;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding-left: 2rem; padding-right: 2rem; }
}

.eyebrow {
	font-size: 11px;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	font-weight: 400;
	display: block;
}

.scroll-mt { scroll-margin-top: 5rem; }

/* Cover / full-bleed image rule (Section 15) — explicit exclusion list. */
img:not(.cover-img):not(.theme-product-card-img):not(.site-logo-img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .theme-product-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* --------------------------------------------------------------------
   Animations (Section 2.1)
   -------------------------------------------------------------------- */
@keyframes sisgFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sisgSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sisgHeroZoom { 0% { transform: scale(1); } 100% { transform: scale(1.07); } }
@keyframes sisgScaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.animate-fade-in { animation: sisgFadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: sisgSlideUp 0.6s var(--transition-smooth) forwards; }
.hero-bg-video { animation: sisgHeroZoom 22s ease-in-out infinite alternate; }

.reveal-item {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.reveal-item[data-reveal="scale"] { transform: scale(0.96); }
.reveal-item[data-reveal="stagger"] { transition-delay: calc(var(--stagger-index, 0) * 90ms); }
.reveal-item.is-visible { opacity: 1; transform: none; }

/* Customizer preview + no-JS fallback: never hide content (Section 2.1 rule 5). */
body.is-customizer .reveal-item,
.no-js .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item, .hero-bg-video, .animate-fade-in, .animate-slide-up {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */
.btn-primary, .btn-hero-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	background-color: var(--color-foreground);
	color: var(--color-background);
	border: none;
	padding: var(--btn-padding);
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	font-weight: var(--btn-font-weight);
	transition: opacity 0.2s ease;
}
.btn-primary:hover, .btn-hero-primary:hover { opacity: 0.9; }
.btn-hero-primary {
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 400;
	letter-spacing: var(--tracking-cta);
	text-transform: uppercase;
}
.btn-hero-primary:hover { background-color: color-mix(in srgb, var(--color-background) 90%, transparent); }

.btn-hero-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.85);
	border: 1px solid rgba(255,255,255,0.35);
	padding: 1rem 2.5rem;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 400;
	letter-spacing: var(--tracking-cta);
	text-transform: uppercase;
	transition: color 0.2s ease, border-color 0.2s ease;
	background: transparent;
}
.btn-hero-outline:hover { color: #fff; border-color: #fff; }

.link-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 400;
	letter-spacing: var(--tracking-cta);
	text-transform: uppercase;
	border-bottom: 1px solid var(--color-foreground);
	padding-bottom: 0.25rem;
	background: none;
	border-top: none; border-left: none; border-right: none;
	color: var(--color-foreground);
	transition: opacity 0.2s ease;
}
.link-cta:hover { opacity: 0.6; }

/* --------------------------------------------------------------------
   Header
   -------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	background: transparent;
	transition: background-color 0.5s ease, border-color 0.5s ease;
	border-bottom: 1px solid transparent;
}
body.admin-bar .site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}
.site-header.is-solid {
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(6px);
	border-bottom-color: var(--color-border);
}
.site-header .container-wide {
	max-width: 100%;
	min-width: 0;
}
.site-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 6rem;
	gap: 1rem;
	width: 100%;
	min-width: 0;
}
@media (min-width: 1024px) {
	.site-nav { height: 7rem; }
	:root { --header-height: 7rem; }
}

.site-brand { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.site-header .site-brand .site-logo-img {
	height: var(--logo-height);
	width: auto !important;
	max-width: none;
	display: block;
	flex-shrink: 0;
	object-fit: contain;
}
@media (min-width: 1024px) {
	.site-header .site-brand .site-logo-img {
		height: var(--logo-height-lg);
	}
}
.site-footer .site-logo-img {
	height: var(--logo-height-lg);
	width: auto !important;
	max-width: none;
	display: block;
	object-fit: contain;
}
/* WooCommerce templates (PDP, cart, checkout, account) — same header logo scale as home. */
body.single-product .site-header .site-brand .site-logo-img,
body.woocommerce-cart .site-header .site-brand .site-logo-img,
body.woocommerce-checkout .site-header .site-brand .site-logo-img,
body.woocommerce-account .site-header .site-brand .site-logo-img,
body.theme-no-hero .site-header .site-brand .site-logo-img,
body.woocommerce-page .site-header .site-brand .site-logo-img {
	height: var(--logo-height);
	width: auto !important;
	max-width: none;
}
@media (min-width: 1024px) {
	body.single-product .site-header .site-brand .site-logo-img,
	body.woocommerce-cart .site-header .site-brand .site-logo-img,
	body.woocommerce-checkout .site-header .site-brand .site-logo-img,
	body.woocommerce-account .site-header .site-brand .site-logo-img,
	body.theme-no-hero .site-header .site-brand .site-logo-img,
	body.woocommerce-page .site-header .site-brand .site-logo-img {
		height: var(--logo-height-lg);
	}
}
.site-logo-text { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-foreground); }
.site-header:not(.is-solid) .site-logo-text { color: #fff; }
.site-brand-name { font-family: var(--font-display); font-size: 1.1rem; margin-left: 0.5rem; }

.site-nav-desktop {
	display: none;
	align-items: center;
	gap: 1.75rem;
	flex-shrink: 0;
}
@media (min-width: 1024px) { .site-nav-desktop { display: flex; } }

.theme-nav-list { display: flex; align-items: center; gap: 1.75rem; }
.theme-nav-list a, .theme-nav-fallback a {
	font-size: 11px;
	font-family: var(--font-body);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-foreground);
	transition: opacity 0.3s ease;
}
.site-header:not(.is-solid) .theme-nav-list a,
.site-header:not(.is-solid) .theme-nav-fallback a { color: rgba(255,255,255,0.85); }
.theme-nav-list a:hover, .theme-nav-fallback a:hover { opacity: 0.6; }

.cart-toggle {
	position: relative;
	background: none;
	border: none;
	padding: 0.5rem;
	color: var(--color-foreground);
	display: inline-flex;
}
.site-header:not(.is-solid) .cart-toggle { color: #fff; }
.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	width: 16px; height: 16px;
	display: flex; align-items: center; justify-content: center;
	font-size: 10px; font-weight: 500;
	background: var(--color-accent);
	color: var(--color-foreground);
	border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

.site-nav-mobile {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex-shrink: 0;
}
@media (min-width: 1024px) { .site-nav-mobile { display: none; } }
.menu-toggle { background: none; border: none; padding: 0.75rem; color: var(--color-foreground); }
.site-header:not(.is-solid) .menu-toggle { color: #fff; }
body.mobile-menu-open .site-header { background-color: color-mix(in srgb, var(--color-background) 95%, transparent); }

.mobile-menu-panel {
	display: none;
	border-top: 1px solid var(--color-border);
	padding: 1rem 0;
	width: 100%;
}
.mobile-menu-panel.is-open {
	display: block;
	animation: sisgFadeIn 0.25s ease;
}
.theme-nav-list-mobile,
.mobile-menu-panel .theme-nav-list-mobile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mobile-menu-panel .theme-nav-list,
.mobile-menu-panel .theme-nav-fallback {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.theme-nav-list-mobile a,
.mobile-menu-panel .theme-nav-list a,
.mobile-menu-panel .theme-nav-fallback a {
	display: block;
	width: 100%;
	padding: 0.75rem 0;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 400;
	letter-spacing: var(--tracking-nav);
	text-transform: uppercase;
	text-align: left;
	color: var(--color-foreground);
	transition: opacity 0.3s ease;
}
.theme-nav-list-mobile a:hover,
.mobile-menu-panel .theme-nav-list a:hover { opacity: 0.6; }
body.mobile-menu-open .site-header:not(.is-solid) .theme-nav-list-mobile a { color: var(--color-foreground); }

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
body:not(.theme-no-hero) .site-main { padding-top: 0; }
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(39,36,33,0.70), rgba(39,36,33,0.60) 50%, rgba(39,36,33,0.80));
}
.hero-content { position: relative; z-index: 1; text-align: center; padding: 8rem 1.5rem; max-width: 48rem; }
.hero-eyebrow {
	font-size: 11px;
	font-family: var(--font-body);
	font-weight: 400;
	letter-spacing: var(--tracking-hero-eyebrow);
	text-transform: uppercase;
	color: rgba(255,255,255,0.7);
}
.hero-title {
	font-size: var(--text-4xl);
	color: #fff;
	margin-top: 1.5rem;
	line-height: 1.05;
	letter-spacing: -0.025em;
}
@media (min-width: 768px) { .hero-title { font-size: var(--text-6xl); } }
@media (min-width: 1024px) { .hero-title { font-size: var(--text-7xl); } }
.hero-subtitle {
	color: rgba(255,255,255,0.75);
	margin-top: 1.75rem;
	font-size: var(--text-base);
	font-family: var(--font-body);
	line-height: var(--leading-relaxed);
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}
.hero-ctas {
	margin-top: 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 1rem;
	width: 100%;
}
.hero-ctas .btn-hero-primary,
.hero-ctas .btn-hero-outline {
	width: 100%;
	box-sizing: border-box;
}
@media (min-width: 640px) {
	.hero-ctas { flex-direction: row; align-items: center; }
	.hero-ctas .btn-hero-primary,
	.hero-ctas .btn-hero-outline { width: auto; }
}

/* --------------------------------------------------------------------
   Section headings (Section 2.2.5 — scoped per section)
   -------------------------------------------------------------------- */
.section-intro { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-lead {
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	margin-top: 1.25rem;
	line-height: var(--leading-relaxed);
}
.section-heading { font-size: var(--text-3xl); margin: 1rem 0; }
@media (min-width: 768px) { .section-heading { font-size: var(--text-5xl); } }

.about-heading { font-size: var(--text-3xl); line-height: 1.1; }
@media (min-width: 768px) { .about-heading { font-size: var(--text-4xl); } }
@media (min-width: 1024px) { .about-heading { font-size: var(--text-5xl); } }

.offerings-section-heading { font-size: 1.875rem; }
@media (min-width: 768px) { .offerings-section-heading { font-size: 3rem; } }

.contact-heading { font-size: 1.875rem; }
@media (min-width: 768px) { .contact-heading { font-size: 3rem; } }

/* --------------------------------------------------------------------
   Shop section: filters
   -------------------------------------------------------------------- */
.shop-section, .about-section, .services-section, .sourcing-section,
.gallery-section, .partners-section, .wholesale-section, .faq-section {
	padding: 5rem 0;
}
@media (min-width: 768px) { .shop-section, .about-section, .services-section, .sourcing-section,
.gallery-section, .partners-section, .wholesale-section, .faq-section { padding: 7rem 0; } }
.about-section, .sourcing-section, .partners-section { background-color: color-mix(in srgb, var(--color-secondary) 40%, transparent); }
.shop-section, .about-section, .services-section, .sourcing-section,
.gallery-section, .partners-section, .wholesale-section, .faq-section,
.contact-section { border-top: 1px solid var(--color-border); }
.shop-section { border-top: none; }

.gem-filters { margin-bottom: 2.5rem; }
.filters-toolbar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 1rem;
}
@media (min-width: 768px) { .filters-toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }

.filter-search { position: relative; width: 100%; }
@media (min-width: 768px) { .filter-search { width: 22rem; } }
.filter-search svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.filter-search-input {
	width: 100%;
	padding: 0.5rem 0 0.5rem 1.75rem;
	border: none;
	border-bottom: 1px solid var(--color-border);
	background: transparent;
	font-size: 0.875rem;
	font-family: var(--font-body);
	color: var(--color-foreground);
}
.filter-search-input:focus { outline: none; border-color: var(--color-foreground); }

.filters-desktop {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	max-width: 100%;
}
@media (min-width: 768px) { .filters-desktop { display: flex; } }

.filters-mobile-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 90;
	background: color-mix(in srgb, var(--color-foreground) 40%, transparent);
}
.filters-mobile-backdrop.is-visible { display: block; }

.filters-mobile-sheet-chrome { display: none; }

@media (max-width: 767px) {
	.filters-desktop.is-mobile-open {
		display: flex !important;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 100;
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
		gap: 1.5rem;
		max-height: 85vh;
		overflow-y: auto;
		margin: 0;
		padding: 1.5rem;
		background: var(--color-card);
		border-top: 1px solid var(--color-border);
		box-shadow: 0 -12px 40px -20px rgba(39, 36, 33, 0.35);
	}
	.filters-desktop.is-mobile-open .filters-mobile-sheet-chrome {
		display: flex;
		flex-shrink: 0;
	}
	.filters-desktop.is-mobile-open .filters-mobile-sheet-header {
		align-items: center;
		justify-content: space-between;
		margin: -0.25rem 0 0;
	}
	.filters-desktop.is-mobile-open .filters-mobile-sheet-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0.35rem;
		border: none;
		background: transparent;
		color: var(--color-muted-foreground);
		cursor: pointer;
	}
	.filters-desktop.is-mobile-open .filters-mobile-sheet-close:hover { color: var(--color-foreground); }
	.filters-desktop.is-mobile-open .filter-result-count,
	.filters-desktop.is-mobile-open > .filter-clear:not(.filters-mobile-sheet-footer .filter-clear) {
		display: none;
	}
	.filters-desktop.is-mobile-open .filter-dropdown {
		flex-direction: column;
		align-items: stretch;
	}
	.filters-desktop.is-mobile-open .filter-dropdown-trigger {
		pointer-events: none;
		border: none;
		padding: 0 0 0.5rem;
		justify-content: flex-start;
		gap: 0;
		font-size: var(--text-xs);
		letter-spacing: var(--tracking-eyebrow);
		text-transform: uppercase;
		color: var(--color-muted-foreground);
	}
	.filters-desktop.is-mobile-open .filter-dropdown-trigger svg,
	.filters-desktop.is-mobile-open .filter-dropdown-active { display: none; }
	.filters-desktop.is-mobile-open .filter-dropdown-panel {
		display: block;
		position: static;
		width: 100%;
		padding: 0;
		border: none;
		box-shadow: none;
		background: transparent;
	}
	.filters-desktop.is-mobile-open .filters-mobile-sheet-footer {
		align-items: center;
		gap: 1rem;
		padding-top: 0.5rem;
		border-top: 1px solid var(--color-border);
		margin-top: 0.25rem;
	}
	.filters-desktop.is-mobile-open .filters-mobile-sheet-done {
		flex: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0.75rem 1.25rem;
		border: none;
		background: var(--color-foreground);
		color: var(--color-background);
		font-family: var(--font-body);
		font-size: var(--text-xs);
		letter-spacing: 0.18em;
		text-transform: uppercase;
		cursor: pointer;
	}
}

body.sisg-filters-sheet-open { overflow: hidden; }
.filters-mobile { display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .filters-mobile { display: none; } }
.filters-mobile-trigger, .filter-clear-inline {
	padding: 0.5rem 1rem;
	border: 1px solid var(--color-border);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	background: transparent;
	color: var(--color-foreground);
}
.filter-result-count { font-size: 0.75rem; color: var(--color-muted-foreground); padding-left: 0.5rem; }

.filter-dropdown { position: relative; }
.filter-dropdown-trigger {
	display: flex; align-items: center; gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--color-border);
	background: transparent;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease, border-color 0.2s ease;
}
.filter-dropdown-trigger:hover { color: var(--color-foreground); border-color: color-mix(in srgb, var(--color-foreground) 40%, transparent); }
.filter-dropdown-active { color: var(--color-accent); text-transform: none; letter-spacing: normal; }
.filter-dropdown-panel {
	display: none;
	position: absolute; left: 0; top: calc(100% + 0.5rem);
	z-index: 30; width: 240px;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	box-shadow: 0 10px 30px -18px rgba(39,36,33,0.5);
	padding: 1rem;
}
.filter-dropdown-panel.is-open { display: block; }
.filter-option {
	display: flex; align-items: center; gap: 0.75rem;
	width: 100%;
	padding: 0.5rem 0;
	background: none; border: none;
	text-align: left;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
}
.filter-option:hover, .filter-option.is-active { color: var(--color-foreground); }
.filter-option-dot { width: 14px; height: 14px; border: 1px solid var(--color-border); display: inline-flex; align-items: center; justify-content: center; }
.filter-option.is-active .filter-option-dot { border-color: var(--color-accent); background: var(--color-accent); }

.filter-clear {
	font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
	background: none; border: none; color: var(--color-muted-foreground);
	text-decoration: underline; text-underline-offset: 4px;
}
.filter-clear:hover { color: var(--color-foreground); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 1rem; }

/* Dual-handle range slider (Section 31.4) */
.range-label { margin-top: 0.75rem; font-size: 0.75rem; color: var(--color-muted-foreground); }
.price-range-wrapper { position: relative; height: 1.5rem; margin-top: 0.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: var(--color-border); }
.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: 50%;
	background: var(--color-background);
	border: 2px solid var(--color-primary);
	cursor: pointer;
	margin-top: 0;
}
.range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--color-background);
	border: 2px solid var(--color-primary);
	cursor: pointer;
}
.range-input::-moz-range-track { background: transparent; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.woocommerce-inactive-note { color: var(--color-destructive); }

/* --------------------------------------------------------------------
   Product grid & card
   -------------------------------------------------------------------- */
.theme-product-grid, .products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	list-style: none;
	margin: 0; padding: 0;
}
@media (min-width: 640px) { .theme-product-grid, .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-product-grid, .products { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }

.theme-card-hidden { display: none !important; }

.theme-product-card-wrap { min-width: 0; }
.theme-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.theme-product-card-main {
	display: block;
	color: inherit;
	text-decoration: none;
}
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: var(--color-secondary);
	margin-bottom: 1rem;
	z-index: 1;
}
.theme-product-card:hover .theme-product-card-img { transform: scale(1.03); }
.theme-product-card-img { transition: transform 900ms ease-out; }
.theme-product-badge {
	position: absolute; top: 0.75rem; left: 0.75rem;
	padding: 0.4rem 0.75rem;
	font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
	background: var(--color-foreground); color: var(--color-background);
	z-index: 3;
}
.theme-product-card__info {
	flex: 0 0 auto;
}
.theme-product-card__info h3,
.theme-product-card__info p {
	margin: 0;
}
.theme-card-title-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	min-width: 0;
}
.theme-product-card-title {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	line-height: var(--leading-tight);
	font-weight: 400;
	min-width: 0;
}
.theme-product-card-price {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	line-height: var(--leading-tight);
	flex-shrink: 0;
}
/* Lovable ProductCard: mt-1.5 / mt-0.5 on meta lines, text-xs line-height ~1rem */
.theme-product-card-meta {
	margin-top: 0.375rem;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	line-height: 1rem;
	color: var(--color-muted-foreground);
	letter-spacing: 0.025em;
}
.theme-product-card-meta-sub {
	margin-top: 0.125rem;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	line-height: 1rem;
	color: color-mix(in srgb, var(--color-muted-foreground) 80%, transparent);
	letter-spacing: 0.025em;
}

.theme-product-card__actions {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
}
.theme-product-card-view-link {
	font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
	border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 40%, transparent);
	padding-bottom: 0.15rem;
	transition: border-color 0.2s ease;
}
.theme-product-card-view-link:hover { border-color: var(--color-foreground); }

/* Card-scoped add-to-cart override (Section 11.4.1 card variant). */
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-product-card-add {
	background: none !important;
	border: none !important;
	padding: 0.25rem 0 !important;
	min-height: unset !important;
	font-size: 11px !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase !important;
	color: var(--color-muted-foreground) !important;
	display: inline !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-product-card-add:hover { color: var(--color-foreground) !important; }

.shop-view-all { text-align: center; margin-top: 3.5rem; }
.view-all-btn {
	background: none; border: none;
	font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
	border-bottom: 1px solid var(--color-foreground);
	padding-bottom: 0.25rem;
	transition: opacity 0.2s ease;
}
.view-all-btn:hover { opacity: 0.6; }

.shop-empty-state { text-align: center; padding: 5rem 0; }
.shop-empty-state p { color: var(--color-muted-foreground); }
.filter-clear-inline { margin-top: 1rem; border: none; background: none; text-decoration: underline; text-underline-offset: 4px; }

.wholesale-callout {
	margin-top: 5rem;
	border: 1px solid var(--color-border);
	background-color: color-mix(in srgb, var(--color-card) 60%, transparent);
	padding: 2.5rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
@media (min-width: 1024px) { .wholesale-callout { flex-direction: row; align-items: center; gap: 3rem; padding: 2.5rem 3rem; } }
.wholesale-callout-text h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .wholesale-callout-text h3 { font-size: 1.875rem; } }
.wholesale-callout-text p {
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	max-width: 36rem;
	line-height: var(--leading-relaxed);
}
.shrink-0 { flex-shrink: 0; }

/* --------------------------------------------------------------------
   About / media
   -------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.about-media-frame { position: relative; aspect-ratio: 4/5; max-width: 28rem; margin: 0 auto; overflow: hidden; }
@media (min-width: 1024px) { .about-media-frame { margin: 0; } }
.about-copy p {
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	line-height: var(--leading-relaxed);
	margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------
   Services
   -------------------------------------------------------------------- */
.services-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background-color: var(--color-border);
	border: 1px solid var(--color-border);
}
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service-card {
	position: relative;
	overflow: hidden;
	padding: 2rem;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background-color: var(--color-foreground);
}
@media (min-width: 768px) { .service-card { padding: 3rem; min-height: 320px; } }
.service-card-img { transition: transform 500ms ease-out; }
.service-card:hover .service-card-img { transform: scale(1.04); }
.service-card-overlay {
	position: absolute; inset: 0;
	background: color-mix(in srgb, var(--color-foreground) 55%, transparent);
	background-image: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 75%, transparent), color-mix(in srgb, var(--color-foreground) 40%, transparent), color-mix(in srgb, var(--color-foreground) 25%, transparent));
	transition: opacity 500ms ease;
}
.service-card:hover .service-card-overlay { opacity: 0.8; }
.service-card-content { position: relative; z-index: 1; color: #fff; }
.service-card-icon { color: var(--color-accent); display: inline-flex; margin-bottom: 1.5rem; }
.service-card-number { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.75rem; }
.service-card-content h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #fff; }
@media (min-width: 768px) { .service-card-content h3 { font-size: 1.875rem; } }
.service-card-content p {
	font-size: var(--text-sm);
	font-family: var(--font-body);
	color: rgba(255,255,255,0.75);
	line-height: var(--leading-relaxed);
	max-width: 24rem;
}

/* --------------------------------------------------------------------
   Sourcing / Wholesale forms
   -------------------------------------------------------------------- */
.sourcing-grid, .wholesale-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .sourcing-grid, .wholesale-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.sourcing-copy p, .wholesale-copy p {
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	line-height: var(--leading-relaxed);
}
.sourcing-heading, .wholesale-heading { font-size: var(--text-3xl); line-height: 1.1; }
@media (min-width: 768px) { .sourcing-heading, .wholesale-heading { font-size: var(--text-4xl); } }
@media (min-width: 1024px) { .sourcing-heading, .wholesale-heading { font-size: var(--text-5xl); } }

.theme-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-row-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row-4 { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; }
.form-field label { margin-bottom: 0.5rem; }
.form-field input, .form-field textarea, .form-field select {
	width: 100%;
	padding: 0.75rem 1rem;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	font-size: var(--text-sm);
	font-family: var(--font-body);
	color: var(--color-foreground);
	transition: border-color 0.2s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--color-muted-foreground); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--color-foreground); }
.form-field textarea { resize: none; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 0.5rem; }
.form-error { color: var(--color-destructive); font-size: 0.875rem; }

.form-success {
	border: 1px solid var(--color-border);
	background: var(--color-card);
	padding: 2.5rem;
	text-align: center;
}
.form-success-icon {
	width: 3rem; height: 3rem; margin: 0 auto 1.25rem;
	border: 1px solid var(--color-accent);
	color: var(--color-accent);
	display: flex; align-items: center; justify-content: center;
}
.form-success h3 {
	font-family: var(--font-display);
	font-size: var(--text-2xl);
	font-weight: 400;
	margin-bottom: 0.75rem;
}
.form-success p {
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
	max-width: 28rem;
	margin: 0 auto;
}
.form-success-reset {
	margin-top: 1.5rem;
	background: none; border: none;
	font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
	text-decoration: underline; text-underline-offset: 4px;
}

/* --------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; } }
.gallery-item {
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: var(--color-secondary);
	border: none; padding: 0;
}
.gallery-item img { transition: transform 900ms ease-out; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-empty { text-align: center; padding: 3.5rem; border: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-card) 60%, transparent); }
.gallery-empty p { color: var(--color-muted-foreground); }
.gallery-cta { margin-top: 3.5rem; text-align: center; }

.theme-gallery-lightbox {
	position: fixed; inset: 0; z-index: 60;
	background: color-mix(in srgb, var(--color-foreground) 85%, transparent);
	display: flex; align-items: center; justify-content: center;
	padding: 1rem;
}
.theme-gallery-lightbox[hidden] { display: none; }
.theme-gallery-lightbox img { max-width: 100%; max-height: 80vh; width: auto; height: auto; object-fit: contain; margin: 0 auto; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: #fff; padding: 0.75rem; }

/* --------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------- */
.partners-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .partners-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .partners-grid { grid-template-columns: 1fr 1fr 1fr; } }
.partner-card { display: flex; flex-direction: column; border: 1px solid var(--color-border); background: var(--color-card); transition: border-color 0.5s ease; }
.partner-card:hover { border-color: color-mix(in srgb, var(--color-foreground) 30%, transparent); }
.partner-card-img-wrap { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.partner-card-img { transition: transform 0.5s ease, filter 0.5s ease; }
.partner-card:hover .partner-card-img { transform: scale(1.03); filter: brightness(1.06); }
.partner-card-body { flex: 1; padding: 1.75rem; }
.partner-card-body h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.partner-card-body p {
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	margin-top: 1rem;
	line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: 5rem; } }
.faq-heading { font-size: var(--text-3xl); line-height: 1.1; }
@media (min-width: 768px) { .faq-heading { font-size: var(--text-4xl); } }
@media (min-width: 1024px) { .faq-heading { font-size: var(--text-5xl); } }
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
	width: 100%;
	display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
	padding: 1.5rem 0;
	background: none; border: none;
	text-align: left;
	color: var(--color-foreground);
}
.faq-question span {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--text-xl);
	line-height: var(--leading-snug);
}
@media (min-width: 768px) { .faq-question span { font-size: var(--text-2xl); } }
.faq-chevron { flex-shrink: 0; margin-top: 0.25rem; transition: transform 0.3s ease; }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding-bottom: 1.5rem; margin-top: -0.25rem; }
.faq-answer p {
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
	max-width: 42rem;
}
@media (min-width: 768px) {
	.faq-answer p { font-size: var(--text-base); }
}

/* --------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------- */
.contact-section { position: relative; color: var(--color-primary-foreground); overflow: hidden; padding: 5rem 0; }
@media (min-width: 768px) { .contact-section { padding: 7rem 0; } }
.contact-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.contact-inner { position: relative; z-index: 1; text-align: center; }
.contact-eyebrow { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.contact-heading { color: #fff; margin-bottom: 1.5rem; }
.contact-lead {
	color: rgba(255,255,255,0.7);
	font-family: var(--font-body);
	line-height: var(--leading-relaxed);
	max-width: 36rem;
	margin: 0 auto 3rem;
}
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 56rem; margin: 0 auto 3rem; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: 1fr 1fr 1fr; } }
.contact-card {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	padding: 2rem 1.5rem;
	border: 1px solid rgba(255,255,255,0.2);
	background: rgba(255,255,255,0.04);
	transition: border-color 0.3s ease, background-color 0.3s ease;
	color: #fff;
}
.contact-card:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.07); }
.contact-card svg { color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.contact-card-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.contact-card-value {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	word-break: break-all;
}
@media (min-width: 768px) {
	.contact-card-value { font-size: var(--text-base); }
}

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); }
.site-footer-inner {
	padding-top: 3rem;
	padding-bottom: 3rem;
}
@media (min-width: 1024px) {
	.site-footer-inner {
		padding-top: 3.5rem;
		padding-bottom: 3.5rem;
	}
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { gap: 4rem; } }
.footer-tagline {
	margin-top: 1.25rem;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	color: var(--color-muted-foreground);
	max-width: 20rem;
	line-height: var(--leading-relaxed);
}
.footer-nav .eyebrow,
.footer-contact .eyebrow {
	margin-bottom: 1.25rem;
}
.footer-nav-list,
.footer-contact ul {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.footer-nav a,
.footer-contact a,
.theme-nav-fallback a {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 400;
	text-transform: none;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--color-foreground); }
.footer-contact li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.footer-bottom {
	margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border);
	display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copyright { font-size: 0.75rem; color: color-mix(in srgb, var(--color-muted-foreground) 70%, transparent); }
.footer-credit { font-size: 0.75rem; }
.footer-credit a { color: var(--color-muted-foreground); font-weight: 500; }
.footer-credit a:hover { color: var(--color-foreground); }

/* --------------------------------------------------------------------
   Cart drawer + overlay
   -------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 55;
	background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	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; top: 0; right: 0; height: 100%;
	width: 100%; max-width: 32rem;
	background: var(--color-background);
	z-index: 56;
	box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 2rem; border-bottom: 1px solid var(--color-border); }
.cart-drawer-header h2 {
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-cta-tight);
	text-transform: uppercase;
	font-weight: 500;
	font-family: var(--font-body);
}
.cart-drawer-close {
	background: none;
	border: none;
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-cta-tight);
	text-transform: uppercase;
	font-family: var(--font-body);
}
.cart-drawer-close:hover { opacity: 0.6; }

.cart-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.cart-drawer-empty svg { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.cart-drawer-empty p {
	color: var(--color-muted-foreground);
	margin-bottom: 1.5rem;
	font-family: var(--font-body);
	font-size: var(--text-sm);
}
.cart-drawer-continue {
	background: none;
	border: none;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-cta-tight);
	text-transform: uppercase;
	text-decoration: underline;
}

.cart-drawer-items { flex: 1; overflow: auto; padding: 0 2rem; }
.cart-drawer-item { display: flex; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--color-border); }
.cart-drawer-item-img { width: 140px; height: 140px; flex-shrink: 0; background: var(--color-secondary); display: block; overflow: hidden; }
.cart-drawer-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.cart-drawer-item-name {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	display: block;
}
.cart-drawer-item-name:hover { opacity: 0.7; }
.cart-drawer-item-price {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	margin-top: 0.25rem;
}
.cart-drawer-item-meta {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--color-muted-foreground);
	margin-top: 0.25rem;
}
.cart-drawer-item-controls { margin-top: 0.75rem; }
.cart-qty-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.cart-qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); margin-left: 0.75rem; }
.cart-qty-stepper button {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	background: none;
	border: none;
}
.cart-qty-stepper button:hover { background: var(--color-secondary); }
.cart-qty-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.cart-qty-stepper span {
	width: 32px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	border-left: 1px solid var(--color-border);
	border-right: 1px solid var(--color-border);
}
.cart-drawer-remove {
	display: block;
	margin-top: 0.5rem;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--color-muted-foreground);
	text-decoration: underline;
	background: none;
	border: none;
}
.cart-drawer-remove:hover { color: var(--color-foreground); }

.cart-drawer-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--color-border); }
.cart-drawer-subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	margin-bottom: 1rem;
}
.cart-drawer-checkout-btn {
	display: block; width: 100%; text-align: center;
	background: var(--color-foreground); color: var(--color-background);
	padding: 1rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
	transition: opacity 0.2s ease;
}
.cart-drawer-checkout-btn:hover { opacity: 0.9; }

/* --------------------------------------------------------------------
   Contact modal
   -------------------------------------------------------------------- */
#theme-contact-overlay {
	position: fixed; inset: 0; z-index: 65;
	background: color-mix(in srgb, var(--color-foreground) 40%, transparent);
	opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
#theme-contact-overlay.is-open { opacity: 1; pointer-events: auto; }
#theme-contact-modal {
	position: fixed; top: 50%; left: 50%;
	transform: translate(-50%, -48%) scale(0.97);
	z-index: 66;
	width: 92%; max-width: 32rem; max-height: 90vh; overflow-y: auto;
	background: var(--color-background);
	padding: 2rem;
	opacity: 0; visibility: hidden;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
#theme-contact-modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--color-muted-foreground); }
.modal-title {
	font-family: var(--font-display);
	font-size: var(--text-3xl);
	font-weight: 400;
	margin-bottom: 0.5rem;
}
.modal-subtitle {
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	margin-bottom: 1rem;
}
.modal-contact-info { display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.875rem; color: var(--color-muted-foreground); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 1rem 0; margin-bottom: 1rem; }
.modal-contact-info div { display: flex; align-items: center; gap: 0.65rem; }
.modal-success { text-align: center; padding: 2rem 0; }
.modal-success-icon { width: 3rem; height: 3rem; border: 1px solid var(--color-accent); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.modal-success h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.modal-success p {
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
}
.modal-success p a { text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------------
   404 / generic pages
   -------------------------------------------------------------------- */
.not-found-page { min-height: 60vh; display: flex; align-items: center; padding-top: 8rem; }
.not-found-inner { text-align: center; margin: 0 auto; }
.not-found-inner h1 { font-size: 3rem; margin-bottom: 1rem; }
.not-found-inner p { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.not-found-link { text-decoration: underline; }
.generic-content, .page-content-wrap { padding-top: 8rem; padding-bottom: 5rem; }
.page-title { font-size: 2rem; margin-bottom: 2rem; }

/* Home hero fills viewport under fixed transparent header. */
body.theme-no-hero .site-main:not(.single-product-main):not(.theme-checkout-main),
.page-content-wrap { padding-top: 8rem; }
body:not(.theme-no-hero) .hero-section { padding-top: 0; }

/* ==========================================================================
   WooCommerce overrides
   ========================================================================== */

/* Add to cart button — style override (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Hide "View cart" injected after AJAX add (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* 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-family: var(--font-body); font-weight: 600; font-style: normal; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}
.single-product .theme-variation-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.25rem;
}
.single-product .theme-variation-pill {
	font-family: var(--font-body);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-foreground);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.single-product .theme-variation-pill:hover:not(:disabled) {
	border-color: var(--color-foreground);
}
.single-product .theme-variation-pill.is-selected {
	background: var(--color-foreground);
	color: var(--color-background);
	border-color: var(--color-foreground);
}
.single-product .theme-variation-pill:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.single-product .theme-variable-product-form table.variations {
	margin-bottom: 1.5rem;
}
.single-product .theme-variable-product-form .theme-add-to-cart-area {
	flex-direction: column;
	margin-top: 0;
}
.cart-item-meta-list {
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0;
	font-family: var(--font-body);
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
}
.cart-item-meta-list li { margin: 0.15rem 0; }
.cart-item-meta-label { text-transform: capitalize; }

/* Single product layout (ProductDetail.tsx pt-32 lg:pt-40, pb-20) */
body.theme-no-hero main.single-product-main,
main.single-product-main.site-main {
	padding-top: 8rem !important;
	padding-bottom: 5rem;
}
@media (min-width: 1024px) {
	main.single-product-main.site-main { padding-top: 10rem !important; }
}
body.woocommerce-cart .site-main,
body.woocommerce-cart .page-content-wrap {
	padding-top: var(--header-height, 6rem);
	padding-bottom: 4rem;
}
.single-product-top { padding-bottom: 0.125rem; }
.single-product-top .back-to-shop-wrap { padding-bottom: 0.5rem; }
.back-to-home-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
}
.back-to-home-link:hover { color: var(--color-foreground); }
.single-product-top .product-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 1rem 0 0;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
}
.product-breadcrumb a:hover { color: var(--color-foreground); }
.product-breadcrumb-current { color: var(--color-foreground); }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 5rem;
	min-width: 0;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 420px; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery { display: flex; gap: 0.75rem; }
.theme-product-thumbnails { display: flex; gap: 0.5rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumbnails-desktop { display: none; flex-direction: column; width: 4rem; flex-shrink: 0; }
@media (min-width: 768px) { .theme-product-thumbnails-desktop { display: flex; } }
.theme-product-thumbnails-mobile { display: flex; margin-top: 0.75rem; }
@media (min-width: 768px) { .theme-product-thumbnails-mobile { display: none; } }
.product-thumb { position: relative; aspect-ratio: 1/1; width: 100%; overflow: hidden; border: 1px solid transparent; opacity: 0.5; transition: opacity 0.2s ease, border-color 0.2s ease; background: none; padding: 0; }
.theme-product-thumbnails-mobile .product-thumb { width: 3.5rem; height: 3.5rem; }
.product-thumb.is-active, .product-thumb:hover { opacity: 1; }
.product-thumb.is-active { border-color: var(--color-foreground); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-product-main-wrap { flex: 1; min-width: 0; }
.theme-product-main-image { background: var(--color-secondary); overflow: hidden; }
.theme-product-main-image .theme-product-main-img {
	position: static !important;
	inset: auto !important;
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
	object-fit: cover;
}
.theme-product-thumb-img {
	position: static !important;
	inset: auto !important;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@media (min-width: 1024px) {
	.theme-product-info { padding-top: 0.5rem; }
}
.product-demo-badge {
	display: inline-block;
	margin-bottom: 1rem;
	font-family: var(--font-body);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	border: 1px solid var(--color-border);
	padding: 0.375rem 0.75rem;
}

.product-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--text-3xl);
	line-height: var(--leading-tight);
}
@media (min-width: 768px) { .product-title { font-size: var(--text-4xl); } }
.product-price-display {
	font-family: var(--font-body);
	font-size: var(--text-lg);
	margin: 0.75rem 0 1.5rem;
}
.product-price-display del { color: var(--color-muted-foreground); }
.product-price-display ins { text-decoration: none; }
.stock-indicator {
	display: inline-block;
	margin-bottom: 1rem;
	font-family: var(--font-body);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.stock-indicator.out-of-stock { color: var(--color-destructive); }
.product-description {
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
	margin-bottom: 2rem;
	overflow-wrap: break-word;
	word-break: break-word;
}
.product-specs { border-top: 1px solid var(--color-border); margin-bottom: 2rem; }
.product-spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
.product-spec-row dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted-foreground); }
.product-spec-row dd { font-size: 0.875rem; text-align: right; margin: 0; }
.qty-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.75rem; }

.theme-quantity-wrapper, .theme-add-to-cart-area .theme-quantity-wrapper {
	display: inline-flex; align-items: center; border: 1px solid var(--color-border); margin-bottom: 1.5rem;
}
.theme-qty-minus, .theme-qty-plus {
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	font-size: 0.875rem;
	font-family: var(--font-body);
	transition: background-color 0.2s ease;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-display {
	padding: 0.75rem 1rem;
	min-width: 44px;
	text-align: center;
	font-size: 0.875rem;
	font-family: var(--font-body);
}
.theme-qty-input[type="hidden"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.theme-product-qty-block { margin-bottom: 1.5rem; }

.single-product-main .theme-product-atc.single_add_to_cart_button,
.single-product-main .theme-product-atc.single_add_to_cart_button.button {
	display: flex !important;
	width: 100%;
	justify-content: center;
	align-items: center;
	background-color: var(--color-foreground) !important;
	color: var(--color-background) !important;
	border: none !important;
	border-radius: 0 !important;
	min-height: auto !important;
	padding: 1rem 1.5rem !important;
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 400 !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase !important;
}
.single-product-main .theme-product-atc.single_add_to_cart_button:hover {
	opacity: 0.9;
	background-color: var(--color-foreground) !important;
	color: var(--color-background) !important;
}
.single-product-main .theme-product-atc.disabled,
.single-product-main .theme-product-atc.single_add_to_cart_button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

.single-product .theme-add-to-cart-area {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin-bottom: 1.5rem;
}
.single-product .theme-add-to-cart-area .theme-quantity-wrapper { margin-bottom: 1.5rem; }
.single-product .theme-add-to-cart-area .theme-product-atc { flex: none; width: 100%; min-width: 0; }

.product-details-accordion { margin-top: 2rem; border-top: 1px solid var(--color-border); }
.details-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--color-border); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; background: none; border-left: none; border-right: none; border-top: none; color: var(--color-foreground); }
.details-chevron { transition: transform 0.2s ease; }
.details-toggle[aria-expanded="true"] .details-chevron { transform: rotate(180deg); }
.details-panel { padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.details-panel ul { display: flex; flex-direction: column; gap: 0.5rem; }
.details-panel li { font-size: 0.875rem; color: var(--color-muted-foreground); }

.related-products-section {
	padding-top: 5rem;
	padding-bottom: 5rem;
	border-top: 1px solid var(--color-border);
}
.theme-product-video { margin-top: 1.5rem; }
.theme-product-video .eyebrow { margin-bottom: 0.75rem; }
.theme-product-video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--color-secondary);
	overflow: hidden;
}
.theme-product-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.related-products-section .reveal-item { opacity: 1; transform: none; }
.single-product .woocommerce-tabs,
.single-product .product_meta,
.single-product .woocommerce-product-gallery { display: none !important; }
.related-products-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--text-2xl);
	margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .related-products-title { font-size: var(--text-3xl); } }

.woocommerce-no-products-found { padding: 4rem 0; text-align: center; color: var(--color-muted-foreground); }

/* --------------------------------------------------------------------
   Checkout Block — Lovable alignment (Sections C–H)
   -------------------------------------------------------------------- */
/* Single fixed-header offset (not stacked with theme-no-hero 8rem — see :not(.theme-checkout-main) rule). */
body.woocommerce-checkout .theme-checkout-main {
	padding-top: var(--header-height, 6rem);
	padding-bottom: 0;
}
.theme-checkout-shell {
	width: 100%;
	max-width: none;
	padding-block: 0.5rem 4rem;
	padding-inline: 1.5rem;
	box-sizing: border-box;
}
@media (min-width: 1024px) {
	.theme-checkout-shell { padding-inline: 2rem; }
}
body.woocommerce-checkout .theme-checkout-main > .container-wide,
body.woocommerce-checkout .theme-checkout-shell,
body.woocommerce-checkout .theme-checkout-main .entry-content,
.entry-content:has(.wc-block-checkout) {
	max-width: none;
	width: 100%;
}

.theme-checkout-header {
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	margin-bottom: 0;
	box-sizing: border-box;
}
.checkout-continue-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	color: var(--color-muted-foreground);
	text-decoration: none;
	transition: color 0.2s ease;
}
.checkout-continue-link:hover { color: var(--color-foreground); }
.theme-checkout-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--text-3xl);
	line-height: var(--leading-tight);
	margin: 0;
}
@media (min-width: 768px) {
	.theme-checkout-title { font-size: var(--text-4xl); }
}
.theme-checkout-intro {
	margin: 0.75rem 0 0;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	color: var(--color-muted-foreground);
	line-height: var(--leading-relaxed);
}

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 {
	max-width: var(--checkout-max-width);
	width: 100%;
	min-width: 0;
	margin-inline: auto;
	margin-top: 0;
	padding-top: 0;
	box-sizing: border-box;
}
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;
	min-width: 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: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	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,
.entry-content .wp-block-woocommerce-checkout-totals-block {
	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: var(--color-card);
	border-radius: var(--card-radius);
	padding: 2rem;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
	margin-inline: auto;
	max-width: 36rem;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

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-components-text-input input,
.entry-content .wc-block-components-select select,
.entry-content .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	border: 1px solid var(--color-border);
	background: var(--color-background);
	color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-components-text-input input:focus,
.entry-content .wc-block-components-select select:focus {
	outline: none;
	border-color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
}

/* --------------------------------------------------------------------
   Thank you page (Section 22.8)
   -------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { padding: 0 0 1rem 0; }
body.theme-thankyou-page .woocommerce-customer-details {
	display: flex; flex-direction: column; gap: 1.5rem;
}
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; }

/* --------------------------------------------------------------------
   Notices (Section 14.1)
   -------------------------------------------------------------------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	background: var(--color-card);
	color: var(--color-foreground);
	padding: 1rem 1.5rem;
	border-radius: var(--card-radius);
	list-style: none;
	margin: 0 0 1.5rem;
}
.woocommerce-error { border-color: var(--color-destructive); }
