/* Jessi's Crafty Creations — theme.css
   Author: The Free Website Guys
   HSL brand tokens converted to hex live in :root via wp_add_inline_style
   (see functions.php theme_enqueue_assets / Section 6.1). Derived tokens
   are computed here with color-mix() so they track the editable tokens. */

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; margin: 0; padding: 0; }

body {
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: 'Jost', system-ui, -apple-system, sans-serif;
	font-weight: 400;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 500;
	font-size: inherit;
	letter-spacing: -0.012em;
	margin: 0;
	line-height: 1.15;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; padding: 0; color: inherit; }
a,
button,
[role="button"],
label[for],
summary,
select,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
.theme-cat-filter,
.theme-faq-question,
.theme-product-thumb,
.theme-cart-remove,
.theme-cart-toggle,
.theme-menu-toggle,
.theme-attr-pill,
.theme-footer-nav-link,
.theme-product-card__image-link,
.theme-product-card__info-link,
.theme-quick-add,
.theme-quick-view,
.theme-anchor-link,
.theme-mailto-link,
.theme-tel-link,
.theme-promo-dismiss,
.theme-cat-shop-link,
.woocommerce a.button,
.woocommerce button.button {
	cursor: pointer;
}
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.theme-cta-bg-img):not(.theme-about-img):not(.theme-hero-img):not(.theme-header-logo):not(.theme-footer-logo):not(.site-logo-img):not(.theme-cart-cover-img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero-bg-img, .product-card-img, .theme-cta-bg-img, .theme-about-img, .theme-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

section[id] { scroll-margin-top: 80px; }
body.admin-bar section[id] { scroll-margin-top: 112px; }
@media screen and (max-width: 782px) {
	body.admin-bar section[id] { scroll-margin-top: 126px; }
}

.container-wide {
	width: 100%;
	max-width: 84rem;
	margin-inline: auto;
	padding-inline: 1.25rem;
}
@media (min-width: 640px)  { .container-wide { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding-inline: 2.5rem; } }

.theme-eyebrow {
	font-size: 12px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 1rem;
	font-weight: 500;
}

.section-heading { color: var(--color-foreground); line-height: 1.05; }

.theme-scrim-radial {
	position: absolute; inset: 0;
	background-image: radial-gradient(at center, color-mix(in srgb, black 32%, transparent) 0%, color-mix(in srgb, black 58%, transparent) 70%, color-mix(in srgb, black 78%, transparent) 100%);
	pointer-events: none;
}
.theme-sparkle-dust {
	position: absolute; inset: 0;
	background-image:
		radial-gradient(circle at 12% 22%, color-mix(in srgb, var(--color-accent) 55%, transparent) 0 1.5px, transparent 2px),
		radial-gradient(circle at 78% 14%, color-mix(in srgb, var(--color-accent) 50%, transparent) 0 1.8px, transparent 2.4px),
		radial-gradient(circle at 32% 78%, color-mix(in srgb, var(--color-bone) 45%, transparent) 0 1.4px, transparent 2px),
		radial-gradient(circle at 62% 62%, color-mix(in srgb, var(--color-rose) 40%, transparent) 0 1.6px, transparent 2.2px),
		radial-gradient(circle at 90% 82%, color-mix(in srgb, var(--color-accent) 40%, transparent) 0 1.3px, transparent 2px);
	background-size: 340px 340px;
	opacity: 0.7;
	pointer-events: none;
}

/* ==========================================================================
   2. REVEAL ANIMATIONS (Section 2.1)
   ========================================================================== */

[data-reveal] {
	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;
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

/* Customizer preview + no-JS fallback: never leave content invisible */
body.is-customizer [data-reveal],
.theme-no-js [data-reveal] {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}
.reveal-item { opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 700ms ease, transform 700ms ease; }
.reveal-item.is-visible { opacity: 1; transform: translateY(0) scale(1); }
body.is-customizer .reveal-item,
body.is-customizer .theme-product-card-wrap.reveal-item {
	opacity: 1 !important; transform: none !important;
}

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-in-bottom { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes theme-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-33.3333%); } }

.theme-animate-fade-in { animation: theme-fade-in 0.7s ease-out both; }
.theme-animate-slide-in { animation: theme-slide-in-bottom 0.35s ease-out both; }

@media (prefers-reduced-motion: reduce) {
	[data-reveal], .reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
	.theme-marquee-track { animation: none !important; }
	* { scroll-behavior: auto !important; }
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */

.theme-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	white-space: nowrap; border-radius: 9999px;
	font-size: 14px; font-weight: 500;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
	border: 1px solid transparent;
	height: 2.75rem; padding: 0 1.5rem;
	text-transform: none;
}
.theme-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; pointer-events: none; }
.theme-btn-lg { height: 3rem; padding: 0 1.75rem; }
.theme-btn-primary { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.theme-btn-primary:hover { background-color: color-mix(in srgb, var(--color-primary) 90%, black); }
.theme-btn-rose { background-color: var(--color-rose); color: var(--color-rose-foreground); border-color: var(--color-rose); }
.theme-btn-rose:hover { background-color: color-mix(in srgb, var(--color-rose) 90%, black); }
.theme-btn-outline { background: transparent; color: var(--color-foreground); border-color: color-mix(in srgb, var(--color-foreground) 25%, transparent); }
.theme-btn-outline:hover { border-color: var(--color-foreground); background-color: color-mix(in srgb, var(--color-foreground) 4%, transparent); }
.theme-btn-outline-soft { background: var(--color-ivory); color: var(--color-foreground); border-color: color-mix(in srgb, var(--color-foreground) 15%, transparent); height: 2.75rem; padding: 0 1.25rem; }
.theme-btn-outline-soft:hover { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.theme-btn-glass { background: color-mix(in srgb, white 10%, transparent); color: #fff; border-color: color-mix(in srgb, white 40%, transparent); backdrop-filter: blur(10px); }
.theme-btn-glass:hover { background: color-mix(in srgb, white 20%, transparent); }
.theme-btn-ghost { background: transparent; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); height: 2.25rem; }
.theme-btn-ghost:hover { background-color: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-btn:disabled, .theme-btn.disabled { opacity: 0.6; pointer-events: none; }

/* ==========================================================================
   4. HEADER
   ========================================================================== */

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
/* Offset fixed header under the WP admin bar */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}

.theme-announcement-bar {
	background-color: var(--color-foreground);
	color: var(--color-background);
	font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
	padding: 0.5rem 1rem; text-align: center;
}
.theme-announcement-bar span { opacity: 0.9; }

.theme-header-inner {
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}
.site-header.is-solid .theme-header-inner,
.site-header.theme-scrolled .theme-header-inner {
	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);
}

.theme-header-row {
	display: flex; align-items: center; justify-content: space-between;
	height: 5rem; min-width: 0;
}
@media (min-width: 1024px) {
	.theme-header-row { height: 6rem; display: grid; grid-template-columns: 1fr auto 1fr; }
}

.theme-menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem; border-radius: 9999px;
	color: #fff; transition: background-color 0.2s ease, color 0.2s ease;
	order: 1;
}
.site-header.is-solid .theme-menu-toggle,
.site-header.theme-scrolled .theme-menu-toggle { color: var(--color-foreground); }
.theme-menu-toggle:hover { background-color: color-mix(in srgb, white 10%, transparent); }
.site-header.is-solid .theme-menu-toggle:hover,
.site-header.theme-scrolled .theme-menu-toggle:hover { background-color: color-mix(in srgb, var(--color-foreground) 6%, transparent); }
.theme-icon-menu svg { width: 1.25rem; height: 1.25rem; }
@media (min-width: 1024px) { .theme-menu-toggle { display: none; } }

