/* =========================================================================
   Alarue Natural Care — theme.css
   Section 15: all visual styling lives here. No CSS in template files.
   ========================================================================= */

:root {
	--background: #ffffff;
	--foreground: #2b2d2f;
	--primary: #2c493d;
	--primary-foreground: #ffffff;
	--secondary: #f2f5f3;
	--accent: #c87d55;
	--accent-foreground: #ffffff;
	--muted-foreground: #666a68;
	--border: #dfe4e1;
	--bone: #e9eee9;
	--destructive: #b8442e;

	--ivory: var(--background);
	--linen: var(--secondary);
	--sand: #dee3de;

	--radius: 0.75rem;
	--card-radius: 1rem;
	--logo-height: 20px;
	--header-height: 64px;
	--header-height-desktop: 80px;
	--checkout-gap: 2rem;
	--checkout-max-width: 1280px;

	--btn-radius: 999px;
	--btn-height: 2.75rem;
	--btn-padding: 0 1.5rem;
	--btn-font-size: 14px;
	--btn-font-weight: 500;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0;

	--font-display: 'Cormorant Garamond', Georgia, serif;
	--font-body: 'Geist', system-ui, -apple-system, sans-serif;

	--shadow-soft: 0 4px 20px -8px rgba(35, 61, 51, 0.14);
	--shadow-elevated: 0 20px 50px -18px rgba(35, 61, 51, 0.26);
}

/* -------------------------------------------------------------------------
   RESET / BASE
   ---------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: clip; }
body.cart-open,
body.theme-mobile-nav-open { overflow-x: clip; }

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}

img { max-width: 100%; display: block; }
img:not(.cover-img):not(.theme-hero-video):not(.theme-quote-video):not(.theme-precontact-video) { height: auto; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
button, a { cursor: pointer; }
select,
.theme-cat-filter,
.theme-related-cat-link,
.theme-services-cta,
.theme-related-viewall,
.theme-promo-dismiss,
.theme-faq-question,
.theme-cart-remove-btn,
.theme-product-card__media-link,
.theme-product-card__info-link,
.theme-contact-item[href],
.theme-footer-link,
.theme-mobile-toggle,
.theme-cart-toggle {
	cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.008em;
	margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

section[id] { scroll-margin-top: 80px; }

.container-wide {
	width: 100%;
	max-width: 88rem;
	margin: 0 auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	min-width: 0;
	box-sizing: border-box;
}
@media (min-width: 640px) {
	.container-wide { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
	.container-wide { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* cover / full-bleed image exclusion list (Section 15.1) */
.cover-img,
.theme-hero-video,
.theme-quote-video,
.theme-precontact-video,
.theme-product-card__image,
.theme-service-image,
.theme-product-main-image img,
.theme-product-thumb img,
.theme-cart-item-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* -------------------------------------------------------------------------
   SCROLL REVEAL / MOTION (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); }

body.is-customizer [data-reveal],
body.is-customizer .reveal-item {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal] { transition: none !important; opacity: 1 !important; transform: none !important; }
	.theme-marquee-track { animation: none !important; }
}

.theme-scrim-radial {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(at center, rgba(20, 33, 28, 0.42) 0%, rgba(20, 33, 28, 0.62) 70%, rgba(20, 33, 28, 0.84) 100%);
}

/* -------------------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------------- */
.btn {
	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);
	font-family: var(--font-body);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
	border: 1px solid transparent;
	height: var(--btn-height);
	padding: var(--btn-padding);
	background: var(--primary);
	color: var(--primary-foreground);
	border-color: var(--primary);
}
.btn:hover { background: color-mix(in srgb, var(--primary) 90%, black); }
.btn svg { pointer-events: none; width: 1rem; height: 1rem; flex-shrink: 0; }

.btn-lg { height: 3rem; padding: 0 1.75rem; }
.btn-sm { height: 2.25rem; padding: 0 1rem; }

.btn-outline {
	background: transparent;
	color: var(--foreground);
	border-color: color-mix(in srgb, var(--foreground) 25%, transparent);
}
.btn-outline:hover { border-color: var(--foreground); background: color-mix(in srgb, var(--foreground) 4%, transparent); }

.btn-ghost { background: transparent; color: var(--foreground); border-color: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--foreground) 5%, transparent); }

.btn-hero-primary,
.btn-hero-outline { text-transform: none; }
.btn-hero-primary {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--primary-foreground);
}
.btn-hero-primary:hover { background: color-mix(in srgb, var(--primary) 88%, black); border-color: color-mix(in srgb, var(--primary) 88%, black); }
.btn-hero-outline { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); color: #fff; backdrop-filter: blur(8px); }
.btn-hero-outline:hover { background: rgba(255,255,255,0.2); }

.btn:disabled { pointer-events: none; opacity: 0.6; }

