/* ==========================================================================
   Leah Binds Books — theme.css
   Design tokens converted from the original source design (src/index.css /
   tailwind.config.ts). Colors are emitted as CSS custom properties and
   re-emitted live by the Customizer (functions.php / customizer-preview.js).
   ========================================================================== */

:root {
	/* Lovable container-wide: px-5 sm:px-6 lg:px-10 (src/index.css) */
	--container-padding: 1.25rem;
	--container-max-width: 80rem;
	--checkout-max-width: 1280px;
	--checkout-gap: 2rem;
	--color-background: #f8f6f1;
	--color-foreground: #2f251e;
	--color-primary: #634b36;
	--color-primary-foreground: #f9f6f1;
	--color-ivory: #fdfcfa;
	--color-linen: #f2eee9;
	--color-bone: #e2dcd5;
	--color-rose: #b5634a;
	--color-rose-foreground: #faf8f4;
	--color-destructive: #db2424;

	--radius: 0.85rem;
	--radius-md: calc(var(--radius) - 2px);
	--radius-sm: calc(var(--radius) - 4px);

	--font-body: 'Jost', system-ui, -apple-system, sans-serif;
	--font-display: 'Cormorant Garamond', Georgia, serif;

	--shadow-soft: 0 4px 20px -8px rgba(46, 33, 22, 0.18);
	--shadow-elevated: 0 20px 50px -18px rgba(46, 33, 22, 0.32);

	--header-height: 152px;
	--header-height-scrolled: 92px;
	--logo-height: 60px;

	--btn-radius: 9999px;
	--btn-height: 2.75rem;
	--btn-padding: 0 1.75rem;
	--btn-font-size: 14px;
	--btn-font-weight: 500;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0;

	--color-button-text: var(--color-primary-foreground);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	margin: 0;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6, .font-display {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.012em;
	margin: 0;
}

p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; }
ul { margin: 0; padding: 0; list-style: none; }

section[id] { scroll-margin-top: 80px; }

/* Cover / full-bleed image exclusion list (Section 15.1). Add new classes
   here whenever a new cover-image class is introduced elsewhere. */
img:not(.cover-img) {
	max-width: 100%;
	height: auto;
}
.cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.container-wide {
	width: 100%;
	max-width: var(--container-max-width);
	min-width: 0;
	margin-inline: auto;
	padding-inline: var(--container-padding);
	box-sizing: border-box;
}
@media (min-width: 640px) {
	:root { --container-padding: 1.5rem; }
}
@media (min-width: 1024px) {
	:root { --container-padding: 2.5rem; }
}