.theme-site-identity { display: inline-flex; align-items: center; flex-shrink: 0; order: 2; }
@media (min-width: 1024px) { .theme-site-identity { order: 1; justify-self: start; } }
/* Match Lovable exactly: header h-14 / sm:h-16 / lg:h-[72px]; footer h-14 */
img.theme-header-logo,
img.site-logo-img.theme-header-logo {
	height: 3.5rem; /* 56px = h-14 */
	width: auto;
	max-width: none;
	max-height: none;
	display: block;
	filter: none;
	transition: filter 0.3s ease;
}
@media (min-width: 640px) {
	img.theme-header-logo,
	img.site-logo-img.theme-header-logo {
		height: 4rem; /* 64px = sm:h-16 */
	}
}
@media (min-width: 1024px) {
	img.theme-header-logo,
	img.site-logo-img.theme-header-logo {
		height: 4.5rem; /* 72px = lg:h-[72px] */
	}
}
img.theme-footer-logo,
img.site-logo-img.theme-footer-logo {
	height: 3.5rem; /* 56px = h-14 */
	width: auto;
	max-width: none;
	max-height: none;
	display: block;
}
.site-header:not(.is-solid):not(.theme-scrolled) .theme-header-logo { filter: brightness(0) invert(1); }
.site-logo-text { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; color: var(--color-foreground); }
.site-header:not(.is-solid):not(.theme-scrolled) .site-logo-text { color: #fff; }

.theme-primary-nav { display: none; order: 3; }
@media (min-width: 1024px) {
	.theme-primary-nav { display: flex; align-items: center; justify-self: center; order: 2; }
}
.theme-nav-list { display: flex; align-items: center; gap: 1.75rem; }
.theme-nav-link {
	position: relative; font-size: 14px; font-weight: 500;
	color: color-mix(in srgb, #fff 85%, transparent);
	transition: color 0.3s ease;
	padding-bottom: 4px;
}
.site-header.is-solid .theme-nav-link,
.site-header.theme-scrolled .theme-nav-link { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
.theme-nav-link:hover { color: #fff; }
.site-header.is-solid .theme-nav-link:hover,
.site-header.theme-scrolled .theme-nav-link:hover { color: var(--color-primary); }
.theme-nav-link.is-active { color: #fff; }
.site-header.is-solid .theme-nav-link.is-active,
.site-header.theme-scrolled .theme-nav-link.is-active { color: var(--color-primary); }
.theme-nav-link::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 9999px;
	background-color: var(--color-rose);
	opacity: 0; transform: scaleX(0); transition: all 0.3s ease;
}
.site-header.is-solid .theme-nav-link::after,
.site-header.theme-scrolled .theme-nav-link::after { background-color: var(--color-primary); }
.theme-nav-link.is-active::after { opacity: 1; transform: scaleX(1); }

.theme-header-actions { display: flex; align-items: center; gap: 0.5rem; justify-self: end; order: 3; }
.theme-cart-toggle {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem; border-radius: 9999px; color: #fff; transition: background-color 0.2s ease, color 0.2s ease;
}
.site-header.is-solid .theme-cart-toggle,
.site-header.theme-scrolled .theme-cart-toggle { color: var(--color-foreground); }
.theme-cart-toggle:hover { background-color: color-mix(in srgb, white 10%, transparent); }
.site-header.is-solid .theme-cart-toggle:hover,
.site-header.theme-scrolled .theme-cart-toggle:hover { background-color: color-mix(in srgb, var(--color-foreground) 6%, transparent); }
.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: 9999px; display: flex; align-items: center; justify-content: center;
}
.theme-cart-count:empty { display: none; }

.theme-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); }
.theme-mobile-nav.is-open { display: block; }
.theme-mobile-nav .container-wide { padding-block: 0.25rem; }
.theme-mobile-nav-list,
.theme-mobile-nav ul {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
	margin: 0;
	padding: 0.5rem 0 1rem;
	list-style: none;
}
.theme-mobile-nav-list li,
.theme-mobile-nav ul li {
	display: block;
	width: 100%;
	border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
}
.theme-mobile-nav-list li:last-child,
.theme-mobile-nav ul li:last-child { border-bottom: none; }
.theme-mobile-nav-list a,
.theme-mobile-nav ul a {
	display: block;
	width: 100%;
	padding: 0.9rem 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
}
.theme-mobile-nav-list a:hover,
.theme-mobile-nav ul a:hover { color: var(--color-primary); }
@media (min-width: 1024px) { .theme-mobile-nav { display: none !important; } }

/* ==========================================================================
   5. HERO
   ========================================================================== */

.theme-hero {
	position: relative; min-height: 100vh; width: 100%;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
body.theme-no-hero .theme-hero { display: none; }
.theme-hero-media { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.theme-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}
.theme-hero-tint { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-foreground) 35%, transparent); pointer-events: none; }
.theme-hero-dust { z-index: 1; }
.theme-hero-content { position: relative; z-index: 10; text-align: center; color: #fff; padding-block: 10rem 6rem; }
@media (min-width: 1024px) { .theme-hero-content { padding-block: 13rem 8rem; } }
/* Extra side inset on small screens (container-wide alone feels too tight). */
.theme-hero-content.container-wide,
.theme-cta-content.container-wide,
.theme-footer-inner.container-wide {
	padding-inline: 1.75rem;
}
@media (min-width: 640px) {
	.theme-hero-content.container-wide,
	.theme-cta-content.container-wide,
	.theme-footer-inner.container-wide { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
	.theme-hero-content.container-wide,
	.theme-cta-content.container-wide,
	.theme-footer-inner.container-wide { padding-inline: 2.5rem; }
}

.theme-hero-badge-row { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.theme-hero-badge {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.375rem 1rem; border-radius: 9999px;
	background-color: color-mix(in srgb, white 10%, transparent);
	border: 1px solid color-mix(in srgb, white 30%, transparent);
	backdrop-filter: blur(10px);
	font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
}
.theme-rose-icon { color: var(--color-rose); }

.theme-hero-title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	color: #fff; line-height: 1.02; letter-spacing: -0.02em;
	margin-inline: auto; max-width: 64rem;
	font-size: clamp(2rem, 5.4vw, 4.4rem);
	text-shadow: 0 2px 30px rgba(0,0,0,0.55);
}
.theme-hero-title em { font-style: italic; color: #fff; }

.theme-hero-subtitle { margin: 1.75rem auto 0; max-width: 42rem; font-size: 14px; color: color-mix(in srgb, white 85%, transparent); line-height: 1.6; }
@media (min-width: 640px) { .theme-hero-subtitle { font-size: 15px; } }

.theme-hero-buttons { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
@media (min-width: 640px) { .theme-hero-buttons { flex-direction: row; gap: 1rem; } }

.theme-hero-scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; pointer-events: none; }
.theme-hero-scroll-indicator span { display: block; height: 3rem; width: 1px; background-color: color-mix(in srgb, white 50%, transparent); animation: theme-pulse 2s ease-in-out infinite; }
@keyframes theme-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ==========================================================================
   6. ABOUT
   ========================================================================== */

.theme-about { background-color: var(--color-linen); padding: 6rem 0; }
@media (min-width: 768px) { .theme-about { padding: 8rem 0; } }
.theme-about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .theme-about-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }

.theme-about-photo-wrap { display: flex; min-width: 0; }
.theme-about-photo { position: relative; width: 100%; min-height: 420px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1rem; background-color: var(--color-bone); box-shadow: 0 20px 50px -18px color-mix(in srgb, var(--color-foreground) 32%, transparent); }
@media (min-width: 1024px) { .theme-about-photo { aspect-ratio: auto; min-height: 0; height: 100%; } }
.theme-about-badge { position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; border-radius: 9999px; background-color: var(--color-primary); color: var(--color-primary-foreground); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.theme-about-badge-dot { width: 6px; height: 6px; border-radius: 9999px; background-color: #fff; }

.theme-about-copy { min-width: 0; }
@media (min-width: 1024px) { .theme-about-copy { padding-left: 1.5rem; } }
.theme-about-title { font-size: 2.25rem; }
@media (min-width: 768px)  { .theme-about-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-about-title { font-size: 3.4rem; } }

.theme-about-quote { margin-top: 2rem; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.25rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.35; border-left: 2px solid color-mix(in srgb, var(--color-primary) 70%, transparent); padding-left: 1.25rem; }
@media (min-width: 768px) { .theme-about-quote { font-size: 1.5rem; } }

.theme-about-body { 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) { .theme-about-body { font-size: 16px; } }

.theme-about-cta { margin-top: 2.5rem; }
.theme-mailto-link, .theme-tel-link { text-transform: none; }

.theme-about-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) { .theme-about-stats { grid-template-columns: repeat(3, 1fr); } }
.theme-about-stat { min-width: 0; }
.theme-about-stat-value { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.25rem; color: var(--color-primary); overflow-wrap: break-word; }
.theme-about-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); }

/* ==========================================================================
   7. SHOP
   ========================================================================== */

.theme-shop { background-color: var(--color-ivory); padding: 6rem 0; }
@media (min-width: 768px) { .theme-shop { padding: 8rem 0; } }

.theme-shop-head { display: flex; flex-direction: column; gap: 1.5rem; justify-content: space-between; margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .theme-shop-head { flex-direction: row; align-items: flex-end; } }
.theme-shop-head-copy { max-width: 42rem; }
.theme-shop-title { font-size: 2.25rem; }
@media (min-width: 768px)  { .theme-shop-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-shop-title { font-size: 3.2rem; } }
.theme-shop-subtitle { margin-top: 1.25rem; font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); line-height: 1.6; max-width: 36rem; }
@media (min-width: 768px) { .theme-shop-subtitle { font-size: 15px; } }