/* -------------------------------------------------------------------------
   HEADER
   ---------------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
body.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}

.theme-announcement-bar {
	background: var(--primary);
	color: var(--primary-foreground);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.5rem 1rem;
	text-align: center;
	overflow-wrap: anywhere;
	line-height: 1.45;
}
.theme-announcement-text { opacity: 0.9; }
.theme-announcement-highlight { color: var(--accent); }

.theme-header-bar { transition: background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease; border-bottom: 1px solid transparent; }
.site-header:not(.is-solid) .theme-header-bar { background: transparent; }
.site-header.is-solid .theme-header-bar,
.site-header.header-scrolled .theme-header-bar,
.site-header.is-mobile-menu-open .theme-header-bar {
	background: color-mix(in srgb, var(--ivory) 90%, transparent);
	backdrop-filter: blur(20px);
	border-bottom-color: color-mix(in srgb, var(--foreground) 10%, transparent);
}

.theme-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
	min-width: 0;
	width: 100%;
}
@media (min-width: 1024px) {
	.theme-header-row {
		height: 5rem;
		display: grid;
		grid-template-columns: 1fr auto 1fr;
	}
}

.theme-mobile-toggle {
	order: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: var(--foreground);
	transition: background-color 0.2s ease, color 0.2s ease;
}
.site-header:not(.is-solid):not(.header-scrolled):not(.is-mobile-menu-open) .theme-mobile-toggle { color: #fff; }
.site-header:not(.is-solid):not(.header-scrolled):not(.is-mobile-menu-open) .theme-mobile-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.site-header.is-solid .theme-mobile-toggle:hover,
.site-header.header-scrolled .theme-mobile-toggle:hover,
.site-header.is-mobile-menu-open .theme-mobile-toggle:hover { background: color-mix(in srgb, var(--foreground) 6%, transparent); }
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }

.theme-site-logo {
	order: 2;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	min-width: 0;
	max-width: calc(100% - 5.5rem);
}
@media (min-width: 1024px) {
	.theme-site-logo { order: 1; justify-self: start; max-width: none; }
}
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; max-width: 100%; }
.site-logo-text {
	line-height: var(--logo-height);
	display: block;
	font-family: var(--font-display);
	font-size: 1.1rem;
	color: var(--foreground);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.site-header:not(.is-solid):not(.header-scrolled):not(.is-mobile-menu-open) .site-logo-text { color: #fff; }

.theme-primary-nav { display: none; order: 3; }
@media (min-width: 1024px) {
	.theme-primary-nav { display: flex; order: 2; justify-self: center; min-width: 0; }
}
.theme-primary-nav .theme-nav-list { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; justify-content: center; }
.theme-nav-link {
	position: relative;
	font-size: 14px;
	font-weight: 500;
	color: color-mix(in srgb, var(--foreground) 75%, transparent);
	transition: color 0.3s ease;
	padding-bottom: 6px;
}
.theme-nav-link:hover { color: var(--primary); }
.site-header:not(.is-solid):not(.header-scrolled):not(.is-mobile-menu-open) .theme-primary-nav .theme-nav-link { color: rgba(255,255,255,0.85); }
.site-header:not(.is-solid):not(.header-scrolled):not(.is-mobile-menu-open) .theme-primary-nav .theme-nav-link:hover { color: #fff; }
.theme-primary-nav .theme-nav-link.is-active { color: var(--primary); }
.site-header:not(.is-solid):not(.header-scrolled):not(.is-mobile-menu-open) .theme-primary-nav .theme-nav-link.is-active { color: #fff; }
.theme-primary-nav .theme-nav-link.is-active::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 2px;
	border-radius: 999px;
	background: var(--accent);
}
.site-header:not(.is-solid):not(.header-scrolled):not(.is-mobile-menu-open) .theme-primary-nav .theme-nav-link.is-active::after { background: #fff; }

.theme-header-actions { order: 3; display: flex; align-items: center; gap: 0.5rem; justify-self: end; flex-shrink: 0; }
.theme-cart-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: var(--foreground);
	transition: background-color 0.2s ease, color 0.2s ease;
}
.site-header:not(.is-solid):not(.header-scrolled):not(.is-mobile-menu-open) .theme-cart-toggle { color: #fff; }
.site-header:not(.is-solid):not(.header-scrolled):not(.is-mobile-menu-open) .theme-cart-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.site-header.is-solid .theme-cart-toggle:hover,
.site-header.header-scrolled .theme-cart-toggle:hover,
.site-header.is-mobile-menu-open .theme-cart-toggle:hover { background: color-mix(in srgb, var(--foreground) 6%, transparent); }
.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	background: var(--accent);
	color: var(--accent-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:empty { display: none; }

.theme-mobile-panel {
	border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
	background: color-mix(in srgb, var(--ivory) 95%, transparent);
	backdrop-filter: blur(20px);
	width: 100%;
	box-sizing: border-box;
}
.theme-mobile-panel:not([hidden]) { animation: theme-fade-in 0.35s ease-out both; }
.theme-mobile-panel-inner { padding-block: 1rem; display: flex; flex-direction: column; width: 100%; min-width: 0; }
.theme-mobile-nav-list,
.theme-mobile-panel .theme-nav-list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}
.theme-mobile-nav-list li,
.theme-mobile-panel .theme-nav-list li { border-bottom: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); width: 100%; }
.theme-mobile-nav-list li:last-child,
.theme-mobile-panel .theme-nav-list li:last-child { border-bottom: 0; }
.theme-mobile-nav-link,
.theme-mobile-nav-list a,
.theme-mobile-panel .theme-nav-list a {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.75rem 0;
	font-size: 14px;
	font-weight: 500;
	color: color-mix(in srgb, var(--foreground) 80%, transparent);
	transition: color 0.2s ease;
}
.theme-mobile-nav-link:hover,
.theme-mobile-nav-list a:hover,
.theme-mobile-panel .theme-nav-list a:hover { color: var(--primary); }
.theme-mobile-panel .theme-nav-link::after { display: none; }
.theme-mobile-panel .theme-nav-link { padding-bottom: 0.75rem; color: color-mix(in srgb, var(--foreground) 80%, transparent); }
@media (min-width: 1024px) { .theme-mobile-panel { display: none !important; } }

/* -------------------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ---------------------------------------------------------------------- */
.theme-eyebrow {
	display: block;
	font-size: 12px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 500;
	margin-bottom: 1.25rem;
}

.section-heading { color: var(--foreground); line-height: 1.05; }
.about-heading, .services-heading, .shop-heading, .faq-heading, .contact-title {
	font-size: 2.25rem;
}
@media (min-width: 768px) { .about-heading, .services-heading, .shop-heading, .contact-title { font-size: 3rem; } .faq-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-heading, .contact-title { font-size: 3.4rem; } .services-heading, .shop-heading { font-size: 3.2rem; } }

/* -------------------------------------------------------------------------
   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; }
.theme-hero-video {
	position: absolute;
	left: 0; top: -25%;
	width: 100%; height: 150%;
	object-fit: cover;
	will-change: transform;
}
.theme-hero-content { position: relative; z-index: 10; text-align: center; color: #fff; padding-block: 10rem 6rem; width: 100%; min-width: 0; box-sizing: border-box; }
@media (min-width: 1024px) { .theme-hero-content { padding-block: 13rem 8rem; } }

.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: 999px;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.3);
	backdrop-filter: blur(8px);
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #fff;
	font-weight: 500;
}

.theme-hero-title {
	font-family: var(--font-display);
	color: #fff;
	line-height: 1.04;
	letter-spacing: -0.008em;
	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));
}
.theme-hero-title-line2 { font-style: italic; }
.theme-hero-subtitle {
	margin-top: 1.5rem;
	max-width: 42rem;
	margin-left: auto; margin-right: auto;
	font-family: var(--font-display);
	font-size: 1.25rem;
	color: rgba(255,255,255,0.9);
	line-height: 1.3;
}
@media (min-width: 640px) { .theme-hero-subtitle { font-size: 1.5rem; } }
.theme-hero-description {
	margin-top: 1.25rem;
	max-width: 42rem;
	margin-left: auto; margin-right: auto;
	font-size: 14px;
	color: rgba(255,255,255,0.85);
	line-height: 1.6;
}
@media (min-width: 640px) { .theme-hero-description { font-size: 15px; } }
.theme-hero-actions {
	margin-top: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	justify-content: center;
}
@media (min-width: 640px) { .theme-hero-actions { flex-direction: row; gap: 1rem; } }
.theme-hero-actions .btn { height: 3rem; padding: 0 1.75rem; }

/* -------------------------------------------------------------------------
   ABOUT
   ---------------------------------------------------------------------- */