.section-eyebrow {
	font-size: 12px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 1rem;
	font-weight: 500;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary,
.btn-outline,
.btn-ghost,
.btn-hero-primary,
.btn-hero-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	border-radius: var(--btn-radius);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	text-transform: var(--btn-text-transform);
	letter-spacing: var(--btn-letter-spacing);
	height: 3rem;
	padding: var(--btn-padding);
	border: 1px solid transparent;
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary,
.contact-form__submit {
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border-color: var(--color-primary);
}
.btn-primary:hover, .contact-form__submit:hover { opacity: 0.9; }

.btn-outline {
	background-color: transparent;
	color: var(--color-foreground);
	border-color: color-mix(in srgb, var(--color-foreground) 25%, transparent);
}
.btn-outline:hover {
	border-color: var(--color-foreground);
	background-color: color-mix(in srgb, var(--color-foreground) 4%, transparent);
}

.btn-ghost {
	background-color: transparent;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
	border-color: transparent;
}
.btn-ghost:hover { background-color: color-mix(in srgb, var(--color-foreground) 5%, transparent); }

.btn-hero-primary {
	background-color: var(--color-rose);
	color: var(--color-rose-foreground);
	border-color: var(--color-rose);
}
.btn-hero-primary:hover { background-color: color-mix(in srgb, var(--color-rose) 90%, transparent); }

.btn-hero-outline {
	background-color: color-mix(in srgb, #ffffff 10%, transparent);
	color: #fff;
	border-color: color-mix(in srgb, #ffffff 40%, transparent);
	backdrop-filter: blur(12px);
}
.btn-hero-outline:hover { background-color: color-mix(in srgb, #ffffff 20%, transparent); }

.icon-menu, .icon-close { display: block; }

/* ==========================================================================
   Reveal / animation system (ports src/index.css [data-reveal] + useScrollReveal)
   ========================================================================== */
.reveal-item {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}
.reveal-item.is-revealed { opacity: 1; transform: translateY(0); }

/* Customizer-preview / no-JS fallback: content must never be stuck hidden. */
body.is-customizer .reveal-item,
html.no-js .reveal-item {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item { transition: none; opacity: 1; transform: none; }
}

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: theme-fade-in 0.7s ease-out both; }
.animate-slide-in { animation: theme-slide-in 0.7s ease-out both; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
}
body.admin-bar .site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}
.announcement-bar {
	background-color: var(--color-foreground);
	color: var(--color-background);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: center;
	padding: 0.5rem 0.75rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
.announcement-bar__text { opacity: 0.9; }
.announcement-bar__highlight { color: var(--color-rose); }

.site-header__bar {
	transition: background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
	background-color: transparent;
	border-bottom: 1px solid transparent;
}
.site-header.is-solid .site-header__bar,
.site-header.menu-open .site-header__bar,
.site-header__bar.is-solid {
	background-color: color-mix(in srgb, var(--color-ivory) 85%, transparent);
	backdrop-filter: blur(20px);
	border-bottom-color: color-mix(in srgb, var(--color-foreground) 10%, transparent);
}
.site-header.menu-open .site-header__bar {
	background-color: color-mix(in srgb, var(--color-ivory) 95%, transparent);
}

.site-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 5rem;
	gap: 1rem;
	min-width: 0;
}
.site-header__row > * {
	min-width: 0;
}
@media (min-width: 1024px) {
	.site-header__row {
		height: 6rem;
		display: grid;
		grid-template-columns: 1fr auto 1fr;
	}
}

.site-header__menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	color: #fff;
	transition: background-color 0.3s ease, color 0.3s ease;
	order: 1;
}
.site-header.is-solid .site-header__menu-toggle,
.site-header.menu-open .site-header__menu-toggle,
.site-header__bar.is-solid .site-header__menu-toggle { color: var(--color-foreground); }
.site-header__menu-toggle:hover { background-color: color-mix(in srgb, var(--color-foreground) 6%, transparent); }
.site-header.is-solid .site-header__menu-toggle:hover { background-color: color-mix(in srgb, var(--color-foreground) 6%, transparent); }
.site-header:not(.is-solid) .site-header__menu-toggle:not(.is-solid):hover { background-color: rgba(255,255,255,0.1); }
@media (min-width: 1024px) { .site-header__menu-toggle { display: none; } }
.site-header__menu-toggle .icon-close { display: none; }
.site-header__menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.site-header__menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-header__brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	order: 2;
}
@media (min-width: 1024px) { .site-header__brand { order: 1; justify-self: start; } }
.site-logo-img {
	height: min(var(--logo-height), 3.5rem) !important;
	width: auto !important;
	max-width: 100%;
	display: block;
	transition: filter 0.3s ease;
}
@media (min-width: 640px) {
	.site-logo-img { height: min(var(--logo-height), 4rem) !important; }
}
@media (min-width: 1024px) {
	.site-logo-img { height: var(--logo-height) !important; }
}
.site-logo-text { font-family: var(--font-display); font-size: 1.4rem; color: inherit; display: block; line-height: var(--logo-height); }
.site-header:not(.is-solid):not(.menu-open) .site-logo-img { filter: brightness(0) invert(1); }

.site-header__nav {
	display: none;
	order: 3;
}
@media (min-width: 1024px) {
	.site-header__nav { display: flex; align-items: center; gap: 1.75rem; justify-self: center; order: 2; }
}
.site-header__nav .theme-nav-list { display: flex; align-items: center; gap: 1.75rem; }
.site-header__nav .theme-nav-link,
.site-header__nav .theme-nav-list a {
	position: relative;
	font-size: 14px;
	font-weight: 500;
	color: color-mix(in srgb, #fff 85%, transparent);
	transition: color 0.3s ease;
}
.site-header.is-solid .site-header__nav .theme-nav-link,
.site-header.is-solid .site-header__nav .theme-nav-list a,
.site-header__bar.is-solid .site-header__nav .theme-nav-link { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
.site-header__nav .theme-nav-link:hover,
.site-header__nav .theme-nav-list a:hover { color: var(--color-rose); }
.site-header.is-solid .site-header__nav .theme-nav-link:hover,
.site-header.is-solid .site-header__nav .theme-nav-list a:hover { color: var(--color-primary); }
.site-header__nav .theme-nav-list.current-menu-item > a,
.site-header__nav .theme-nav-list .theme-nav-link.is-active { color: #fff; }
.site-header.is-solid .site-header__nav .theme-nav-list.current-menu-item > a,
.site-header.is-solid .site-header__nav .theme-nav-list .theme-nav-link.is-active { color: var(--color-primary); }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; order: 3; justify-self: end; }
.site-header__cart-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	color: #fff;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.site-header.is-solid .site-header__cart-btn,
.site-header.menu-open .site-header__cart-btn { color: var(--color-foreground); }
.site-header__cart-btn:hover { background-color: rgba(255,255,255,0.1); }
.site-header.is-solid .site-header__cart-btn:hover { background-color: color-mix(in srgb, var(--color-foreground) 6%, transparent); }

.theme-cart-count-inline { display: none; }
.theme-cart-count-badge,
.theme-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	font-size: 12px;
	font-weight: 500;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.theme-cart-count-badge:empty,
.theme-cart-count:empty { display: none; }

.site-header__mobile-nav {
	display: none;
	border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	background-color: color-mix(in srgb, var(--color-ivory) 95%, transparent);
	backdrop-filter: blur(20px);
}
.site-header__mobile-nav.is-open {
	display: block;
	animation: theme-fade-in 0.35s ease-out both;
}
.site-header__mobile-nav .container-wide {
	padding-block: 1rem;
	padding-inline: var(--container-padding);
}
.theme-nav-list--mobile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}
.theme-nav-list--mobile li,
.theme-nav-list--mobile a { display: block; width: 100%; }
.theme-nav-list--mobile a {
	text-align: left;
	font-size: 14px;
	font-weight: 500;
	padding: 0.75rem 0;
	border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	transition: color 0.3s ease;
}
.theme-nav-list--mobile a:hover { color: var(--color-primary); }
.theme-nav-list--mobile li:last-child a { border-bottom: none; }
@media (min-width: 1024px) { .site-header__mobile-nav { display: none !important; } }

body.theme-no-hero .site-header,
.site-header.is-solid { }

/* Home hero fills viewport under fixed header; inner pages get top padding */
main { display: block; }
.site-main {
	max-width: 100%;
	overflow-x: clip;
}
body:not(.theme-no-hero) .site-main,
body:not(.theme-no-hero) main { padding-top: 0; }
body.theme-no-hero .site-main { padding-top: var(--header-height); }
@media (max-width: 1023px) { body.theme-no-hero .site-main { padding-top: 136px; } }
body.theme-no-hero .site-main.single-product-main {
	padding-top: 6rem !important;
	background-color: var(--color-ivory);
}
@media (min-width: 1024px) {
	body.theme-no-hero .site-main.single-product-main { padding-top: 7rem !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
	position: relative;
	min-height: 100vh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.hero-section__bg { position: absolute; inset: 0; will-change: transform; }
.hero-section__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-section__scrim {
	position: absolute; inset: 0;
	background-image: radial-gradient(at center, rgba(38,28,19,0.32) 0%, rgba(38,28,19,0.58) 70%, rgba(38,28,19,0.78) 100%);
}
.hero-section__tint { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-foreground) 35%, transparent); }
.hero-section__dust {
	position: absolute; inset: 0; opacity: 0.7; pointer-events: none;
	background-image:
		radial-gradient(circle at 12% 22%, rgba(196,163,110,0.55) 0 1.5px, transparent 2px),
		radial-gradient(circle at 78% 14%, rgba(178,140,89,0.5) 0 1.8px, transparent 2.4px),
		radial-gradient(circle at 32% 78%, rgba(214,181,135,0.45) 0 1.4px, transparent 2px),
		radial-gradient(circle at 62% 62%, rgba(176,110,80,0.4) 0 1.6px, transparent 2.2px),
		radial-gradient(circle at 90% 82%, rgba(178,140,92,0.4) 0 1.3px, transparent 2px);
	background-size: 340px 340px;
}
.hero-section__content {
	position: relative;
	z-index: 10;
	text-align: center;
	color: #fff;
	padding-block: 10rem 6rem;
	padding-inline: var(--container-padding);
}
@media (min-width: 1024px) {
	.hero-section__content { padding-block: 13rem 8rem; }
}
.hero-section__badge-row { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.hero-section__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 1rem;
	border-radius: 999px;
	background-color: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.3);
	backdrop-filter: blur(12px);
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #fff;
	font-weight: 500;
}
.hero-section__badge-icon { color: var(--color-rose); }
.hero-section__title {
	font-family: var(--font-display);
	color: #fff;
	line-height: 1.02;
	letter-spacing: -0.02em;
	max-width: 64rem;
	margin: 0 auto;
	font-size: clamp(2rem, 5.4vw, 4.4rem);
	filter: drop-shadow(0 2px 30px rgba(0,0,0,0.55));
}
.hero-section__title-emphasis { font-style: italic; color: var(--color-rose); }
.hero-section__subtitle {
	margin: 1.75rem auto 0;
	max-width: 42rem;
	font-size: 14px;
	color: rgba(255,255,255,0.85);
	line-height: 1.6;
}
@media (min-width: 640px) { .hero-section__subtitle { font-size: 15px; } }
.hero-section__actions {
	margin-top: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	justify-content: center;
}
@media (min-width: 640px) { .hero-section__actions { flex-direction: row; gap: 1rem; } }
@media (max-width: 639px) {
	.hero-section__actions .btn-hero-primary,
	.hero-section__actions .btn-hero-outline {
		white-space: normal;
		text-align: center;
		width: 100%;
		max-width: 100%;
	}
}
.hero-section__scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; pointer-events: none; }
.hero-section__scroll-cue span { display: block; height: 3rem; width: 1px; background-color: rgba(255,255,255,0.5); animation: theme-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
@keyframes theme-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ==========================================================================
   About / Meet Leah
   ========================================================================== */
.about-section { background-color: var(--color-linen); padding: 6rem 0; }
@media (min-width: 768px) { .about-section { padding: 8rem 0; } }
.about-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .about-section__grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.about-section__media { display: flex; position: relative; }
.about-section__media-inner {
	position: relative;
	width: 100%;
	min-height: 520px;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 1rem;
	background-color: var(--color-bone);
	box-shadow: var(--shadow-elevated);
}
@media (min-width: 1024px) { .about-section__media-inner { min-height: 0; aspect-ratio: auto; } }
.about-section__badge {
	position: absolute; top: 1rem; left: 1rem;
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.25rem 0.75rem; border-radius: 999px;
	background-color: var(--color-primary); color: var(--color-primary-foreground);
	font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
}
.about-section__badge-dot { width: 6px; height: 6px; border-radius: 50%; background-color: #fff; }
.about-section__copy { }
@media (min-width: 1024px) { .about-section__copy { padding-left: 1.5rem; } }
.about-section__heading {
	font-size: 2.25rem; line-height: 1.05; color: var(--color-foreground); font-weight: 500;
}
@media (min-width: 768px) { .about-section__heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-section__heading { font-size: 3.4rem; } }
.about-section__quote {
	margin: 2rem 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.25rem;
	color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.4;
	border-left: 2px solid color-mix(in srgb, var(--color-primary) 70%, transparent);
	padding-left: 1.25rem;
}
@media (min-width: 768px) { .about-section__quote { font-size: 1.5rem; } }
.about-section__paragraphs { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); max-width: 65ch; }
@media (min-width: 768px) { .about-section__paragraphs { font-size: 16px; } }
.about-section__socials { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.about-section__social-link {
	display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 1.25rem;
	border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	background-color: var(--color-ivory); font-size: 14px; font-weight: 500;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.about-section__social-link:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.about-section__stats {
	margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem;
	border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); padding-top: 2rem;
}
@media (min-width: 640px) { .about-section__stats { grid-template-columns: repeat(3, 1fr); } }
.about-section__stat-value { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-primary); word-break: break-word; }
.about-section__stat-label { margin-top: 0.25rem; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

/* ==========================================================================
   Shop section
   ========================================================================== */
.shop-section { background-color: var(--color-ivory); padding: 6rem 0; }
@media (min-width: 768px) { .shop-section { padding: 8rem 0; } }
.shop-section__head { display: flex; flex-direction: column; gap: 1.5rem; justify-content: space-between; margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .shop-section__head { flex-direction: row; align-items: flex-end; } }
.shop-section__intro { max-width: 42rem; }
.shop-heading { font-size: 2.25rem; line-height: 1.05; font-weight: 500; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .shop-heading { font-size: 3.2rem; } }
.shop-section__description { margin-top: 1.25rem; font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); line-height: 1.6; max-width: 38rem; }
@media (min-width: 768px) { .shop-section__description { font-size: 15px; } }
.shop-section__search { position: relative; width: 100%; }
@media (min-width: 1024px) { .shop-section__search { width: 20rem; } }
.shop-section__search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: color-mix(in srgb, var(--color-foreground) 40%, transparent); }
.shop-section__search-input {
	width: 100%; height: 2.75rem; padding: 0 1rem 0 2.75rem; border-radius: 999px;
	background-color: var(--color-linen); border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	font-size: 14px; color: var(--color-foreground); transition: border-color 0.2s ease;
}
.shop-section__search-input::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.shop-section__search-input:focus { outline: none; border-color: color-mix(in srgb, var(--color-primary) 60%, transparent); }