.theme-shop-search { position: relative; width: 100%; }
@media (min-width: 1024px) { .theme-shop-search { width: 20rem; } }
.theme-shop-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: color-mix(in srgb, var(--color-foreground) 40%, transparent); pointer-events: none; }
.theme-shop-search input { width: 100%; height: 2.75rem; padding: 0 1rem 0 2.75rem; border-radius: 9999px; background-color: var(--color-linen); border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); font-size: 14px; }
.theme-shop-search input::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.theme-shop-search input:focus { outline: none; border-color: color-mix(in srgb, var(--color-primary) 60%, transparent); }

.theme-shop-filters { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2.5rem; }
.theme-cat-filter {
	height: 2.5rem; padding: 0 1.25rem; border-radius: 9999px; font-size: 14px; font-weight: 500;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	background: transparent; color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
	transition: all 0.2s ease;
}
.theme-cat-filter:hover { border-color: var(--color-primary); color: var(--color-primary); }
.theme-cat-filter.is-active { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

.theme-shop-empty-message { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-shop-empty-message[hidden] { display: none; }

.theme-product-grid { display: grid; grid-template-columns: 1fr; column-gap: 1.5rem; row-gap: 2.5rem; align-items: stretch; }
@media (min-width: 640px)  { .theme-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-product-grid--related { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card-wrap[hidden] { display: none; }
.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__image-link { position: absolute; inset: 0; z-index: 2; }
.theme-product-card__image-wrapper .product-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
	pointer-events: none;
}
.theme-product-card:hover .product-card-img { transform: scale(1.04); }
.theme-product-card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 35%, transparent), transparent 60%); opacity: 0; transition: opacity 0.5s ease; pointer-events: none; z-index: 1; }
.theme-product-card:hover .theme-product-card__scrim { opacity: 1; }

.theme-product-badge-soldout { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3; background-color: var(--color-foreground); color: var(--color-background); font-size: 11px; font-weight: 500; padding: 0.25rem 0.625rem; border-radius: 9999px; }