.theme-about-section { background: var(--linen); padding: 6rem 0; }
@media (min-width: 768px) { .theme-about-section { padding: 8rem 0; } }
.theme-about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .theme-about-grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; } .theme-about-col-left { grid-column: span 5; } .theme-about-col-right { grid-column: span 7; padding-left: 1.5rem; } }
.theme-pull-quote {
	margin: 2rem 0 0;
	padding: 0 0 0 1.25rem;
	border: none;
	border-left: 2px solid var(--accent);
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.25rem;
	font-weight: inherit;
	color: color-mix(in srgb, var(--foreground) 75%, transparent);
	line-height: 1.375;
}
@media (min-width: 768px) { .theme-pull-quote { font-size: 1.5rem; } }
.theme-pull-quote-text::before { content: '\201C'; }
.theme-pull-quote-text::after { content: '\201D'; }
.theme-quote-author { margin: 1.5rem 0 0; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.theme-about-copy { display: flex; flex-direction: column; gap: 1.25rem; font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 80%, transparent); max-width: 65ch; }

.theme-pillars-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-pillars-grid { grid-template-columns: repeat(3, 1fr); } }
.theme-pillar-card { border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); background: var(--ivory); padding: 1.5rem; }
.theme-pillar-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); margin-bottom: 1rem; }
.theme-pillar-icon svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; display: block; }
.theme-pillar-title { font-size: 1.25rem; color: var(--foreground); margin-bottom: 0.5rem; }
.theme-pillar-body { font-size: 13px; line-height: 1.6; color: color-mix(in srgb, var(--foreground) 65%, transparent); }

/* -------------------------------------------------------------------------
   QUOTE / PRECONTACT VIDEO SECTIONS
   ---------------------------------------------------------------------- */
.theme-quote-section, .theme-precontact-section { position: relative; overflow: hidden; }
.theme-quote-media, .theme-precontact-media { position: absolute; inset: 0; overflow: hidden; }
.theme-quote-video, .theme-precontact-video { position: absolute; left: 0; top: -25%; width: 100%; height: 150%; object-fit: cover; will-change: transform; }
.theme-quote-content, .theme-precontact-content { position: relative; z-index: 10; padding-block: 7rem 10rem; text-align: center; color: #fff; }
@media (min-width: 768px) { .theme-quote-content, .theme-precontact-content { padding-block: 10rem; } }

.theme-quote-eyebrow, .theme-precontact-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);
	margin-bottom: 2rem; font-weight: 500;
}
.theme-eyebrow-line { height: 1px; width: 2rem; background: rgba(255,255,255,0.6); }

.theme-video-quote {
	font-family: var(--font-display);
	font-style: italic;
	color: #fff;
	line-height: 1.1;
	max-width: 56rem;
	margin: 0 auto;
	font-size: clamp(1.9rem, 5vw, 3.8rem);
	filter: drop-shadow(0 2px 30px rgba(0,0,0,0.55));
}
.theme-video-quote-author { margin-top: 2.25rem; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.8); }

.theme-precontact-heading {
	font-family: var(--font-display);
	color: #fff;
	line-height: 1.05;
	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));
}
.theme-precontact-heading em { font-style: italic; }
.theme-precontact-desc { margin-top: 1.75rem; max-width: 36rem; margin-left: auto; margin-right: auto; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.85); }
.theme-precontact-cta { margin-top: 2.5rem; }
.theme-hero-break { display: none; }
@media (min-width: 640px) { .theme-hero-break { display: block; } }

/* -------------------------------------------------------------------------
   SERVICES
   ---------------------------------------------------------------------- */
.theme-services-section { position: relative; background: var(--linen); padding: 6rem 0; }
@media (min-width: 640px) { .theme-services-section { padding: 8rem 0; } }
.theme-services-intro { max-width: 48rem; }
.theme-services-desc { margin-top: 1.5rem; font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 70%, transparent); max-width: 40rem; }

.theme-services-grid {
	margin-top: 4rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
}
@media (min-width: 640px) { .theme-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-services-grid { grid-template-columns: repeat(3, 1fr); } }

.theme-service-card { position: relative; aspect-ratio: 4 / 5; background: var(--ivory); overflow: hidden; cursor: default; }
.theme-service-scrim {
	position: absolute; inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--foreground) 90%, transparent) 0%, color-mix(in srgb, var(--foreground) 25%, transparent) 55%, transparent 100%);
	opacity: 0.85;
	transition: opacity 0.5s ease;
}
.theme-service-card:hover .theme-service-scrim { opacity: 0.95; }
.theme-service-card:hover .theme-service-image { transform: scale(1.1); }
.theme-service-image { transition: transform 0.7s ease; }
.theme-service-copy {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 1.75rem;
	color: #fff;
	transform: translateY(1rem);
	transition: transform 0.5s ease;
}
.theme-service-card:hover .theme-service-copy { transform: translateY(0); }
@media (min-width: 640px) { .theme-service-copy { padding: 2rem; } }
.theme-service-title { font-size: 1.5rem; line-height: 1.2; }
@media (min-width: 640px) { .theme-service-title { font-size: 1.75rem; } }
.theme-service-desc {
	margin-top: 0.75rem;
	font-size: 13px;
	line-height: 1.6;
	max-width: 20rem;
	opacity: 0;
	transition: opacity 0.5s ease 0.1s;
}
@media (min-width: 640px) { .theme-service-desc { font-size: 14px; } }
.theme-service-card:hover .theme-service-desc { opacity: 1; }
.theme-service-rule { display: block; width: 2rem; height: 1px; background: var(--accent); margin-top: 1.5rem; transition: width 0.5s ease; }
.theme-service-card:hover .theme-service-rule { width: 4rem; }