.shop-section__filters { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2.5rem; }
.shop-filter-pill {
	padding: 0 1.25rem; height: 2.5rem; border-radius: 999px; font-size: 14px; font-weight: 500;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	background-color: transparent; color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.shop-filter-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.shop-filter-pill.is-active { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

.shop-section__empty { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.shop-section__more { margin-top: 3rem; display: flex; justify-content: center; }

.theme-product-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem 1.5rem;
	align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related-products-section__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.5rem 1.5rem;
	align-items: start;
}
@media (min-width: 1024px) { .related-products-section__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card-wrap.hidden-by-filter { display: none !important; }
.theme-product-card-wrap.hidden-by-limit { display: none !important; }

.theme-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	background-color: var(--color-linen);
	border-radius: 0.75rem;
	overflow: hidden;
	margin-bottom: 1rem;
}
.theme-product-card__media-link {
	display: block;
	position: absolute;
	inset: 0;
	z-index: 1;
}
.theme-product-card__image {
	width: 100%;
	height: 100%;
	transition: transform 1.4s cubic-bezier(0.22,0.61,0.36,1);
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.04); }
.theme-product-card__badge {
	position: absolute; top: 0.75rem; left: 0.75rem; z-index: 10;
	background-color: var(--color-foreground); color: var(--color-background);
	font-size: 11px; font-weight: 500; padding: 0.25rem 0.625rem; border-radius: 999px;
}
.theme-product-card__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
	width: 2rem; height: 2rem; border-radius: 50%;
	background-color: color-mix(in srgb, var(--color-background) 85%, transparent);
	backdrop-filter: blur(6px);
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--color-foreground);
	opacity: 0; transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
	pointer-events: auto;
}
.theme-product-card__nav--prev { left: 0.5rem; }
.theme-product-card__nav--next { right: 0.5rem; }
.theme-product-card:hover .theme-product-card__nav { opacity: 1; }
.theme-product-card__nav:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); }
.theme-product-card__dots { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 10; display: flex; gap: 0.25rem; pointer-events: none; }
.theme-product-card__dot { height: 4px; width: 4px; border-radius: 999px; background-color: color-mix(in srgb, var(--color-background) 60%, transparent); transition: all 0.2s ease; }
.theme-product-card__dot.is-active { width: 1rem; background-color: var(--color-background); }
.theme-product-card__quick-actions {
	position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 10;
	display: flex; align-items: center; gap: 0.5rem;
	opacity: 0; transition: opacity 0.5s ease;
	pointer-events: none;
}
.theme-product-card:hover .theme-product-card__quick-actions { opacity: 1; }
.theme-product-card__quick-actions > * {
	position: relative;
	z-index: 11;
	pointer-events: auto;
}
.theme-product-card__add-btn.add_to_cart_button.ajax_add_to_cart,
.theme-product-card__add-btn.theme-product-card__select-btn {
	flex: 1;
	min-height: 2.5rem !important;
	height: 2.5rem;
	border-radius: 999px !important;
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent) !important;
	backdrop-filter: blur(6px);
	color: var(--color-foreground) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.theme-product-card__add-btn.add_to_cart_button.ajax_add_to_cart:hover { background-color: var(--color-primary) !important; color: var(--color-primary-foreground) !important; }