.theme-product-card__quick-actions { position: absolute; inset-inline: 0.75rem; bottom: 0.75rem; z-index: 4; 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; pointer-events: auto; }
.theme-product-card__quick-actions a { pointer-events: auto; }
.theme-quick-add {
	flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	height: 2.5rem; border-radius: 9999px; background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(6px); color: var(--color-foreground); font-size: 14px; font-weight: 500;
	box-shadow: 0 4px 20px -8px color-mix(in srgb, var(--color-foreground) 18%, transparent);
	transition: background-color 0.3s ease, color 0.3s ease;
}
.theme-quick-add:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); }
.theme-quick-add.loading::after { display: none !important; }
.theme-quick-view {
	width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 9999px; background-color: color-mix(in srgb, var(--color-background) 95%, transparent); backdrop-filter: blur(6px);
	color: var(--color-foreground); transition: background-color 0.3s ease, color 0.3s ease;
	box-shadow: 0 4px 20px -8px color-mix(in srgb, var(--color-foreground) 18%, transparent);
}
.theme-quick-view:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.theme-product-card__info-link { display: block; padding-inline: 0.125rem; }
.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-size: 1.15rem; line-height: 1.3; 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; }

.theme-shop-viewmore { margin-top: 3rem; display: flex; justify-content: center; }

/* ==========================================================================
   8. MARQUEE
   ========================================================================== */

.theme-marquee { background-color: var(--color-primary); padding: 1.25rem 0; overflow: hidden; }
.theme-marquee-track { display: flex; white-space: nowrap; animation: theme-marquee 22s linear infinite; width: max-content; }
.theme-marquee-item { display: flex; align-items: center; flex-shrink: 0; color: color-mix(in srgb, var(--color-primary-foreground) 95%, transparent); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.125rem; letter-spacing: 0.02em; }
@media (min-width: 768px) { .theme-marquee-item { font-size: 1.25rem; } }
.theme-marquee-item > span:first-child { margin-inline: 1.5rem; }
@media (min-width: 768px) { .theme-marquee-item > span:first-child { margin-inline: 2rem; } }
.theme-marquee-dot { color: color-mix(in srgb, var(--color-primary-foreground) 50%, transparent); font-size: 0.875rem; }

/* ==========================================================================
   9. SERVICES
   ========================================================================== */

.theme-services { background-color: var(--color-ivory); padding: 6rem 0; }
@media (min-width: 768px) { .theme-services { padding: 8rem 0; } }
.theme-services-head { max-width: 48rem; margin-bottom: 3.5rem; }
.theme-services-title { font-size: 2.25rem; }
@media (min-width: 768px)  { .theme-services-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-services-title { font-size: 3.2rem; } }

.theme-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(0, 1fr)); gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .theme-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

.theme-service-card { background-color: var(--color-linen); border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); border-radius: 1rem; overflow: hidden; transition: border-color 0.3s ease; display: flex; flex-direction: column; }
.theme-service-card:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.theme-service-image-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.theme-service-image-wrap .theme-service-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.theme-service-card:hover .theme-service-image { transform: scale(1.05); }
.theme-service-icon { position: absolute; top: 1rem; left: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 9999px; background-color: var(--color-primary); color: var(--color-primary-foreground); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px -10px rgba(0,0,0,0.4); transition: transform 0.3s ease; }
.theme-service-card:hover .theme-service-icon { transform: rotate(20deg); }
.theme-service-body { padding: 1.75rem; }
@media (min-width: 768px) { .theme-service-body { padding: 2rem; } }
.theme-service-title { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--color-foreground); }
.theme-service-desc { font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

/* ==========================================================================
   10. FAQ
   ========================================================================== */

.theme-faq { background-color: var(--color-linen); padding: 6rem 0; }
@media (min-width: 768px) { .theme-faq { padding: 8rem 0; } }
.theme-faq-head { max-width: 42rem; margin: 0 auto 3.5rem; text-align: center; }
.theme-faq-title { font-size: 2.25rem; }
@media (min-width: 768px) { .theme-faq-title { font-size: 3rem; } }

.theme-faq-list { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.theme-faq-item { border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); border-radius: 1rem; background-color: var(--color-ivory); overflow: hidden; transition: border-color 0.2s ease; }
.theme-faq-item.is-open { border-color: color-mix(in srgb, var(--color-primary) 30%, transparent); }
.theme-faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem; text-align: left; }
.theme-faq-question span:first-child { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.125rem; color: var(--color-foreground); }
@media (min-width: 768px) { .theme-faq-question span:first-child { font-size: 1.25rem; } }
.theme-faq-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 9999px;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	position: relative;
}
.theme-faq-icon svg {
	color: var(--color-primary-foreground);
	stroke: currentColor;
}
.theme-faq-icon-plus, .theme-faq-icon-minus { position: absolute; display: inline-flex; transition: opacity 0.2s ease, transform 0.2s ease; color: inherit; }
.theme-faq-icon-minus { opacity: 0; transform: scale(0.6); }
.theme-faq-item.is-open .theme-faq-icon-plus { opacity: 0; transform: scale(0.6); }
.theme-faq-item.is-open .theme-faq-icon-minus { opacity: 1; transform: scale(1); }
.theme-faq-item:not(.is-open) .theme-faq-icon-plus { opacity: 1; transform: scale(1); }