.theme-services-banner {
	margin-top: 2.5rem;
	background: var(--primary);
	color: var(--primary-foreground);
	border: 1px solid var(--primary);
	padding: 2rem;
	display: grid;
	gap: 2rem;
	align-items: center;
}
@media (min-width: 640px) { .theme-services-banner { padding: 3rem; } }
@media (min-width: 1024px) { .theme-services-banner { grid-template-columns: auto 8fr 3fr; } }
.theme-services-banner-icon { color: var(--accent); }
.theme-services-banner-heading { font-size: 1.5rem; line-height: 1.2; }
@media (min-width: 640px) { .theme-services-banner-heading { font-size: 1.875rem; } }
@media (min-width: 1024px) { .theme-services-banner-heading { font-size: 2.125rem; } }
.theme-services-banner-text { margin-top: 0.75rem; font-size: 13px; line-height: 1.6; color: color-mix(in srgb, var(--primary-foreground) 80%, transparent); max-width: 40rem; }
.theme-services-banner-link { justify-self: start; }
@media (min-width: 1024px) { .theme-services-banner-link { justify-self: end; } }
.theme-services-cta {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 14px; font-weight: 500;
	color: var(--accent);
	border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
	padding-bottom: 0.25rem;
}

/* -------------------------------------------------------------------------
   SHOP
   ---------------------------------------------------------------------- */
.theme-shop-section { background: var(--ivory); padding: 6rem 0; }
@media (min-width: 768px) { .theme-shop-section { padding: 8rem 0; } }

.theme-shop-header { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .theme-shop-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.theme-shop-intro { max-width: 42rem; }
.theme-shop-desc { margin-top: 1.25rem; font-size: 14px; color: color-mix(in srgb, var(--foreground) 65%, transparent); line-height: 1.6; max-width: 36rem; }
@media (min-width: 768px) { .theme-shop-desc { 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(--foreground) 40%, transparent); pointer-events: none; }
.theme-shop-search-input {
	width: 100%; height: 2.75rem; padding: 0 1rem 0 2.75rem;
	border-radius: 999px; background: var(--linen);
	border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
	font-size: 14px; font-family: var(--font-body);
	color: var(--foreground);
}
.theme-shop-search-input::placeholder { color: color-mix(in srgb, var(--foreground) 45%, transparent); }
.theme-shop-search-input:focus { outline: none; border-color: color-mix(in srgb, var(--primary) 60%, transparent); }

.theme-shop-filters { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2.5rem; }
.theme-cat-filter, .theme-related-cat-link {
	padding: 0 1.25rem; height: 2.5rem;
	border-radius: 999px;
	font-size: 14px; font-weight: 500;
	border: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent);
	background: transparent;
	color: color-mix(in srgb, var(--foreground) 75%, transparent);
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.theme-cat-filter:hover { border-color: var(--primary); color: var(--primary); }
.theme-cat-filter.is-active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.theme-shop-empty { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--foreground) 55%, transparent); }

.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, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .theme-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.theme-shop-viewmore-row { margin-top: 3rem; display: flex; justify-content: center; }

/* -------------------------------------------------------------------------
   PRODUCT CARD (shared: shop grid, archive, related — Section 31.13)
   ---------------------------------------------------------------------- */
.theme-product-card-wrap { display: flex; height: 100%; }
.theme-product-card { display: flex; flex-direction: column; height: 100%; width: 100%; position: relative; }

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--linen);
	border-radius: 0.75rem;
	overflow: hidden;
	margin-bottom: 1rem;
}
.theme-product-card__media-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
}
.theme-product-card__image { transition: transform 1400ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.04); }

.theme-badge-soldout {
	position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3;
	background: var(--foreground); color: var(--background);
	font-size: 11px; font-weight: 500;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
}

.theme-product-card__quick-actions {
	position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 3;
	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-quick-add-btn {
	flex: 1 1 auto; pointer-events: auto;
	height: 2.5rem !important; min-height: 2.5rem !important;
	border-radius: 999px !important;
	background: color-mix(in srgb, var(--background) 95%, transparent) !important;
	color: var(--foreground) !important;
	font-size: 14px !important; font-weight: 500;
	display: inline-flex !important; align-items: center; justify-content: center; gap: 0.5rem;
	backdrop-filter: blur(6px);
	box-shadow: var(--shadow-soft);
	border: none !important;
	padding: 0 1rem !important;
}
.theme-quick-add-btn:hover { background: var(--primary) !important; color: var(--primary-foreground) !important; }

.theme-quick-view-btn {
	pointer-events: auto;
	width: 2.5rem; height: 2.5rem; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--background) 95%, transparent);
	color: var(--foreground);
	backdrop-filter: blur(6px);
	box-shadow: var(--shadow-soft);
	transition: background-color 0.3s ease, color 0.3s ease;
}
.theme-quick-view-btn:hover { background: var(--primary); color: var(--primary-foreground); }

.theme-product-card__info-link { display: block; padding: 0 2px; flex: 1; position: relative; z-index: 1; }
.theme-product-card__cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: color-mix(in srgb, var(--primary) 90%, transparent); margin-bottom: 0.375rem; font-weight: 500; }
.theme-product-card__title {
	font-size: 1.15rem; line-height: 1.35; color: var(--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(--primary); }
.theme-product-card__price { margin-top: 0.375rem; font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--foreground) 85%, transparent); }
.theme-product-card__price .woocommerce-Price-amount { font-size: inherit; }

/* -------------------------------------------------------------------------
   MARQUEE
   ---------------------------------------------------------------------- */
.theme-marquee { background: var(--primary); padding: 1.25rem 0; overflow: hidden; }
.theme-marquee-track { display: flex; white-space: nowrap; animation: theme-marquee 22s linear infinite; }
@keyframes theme-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-33.3333%); } }
.theme-marquee-item {
	display: flex; align-items: center; flex-shrink: 0;
	color: color-mix(in srgb, var(--primary-foreground) 95%, transparent);
	font-family: var(--font-display);
	font-size: 1.125rem; letter-spacing: 0.02em;
}
@media (min-width: 768px) { .theme-marquee-item { font-size: 1.25rem; } }
.theme-marquee-text { margin: 0 1.5rem; }
@media (min-width: 768px) { .theme-marquee-text { margin: 0 2rem; } }
.theme-marquee-dot { color: var(--accent); font-size: 14px; }