.theme-product-card__eye-btn {
	width: 2.5rem; height: 2.5rem; border-radius: 50%;
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(6px);
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--color-foreground);
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
	transition: background-color 0.3s ease, color 0.3s ease;
}
.theme-product-card__eye-btn:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.theme-product-card__info { display: block; padding: 0 2px; flex: 1; }
.theme-product-card__category { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: color-mix(in srgb, var(--color-primary) 90%, transparent); margin-bottom: 0.375rem; font-weight: 500; }
.theme-product-card__title {
	font-family: var(--font-display); font-size: 1.15rem; line-height: 1.35; color: var(--color-foreground);
	transition: color 0.3s ease;
}
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.3rem; } }
@media (min-width: 1024px) { .theme-product-card__title { font-size: 1.4rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { margin-top: 0.375rem; font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
.theme-product-card__price .woocommerce-Price-amount { font-weight: 500; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-section { background-color: var(--color-primary); padding: 1.25rem 0; overflow: hidden; }
.marquee-section__track { display: flex; white-space: nowrap; animation: theme-marquee 22s linear infinite; }
@keyframes theme-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-33.3333%); } }
.marquee-section__item { display: flex; align-items: center; flex-shrink: 0; color: color-mix(in srgb, var(--color-primary-foreground) 95%, transparent); font-family: var(--font-display); font-size: 1.125rem; letter-spacing: 0.02em; }
@media (min-width: 768px) { .marquee-section__item { font-size: 1.25rem; } }
.marquee-section__text { margin: 0 1.5rem; }
@media (min-width: 768px) { .marquee-section__text { margin: 0 2rem; } }
.marquee-section__dot { color: color-mix(in srgb, var(--color-primary-foreground) 50%, transparent); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .marquee-section__track { animation: none; } }

/* ==========================================================================
   Services / Bindery
   ========================================================================== */
.services-section { background-color: var(--color-ivory); padding: 6rem 0; }
@media (min-width: 768px) { .services-section { padding: 8rem 0; } }
.services-section__head { max-width: 48rem; margin-bottom: 3.5rem; }
.services-heading { font-size: 2.25rem; line-height: 1.05; font-weight: 500; }
@media (min-width: 768px) { .services-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .services-heading { font-size: 3.2rem; } }
.services-section__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .services-section__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.service-card {
	background-color: var(--color-linen); border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	border-radius: 1rem; overflow: hidden; display: flex; flex-direction: column;
	transition: border-color 0.2s ease;
}
.service-card:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.service-card__image-wrapper { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-card__image { transition: transform 0.7s ease; }
.service-card:hover .service-card__image { transform: scale(1.05); }
.service-card__icon {
	position: absolute; top: 1rem; left: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 50%;
	background-color: var(--color-primary); color: var(--color-primary-foreground);
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 16px rgba(0,0,0,0.18);
	transition: transform 0.3s ease;
}
.service-card:hover .service-card__icon { transform: rotate(20deg); }
.service-card__body { padding: 1.75rem; }
@media (min-width: 768px) { .service-card__body { padding: 2rem; } }
.service-card__title { font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-card__text { font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

/* ==========================================================================
   Pre-contact CTA band
   ========================================================================== */
.precta-section { position: relative; overflow: hidden; }
.precta-section__bg { position: absolute; inset: 0; }
.precta-section__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.precta-section__scrim { position: absolute; inset: 0; background-image: radial-gradient(at center, rgba(38,28,19,0.32) 0%, rgba(38,28,19,0.58) 70%, rgba(38,28,19,0.78) 100%); }
.precta-section__tint { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.precta-section__dust { position: absolute; inset: 0; opacity: 0.6; pointer-events: none;
	background-image: radial-gradient(circle at 12% 22%, rgba(196,163,110,0.55) 0 1.5px, transparent 2px), radial-gradient(circle at 78% 14%, rgba(178,140,89,0.5) 0 1.8px, transparent 2.4px);
	background-size: 340px 340px;
}
.precta-section__content {
	position: relative;
	z-index: 10;
	text-align: center;
	color: #fff;
	padding-block: 7rem 10rem;
	padding-inline: var(--container-padding);
}
@media (min-width: 768px) {
	.precta-section__content { padding-block: 10rem; }
}
.precta-section__eyebrow { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: 12px; letter-spacing: 0.38em; text-transform: uppercase; color: rgba(255,255,255,0.85); font-weight: 500; margin-bottom: 1.5rem; }
.precta-section__eyebrow-line { height: 1px; width: 2rem; background-color: color-mix(in srgb, var(--color-rose) 80%, transparent); display: inline-block; }
.precta-section__heading { font-family: var(--font-display); color: #fff; line-height: 1.05; letter-spacing: -0.02em; max-width: 56rem; margin: 0 auto; font-size: clamp(2rem, 5.4vw, 4rem); filter: drop-shadow(0 2px 30px rgba(0,0,0,0.55)); }
.precta-section__heading-emphasis { font-style: italic; color: var(--color-rose); }
.precta-section__body { margin: 1.75rem auto 0; max-width: 36rem; font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.6; }
.precta-section__actions { margin-top: 2.5rem; }

/* ==========================================================================
   Policies
   ========================================================================== */
.policies-section { background-color: var(--color-ivory); border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); padding: 6rem 0; }
@media (min-width: 768px) { .policies-section { padding: 8rem 0; } }
.policies-section__head { max-width: 40rem; margin-bottom: 3.5rem; }
.policies-heading { font-size: 2.25rem; line-height: 1.05; font-weight: 500; }
@media (min-width: 768px) { .policies-heading { font-size: 3rem; } }
.policies-section__description { margin-top: 1.5rem; font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); line-height: 1.6; }
@media (min-width: 768px) { .policies-section__description { font-size: 15px; } }
.policies-section__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .policies-section__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.policy-card { background-color: var(--color-linen); border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); border-radius: 1rem; padding: 1.75rem; transition: border-color 0.2s ease; }
@media (min-width: 768px) { .policy-card { padding: 2rem; } }
.policy-card:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.policy-card__icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; background-color: var(--color-primary); color: var(--color-primary-foreground); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.policy-card__title { font-size: 1.5rem; margin-bottom: 0.75rem; }
.policy-card__text { font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section { background-color: var(--color-linen); padding: 6rem 0 3rem; }
@media (min-width: 768px) { .contact-section { padding: 8rem 0 4rem; } }
.contact-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .contact-section__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact-section__intro { display: flex; flex-direction: column; height: 100%; justify-content: center; }
.contact-title { font-size: 2.25rem; line-height: 1.05; font-weight: 500; }
@media (min-width: 768px) { .contact-title { font-size: 3rem; } }
@media (min-width: 1024px) { .contact-title { font-size: 3.4rem; } }
.contact-section__body { margin-top: 1.5rem; font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.6; max-width: 32rem; }
.contact-section__list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-section__link { display: inline-flex; align-items: center; gap: 1rem; color: var(--color-foreground); transition: color 0.2s ease; }
.contact-section__link:hover { color: var(--color-primary); }
.contact-section__link-icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; background-color: var(--color-ivory); border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.2s ease; }
.contact-section__link:hover .contact-section__link-icon { border-color: var(--color-primary); }
.contact-section__link-copy { display: flex; flex-direction: column; text-align: left; }
.contact-section__link-eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.contact-section__link-value { font-size: 15px; font-weight: 500; }
.contact-section__quote-box { margin-top: calc(1.5rem + 20px); position: relative; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); background-color: color-mix(in srgb, var(--color-ivory) 70%, transparent); padding: 1.5rem 1.75rem; }
.contact-section__quote-badge { position: absolute; top: -0.75rem; left: 1.5rem; display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: 999px; background-color: var(--color-primary); color: var(--color-primary-foreground); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; }
.contact-section__quote { font-family: var(--font-display); font-style: italic; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); font-size: 1.125rem; line-height: 1.4; border-left: 2px solid color-mix(in srgb, var(--color-primary) 70%, transparent); padding-left: 1.25rem; margin: 0; }
@media (min-width: 768px) { .contact-section__quote { font-size: 1.25rem; } }
.contact-section__quote-author { margin-top: 0.75rem; padding-left: 1.25rem; font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); letter-spacing: 0.02em; }