.theme-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.theme-faq-item.is-open .theme-faq-answer { max-height: 40em; }
.theme-faq-answer p { padding: 0 1.5rem 1.5rem; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

/* ==========================================================================
   11. CUSTOM ORDERS CTA BANNER
   ========================================================================== */

.theme-cta-banner { position: relative; overflow: hidden; }
.theme-cta-tint { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-foreground) 45%, transparent); pointer-events: none; }
.theme-cta-dust { opacity: 0.6; }
.theme-cta-content { position: relative; z-index: 10; padding-block: 7rem; text-align: center; color: #fff; }
@media (min-width: 768px) { .theme-cta-content { padding-block: 10rem; } }
.theme-cta-eyebrow { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: 12px; letter-spacing: 0.38em; text-transform: uppercase; color: color-mix(in srgb, white 85%, transparent); margin-bottom: 1.5rem; font-weight: 500; }
.theme-cta-rule { height: 1px; width: 2rem; background-color: color-mix(in srgb, var(--color-rose) 80%, transparent); display: inline-block; }
.theme-cta-title { font-family: 'Cormorant Garamond', Georgia, serif; color: #fff; line-height: 1.05; letter-spacing: -0.02em; margin-inline: auto; max-width: 56rem; font-size: clamp(2rem, 5.4vw, 4rem); text-shadow: 0 2px 30px rgba(0,0,0,0.55); }
.theme-cta-title em { font-style: italic; color: var(--color-rose); }
.theme-cta-subtitle { margin: 1.75rem auto 0; max-width: 36rem; font-size: 15px; color: color-mix(in srgb, white 85%, transparent); line-height: 1.6; }
.theme-cta-actions { margin-top: 2.5rem; } /* Lovable mt-10 */

/* ==========================================================================
   12. POLICIES
   ========================================================================== */

.theme-policies { 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) { .theme-policies { padding: 8rem 0; } }
.theme-policies-head { max-width: 42rem; margin-bottom: 3.5rem; }
.theme-policies-title { font-size: 2.25rem; }
@media (min-width: 768px) { .theme-policies-title { font-size: 3rem; } }
.theme-policies-subtitle { 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) { .theme-policies-subtitle { font-size: 15px; } }

.theme-policies-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .theme-policies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.theme-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.3s ease; }
@media (min-width: 768px) { .theme-policy-card { padding: 2rem; } }
.theme-policy-card:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.theme-policy-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 9999px; background-color: var(--color-primary); color: var(--color-primary-foreground); margin-bottom: 1.25rem; }
.theme-policy-title { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--color-foreground); }
.theme-policy-body { font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

/* ==========================================================================
   13. CONTACT
   ========================================================================== */

.theme-contact { background-color: var(--color-linen); padding: 6rem 0 3rem; }
@media (min-width: 768px) { .theme-contact { padding: 8rem 0 4rem; } }
.theme-contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .theme-contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.theme-contact-copy { display: flex; flex-direction: column; height: 100%; justify-content: center; }
.theme-contact-title { font-size: 2.25rem; }
@media (min-width: 768px)  { .theme-contact-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-contact-title { font-size: 3.4rem; } }
.theme-contact-subtitle { margin-top: 1.5rem; font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.6; max-width: 30rem; }

.theme-contact-links { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-contact-link-item { display: inline-flex; align-items: center; gap: 1rem; color: var(--color-foreground); transition: color 0.2s ease; }
.theme-contact-link-item:hover { color: var(--color-primary); }
.theme-contact-link-icon { width: 2.75rem; height: 2.75rem; border-radius: 9999px; 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; flex-shrink: 0; }
.theme-contact-link-item:hover .theme-contact-link-icon { border-color: var(--color-primary); }
.theme-contact-link-text { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.theme-contact-link-label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-contact-link-value { font-size: 15px; font-weight: 500; overflow-wrap: break-word; }

.theme-contact-quote-box { margin-top: 1.5rem; 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; }
@media (min-width: 768px) { .theme-contact-quote-box { padding: 1.75rem; } }
.theme-contact-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: 9999px; background-color: var(--color-primary); color: var(--color-primary-foreground); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; }
.theme-contact-quote { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); font-size: 1.125rem; line-height: 1.35; border-left: 2px solid color-mix(in srgb, var(--color-primary) 70%, transparent); padding-left: 1.25rem; }
@media (min-width: 768px) { .theme-contact-quote { font-size: 1.25rem; } }
.theme-contact-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; }

.theme-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: 0 4px 20px -8px color-mix(in srgb, var(--color-foreground) 18%, transparent); height: 100%; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .theme-contact-form { padding: 2rem; } }
.theme-contact-form-fields { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.theme-form-group 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; }
.theme-form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-form-row-2 { grid-template-columns: 1fr 1fr; } }
.theme-contact-form input[type="text"], .theme-contact-form input[type="email"], .theme-contact-form input[type="tel"], .theme-contact-form select, .theme-contact-form textarea {
	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: 0.5rem; font-size: 14px; transition: border-color 0.2s ease;
}
.theme-contact-form textarea { height: auto; padding: 0.75rem 1rem; resize: none; }
.theme-contact-form input::placeholder, .theme-contact-form textarea::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.theme-contact-form input:focus, .theme-contact-form select:focus, .theme-contact-form textarea:focus { outline: none; border-color: var(--color-primary); }
.theme-select-wrap { position: relative; }
.theme-select-wrap select { appearance: none; padding-right: 2.5rem; }
.theme-select-chevron { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-contact-form-footer { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.5rem; }
.theme-contact-submit { width: 100%; }
.theme-contact-form-note { font-size: 12px; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); text-align: center; }
.theme-contact-form-message { font-size: 13px; text-align: center; min-height: 1em; }
.theme-contact-form-message.is-error { color: var(--color-destructive, #db2424); }
.theme-contact-form-message.is-success { color: var(--color-primary); }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.site-footer { background-color: var(--color-linen); border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-footer-inner { padding-block: 3.5rem 5rem; }
@media (min-width: 1024px) { .theme-footer-inner { padding-block: 5rem; } }
.theme-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px)  { .theme-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.theme-footer-tagline { margin-top: 1rem; font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); line-height: 1.6; max-width: 20rem; }
.theme-footer-col h3 { font-size: 1.125rem; color: var(--color-foreground); margin-bottom: 1rem; }
.theme-footer-nav-list { display: flex; flex-direction: column; gap: 0.625rem; }
.theme-footer-nav-link { font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); transition: color 0.2s ease; text-align: left; }
.theme-footer-nav-link:hover { color: var(--color-primary); }
.theme-footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; font-size: 14px; }
.theme-footer-contact-list a { display: inline-flex; align-items: center; gap: 0.5rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); transition: color 0.2s ease; }
.theme-footer-contact-list a:hover { color: var(--color-primary); }
.theme-footer-note { color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-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); }
.theme-footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }
.theme-footer-bottom a:hover { color: var(--color-primary); }

/* ==========================================================================
   15. PROMO BANNER
   ========================================================================== */

.theme-promo-banner {
	position: fixed; bottom: 1.5rem; left: 1rem; right: 1rem; z-index: 60;
	background-color: var(--color-foreground); color: var(--color-background);
	border-radius: 1rem; box-shadow: 0 20px 50px -18px rgba(0,0,0,0.32);
	padding: 1rem 1.25rem; display: flex; align-items: flex-start; gap: 0.75rem;
	animation: theme-fade-in 0.5s ease-out both;
}
.theme-promo-banner[hidden] { display: none; }
@media (min-width: 640px) { .theme-promo-banner { left: auto; right: 1.5rem; max-width: 26rem; } }
.theme-promo-message { font-size: 13px; line-height: 1.6; flex: 1; }
@media (min-width: 640px) { .theme-promo-message { font-size: 15px; } }
.theme-promo-message > span + span:not([data-theme-text="promo_text_after"]) { margin-inline-start: 0.3em; }
.theme-rose-text, .theme-promo-message .theme-rose-text { color: var(--color-rose); font-weight: 600; }
.theme-promo-dismiss { flex-shrink: 0; margin-top: 0.125rem; padding: 0.375rem; border-radius: 9999px; transition: background-color 0.2s ease; }
.theme-promo-dismiss:hover { background-color: color-mix(in srgb, white 10%, transparent); }