/* -------------------------------------------------------------------------
   FAQ
   ---------------------------------------------------------------------- */
.theme-faq-section { background: var(--linen); border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); padding: 6rem 0; }
@media (min-width: 768px) { .theme-faq-section { padding: 8rem 0; } }
.theme-faq-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .theme-faq-grid { grid-template-columns: repeat(12, 1fr); } .theme-faq-sidebar { grid-column: span 4; } .theme-faq-list { grid-column: span 8; } }
.theme-faq-desc { margin-top: 1.5rem; font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--foreground) 65%, transparent); max-width: 24rem; }
@media (min-width: 768px) { .theme-faq-desc { font-size: 15px; } }

.theme-faq-cta-card { margin-top: 2.5rem; display: none; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); background: var(--ivory); padding: 1.75rem; }
@media (min-width: 1024px) { .theme-faq-cta-card { display: block; } }
.theme-faq-cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); margin-bottom: 1.25rem; }
.theme-faq-cta-heading { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.5rem; }
.theme-faq-cta-text { font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--foreground) 65%, transparent); margin-bottom: 1.5rem; }

.theme-faq-item { border-bottom: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent); }
.theme-faq-question {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	padding: 1.25rem 0; text-align: left; background: none; border: none; color: var(--foreground);
}
.theme-faq-q-text { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.4; }
@media (min-width: 768px) { .theme-faq-q-text { font-size: 1.25rem; } }
.theme-faq-icon { flex-shrink: 0; color: var(--primary); display: inline-flex; }
.theme-faq-icon-minus { display: none; }
.theme-faq-item.is-open .theme-faq-icon-plus { display: none; }
.theme-faq-item.is-open .theme-faq-icon-minus { display: inline-flex; }

.theme-faq-answer-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms ease-out; }
.theme-faq-item.is-open .theme-faq-answer-wrap { grid-template-rows: 1fr; }
.theme-faq-answer-inner { overflow: hidden; }
.theme-faq-answer { padding-bottom: 1.5rem; padding-right: 2rem; font-size: 14px; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 70%, transparent); max-width: 42rem; }
@media (min-width: 768px) { .theme-faq-answer { font-size: 15px; } }

/* -------------------------------------------------------------------------
   CONTACT
   ---------------------------------------------------------------------- */
.theme-contact-section { background: var(--linen); padding-top: 6rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .theme-contact-section { padding-top: 8rem; padding-bottom: 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-info { display: flex; flex-direction: column; height: auto; }
@media (min-width: 1024px) {
	.theme-contact-info { height: 100%; }
}
.theme-contact-desc { margin-top: 1.5rem; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--foreground) 70%, transparent); max-width: 28rem; }
.theme-contact-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-contact-item { display: inline-flex; align-items: center; gap: 1rem; color: var(--foreground); transition: color 0.2s ease; }
a.theme-contact-item:hover { color: var(--primary); }
.theme-contact-icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--ivory); border: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent); display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.2s ease; flex-shrink: 0; }
a.theme-contact-item:hover .theme-contact-icon { border-color: var(--primary); }
.theme-contact-item-text { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.theme-contact-item-label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.theme-contact-item-value { font-size: 15px; font-weight: 500; overflow-wrap: break-word; word-break: break-word; }

.theme-contact-note-card {
	position: relative;
	margin-top: 2.5rem;
	border-radius: 1rem;
	border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
	background: color-mix(in srgb, var(--ivory) 70%, transparent);
	padding: 1.75rem 1.75rem 1.5rem;
}
@media (max-width: 1023px) {
	.theme-contact-note-card {
		margin-top: 3rem;
		padding-top: 2rem;
	}
}
@media (min-width: 1024px) {
	.theme-contact-note-card {
		margin-top: auto;
		padding-top: 2.5rem;
	}
}
.theme-contact-note-card > * { position: relative; }
.theme-contact-note-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: var(--primary); color: var(--primary-foreground);
	font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
}
.theme-contact-note-quote { font-family: var(--font-display); font-style: italic; color: color-mix(in srgb, var(--foreground) 85%, transparent); font-size: 1.125rem; line-height: 1.4; border-left: 2px solid var(--accent); padding-left: 1.25rem; }
@media (min-width: 768px) { .theme-contact-note-quote { font-size: 1.25rem; } }
.theme-contact-note-sub { margin-top: 0.75rem; padding-left: 1.25rem; font-size: 13px; color: color-mix(in srgb, var(--foreground) 60%, transparent); }

.theme-contact-form {
	background: var(--ivory);
	border: 1px solid color-mix(in srgb, var(--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) { .theme-contact-form { padding: 2rem; } }
.theme-contact-form-fields { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.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-form-label { display: block; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); margin-bottom: 0.5rem; }
.theme-form-input {
	width: 100%; height: 3rem; padding: 0 1rem;
	background: var(--ivory);
	border: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent);
	border-radius: 0.5rem;
	font-size: 14px; font-family: var(--font-body);
	color: var(--foreground);
	transition: border-color 0.2s ease;
}
.theme-form-input::placeholder { color: color-mix(in srgb, var(--foreground) 45%, transparent); }
.theme-form-input:focus { outline: none; border-color: var(--primary); }
.theme-form-textarea { height: auto; padding: 0.75rem 1rem; resize: none; }
.theme-select-wrap { position: relative; }
.theme-form-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(--foreground) 55%, transparent); }
.theme-contact-form-submit { padding-top: 0.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-contact-submit-btn { width: 100%; }
.theme-contact-form-note { font-size: 12px; text-align: center; color: color-mix(in srgb, var(--foreground) 55%, transparent); }

/* -------------------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------------- */
.site-footer { background: var(--primary); color: var(--primary-foreground); }
.theme-footer-inner { padding-block: 3.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-brand .site-logo-footer { height: 20px !important; }
.theme-footer-tagline { margin-top: 1rem; font-family: var(--font-display); font-size: 1.125rem; color: var(--primary-foreground); }
.theme-footer-description { margin-top: 0.75rem; font-size: 14px; color: color-mix(in srgb, var(--primary-foreground) 70%, transparent); line-height: 1.6; max-width: 20rem; }
.theme-footer-founder { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 13px; color: var(--accent); }
.theme-footer-heading { font-family: var(--font-display); font-size: 1.125rem; color: var(--primary-foreground); margin-bottom: 1rem; }
.theme-footer-list { display: flex; flex-direction: column; gap: 0.625rem; }
.theme-footer-link { font-size: 14px; color: color-mix(in srgb, var(--primary-foreground) 70%, transparent); transition: color 0.2s ease; }
.theme-footer-link:hover { color: var(--primary-foreground); }
.theme-footer-contact-list .theme-footer-link { display: inline-flex; align-items: flex-start; gap: 0.5rem; overflow-wrap: break-word; word-break: break-word; }
.theme-footer-bottom { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--primary-foreground) 12%, transparent); text-align: center; font-size: 12px; color: color-mix(in srgb, var(--primary-foreground) 55%, transparent); }