.contact-form {
	background-color: var(--color-ivory); border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-soft);
	height: 100%; display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 768px) { .contact-form { padding: 2rem; } }
.contact-form__fields { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.contact-form__field label { display: block; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 0.5rem; }
.contact-form__field input,
.contact-form__field textarea,
.contact-form__field select {
	width: 100%; height: 3rem; padding: 0 1rem; background-color: var(--color-ivory);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); border-radius: var(--radius-md);
	font-size: 14px; color: var(--color-foreground); transition: border-color 0.2s ease;
}
.contact-form__field textarea { height: auto; padding: 0.75rem 1rem; resize: none; }
.contact-form__field input::placeholder, .contact-form__field textarea::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.contact-form__field input:focus, .contact-form__field textarea:focus, .contact-form__field select:focus { outline: none; border-color: var(--color-primary); }
.contact-form__select-wrap { position: relative; }
.contact-form__select-wrap select { appearance: none; padding-right: 2.5rem; }
.contact-form__select-chevron { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.contact-form__footer { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.5rem; }
.contact-form__submit { width: 100%; height: 3rem; }
.contact-form__note { font-size: 12px; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); text-align: center; }
.contact-form__status { font-size: 13px; text-align: center; padding-top: 0.25rem; }
.contact-form__status.is-error { color: var(--color-destructive); }
.contact-form__status.is-success { color: var(--color-primary); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background-color: var(--color-linen); border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
/* Lovable: container-wide py-14 lg:py-20 */
.site-footer__inner {
	padding-block: 3.5rem;
	padding-inline: var(--container-padding);
}
@media (min-width: 1024px) { .site-footer__inner { padding-block: 5rem; } }
/* Lovable: grid gap-10 lg:gap-12 */
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.site-footer__brand { display: inline-flex; align-items: center; }
.site-footer .site-logo-img { height: 3.5rem !important; width: auto !important; }
.site-footer__tagline { margin-top: 1rem; font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); line-height: 1.625; max-width: 20rem; }
.site-footer__socials { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.site-footer__social-btn { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); color: color-mix(in srgb, var(--color-foreground) 70%, transparent); display: inline-flex; align-items: center; justify-content: center; transition: color 0.2s ease, border-color 0.2s ease; }
.site-footer__social-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }
.site-footer__heading { font-family: var(--font-display); font-size: 1.125rem; font-weight: 400; color: var(--color-foreground); margin-bottom: 1rem; }
.footer-nav-list { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-link, .footer-contact-link { font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); transition: color 0.2s ease; }
.footer-nav-link:hover, .footer-contact-link:hover { color: var(--color-primary); }
.footer-contact-link { display: inline-flex; align-items: center; gap: 0.5rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
.footer-contact-note { color: color-mix(in srgb, var(--color-foreground) 60%, transparent); font-size: 14px; }
.site-footer__bottom { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); text-align: center; font-size: 12px; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.site-footer__bottom a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer__bottom a:hover { color: var(--color-primary); }

/* ==========================================================================
   404
   ========================================================================== */
.not-found-page { padding: 8rem 0; min-height: 60vh; display: flex; align-items: center; }
.not-found-page__inner { text-align: center; }
.not-found-page__title { font-family: var(--font-display); font-size: 3rem; margin-bottom: 1rem; }
.not-found-page__message { font-size: 1.25rem; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); margin-bottom: 1rem; }
.not-found-page__link { color: var(--color-primary); text-decoration: underline; }
.not-found-page__link:hover { color: color-mix(in srgb, var(--color-primary) 90%, transparent); }