/* ==========================================================================
   16. GENERIC PAGES / 404
   ========================================================================== */

.theme-generic-main, .theme-404-main { padding: 8rem 0 6rem; min-height: 60vh; }
.theme-generic-content { max-width: 48rem; margin-inline: auto; }
.page-title { font-size: 2.5rem; margin-bottom: 1.5rem; }
.theme-404-content { text-align: center; max-width: 32rem; margin-inline: auto; }
.theme-404-code { font-size: 5rem; color: var(--color-primary); }
.theme-404-title { font-size: 1.5rem; margin-top: 1rem; }
.theme-404-text { margin-top: 1rem; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }
.theme-404-link { display: inline-block; margin-top: 2rem; color: var(--color-primary); text-decoration: underline; }

/* ==========================================================================
   17. WOOCOMMERCE — GLOBAL OVERRIDES (Section 14)
   ========================================================================== */

.woocommerce ul.products, .woocommerce ul.products li.product { margin: 0; padding: 0; list-style: none; }

.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	border-radius: 0.5rem; border-top-color: var(--color-primary);
	font-family: 'Jost', sans-serif; font-size: 14px; padding: 1rem 1.5rem;
}
.woocommerce-error { background-color: color-mix(in srgb, var(--color-destructive, #db2424) 8%, white); }

.theme-shop-archive-main { padding: 9rem 0 6rem; background-color: var(--color-ivory); }
.theme-shop-archive-title { font-size: 2.5rem; margin-bottom: 2rem; }
.theme-shop-pagination { margin-top: 3rem; display: flex; justify-content: center; gap: 0.5rem; }
.theme-shop-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); font-size: 14px; }
.theme-shop-pagination .page-numbers.current { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

/* Add to cart button overrides (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border: none !important;
	border-radius: 9999px !important;
	min-height: 3rem !important;
	padding: 0 1.75rem !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: 'Jost', sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Card compact quick-add button — overrides global rules (Section 11.4.1) */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: 2.5rem !important;
	padding: 0 1rem !important;
	border-radius: 9999px !important;
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent) !important;
	color: var(--color-foreground) !important;
	box-shadow: 0 4px 20px -8px color-mix(in srgb, var(--color-foreground) 18%, transparent) !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart:hover {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !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; }

/* ==========================================================================
   18. SINGLE PRODUCT
   ========================================================================== */

.theme-single-product-main {
	/* Clear fixed header: announcement (~2.25rem) + row (5rem/6rem) + gap */
	padding: 10.5rem 0 5rem;
	background-color: var(--color-ivory);
}
@media (min-width: 1024px) {
	.theme-single-product-main { padding-top: 12rem; }
}
body.admin-bar .theme-single-product-main { padding-top: calc(10.5rem + 32px); }
@media (min-width: 1024px) {
	body.admin-bar .theme-single-product-main { padding-top: calc(12rem + 32px); }
}
@media screen and (max-width: 782px) {
	body.admin-bar .theme-single-product-main { padding-top: calc(10.5rem + 46px); }
}
.theme-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); }
.theme-breadcrumb a:hover { color: var(--color-primary); }
.theme-breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb-current { color: var(--color-foreground); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; 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; } }
.theme-product-main-image { position: relative; aspect-ratio: 1 / 1; width: 100%; background-color: var(--color-linen); border-radius: 0.75rem; overflow: hidden; margin-bottom: 1rem; }
.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: 0.5rem; overflow: hidden; border: 2px solid transparent; transition: border-color 0.2s ease; }
.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-thumb img { width: 100%; height: 100%; object-fit: cover; }

.theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-category { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.75rem; font-weight: 500; }
.product-title.theme-product-title { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 1.875rem; line-height: 1.1; color: var(--color-foreground); margin-bottom: 1rem; }
@media (min-width: 768px)  { .product-title.theme-product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .product-title.theme-product-title { font-size: 2.6rem; } }
.theme-product-price { font-size: 20px; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); margin-bottom: 1.75rem; }
.theme-product-stock--out { color: var(--color-destructive, #db2424); font-weight: 500; margin-bottom: 1rem; }
.theme-product-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-description p { margin-bottom: 1rem; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent); border-radius: 9999px; }
.theme-qty-minus, .theme-qty-plus { padding: 0.625rem 1rem; transition: color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { color: var(--color-primary); }
.theme-qty-input { width: 3rem; text-align: center; border: none; background: transparent; font-size: 14px; font-weight: 500; padding: 0.625rem 0; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.single-product .theme-add-to-cart-area,
.theme-add-to-cart-area {
	display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem;
}
.single-product .single_add_to_cart_button,
.theme-add-to-cart-area .single_add_to_cart_button,
.theme-add-to-cart-area button[type="submit"] { flex: 1 1 auto; min-width: 160px; }
.theme-buy-now { flex: 1 1 auto; min-width: 160px; }

.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-weight: 600; font-family: 'Jost', sans-serif; font-style: normal; }
.single-product .variations tbody td.value { padding-top: 0; margin-bottom: 1rem; }
.theme-attr-select-hidden { display: none !important; }
.single-product .variations select { height: 2.75rem; padding: 0 1rem; border-radius: 0.5rem; border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); background-color: var(--color-ivory); width: 100%; max-width: 20rem; }

.theme-product-details { border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); padding-top: 2rem; margin-top: 2rem; }
.theme-product-details-heading { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 1rem; }
.theme-product-details-list { display: flex; flex-direction: column; gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
.theme-product-details-list li {
	display: flex;
	align-items: flex-start;
	font-size: 14px;
	line-height: 1.55;
	color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
	overflow-wrap: break-word;
	word-break: break-word;
}
.theme-product-details-list li::before {
	content: '';
	width: 0.25rem;
	height: 0.25rem;
	margin-top: 0.55rem;
	margin-right: 0.75rem;
	flex-shrink: 0;
	border-radius: 9999px;
	background-color: var(--color-primary);
}
.theme-product-details-body { font-size: 14px; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); overflow-wrap: break-word; word-break: break-word; }