.site-main { min-width: 0; max-width: 100%; }

/* -------------------------------------------------------------------------
   PROMO BANNER
   ---------------------------------------------------------------------- */
.theme-promo-banner {
	position: fixed; bottom: 1.5rem; left: 1rem; right: 1rem; z-index: 55;
	background: var(--foreground); color: var(--background);
	border-radius: 1rem;
	box-shadow: var(--shadow-elevated);
	padding: 1rem 1.25rem;
	display: flex; align-items: flex-start; gap: 0.75rem;
	animation: theme-fade-in 0.7s ease-out both;
}
@media (min-width: 640px) { .theme-promo-banner { left: auto; right: 1.5rem; max-width: 26rem; } }
.theme-promo-banner[hidden] { display: none; }
.theme-promo-text { font-size: 13px; line-height: 1.6; flex: 1; }
@media (min-width: 640px) { .theme-promo-text { font-size: 15px; } }
.theme-promo-code { font-weight: 600; color: var(--accent-foreground); background: var(--accent); padding: 0.125rem 0.375rem; border-radius: 0.25rem; }
.theme-promo-dismiss {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.125rem;
	padding: 0.375rem;
	width: auto;
	height: auto;
	min-height: 0;
	line-height: 0;
	border: none;
	border-radius: 9999px;
	background: transparent;
	color: inherit;
	transition: background-color 0.2s ease;
}
.theme-promo-dismiss:hover { background: rgba(255,255,255,0.1); }
.theme-promo-dismiss svg { width: 1rem; height: 1rem; display: block; flex-shrink: 0; }
@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* -------------------------------------------------------------------------
   CART DRAWER + OVERLAY (Section 12)
   ---------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 60;
	background: color-mix(in srgb, var(--foreground) 30%, transparent);
	opacity: 0; pointer-events: none;
	transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem;
	background: var(--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);
}
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(--foreground) 10%, transparent); }
.theme-cart-drawer-title { font-size: 1.5rem; }
.theme-cart-close { padding: 0.375rem; border-radius: 50%; background: transparent; border: none; color: var(--foreground); transition: background-color 0.2s ease; }
.theme-cart-close:hover { background: color-mix(in srgb, var(--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-empty-icon { color: color-mix(in srgb, var(--foreground) 30%, transparent); margin-bottom: 1rem; }
.theme-cart-empty-text { color: color-mix(in srgb, var(--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-item { display: flex; gap: 1rem; }
.theme-cart-item-image { width: 5rem; height: 6rem; background: var(--bone); border-radius: 0.375rem; overflow: hidden; flex-shrink: 0; position: relative; display: block; }
.theme-cart-item-info { flex: 1; min-width: 0; }
.theme-cart-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-item-name:hover { color: var(--primary); }
.theme-cart-item-price { font-size: 13px; color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-top: 2px; }
.theme-cart-item-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.theme-cart-item-meta li { margin-top: 2px; }
.theme-cart-meta-key { font-weight: 500; }
.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; background: transparent; border: none; color: var(--foreground); transition: background-color 0.2s ease; min-width: 1.5rem; }
.theme-cart-qty-btn:hover { background: var(--bone); }
.theme-cart-qty-value { font-size: 13px; width: 1.5rem; text-align: center; }
.theme-cart-remove-btn { margin-left: auto; font-size: 13px; background: transparent; border: none; color: color-mix(in srgb, var(--foreground) 55%, transparent); transition: color 0.2s ease; }
.theme-cart-remove-btn:hover { color: var(--destructive); }

.theme-cart-drawer-footer { padding: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); background: color-mix(in srgb, var(--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 .theme-cart-subtotal-label { color: color-mix(in srgb, var(--foreground) 65%, transparent); }
.theme-cart-subtotal-row .theme-cart-subtotal-value { font-weight: 500; }
.theme-cart-shipping-note { font-size: 13px; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.theme-cart-checkout-btn { width: 100%; }
.theme-cart-empty-btn { width: 100%; color: color-mix(in srgb, var(--foreground) 60%, transparent); }

/* -------------------------------------------------------------------------
   SINGLE PRODUCT (Section 11.13)
   ---------------------------------------------------------------------- */
.single-product .theme-single-product { padding-top: 6rem; background: var(--ivory); }
@media (min-width: 1024px) { .single-product .theme-single-product { padding-top: 7rem; } }
.theme-product-breadcrumb { padding: 1.5rem 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.theme-product-breadcrumb a { transition: color 0.2s ease; }
.theme-product-breadcrumb a:hover { color: var(--primary); }
.theme-breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb-current { color: var(--foreground); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 5rem; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-main-image { position: relative; aspect-ratio: 1 / 1; width: 100%; background: var(--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 { position: relative; aspect-ratio: 1 / 1; background: var(--linen); border-radius: 0.375rem; overflow: hidden; border: 2px solid transparent; transition: border-color 0.2s ease; padding: 0; }
.theme-product-thumb.is-active { border-color: var(--primary); }
.theme-product-thumb:hover { border-color: color-mix(in srgb, var(--foreground) 20%, transparent); }

.theme-product-cat { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; font-weight: 500; }
.theme-product-cat a { color: inherit; }
.theme-product-title,
.product-title { font-family: var(--font-body); font-weight: 600; font-size: 1.875rem; line-height: 1.1; color: var(--foreground); margin-bottom: 1rem; }
@media (min-width: 768px) { .theme-product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-title { font-size: 2.6rem; } }
.theme-product-price { font-size: 20px; font-weight: 500; color: color-mix(in srgb, var(--foreground) 90%, transparent); margin-bottom: 1.75rem; }
.theme-stock-status { margin-bottom: 1rem; font-size: 13px; font-weight: 500; }
.theme-stock-out { color: var(--destructive); }
.theme-product-description,
.woocommerce-product-details__short-description,
.woocommerce-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}
.theme-product-description { font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 75%, transparent); margin-bottom: 2rem; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--foreground) 20%, transparent); border-radius: 999px; overflow: hidden; }
.theme-qty-minus, .theme-qty-plus { padding: 0.625rem 1rem; background: transparent; border: none; color: var(--foreground); transition: color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { color: var(--primary); }
.theme-qty-input { width: 3rem; text-align: center; border: none; background: transparent; font-size: 14px; font-weight: 500; -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 {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}
.single-product .theme-variable-product-form { display: block; width: 100%; }
.single-product .theme-variable-product-form .variations { width: 100%; margin-bottom: 1.25rem; border-collapse: collapse; }
.single-product .theme-variable-product-form .variations th.label { text-align: left; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); padding: 0 0 0.5rem; font-weight: 500; }
.single-product .theme-variable-product-form .variations td.value { padding: 0 0 1rem; vertical-align: top; }
.single-product .theme-attr-select-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.single-product .theme-variation-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.single-product .theme-variation-pill {
	padding: 0.5rem 1rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--foreground) 20%, transparent);
	background: var(--ivory);
	color: var(--foreground);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.single-product .theme-variation-pill.is-selected {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--primary-foreground);
}
.single-product .theme-variation-pill:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.single-product .theme-variable-cart-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
}
.single-product .theme-variable-submit { flex: 1 1 auto; min-width: 160px; }
.single-product .theme-variable-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.theme-product-details { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); }
.theme-details-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); margin-bottom: 1rem; }
.theme-details-list ul { display: flex; flex-direction: column; gap: 0.625rem; }
.theme-details-list li { font-size: 14px; color: color-mix(in srgb, var(--foreground) 75%, transparent); position: relative; padding-left: 1.25rem; }
.theme-details-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }

.theme-related-products-section { padding: 3rem 0 5rem; border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); }
.theme-related-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.theme-related-heading { font-size: 1.875rem; }
@media (min-width: 768px) { .theme-related-heading { 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(--foreground) 70%, transparent); }
@media (min-width: 640px) { .theme-related-viewall { display: inline-flex; } }
.theme-related-viewall:hover { color: var(--primary); }

/* -------------------------------------------------------------------------
   WOOCOMMERCE — GLOBAL BUTTON OVERRIDE (Section 11.4.1)
   ---------------------------------------------------------------------- */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--primary) !important;
	color: var(--primary-foreground) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-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(--primary) !important;
	color: var(--primary-foreground) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--primary) !important;
}