/* ==========================================================================
   Single product page
   ========================================================================== */
.single-product-page { padding: 0 0 5rem; }
.single-product-page__breadcrumb { padding: 1.5rem 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.single-product-page__breadcrumb a:hover { color: var(--color-primary); }
.single-product-page__breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.single-product-page__breadcrumb-current { color: var(--color-foreground); }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 5rem;
	align-items: start;
	min-width: 0;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }

.theme-product-gallery { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-gallery { position: sticky; top: 7rem; align-self: start; } }
.theme-product-gallery__main {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	background-color: var(--color-linen);
	border-radius: 0.75rem;
	overflow: hidden;
	margin-bottom: 1rem;
}
.theme-product-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: static !important;
}
.single-product-main .theme-product-gallery__image.cover-img {
	position: static !important;
	inset: auto;
}
.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.625rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb {
	aspect-ratio: 1 / 1;
	background-color: var(--color-linen);
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 2px solid transparent;
	transition: border-color 0.2s ease;
	padding: 0;
	cursor: pointer;
}
.theme-product-thumb__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.theme-product-thumb.is-active { border-color: var(--color-primary); }
.theme-product-thumb:hover { border-color: color-mix(in srgb, var(--color-foreground) 20%, transparent); }

.theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-info__category { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.75rem; font-weight: 500; }
.theme-product-info__title {
	font-family: var(--font-display);
	font-size: 1.875rem;
	line-height: 1.05;
	margin-bottom: 1rem;
	font-weight: 400;
}
@media (min-width: 768px) { .theme-product-info__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-info__title { font-size: 2.6rem; } }
.theme-product-info__price { font-size: 20px; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); margin-bottom: 1.75rem; }
.theme-product-info__stock.is-out { color: var(--color-destructive); font-weight: 500; margin-bottom: 1rem; }
.theme-product-info__description { font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }

.theme-product-purchase { margin-bottom: 1.5rem; }
.theme-product-info__quantity-block { margin-bottom: 1.5rem; }
.theme-product-info__quantity-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 0.625rem; }
.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
	border-radius: 999px;
}
.theme-qty-minus, .theme-qty-plus { padding: 0.625rem 1rem; transition: color 0.2s ease; display: inline-flex; align-items: center; justify-content: center; }
.theme-qty-minus:hover, .theme-qty-plus:hover { color: var(--color-primary); }
.theme-qty-value { padding: 0.625rem 1rem; min-width: 44px; text-align: center; font-size: 14px; font-weight: 500; }
.theme-qty-input { display: none !important; }
.theme-qty-input[type="number"] { width: 44px; min-width: 44px; text-align: center; font-size: 14px; font-weight: 500; border: none; background: transparent; padding: 0.625rem 0; -moz-appearance: textfield; }
.theme-qty-input::-webkit-inner-spin-button, .theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.theme-add-to-cart-area { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; margin: 0; }
.theme-add-to-cart-area--variable { align-items: flex-start; }
.theme-add-to-cart-area--variable .theme-product-info__quantity-block { margin-bottom: 1rem; }
.single-product-main .theme-add-to-cart-area__buttons { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }
@media (min-width: 640px) {
	.single-product-main .theme-add-to-cart-area__buttons { flex-direction: row; }
}
.theme-add-to-cart-area .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; width: 100%; }
.theme-buy-now-button { flex: 1 1 auto; min-width: 160px; width: 100%; }
.theme-buy-now-button:disabled { opacity: 0.4; cursor: not-allowed; }

.theme-product-info__details { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-product-info__details-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 1rem; }
.woocommerce-product-details__short-description,
.woocommerce-variation-description,
.posted_in { overflow-wrap: break-word; word-break: break-word; }
.theme-product-info__details-list { display: flex; flex-direction: column; gap: 0.625rem; }
.theme-product-info__details-list li {
	font-size: 14px;
	color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
	display: flex;
	align-items: flex-start;
}
.theme-product-info__details-list li::before {
	content: '';
	width: 4px;
	height: 4px;
	background-color: var(--color-primary);
	border-radius: 50%;
	margin: 0.6rem 0.75rem 0 0;
	flex-shrink: 0;
}