.theme-product-trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); text-align: center; }
.theme-product-trust-item svg { margin-inline: auto; color: var(--color-primary); margin-bottom: 0.5rem; }
.theme-product-trust-item p { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

.theme-related-products { padding: 5rem 0; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-related-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.theme-related-head h2 { font-size: 1.875rem; }
@media (min-width: 768px) { .theme-related-head h2 { font-size: 2.25rem; } }
.theme-related-viewall { display: none; align-items: center; gap: 0.375rem; font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
@media (min-width: 640px) { .theme-related-viewall { display: inline-flex; } }
.theme-related-viewall:hover { color: var(--color-primary); }

/* ==========================================================================
   19. CART DRAWER
   ========================================================================== */

#theme-cart-overlay { position: fixed; inset: 0; background-color: color-mix(in srgb, var(--color-foreground) 30%, transparent); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem;
	background-color: var(--color-ivory); z-index: 95; box-shadow: 0 20px 50px -18px rgba(0,0,0,0.32);
	display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-cart-drawer-header h2 { font-size: 1.5rem; }
.theme-cart-close { padding: 0.375rem; border-radius: 9999px; transition: background-color 0.2s ease; }
.theme-cart-close:hover { background-color: color-mix(in srgb, var(--color-foreground) 6%, transparent); }

.theme-cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-empty svg { color: color-mix(in srgb, var(--color-foreground) 30%, transparent); margin-bottom: 1rem; }
.theme-cart-empty p { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); margin-bottom: 1.5rem; font-size: 14px; }

.theme-cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item-image { width: 5rem; height: 6rem; background-color: var(--color-bone); border-radius: 0.375rem; overflow: hidden; flex-shrink: 0; display: block; position: relative; }
.theme-cart-item-image img,
a.theme-cart-item-image > img,
.theme-cart-item-image img.attachment-thumbnail,
.theme-cart-item-image img.theme-cart-cover-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center center;
	display: block;
}
.theme-cart-item-info { flex: 1; min-width: 0; }
.theme-cart-item-name { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s ease; }
.theme-cart-item-name:hover { color: var(--color-primary); }
.theme-cart-item-price { font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 0.125rem; }
.theme-cart-item-variation { font-size: 12px; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-top: 0.25rem; }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s ease; }
.theme-cart-qty-btn:hover { background-color: var(--color-bone); }
.theme-cart-qty-value { font-size: 13px; width: 1.5rem; text-align: center; }
.theme-cart-remove { margin-left: auto; font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); transition: color 0.2s ease; }
.theme-cart-remove:hover { color: var(--color-destructive, #db2424); }

.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-subtotal-row { display: flex; justify-content: space-between; font-size: 14px; }
.theme-cart-subtotal-row span:first-child { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }
.theme-cart-subtotal-value { font-weight: 500; }
.theme-cart-shipping-note { font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-cart-checkout-btn { width: 100%; }
.theme-cart-empty-btn { width: 100%; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

/* ==========================================================================
   20. CHECKOUT BLOCK OVERRIDES (Section 13)
   ========================================================================== */

/* Parent wrappers must not compress the checkout (page.php uses .theme-generic-content @ 48rem). */
body.woocommerce-checkout #page-content,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .theme-generic-main,
body.woocommerce-checkout .theme-generic-content,
body.woocommerce-checkout .container-wide.theme-generic-content,
body.woocommerce-checkout article,
body.woocommerce-checkout .entry-content {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}

/* Clear fixed header (same rhythm as single product). Horizontal padding lives on title + checkout. */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .theme-generic-main {
	padding-top: 10.5rem;
	padding-bottom: 4rem;
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .site-main,
	body.woocommerce-checkout .theme-generic-main { padding-top: 12rem; }
}
body.admin-bar.woocommerce-checkout .site-main,
body.admin-bar.woocommerce-checkout .theme-generic-main {
	padding-top: calc(10.5rem + 32px);
}
@media (min-width: 1024px) {
	body.admin-bar.woocommerce-checkout .site-main,
	body.admin-bar.woocommerce-checkout .theme-generic-main {
		padding-top: calc(12rem + 32px);
	}
}
@media screen and (max-width: 782px) {
	body.admin-bar.woocommerce-checkout .site-main,
	body.admin-bar.woocommerce-checkout .theme-generic-main {
		padding-top: calc(10.5rem + 46px);
	}
}

body.woocommerce-checkout .container-wide.theme-generic-content {
	padding-inline: 0;
}

/* Title + checkout share the same width and horizontal inset. */
body.woocommerce-checkout .page-title,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	max-width: 1280px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-inline: 1.25rem;
	box-sizing: border-box;
}
@media (min-width: 640px) {
	body.woocommerce-checkout .page-title,
	body.woocommerce-checkout .wp-block-woocommerce-checkout,
	body.woocommerce-checkout .wc-block-checkout,
	.entry-content .wp-block-woocommerce-checkout,
	.entry-content .wc-block-checkout { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .page-title,
	body.woocommerce-checkout .wp-block-woocommerce-checkout,
	body.woocommerce-checkout .wc-block-checkout,
	.entry-content .wp-block-woocommerce-checkout,
	.entry-content .wc-block-checkout { padding-inline: 2.5rem; }
}

body.woocommerce-checkout .page-title {
	margin-bottom: 1.75rem;
}

/* Checkout block container. */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	display: block;
	font-family: 'Jost', sans-serif;
	container-type: inline-size;
}

/* Notices: same width/alignment as checkout content (plural "notices"). */
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-checkout .wc-block-components-notices,
.entry-content .wp-block-woocommerce-checkout .wc-block-components-notices {
	max-width: 1280px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-inline: 1.25rem;
	box-sizing: border-box;
}
@media (min-width: 640px) {
	body.woocommerce-checkout .wc-block-components-notices,
	.entry-content .wc-block-checkout .wc-block-components-notices,
	.entry-content .wp-block-woocommerce-checkout .wc-block-components-notices { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .wc-block-components-notices,
	.entry-content .wc-block-checkout .wc-block-components-notices,
	.entry-content .wp-block-woocommerce-checkout .wc-block-components-notices { padding-inline: 2.5rem; }
}

/*
 * Two-column layout lives on the sidebar-layout wrapper (not only .wc-block-checkout).
 * Cover both historical and current class names.
 */
body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout.wc-block-components-sidebar-layout,
.entry-content .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	gap: 1.5rem;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > *,
.entry-content .wc-block-checkout.wc-block-components-sidebar-layout > *,
.entry-content .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout > * {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

/* Notices / first child span full width. */
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-components-sidebar-layout > :first-child,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > :first-child,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > :first-child,
.entry-content .wc-block-checkout.wc-block-components-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-checkout.wc-block-components-sidebar-layout > :first-child {
	grid-column: 1 / -1;
	order: 1;
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
.entry-content .wc-block-checkout .wc-block-checkout__main,
.entry-content .wc-block-checkout .wc-block-components-main {
	order: 2;
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding-right: 0;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
.entry-content .wc-block-checkout .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout .wc-block-components-sidebar {
	order: 3;
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding-left: 0;
	box-sizing: border-box;
	background-color: var(--color-linen);
	border-radius: 0.85rem;
	padding: 2rem;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Two columns when the viewport (and container) can fit contact + summary. */
@media (min-width: 900px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout.wc-block-components-sidebar-layout,
	.entry-content .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: 1.5rem;
		align-items: start;
		flex-wrap: unset;
	}

	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-components-main,
	.entry-content .wc-block-checkout .wc-block-checkout__main,
	.entry-content .wc-block-checkout .wc-block-components-main {
		grid-column: 1;
		order: 2;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		flex: none;
	}

	body.woocommerce-checkout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar {
		grid-column: 2;
		order: 3;
		width: 100%;
		min-width: 360px;
		max-width: 100%;
		flex: none;
		position: sticky;
		top: 6.5rem;
	}
}

/* Classic shortcode checkout fallback. */
@media (min-width: 900px) {
	body.woocommerce-checkout form.checkout.woocommerce-checkout {
		display: grid;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: 1.5rem;
		align-items: start;
		max-width: 1280px;
		margin-inline: auto;
		width: 100%;
		box-sizing: border-box;
	}
	body.woocommerce-checkout form.checkout #customer_details {
		grid-column: 1;
		grid-row: 1 / span 8;
		width: 100%;
		min-width: 0;
		float: none;
	}
	body.woocommerce-checkout form.checkout #order_review_heading,
	body.woocommerce-checkout form.checkout #order_review {
		grid-column: 2;
		width: 100%;
		min-width: 360px;
		float: none;
		clear: none;
	}
	body.woocommerce-checkout form.checkout #order_review {
		background-color: var(--color-linen);
		border-radius: 0.85rem;
		padding: 2rem;
		position: sticky;
		top: 6.5rem;
		box-sizing: border-box;
	}
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent) !important;
	border-radius: 0.5rem !important;
	background-color: var(--color-ivory) !important;
	font-family: 'Jost', sans-serif !important;
	color: var(--color-foreground) !important;
	box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-select select:focus {
	border-color: var(--color-primary) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-text-input input { padding: revert; }
body.woocommerce-checkout ::placeholder,
.entry-content .wc-block-checkout ::placeholder {
	color: color-mix(in srgb, var(--color-foreground) 45%, transparent);
}

body.woocommerce-checkout h2,
body.woocommerce-checkout h3,
.entry-content .wc-block-checkout h2,
.entry-content .wc-block-checkout h3 {
	font-family: 'Cormorant Garamond', Georgia, serif;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: 9999px !important;
	font-family: 'Jost', sans-serif !important;
	text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
	opacity: 0.85;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-checkout .wc-block-components-notice-banner {
	border-radius: 0.5rem;
	grid-column: 1 / -1;
}

/* ==========================================================================
   21. CART / MY ACCOUNT / THANK YOU — WIDTH PARITY (Section 13.7)
   ========================================================================== */

/* Clear fixed header on default WooCommerce pages (cart, account, thank you). */
body.woocommerce-cart .site-main,
body.woocommerce-cart .theme-generic-main,
body.woocommerce-account .site-main,
body.woocommerce-account .theme-generic-main,
body.theme-thankyou-page .site-main,
body.theme-thankyou-page .theme-generic-main {
	padding-top: 10.5rem;
	padding-bottom: 4rem;
}
@media (min-width: 1024px) {
	body.woocommerce-cart .site-main,
	body.woocommerce-cart .theme-generic-main,
	body.woocommerce-account .site-main,
	body.woocommerce-account .theme-generic-main,
	body.theme-thankyou-page .site-main,
	body.theme-thankyou-page .theme-generic-main { padding-top: 12rem; }
}
body.admin-bar.woocommerce-cart .site-main,
body.admin-bar.woocommerce-cart .theme-generic-main,
body.admin-bar.woocommerce-account .site-main,
body.admin-bar.woocommerce-account .theme-generic-main,
body.admin-bar.theme-thankyou-page .site-main,
body.admin-bar.theme-thankyou-page .theme-generic-main {
	padding-top: calc(10.5rem + 32px);
}
@media (min-width: 1024px) {
	body.admin-bar.woocommerce-cart .site-main,
	body.admin-bar.woocommerce-cart .theme-generic-main,
	body.admin-bar.woocommerce-account .site-main,
	body.admin-bar.woocommerce-account .theme-generic-main,
	body.admin-bar.theme-thankyou-page .site-main,
	body.admin-bar.theme-thankyou-page .theme-generic-main {
		padding-top: calc(12rem + 32px);
	}
}
@media screen and (max-width: 782px) {
	body.admin-bar.woocommerce-cart .site-main,
	body.admin-bar.woocommerce-cart .theme-generic-main,
	body.admin-bar.woocommerce-account .site-main,
	body.admin-bar.woocommerce-account .theme-generic-main,
	body.admin-bar.theme-thankyou-page .site-main,
	body.admin-bar.theme-thankyou-page .theme-generic-main {
		padding-top: calc(10.5rem + 46px);
	}
}

body.woocommerce-cart .page-title,
body.woocommerce-account .page-title,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 84rem; margin-inline: auto; padding-inline: 1.25rem;
}
@media (min-width: 640px) {
	body.woocommerce-cart .page-title, body.woocommerce-account .page-title,
	body.woocommerce-cart .entry-content, body.woocommerce-account .entry-content { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
	body.woocommerce-cart .page-title, body.woocommerce-account .page-title,
	body.woocommerce-cart .entry-content, body.woocommerce-account .entry-content { padding-inline: 2.5rem; }
}

body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details {
	max-width: 84rem; margin-inline: auto; padding-inline: 1.25rem;
}
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding-left: 1.25rem; margin: 2rem 0; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 14px; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.75rem; padding: 0 0 1rem 0; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details 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); }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; }

/* ==========================================================================
   22. CUSTOMIZER PREVIEW COLOR SWATCH HELPERS
   ========================================================================== */

.wp-customizer .customize-control-theme_media img.theme-media-preview { border-radius: 0.375rem; }