/* Card compact quick-add button — overrides the global rules above */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-product-card button.add_to_cart_button.ajax_add_to_cart {
	min-height: 2.5rem !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; }

.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; }

/* Notices — scoped hiding only where the drawer already provides feedback */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-error {
	background: color-mix(in srgb, var(--destructive) 8%, var(--ivory));
	border: 1px solid color-mix(in srgb, var(--destructive) 30%, transparent);
	color: var(--destructive);
	border-radius: 0.5rem;
	padding: 1rem 1.25rem;
	font-size: 14px;
	list-style: none;
	margin: 0 0 1.5rem;
}
.woocommerce-message, .woocommerce-info {
	background: color-mix(in srgb, var(--primary) 8%, var(--ivory));
	border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
	border-radius: 0.5rem;
	padding: 1rem 1.25rem;
	font-size: 14px;
	margin: 0 0 1.5rem;
}

/* -------------------------------------------------------------------------
   WOOCOMMERCE SHOP ARCHIVE
   ---------------------------------------------------------------------- */
.theme-shop-archive { padding-top: 7rem; padding-bottom: 5rem; background: var(--ivory); min-height: 60vh; }
.theme-archive-header { margin-bottom: 2.5rem; }
.theme-archive-title { font-size: 2.5rem; }
.theme-archive-pagination { margin-top: 3rem; display: flex; justify-content: center; }
.theme-archive-pagination .page-numbers { display: inline-flex; gap: 0.5rem; }
.theme-archive-pagination .page-numbers li { list-style: none; }
.theme-archive-pagination a, .theme-archive-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem; border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent);
	font-size: 14px;
}
.theme-archive-pagination .current { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

/* -------------------------------------------------------------------------
   404
   ---------------------------------------------------------------------- */
.theme-404-main { min-height: 70vh; display: flex; align-items: center; padding-top: 7rem; }
.theme-404-content { max-width: 32rem; margin: 0 auto; text-align: center; padding-block: 3rem; }
.theme-404-title { font-size: 2.5rem; margin-bottom: 1rem; }
.theme-404-text { color: color-mix(in srgb, var(--foreground) 65%, transparent); margin-bottom: 2rem; font-size: 15px; }

/* Generic page shell */
.theme-page-main, .theme-fallback-main { padding-top: 7rem; padding-bottom: 4rem; }
.page-title { font-size: 2.5rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .page-title { font-size: 3rem; } }

/* -------------------------------------------------------------------------
   WOOCOMMERCE CHECKOUT BLOCK (Section 13 — Blocks alignment)
   ---------------------------------------------------------------------- */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: var(--header-height-desktop);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .theme-checkout-main.site-main {
	padding-top: 0;
	padding-bottom: 0;
}

.theme-checkout-shell {
	width: 100%;
	max-width: var(--checkout-max-width);
	margin-inline: auto;
	padding-inline: 1.25rem;
	padding-block: 0.5rem 4rem;
	padding-top: calc(var(--header-height) + 0.5rem);
	box-sizing: border-box;
	min-width: 0;
}
@media (min-width: 1024px) {
	.theme-checkout-shell { padding-top: calc(var(--header-height-desktop) + 0.5rem); }
}
@media (min-width: 640px) {
	.theme-checkout-shell { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
	.theme-checkout-shell { padding-inline: 2.5rem; }
}

.theme-checkout-header {
	max-width: none;
	width: 100%;
	margin-inline: 0;
	box-sizing: border-box;
	padding-inline: 0;
	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(--foreground) 65%, transparent);
	transition: color 0.2s ease;
}
.checkout-continue-link:hover { color: var(--primary); }

.theme-checkout-title {
	font-family: var(--font-display);
	font-size: 2.25rem;
	line-height: 1.05;
	margin: 0;
}
@media (min-width: 768px) {
	.theme-checkout-title { font-size: 3rem; }
}

.theme-checkout-intro {
	margin: 0.75rem 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: color-mix(in srgb, var(--foreground) 70%, transparent);
	max-width: 42rem;
}

body.woocommerce-checkout .theme-checkout-main > .container-wide,
body.woocommerce-checkout .theme-checkout-shell,
body.woocommerce-checkout .theme-checkout-main .entry-content {
	max-width: none;
	width: 100%;
}

body.woocommerce-checkout .theme-checkout-main .entry-content,
.entry-content:has(.wc-block-checkout) {
	margin-top: 0;
	padding-top: 0;
}

body.woocommerce-checkout .theme-checkout-main .entry-content > .wc-block-checkout,
body.woocommerce-checkout .theme-checkout-main .entry-content > .wp-block-woocommerce-checkout,
.entry-content > .wc-block-checkout:first-child,
.entry-content > .wp-block-woocommerce-checkout:first-child {
	margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout,
.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;
	box-sizing: border-box;
	min-width: 0;
	margin-top: 0;
	padding-top: 0;
	padding-inline: 1.25rem;
}
@media (min-width: 640px) {
	body.woocommerce-checkout .wc-block-checkout,
	.entry-content .wc-block-checkout,
	body.woocommerce-checkout .wp-block-woocommerce-checkout,
	.entry-content .wp-block-woocommerce-checkout {
		padding-inline: 1.5rem;
	}
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .wc-block-checkout,
	.entry-content .wc-block-checkout,
	body.woocommerce-checkout .wp-block-woocommerce-checkout,
	.entry-content .wp-block-woocommerce-checkout {
		padding-inline: 2.5rem;
	}
}

/* Single horizontal gutter on checkout page — header + block share one column */
body.woocommerce-checkout .theme-checkout-shell .entry-content {
	padding-inline: 0;
	margin-inline: 0;
	max-width: none;
}

body.woocommerce-checkout .theme-checkout-shell .wc-block-checkout,
body.woocommerce-checkout .theme-checkout-shell .wp-block-woocommerce-checkout {
	max-width: none;
	width: 100%;
	margin-inline: 0;
	padding-inline: 0;
}

body.woocommerce-checkout .theme-checkout-shell .wc-block-components-notices,
body.woocommerce-checkout .theme-checkout-shell .wc-block-checkout > .wc-block-components-notices {
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

body.woocommerce-checkout .theme-checkout-shell .wc-block-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .theme-checkout-shell .wc-block-checkout .wc-block-checkout-sidebar-layout {
	padding-inline: 0;
	margin-inline: 0;
}

body.woocommerce-checkout .theme-checkout-shell .wc-block-checkout__main,
body.woocommerce-checkout .theme-checkout-shell .wc-block-components-main,
body.woocommerce-checkout .theme-checkout-shell .wc-block-components-sidebar-layout .wc-block-checkout__main,
body.woocommerce-checkout .theme-checkout-shell .wc-block-components-sidebar-layout .wc-block-components-main {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout.alignwide,
.entry-content .wc-block-checkout.alignwide {
	margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-components-main {
	margin-top: 0;
	padding-top: 0;
}

body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
	margin-top: 0;
	padding-top: 0;
}

body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices:empty,
.entry-content .wc-block-checkout > .wc-block-components-notices:empty {
	display: none;
	margin: 0;
	padding: 0;
}

body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	margin-top: 0;
	padding-top: 0;
	margin-bottom: var(--checkout-gap);
}

@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,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-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,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__main,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-components-main,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout .wc-block-checkout-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-components-notice-banner,
.entry-content .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar,
.entry-content .wp-block-woocommerce-checkout-totals-block {
	background: transparent;
	border-radius: 0;
	padding: 0;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	background: var(--linen);
	border-radius: var(--card-radius);
	padding: 1.25rem;
	box-sizing: border-box;
	overflow-wrap: anywhere;
}
@media (min-width: 640px) {
	body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
	.entry-content .wp-block-woocommerce-checkout-order-summary-block {
		padding: 2rem;
	}
}

body.woocommerce-checkout .wc-block-checkout,
.entry-content .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-checkout {
	overflow-x: clip;
}

@media (max-width: 767px) {
	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: flex !important;
		flex-direction: column;
		gap: var(--checkout-gap);
		min-width: 0;
		max-width: 100%;
	}
}

body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
	margin-inline: auto;
	max-width: 36rem;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
.entry-content .wc-block-components-text-input input,
.entry-content .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	color: var(--foreground);
	border: 1px solid color-mix(in srgb, var(--foreground) 15%, transparent);
	border-radius: 0.5rem;
	background: var(--ivory);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible,
.entry-content .wc-block-components-text-input input:focus,
.entry-content .wc-block-components-select select:focus,
.entry-content .wc-block-components-text-input input:focus-visible {
	border-color: var(--primary);
	outline: none;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
.entry-content .wc-block-components-text-input input::placeholder {
	color: color-mix(in srgb, var(--foreground) 45%, transparent);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-components-checkout-place-order-button {
	background: var(--primary) !important;
	color: var(--primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	text-transform: none !important;
	font-weight: 500 !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.entry-content .wc-block-components-checkout-place-order-button:hover {
	opacity: 0.9;
}

/* -------------------------------------------------------------------------
   OTHER WC PAGES: WIDTH/ALIGNMENT PARITY (Section 13.7)
   ---------------------------------------------------------------------- */
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	max-width: 88rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* -------------------------------------------------------------------------
   THANK YOU PAGE (Section 22.8)
   ---------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
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;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1.5rem;
	list-style: none; padding: 0; margin: 0 0 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
	border-radius: 0.5rem;
	background: var(--linen);
	padding: 1rem 1.25rem;
	font-size: 13px;
}
body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
	border-radius: 0.5rem;
	padding: 1.25rem;
}
@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; }
}
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