.theme-product-info__trust { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.theme-product-info__trust-item { text-align: center; }
.theme-product-info__trust-item svg { margin: 0 auto 0.5rem; color: var(--color-primary); display: block; }
.theme-product-info__trust-item p { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

.related-products-section { padding: 5rem 0; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.related-products-section__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.related-products-section__title { font-size: 1.875rem; }
@media (min-width: 768px) { .related-products-section__title { font-size: 2.25rem; } }
.related-products-section__view-all { display: none; align-items: center; gap: 0.375rem; font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); transition: color 0.2s ease; }
@media (min-width: 640px) { .related-products-section__view-all { display: inline-flex; } }
.related-products-section__view-all:hover { color: var(--color-primary); }

.theme-related-card { display: block; color: inherit; text-decoration: none; }
.theme-related-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background-color: var(--color-linen);
	border-radius: 0.75rem;
	overflow: hidden;
	margin-bottom: 1rem;
}
.theme-related-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s cubic-bezier(0.22,0.61,0.36,1);
}
.theme-related-card:hover .theme-related-card__image { transform: scale(1.04); }
.theme-related-card__category {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: color-mix(in srgb, var(--color-primary) 90%, transparent);
	margin-bottom: 0.375rem;
	font-weight: 500;
}
.theme-related-card__title {
	font-family: var(--font-display);
	font-size: 1.15rem;
	line-height: 1.35;
	color: var(--color-foreground);
	transition: color 0.3s ease;
}
@media (min-width: 768px) { .theme-related-card__title { font-size: 1.3rem; } }
@media (min-width: 1024px) { .theme-related-card__title { font-size: 1.4rem; } }
.theme-related-card:hover .theme-related-card__title { color: var(--color-primary); }
.theme-related-card__price { margin-top: 0.375rem; font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }

.theme-variation-attribute { margin-bottom: 1.25rem; }
.theme-variation-attribute__label {
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--color-foreground) 55%, transparent);
	margin-bottom: 0.625rem;
}
.theme-variation-attribute__pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pills--color { gap: 0.75rem; }
.theme-attr-pill {
	border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
	border-radius: 999px;
	padding: 0.5rem 1rem;
	font-size: 14px;
	background-color: var(--color-ivory);
	color: var(--color-foreground);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.theme-attr-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.theme-attr-pill--color.is-active,
.theme-attr-pills--color .theme-attr-pill.is-active {
	background-color: color-mix(in srgb, var(--color-primary) 5%, transparent);
	border-color: var(--color-primary);
	color: var(--color-foreground);
}
.theme-attr-pills--license .theme-attr-pill.is-active,
.theme-attr-pill--license.is-active {
	background-color: var(--color-foreground);
	border-color: var(--color-foreground);
	color: var(--color-background);
}
.theme-attr-pill__swatch {
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	flex-shrink: 0;
}
.theme-attr-select {
	width: 100%;
	height: 2.75rem;
	padding: 0 1rem;
	font-size: 14px;
	color: var(--color-foreground);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	border-radius: var(--radius-md);
	background-color: var(--color-ivory);
}
.theme-attr-select:focus { outline: none; border-color: var(--color-primary); }

/* ==========================================================================
   Shop archive (WooCommerce category/tag/shop pages)
   ========================================================================== */
.shop-archive { padding: 8rem 0 6rem; background-color: var(--color-ivory); }
.shop-archive__header { margin-bottom: 2.5rem; }
.shop-archive__header .page-title { font-family: var(--font-display); font-weight: 500; font-size: 2.5rem; }
.shop-archive__empty { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.woocommerce-pagination { margin-top: 3rem; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 0.5rem; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); font-size: 14px; }
.woocommerce-pagination .current { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

/* ==========================================================================
   Generic content
   ========================================================================== */
.generic-content, .generic-page { padding: 8rem 0 5rem; }
.page-title { font-family: var(--font-display); font-weight: 500; font-size: 2.5rem; margin-bottom: 1.5rem; }

/* ==========================================================================
   Add-to-cart button style override (WooCommerce core defeats) — 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;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: unset !important;
	padding: 0 1.25rem !important;
	border-radius: 999px !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* Scoped WooCommerce notice visibility (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	max-width: 80rem; margin: 1rem auto; padding: 1rem 1.5rem; border-radius: var(--radius-md);
	background-color: var(--color-linen); border-left: 3px solid var(--color-primary);
	font-size: 14px; list-style: none;
}
.woocommerce-error { border-left-color: var(--color-destructive); }

/* Variations — pills replace native table UI */
.single-product .variations.shop_attributes { display: none !important; }
.theme-attr-select-hidden { display: none !important; }
.single_variation_wrap { margin-top: 0.5rem; }
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-tabs,
.single-product .product_meta,
.single-product .woocommerce-breadcrumb { display: none !important; }

/* ==========================================================================
   Promo toast (Lovable PromoBanner)
   ========================================================================== */
.theme-promo-banner {
	position: fixed;
	bottom: 1.5rem;
	left: 1rem;
	right: 1rem;
	width: auto;
	max-width: calc(100% - 2rem);
	box-sizing: border-box;
	z-index: 50;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	background-color: var(--color-foreground);
	color: var(--color-background);
	border-radius: 1rem;
	box-shadow: var(--shadow-elevated);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
}
.theme-promo-banner.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
@media (min-width: 640px) {
	.theme-promo-banner {
		left: auto;
		right: 1.5rem;
		max-width: 26rem;
	}
}
.theme-promo-banner__text {
	flex: 1;
	font-size: 13px;
	line-height: 1.6;
	margin: 0;
}
@media (min-width: 640px) {
	.theme-promo-banner__text { font-size: 15px; }
}
.theme-promo-banner__highlight {
	color: var(--color-rose);
	font-weight: 600;
}
.theme-promo-banner__dismiss {
	flex-shrink: 0;
	margin-top: 2px;
	padding: 0.375rem;
	border-radius: 50%;
	transition: background-color 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}
.theme-promo-banner__dismiss:hover {
	background-color: color-mix(in srgb, var(--color-background) 10%, transparent);
}

/* ==========================================================================
   Cart drawer
   ========================================================================== */
#theme-cart-overlay {
	position: fixed; inset: 0; background-color: rgba(47,37,30,0.3); z-index: 60;
	opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
body.cart-open {
	overflow-x: clip;
}
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: 28rem;
	background-color: var(--color-ivory); z-index: 61; box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
	visibility: hidden;
}
body.cart-open #theme-cart-drawer { transform: translateX(0); visibility: visible; }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { #theme-cart-drawer { transition: none; } }

.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-cart-drawer__title { font-size: 1.5rem; }
.theme-cart-drawer__close { padding: 0.375rem; border-radius: 50%; transition: background-color 0.2s ease; }
.theme-cart-drawer__close:hover { background-color: color-mix(in srgb, var(--color-foreground) 6%, transparent); }
.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 svg { color: color-mix(in srgb, var(--color-foreground) 30%, transparent); margin-bottom: 1rem; }
.theme-cart-drawer__empty p { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); margin-bottom: 1.5rem; font-size: 14px; }
.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-cart-drawer__item { display: flex; gap: 1rem; }
.theme-cart-drawer__item-thumb { width: 5rem; height: 6rem; background-color: var(--color-bone); border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; }
.theme-cart-drawer__item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-drawer__item-body { flex: 1; min-width: 0; }
.theme-cart-drawer__item-name { font-size: 14px; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s ease; }
.theme-cart-drawer__item-name:hover { color: var(--color-primary); }
.theme-cart-drawer__item-price { font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 0.125rem; }
.theme-cart-item-meta { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.theme-cart-item-meta__row { display: flex; align-items: center; gap: 0.375rem; font-size: 12px; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-cart-item-meta-swatch { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); flex-shrink: 0; }
.theme-cart-item-meta__label { font-weight: 500; }
.theme-cart-drawer__item-qty { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-drawer__item-qty button { padding: 0.25rem; border-radius: 4px; transition: background-color 0.2s ease; display: inline-flex; }
.theme-cart-drawer__item-qty button:hover { background-color: var(--color-bone); }
.theme-cart-drawer__item-qty-value { font-size: 13px; width: 1.5rem; text-align: center; }
.theme-cart-drawer__item-remove { margin-left: auto; font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); transition: color 0.2s ease; }
.theme-cart-drawer__item-remove:hover { color: var(--color-destructive); }
.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); background-color: color-mix(in srgb, var(--color-linen) 40%, transparent); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 14px; }
.theme-cart-drawer__subtotal span:first-child { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }
.theme-cart-drawer__subtotal span:last-child { font-weight: 500; }
.theme-cart-drawer__note { font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-cart-drawer__checkout-btn { width: 100%; height: 3rem; }
.theme-cart-drawer__empty-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 2.25rem; font-size: 13px; }

/* ==========================================================================
   Checkout page shell + WC Blocks alignment
   ========================================================================== */
/* Single fixed-header offset — padding-top: 0 hid content under the fixed header */
body.woocommerce-checkout.theme-no-hero .site-main.theme-checkout-main {
	padding-top: var(--header-height);
	padding-bottom: 0;
}
@media (max-width: 1023px) {
	body.woocommerce-checkout.theme-no-hero .site-main.theme-checkout-main {
		padding-top: 136px;
	}
}
.theme-checkout-shell {
	padding-block: 0.5rem 4rem;
	padding-inline: var(--container-padding);
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}
.theme-checkout-header {
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	margin-bottom: 0;
}
.checkout-continue-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-size: 14px;
	color: color-mix(in srgb, var(--color-foreground) 65%, transparent);
	transition: color 0.2s ease;
}
.checkout-continue-link:hover { color: var(--color-primary); }
.theme-checkout-title {
	font-family: var(--font-display);
	font-size: 2.25rem;
	line-height: 1.05;
	font-weight: 400;
	margin: 0;
}
@media (min-width: 768px) { .theme-checkout-title { font-size: 3rem; } }
.theme-checkout-intro { margin: 0.75rem 0 0; font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

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%;
	margin-top: 0;
	padding-top: 0;
}
body.woocommerce-checkout .theme-checkout-shell.container-wide {
	padding-inline: var(--container-padding);
}
body.woocommerce-checkout .theme-checkout-main .entry-content {
	padding-inline: 0;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout,
.entry-content .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-checkout {
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	margin-top: 0;
	padding-top: 0;
	box-sizing: border-box;
	min-width: 0;
}

body.woocommerce-checkout .theme-checkout-main .entry-content > .wc-block-checkout:first-child,
body.woocommerce-checkout .theme-checkout-main .entry-content > .wp-block-woocommerce-checkout:first-child,
.entry-content > .wc-block-checkout:first-child,
.entry-content > .wp-block-woocommerce-checkout:first-child {
	margin-top: 0;
}

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,
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;
	padding: 0;
	border-radius: 0;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	background-color: var(--color-linen);
	border-radius: var(--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;
	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,
body.woocommerce-checkout .wc-block-components-combobox input,
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--color-foreground);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	border-radius: var(--radius-md);
	background-color: var(--color-ivory);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { outline: none; border-color: var(--color-primary); }
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }

body.woocommerce-checkout .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);
	font-weight: 500;
	border: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius-md);
	font-size: 14px;
}

/* ==========================================================================
   Thank-you page (Section 22.8)
   ========================================================================== */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: var(--header-height, 152px); }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details { font-size: 14px; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-size: 1.75rem;
	padding: 0 0 1rem 0;
	font-weight: 500;
}
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem 2rem; list-style: none; padding: 1.5rem; margin: 1.5rem 0; background-color: var(--color-linen); border-radius: var(--radius); }
body.theme-thankyou-page .woocommerce-order-overview li { display: flex; flex-direction: column; gap: 0.25rem; }
body.theme-thankyou-page .woocommerce-order-overview li strong { font-family: var(--font-display); font-size: 1.05rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 1rem; }
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td { padding: 0.75rem; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 30rem; overflow-wrap: break-word; border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); border-radius: var(--radius-md); padding: 1.25rem; }

/* ==========================================================================
   Responsive utility fallbacks for JS-hidden filtered cards
   ========================================================================== */
@media print { .site-header, #theme-cart-drawer, #theme-cart-overlay { display: none !important; } }
