/* =========================================================================
   Terriberry's Treats — theme stylesheet
   Author: The Free Website Guys
   ========================================================================= */

/* ---------------------------------------------------------------------
 * 1. Design tokens (Section 6 / 6.1) — fallback hex values; the live
 *    Customizer values are re-emitted as an inline :root block after this
 *    stylesheet (Section 22.9).
 * --------------------------------------------------------------------- */
:root {
	--color-background: #fefcf6;
	--color-foreground: #493527;
	--color-primary: #f9d876;
	--color-button-gold: #f6da79;
	--color-gold: #e0a329;
	--color-accent: #eab253;
	--color-blush: #f4e5c4;
	--color-linen: #fbf7e9;
	--color-border: #ede4cf;
	--color-cocoa: #513a2a;

	--color-primary-foreground: #453021;
	--color-button-text: #453021;
	--color-destructive: #cf3030;

	--font-display: 'Dancing Script', 'Brush Script MT', cursive;
	--font-brand: 'Parisienne', 'Dancing Script', cursive;
	--font-serif: 'Cormorant Garamond', Georgia, serif;
	--font-body: 'Lato', system-ui, -apple-system, sans-serif;

	--radius: 1rem;
	--card-radius: 1.5rem;
	--shadow-soft: 0 8px 26px -14px rgba(107, 82, 39, 0.35);
	--shadow-elevated: 0 32px 60px -22px rgba(107, 82, 39, 0.4);

	--btn-radius: 9999px;
	--btn-height: 44px;
	--btn-padding: 0 1.5rem;
	--btn-font-size: 14px;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.12em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0;

	--logo-height: 48px;
	--header-height: 80px;
	--checkout-gap: 2rem;
	--checkout-max-width: 1280px;
}
@media (min-width: 1024px) {
	:root { --header-height: 96px; }
}

/* ---------------------------------------------------------------------
 * 2. Reset / base
 * --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--color-border); }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	letter-spacing: 0.005em;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
img:not(.cover-img) { height: auto; }
.cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { cursor: pointer; font-family: inherit; }
.theme-btn,
.theme-pill-btn,
.theme-pill-outline-btn,
.theme-nav-link,
.theme-cat-pill,
.theme-social-icon,
.theme-card-link,
.theme-card-quickview,
.theme-footer-link,
.theme-footer-category-link,
.theme-404-link,
.theme-related-products__viewall,
.site-header__brand,
.site-header__cart-btn,
.site-header__menu-toggle,
.site-header__menu-close,
.theme-cart-drawer__close,
.theme-cart-qty-btn,
.theme-cart-drawer__remove,
.theme-cart-drawer__item-title,
.theme-cart-drawer__thumb,
.faq-item__question,
.theme-product-card__info,
.theme-mobile-nav-list a,
.theme-mobile-nav-link,
label[for] { cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: inherit;
	letter-spacing: 0.005em;
	text-transform: none;
	line-height: 1.15;
	margin: 0;
}
.font-display { font-family: var(--font-display); font-weight: 600; }
.font-brand { font-family: var(--font-brand); letter-spacing: 0.01em; }
.font-serif { font-family: var(--font-serif); }
.text-gold { color: var(--color-gold); }

section[id] { scroll-margin-top: var(--header-height); }

::selection { background: color-mix(in srgb, var(--color-primary) 55%, transparent); color: var(--color-foreground); }

.container-wide {
	width: 100%;
	max-width: min(80rem, 100%);
	margin: 0 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 {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--color-gold);
	margin-bottom: 1rem;
}

.theme-script-quote {
	font-family: var(--font-brand);
	font-size: 1.5rem;
	line-height: 1.35;
	color: var(--color-gold);
}
@media (min-width: 768px) { .theme-script-quote { font-size: 1.875rem; } }
.theme-script-quote--bordered {
	color: var(--color-foreground);
	border-left: 4px solid var(--color-primary);
	padding-left: 1.5rem;
}

/* ---------------------------------------------------------------------
 * 3. Buttons
 * --------------------------------------------------------------------- */
.theme-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);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	border: 1px solid transparent;
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	height: 44px;
	padding: 0 1.5rem;
}
.theme-btn-lg { height: 48px; padding: 0 1.75rem; }
.theme-btn-block { width: 100%; }
.theme-btn-primary,
.gold-button {
	position: relative;
	background-image: linear-gradient(
		135deg,
		color-mix(in srgb, var(--color-button-gold) 82%, var(--color-foreground) 18%) 0%,
		var(--color-button-gold) 45%,
		color-mix(in srgb, var(--color-button-gold) 55%, var(--color-background) 45%) 52%,
		var(--color-button-gold) 60%,
		color-mix(in srgb, var(--color-button-gold) 82%, var(--color-foreground) 18%) 100%
	);
	background-size: 200% 200%;
	color: var(--color-button-text);
	border-color: color-mix(in srgb, var(--color-primary) 70%, var(--color-gold) 30%);
	box-shadow: inset 0 1px 0 rgba(255, 250, 230, 0.8), 0 6px 18px -8px rgba(107, 82, 39, 0.4);
	transition: background-position 0.5s ease, box-shadow 0.3s ease, transform 0.2s ease, opacity 0.2s ease;
	overflow: hidden;
}
.theme-btn-primary:hover, .gold-button:hover {
	background-position: 100% 100%;
	opacity: 0.97;
	box-shadow: inset 0 1px 0 rgba(255, 250, 235, 0.9), 0 10px 24px -8px rgba(107, 82, 39, 0.5);
}
.theme-btn-primary:active, .gold-button:active { transform: translateY(1px); }
.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-mix(in srgb, var(--color-foreground) 4%, transparent); }
.theme-btn-outline-dark {
	background: transparent;
	color: var(--color-foreground);
	border-color: color-mix(in srgb, var(--color-foreground) 25%, transparent);
}
.theme-btn-outline-dark:hover { background: var(--color-primary); border-color: var(--color-primary); }
.theme-btn-hero-outline {
	background: color-mix(in srgb, var(--color-cocoa) 40%, transparent);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(6px);
	text-transform: var(--btn-text-transform);
}
.theme-btn-hero-outline:hover { background: color-mix(in srgb, var(--color-cocoa) 60%, transparent); border-color: rgba(255, 255, 255, 0.6); }
.theme-btn-outline-cta {
	background: color-mix(in srgb, var(--color-background) 70%, transparent);
	color: var(--color-foreground);
	border-color: color-mix(in srgb, var(--color-foreground) 30%, transparent);
	backdrop-filter: blur(6px);
}
.theme-btn-outline-cta:hover { background: var(--color-primary); border-color: var(--color-primary); }
.theme-btn-ghost { background: transparent; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); border-color: transparent; }
.theme-btn-ghost:hover { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-btn-secondary { background: color-mix(in srgb, var(--color-linen) 100%, transparent); color: var(--color-foreground); border-color: var(--color-border); }
.theme-pill-btn {
	display: inline-block;
	padding: 1rem 2.5rem;
	border-radius: 9999px;
	background: var(--color-primary);
	color: var(--color-button-text);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	transition: box-shadow 0.3s ease, letter-spacing 0.3s ease;
}
.theme-pill-btn:hover { box-shadow: var(--shadow-soft); letter-spacing: 0.3em; }
.theme-pill-outline-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 9999px;
	border: 1px solid var(--color-primary);
	color: var(--color-foreground);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}
.theme-pill-outline-btn:hover { background: var(--color-primary); }
button:disabled, a.disabled { cursor: not-allowed; }

/* ---------------------------------------------------------------------
 * 4. Scroll reveal (Section 2.1)
 * --------------------------------------------------------------------- */
.reveal-item, [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;
}
.reveal-item.is-revealed, [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
body.is-customizer .reveal-item,
body.is-customizer [data-reveal] {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item, [data-reveal] { transition: none !important; opacity: 1 !important; transform: none !important; }
}

@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.animate-slow-zoom { animation: slow-zoom 22s ease-in-out infinite alternate; }

@keyframes theme-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }

/* Offset fixed header below the WordPress admin bar when logged in */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .site-header__mobile-nav,
body.admin-bar .site-header__mobile-overlay { top: calc(80px + 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
	body.admin-bar .site-header__mobile-nav,
	body.admin-bar .site-header__mobile-overlay { top: calc(80px + 46px); }
}
.site-header__bar {
	position: relative;
	z-index: 50;
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--color-border);
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; height: 80px; }
@media (min-width: 1024px) { .site-header__row { height: 96px; } }

.site-header__menu-toggle, .site-header__menu-close {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 9999px; border: none; background: transparent; color: var(--color-foreground);
	order: 1; flex-shrink: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s ease, color 0.2s ease;
}
@media (min-width: 1024px) {
	.site-header__menu-toggle,
	.site-header__menu-close { display: none !important; }
}
.site-header__menu-toggle:hover { background: color-mix(in srgb, var(--color-blush) 60%, transparent); }
.site-header__menu-close:hover { background: transparent; color: var(--color-gold); }
.site-header__menu-close { display: none; }
.site-header__menu-spacer {
	display: none;
	order: 1;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}
body.mobile-menu-open .site-header__menu-toggle { display: none; }
body.mobile-menu-open .site-header__menu-spacer { display: block; }
body.mobile-menu-open .site-header__menu-close { display: inline-flex; }

.site-header__brand {
	display: flex; flex-direction: column; align-items: center; flex-shrink: 0; order: 2; line-height: 1;
	min-width: 0; max-width: calc(100% - 6rem);
}
@media (min-width: 1024px) { .site-header__brand { align-items: flex-start; order: 1; max-width: none; } }
.site-logo-img {
	height: 2.5rem !important;
	width: auto !important;
	max-width: 100%;
	display: block;
	object-fit: contain;
}
@media (min-width: 640px) { .site-logo-img { height: 2.75rem !important; } }
@media (min-width: 1024px) { .site-logo-img { height: var(--logo-height, 3rem) !important; } }
.site-logo-text { font-family: var(--font-brand); font-size: 1.75rem; color: var(--color-foreground); }
.site-header__tagline { display: none; font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-top: 0.25rem; }
@media (min-width: 640px) { .site-header__tagline { display: block; } }

.site-header__desktop-row { display: none; align-items: center; gap: 2rem; order: 3; }
@media (min-width: 1024px) { .site-header__desktop-row { display: flex; } }
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-link {
	position: relative; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
	color: color-mix(in srgb, var(--color-foreground) 75%, transparent); transition: color 0.3s ease;
}
.theme-nav-link:hover, .theme-nav-link.is-active { color: var(--color-gold); }
.theme-nav-link::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 9999px;
	background: var(--color-primary); opacity: 0; transform: scaleX(0); transition: all 0.3s ease;
}
.theme-nav-link:hover::after, .theme-nav-link.is-active::after { opacity: 1; transform: scaleX(1); }

.site-header__cart-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 9999px; border: none; background: transparent; color: var(--color-foreground);
	transition: background-color 0.2s ease;
	touch-action: manipulation;
}
.site-header__cart-btn:hover { background: color-mix(in srgb, var(--color-blush) 60%, transparent); }
.site-header__cart-btn .theme-cart-count-wrap {
	position: absolute; top: -2px; right: -2px; pointer-events: none;
}
.site-header__cart-btn .theme-cart-count-badge,
.site-header__cart-btn .theme-cart-count {
	display: flex; align-items: center; justify-content: center;
	min-width: 18px; height: 18px; padding: 0 4px;
	background: var(--color-primary); color: var(--color-primary-foreground);
	font-size: 11px; font-weight: 700; line-height: 1;
	border-radius: 9999px;
}

.site-header__mobile-row { display: flex; align-items: center; gap: 0.25rem; order: 3; flex-shrink: 0; }
@media (min-width: 1024px) { .site-header__mobile-row { display: none; } }

.site-header__mobile-overlay {
	position: fixed; inset: 80px 0 0 0; background: color-mix(in srgb, var(--color-cocoa) 20%, transparent);
	backdrop-filter: blur(4px); z-index: 40; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
	cursor: default;
}
.site-header__mobile-nav {
	position: fixed; left: 0; right: 0; top: 80px; z-index: 41; background: var(--color-background);
	border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-elevated); padding: 1rem 0;
	transform: translateY(-16px); opacity: 0; pointer-events: none; transition: transform 0.3s ease-out, opacity 0.3s ease;
	max-width: 100%;
}
body.mobile-menu-open .site-header__mobile-overlay,
body.mobile-menu-open .site-header__mobile-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (min-width: 1024px) { .site-header__mobile-overlay, .site-header__mobile-nav { display: none; } }
.theme-mobile-nav-list {
	display: flex;
	flex-direction: column;
	width: 100%;
}
.theme-mobile-nav-list .menu-item,
.theme-mobile-nav-list .theme-mobile-nav-item {
	width: 100%;
}
.theme-mobile-nav-link,
.theme-mobile-nav-list a {
	display: block;
	width: 100%;
	padding: 1rem 0;
	border-bottom: 1px solid var(--color-border);
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1.25;
	text-align: left;
	color: var(--color-foreground);
	transition: color 0.2s ease;
}
.theme-mobile-nav-list li:last-child a,
.theme-mobile-nav-list > .menu-item:last-child > a { border-bottom: none; }
.theme-mobile-nav-link:hover,
.theme-mobile-nav-link.is-active,
.theme-mobile-nav-list a:hover,
.theme-mobile-nav-list a.is-active { color: var(--color-gold); }
.theme-mobile-nav-list .sub-menu { display: none; }

body.theme-no-hero { padding-top: 0; }
main { display: block; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero-section {
	position: relative; height: 100vh; min-height: 600px; width: 100%; overflow: hidden;
	background: var(--color-background); padding-top: 80px; display: flex; align-items: flex-end;
}
@media (min-width: 1024px) { .hero-section { padding-top: 96px; } }
.hero-section__media { position: absolute; inset: 0; z-index: 0; }
.hero-section__video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-section__scrim { position: absolute; inset: 0; }
.hero-section__scrim--flat { background: color-mix(in srgb, var(--color-cocoa) 20%, transparent); }
.hero-section__scrim--horizontal { background: linear-gradient(90deg, color-mix(in srgb, var(--color-cocoa) 55%, transparent) 0%, color-mix(in srgb, var(--color-cocoa) 30%, transparent) 50%, color-mix(in srgb, var(--color-cocoa) 10%, transparent) 100%); }
.hero-section__scrim--vertical { background: linear-gradient(0deg, color-mix(in srgb, var(--color-cocoa) 70%, transparent) 0%, color-mix(in srgb, var(--color-cocoa) 25%, transparent) 55%, color-mix(in srgb, var(--color-cocoa) 30%, transparent) 100%); }
.hero-section__content { position: relative; z-index: 10; padding-bottom: 2rem; min-width: 0; max-width: 100%; }
@media (min-width: 768px) { .hero-section__content { padding-bottom: 2.5rem; } }
.hero-section__inner { max-width: 42rem; display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; width: 100%; }

.hero-badge {
	display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem; border-radius: 9999px;
	background: var(--color-primary); border: 1px solid var(--color-primary); color: var(--color-cocoa);
	font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; box-shadow: var(--shadow-soft);
}
.hero-heading {
	margin-top: 1.25rem; color: #fff; line-height: 1.05; font-size: clamp(2.25rem, 5.5vw, 3.75rem);
	text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
@media (min-width: 768px) { .hero-heading { margin-top: 1.5rem; } }
.hero-paragraph {
	margin-top: 1.25rem; font-size: 1rem; color: rgba(255,255,255,0.95); line-height: 1.6; max-width: 32rem;
	text-shadow: 0 1px 6px rgba(0,0,0,0.2); font-family: var(--font-body);
}
@media (min-width: 768px) { .hero-paragraph { margin-top: 1.5rem; font-size: 1.125rem; } }
.hero-cta-row { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }
@media (min-width: 640px) { .hero-cta-row { flex-direction: row; gap: 1rem; width: auto; margin-top: 2rem; } }
.hero-script {
	margin-top: 1.25rem; font-family: var(--font-brand); font-size: 1.25rem; color: #fff;
	text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.hero-script--desktop { display: none; position: absolute; bottom: 2.5rem; right: 2.5rem; z-index: 10; font-size: 1.5rem; }
@media (min-width: 768px) { .hero-script--mobile { display: none; } .hero-script--desktop { display: block; } }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-section { position: relative; background: var(--color-background); padding: 6rem 0; border-top: 1px solid var(--color-border); overflow: hidden; }
@media (min-width: 768px) { .about-section { padding: 8rem 0; } }
.about-section__grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .about-section__grid { grid-template-columns: 5fr 7fr; gap: 6rem; } }
.about-section__image-col { position: relative; min-width: 0; }
.about-section__image-frame { position: relative; z-index: 10; aspect-ratio: 3 / 4; border-radius: 2rem; overflow: hidden; background: var(--color-linen); }
.about-section__image { width: 100%; height: 100%; }
.about-section__image-outline { position: absolute; top: -1.5rem; left: -1.5rem; width: 100%; height: 100%; border-radius: 2rem; border: 2px solid var(--color-primary); z-index: -1; display: none; }
@media (min-width: 768px) { .about-section__image-outline { display: block; } }
.about-section__image-glow { position: absolute; bottom: -2.5rem; right: -2.5rem; width: 11rem; height: 11rem; border-radius: 9999px; filter: blur(48px); z-index: -1; background: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.about-section__copy { display: flex; flex-direction: column; gap: 2.5rem; min-width: 0; }
.section-heading { font-size: 2.5rem; line-height: 1.05; color: var(--color-foreground); }
.about-section__heading { font-size: 2.5rem; }
@media (min-width: 768px) { .about-section__heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .about-section__heading { font-size: 4.5rem; } }
.about-section__text { max-width: 36rem; display: flex; flex-direction: column; gap: 1.5rem; }
.about-section__text p:not(.theme-script-quote) { font-size: 15px; line-height: 1.9; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
.about-section__cta { padding-top: 1rem; }

/* =========================================================================
   SHOP
   ========================================================================= */
.shop-section { background: var(--color-linen); padding: 6rem 0; border-top: 1px solid var(--color-border); overflow-x: clip; }
@media (min-width: 768px) { .shop-section { padding: 8rem 0; } }
.shop-section__head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .shop-section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.shop-section__intro { max-width: 42rem; min-width: 0; }
.shop-heading { font-size: 2.5rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .shop-heading { font-size: 4.5rem; } }
.shop-section__paragraph { margin-top: 1.25rem; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); max-width: 36rem; }
.shop-section__aside { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
@media (min-width: 1024px) { .shop-section__aside { width: 20rem; } }
.theme-search-wrap { position: relative; }
.theme-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: color-mix(in srgb, var(--color-foreground) 50%, transparent); }
.theme-search-input {
	width: 100%; height: 48px; padding: 0 1rem 0 2.75rem; border-radius: 9999px;
	background: var(--color-background); border: 1px solid var(--color-border); font-size: 14px; color: var(--color-foreground);
}
.theme-search-input:focus { outline: none; border-color: var(--color-primary); }
.shop-section__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-chip {
	display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 9999px;
	background: var(--color-background); color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
	font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--color-border);
}
.shop-section__pills { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2.5rem; }
.theme-cat-pill {
	height: 40px; padding: 0 1.25rem; border-radius: 9999px; font-size: 11px; font-weight: 700;
	letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid var(--color-border);
	background: var(--color-background); color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
	transition: all 0.2s ease;
}
.theme-cat-pill:hover { border-color: var(--color-primary); color: var(--color-foreground); }
.theme-cat-pill.is-active { background: var(--color-primary); color: var(--color-button-text); border-color: var(--color-primary); }
.shop-section__loadmore { margin-top: 3rem; display: flex; justify-content: center; }
.shop-section__permits { margin-top: 2.5rem; text-align: center; font-family: var(--font-brand); font-size: 1.5rem; color: var(--color-gold); }
.theme-shop-empty { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-shop-item--hidden, .theme-shop-item--filtered-out { display: none !important; }

/* =========================================================================
   PRODUCT GRID / CARD (Section 31.9 / 31.13)
   ========================================================================= */
.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem 1.5rem;
	align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.5rem 1.5rem; } }
.theme-product-grid--related { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.theme-product-card-wrap { height: 100%; display: flex; }
.theme-product-card {
	display: flex; flex-direction: column; height: 100%; width: 100%;
	padding: 0.75rem; background: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
	border-radius: 1.75rem; transition: all 0.3s ease;
}
.theme-product-card-wrap:hover .theme-product-card { transform: translateY(-4px); box-shadow: var(--shadow-elevated); border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1 / 1; background: var(--color-linen); border-radius: 1.4rem; overflow: hidden; margin-bottom: 1rem; }
.theme-card-link { position: absolute; inset: 0; z-index: 2; }
.theme-product-card__image { transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1); pointer-events: none; }
.theme-product-card-wrap:hover .theme-product-card__image { transform: scale(1.04); }
.theme-product-card__scrim {
	position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--color-foreground) 35%, transparent), transparent 60%);
	opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.theme-product-card-wrap:hover .theme-product-card__scrim { opacity: 1; }
.theme-card-badge {
	position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3; font-size: 10px; font-weight: 500;
	letter-spacing: 0.16em; text-transform: uppercase; padding: 0.25rem 0.625rem; border-radius: 9999px;
	display: inline-flex; align-items: center; gap: 0.25rem;
}
.theme-card-badge--soldout { background: var(--color-foreground); color: var(--color-background); font-size: 11px; letter-spacing: normal; text-transform: none; }
.theme-card-badge--feature { background: var(--color-primary); color: var(--color-button-text); box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.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;
}
.theme-product-card-wrap:hover .theme-product-card__quick-actions { opacity: 1; }
.theme-card-add-btn.add_to_cart_button.ajax_add_to_cart {
	flex: 1; display: inline-flex !important; align-items: center; justify-content: center; gap: 0.5rem;
	height: 44px !important; border-radius: 9999px !important; font-size: 13px !important; font-weight: 500 !important;
	letter-spacing: 0.02em; text-transform: none !important;
	background-image: linear-gradient(
		135deg,
		color-mix(in srgb, var(--color-button-gold) 82%, var(--color-foreground) 18%) 0%,
		var(--color-button-gold) 45%,
		color-mix(in srgb, var(--color-button-gold) 55%, var(--color-background) 45%) 52%,
		var(--color-button-gold) 60%,
		color-mix(in srgb, var(--color-button-gold) 82%, var(--color-foreground) 18%) 100%
	) !important;
	color: var(--color-button-text) !important; border: none !important; padding: 0 1rem !important;
}
.theme-card-quickview {
	width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 9999px; background: color-mix(in srgb, var(--color-background) 95%, transparent); color: var(--color-foreground);
	border: 1px solid var(--color-border); box-shadow: 0 1px 2px rgba(0,0,0,0.06); transition: all 0.3s ease;
}
.theme-card-quickview:hover { background: var(--color-primary); color: var(--color-button-text); }
.theme-product-card__info { display: block; padding: 0 0.125rem; flex: 1; }
.theme-product-card__cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: color-mix(in srgb, var(--color-primary) 90%, var(--color-foreground) 10%); margin-bottom: 0.375rem; font-weight: 500; }
.theme-product-card__title {
	font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; color: var(--color-foreground);
	transition: color 0.3s ease; min-width: 0;
}
@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-wrap:hover .theme-product-card__title { color: var(--color-gold); }
.theme-product-card__price { margin-top: 0.375rem; font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); font-family: var(--font-body); }
.theme-product-card__price .woocommerce-Price-amount { font-family: var(--font-body); }

/* =========================================================================
   MARQUEE BANDS
   ========================================================================= */
.theme-marquee-band { background: var(--color-primary); padding: 1.25rem 0; overflow: hidden; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.theme-marquee-band__track { display: flex; width: max-content; white-space: nowrap; animation: theme-marquee 22s linear infinite; }
.theme-marquee-band__item { display: flex; align-items: center; flex-shrink: 0; color: var(--color-cocoa); font-family: var(--font-display); font-size: 1.5rem; }
@media (min-width: 768px) { .theme-marquee-band__item { font-size: 2.25rem; } }
.theme-marquee-band__text { margin: 0 1.5rem; }
@media (min-width: 768px) { .theme-marquee-band__text { margin: 0 2.5rem; } }
.theme-marquee-band__dot { color: color-mix(in srgb, var(--color-cocoa) 50%, transparent); font-size: 14px; }

.theme-footer-marquee { background: color-mix(in srgb, var(--color-primary) 35%, transparent); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); overflow: hidden; padding: 1rem 0; }
.theme-footer-marquee__track { display: flex; width: max-content; animation: theme-marquee 26s linear infinite; }
.theme-footer-marquee__item { display: flex; align-items: center; gap: 2.5rem; flex-shrink: 0; white-space: nowrap; padding-right: 2.5rem; color: color-mix(in srgb, var(--color-cocoa) 90%, transparent); font-family: var(--font-display); font-size: 1.5rem; }
@media (min-width: 640px) { .theme-footer-marquee__item { gap: 3.5rem; padding-right: 3.5rem; } }
.theme-footer-marquee__dot { width: 8px; height: 8px; border-radius: 9999px; background: color-mix(in srgb, var(--color-cocoa) 70%, transparent); margin-left: 2.5rem; }

/* =========================================================================
   SERVICES
   ========================================================================= */
.services-section { background: var(--color-linen); padding: 6rem 0; border-top: 1px solid var(--color-border); overflow-x: clip; }
@media (min-width: 768px) { .services-section { padding: 8rem 0; } }
.services-section__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; margin-bottom: 4rem; }
@media (min-width: 1024px) { .services-section__grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.services-section__photo-col { max-width: 24rem; min-width: 0; }
@media (min-width: 1024px) {
	.services-section__sticky-col {
		position: sticky;
		top: 8rem; /* lg:top-32 — offset below fixed header */
		align-self: start;
	}
}
.services-section__photo-wrap { position: relative; max-width: 24rem; overflow: visible; }
.services-section__photo-frame { position: relative; z-index: 10; aspect-ratio: 4 / 5; border-radius: 2rem; overflow: hidden; background: var(--color-background); }
.services-section__photo { width: 100%; height: 100%; }
.services-section__photo-outline { position: absolute; bottom: -1.25rem; right: -1.25rem; width: 100%; height: 100%; border-radius: 2rem; border: 2px solid var(--color-primary); z-index: -1; display: none; }
@media (min-width: 768px) { .services-section__photo-outline { display: block; } }
.services-section__eyebrow { margin-top: 2.5rem; }
.services-section__heading { margin-top: 1rem; font-size: 2.5rem; }
@media (min-width: 768px) { .services-section__heading { font-size: 3.75rem; } }
.services-section__subtitle { margin-top: 1rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.services-section__social { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.theme-social-icon { width: 44px; height: 44px; border-radius: 9999px; border: 1px solid var(--color-primary); display: inline-flex; align-items: center; justify-content: center; color: var(--color-foreground); transition: background-color 0.2s ease; }
.theme-social-icon:hover { background: var(--color-primary); }
.services-section__copy { display: flex; flex-direction: column; gap: 1.25rem; font-size: 15px; line-height: 1.9; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); min-width: 0; }
.services-section__copy-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.services-section__cta-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 640px) { .services-section__cta-row { flex-direction: row; align-items: center; } }
.services-section__cta-heading { font-family: var(--font-display); font-size: 2.25rem; color: var(--color-foreground); }
@media (min-width: 768px) { .services-section__cta-heading { font-size: 3rem; } }
.services-section__cta-buttons { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }
@media (min-width: 640px) { .services-section__cta-buttons { flex-direction: row; width: auto; } }

/* =========================================================================
   FAQ + TESTIMONIALS
   ========================================================================= */
.faq-section { position: relative; background: var(--color-background); border-top: 1px solid var(--color-border); padding: 6rem 0; overflow: hidden; }
@media (min-width: 768px) { .faq-section { padding: 8rem 0; } }
.faq-section__glow {
	position: absolute; top: -6rem; left: 50%; transform: translateX(-50%); width: 32rem; height: 32rem; border-radius: 9999px; opacity: 0.6; pointer-events: none;
	background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 100%, transparent) 0%, transparent 70%);
}
.faq-section__inner { position: relative; }
.faq-section__intro { max-width: 48rem; margin: 0 auto; text-align: center; }
.testimonials-heading { font-size: 2.5rem; margin-top: 0; }
@media (min-width: 768px) { .testimonials-heading { font-size: 3.75rem; } }
.faq-section__paragraph { margin-top: 1.25rem; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); max-width: 36rem; margin-left: auto; margin-right: auto; }
.testimonials-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.testimonial-card { background: var(--color-linen); border-radius: 1.5rem; border: 1px solid var(--color-border); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.testimonial-card__stars { display: flex; gap: 0.125rem; color: var(--color-gold); }
.testimonial-card blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.testimonial-card figcaption { margin-top: auto; padding-top: 0.5rem; }
.testimonial-card__name { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--color-foreground); }
.testimonial-card__source { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 50%, transparent); margin-top: 0.25rem; }
.faq-section__ig-row { margin-top: 2.5rem; display: flex; justify-content: center; }
.faq-section__faq-intro { margin-top: 6rem; max-width: 48rem; margin-left: auto; margin-right: auto; text-align: center; }
.faq-heading { font-size: 2.25rem; }
@media (min-width: 768px) { .faq-heading { font-size: 3rem; } }
.faq-accordion { margin-top: 2.5rem; max-width: 48rem; margin-left: auto; margin-right: auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }
.faq-item__question {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0;
	background: none; border: none; text-align: left; color: var(--color-foreground); font-family: var(--font-display);
	font-size: 1.5rem; line-height: 1.3; transition: color 0.3s ease;
}
@media (min-width: 768px) { .faq-item__question { font-size: 1.875rem; } }
.faq-item__question:hover { color: var(--color-gold); }
.faq-item__icon { flex-shrink: 0; color: var(--color-gold); transition: transform 0.3s ease; }
.faq-item__icon .icon-minus { display: none; }
.faq-item.is-open .icon-plus { display: none; }
.faq-item.is-open .icon-minus { display: block; }
.faq-item__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__panel-inner { overflow: hidden; }
.faq-item__panel p { padding-bottom: 1.5rem; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); text-align: left; }

/* =========================================================================
   PRE-CONTACT CTA BAND
   ========================================================================= */
.cta-band { position: relative; overflow: hidden; min-height: 70vh; display: flex; align-items: center; border-top: 1px solid var(--color-border); }
@media (min-width: 768px) { .cta-band { min-height: 80vh; } }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__scrim { position: absolute; inset: 0; }
.cta-band__scrim--h { background: linear-gradient(90deg, color-mix(in srgb, var(--color-background) 97%, transparent) 0%, color-mix(in srgb, var(--color-background) 88%, transparent) 45%, color-mix(in srgb, var(--color-background) 35%, transparent) 72%, transparent 100%); }
.cta-band__scrim--v { background: linear-gradient(180deg, color-mix(in srgb, var(--color-background) 55%, transparent) 0%, transparent 35%, transparent 65%, color-mix(in srgb, var(--color-background) 70%, transparent) 100%); }
.cta-band__content { position: relative; z-index: 10; padding-block: 6rem; text-align: left; }
@media (min-width: 768px) { .cta-band__content { padding-block: 9rem; } }
.cta-band__title { font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.02; max-width: 48rem; color: var(--color-foreground); }
.cta-band__paragraph { margin-top: 1.75rem; max-width: 36rem; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
@media (min-width: 768px) { .cta-band__paragraph { font-size: 1rem; } }
.cta-band__buttons { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; justify-content: flex-start; }
@media (min-width: 640px) { .cta-band__buttons { flex-direction: row; gap: 1rem; } }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-section { background: var(--color-background); border-top: 1px solid var(--color-border); padding-block: 6rem 4rem; }
@media (min-width: 768px) { .contact-section { padding-block: 8rem 4rem; } }
.contact-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .contact-section__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact-section__info { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.contact-title { font-size: 3rem; line-height: 1.05; }
@media (min-width: 768px) { .contact-title { font-size: 3.75rem; } }
.contact-section__paragraph { margin-top: 1.25rem; font-size: 15px; line-height: 1.625; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); max-width: 28rem; }
.contact-section__list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-section__item { display: inline-flex; align-items: center; gap: 1rem; color: var(--color-foreground); transition: color 0.2s ease; }
.contact-section__item:hover { color: var(--color-gold); }
.contact-section__icon { width: 48px; height: 48px; border-radius: 9999px; border: 1px solid var(--color-border); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s ease; }
.contact-section__item:hover .contact-section__icon { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.contact-section__item-text { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.contact-section__item-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 50%, transparent); }
.contact-section__item-value { font-size: 15px; font-weight: 500; word-break: break-word; }
.contact-section__item.theme-mailto-link .contact-section__item-value { font-size: 14px; }
.contact-section__quote-wrap { margin-top: auto; padding-top: 2.5rem; }
.contact-section__quote-box { position: relative; border-radius: 1.5rem; border: 1px solid var(--color-border); background: var(--color-linen); padding: 1.75rem; }
@media (min-width: 768px) { .contact-section__quote-box { padding: 2rem; } }
.contact-section__quote-box .theme-script-quote--bordered { padding-left: 1.25rem; line-height: 1.375; }
.contact-section__quote-tag { position: absolute; top: -0.75rem; left: 1.75rem; display: inline-flex; padding: 0.25rem 1rem; border-radius: 9999px; background: var(--color-primary); color: var(--color-button-text); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; }
.contact-section__quote-author { margin-top: 0.75rem; padding-left: 1.25rem; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }

.contact-section__form { background: var(--color-linen); border: 1px solid var(--color-border); border-radius: 1.5rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; height: 100%; min-height: 0; }
@media (min-width: 768px) { .contact-section__form { padding: 2rem; } }
.contact-section__form-fields { flex: 1; display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.theme-field { display: flex; flex-direction: column; }
.theme-field label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 0.5rem; }
.theme-field input, .theme-field select, .theme-field textarea {
	width: 100%; height: 48px; padding: 0 1rem; background: var(--color-background); border: 1px solid var(--color-border);
	border-radius: 0.5rem; font-size: 14px; color: var(--color-foreground); font-family: var(--font-body);
}
.theme-field select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23493527' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.theme-field textarea { height: auto; padding: 0.75rem 1rem; resize: none; line-height: 1.6; }
.theme-field input:focus, .theme-field select:focus, .theme-field textarea:focus { outline: none; border-color: var(--color-primary); }
.theme-field input::placeholder, .theme-field textarea::placeholder { color: color-mix(in srgb, var(--color-foreground) 40%, transparent); }
.theme-field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-field-row { grid-template-columns: 1fr 1fr; } }
.theme-field--grow { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.theme-field--grow textarea { flex: 1; min-height: 90px; }
.contact-section__form-submit { padding-top: 0.5rem; display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.contact-section__reply-note { text-align: center; font-size: 12px; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); letter-spacing: 0.02em; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--color-linen); border-top: 1px solid var(--color-border); }
.site-footer__inner { padding-block: 4rem 2rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-block: 5rem 2rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.site-footer__brand { display: inline-flex; }
.site-footer__brand .font-brand { font-size: 1.875rem; line-height: 1.15; color: var(--color-foreground); }
.site-footer__tagline { margin-top: 1rem; font-size: 13px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); max-width: 20rem; }
.site-footer__script { margin-top: 1.25rem; font-family: var(--font-brand); font-size: 1.5rem; color: var(--color-gold); }
.site-footer__col h3 { font-size: 1.5rem; color: var(--color-foreground); margin-bottom: 1rem; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 0.625rem; font-size: 13px; }
.site-footer__col a, .site-footer__col button, .site-footer__address { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); background: none; border: none; padding: 0; font-size: 13px; text-align: left; transition: color 0.2s ease; }
.site-footer__col a:hover, .site-footer__col button:hover { color: var(--color-gold); }
.site-footer__contact-list li a, .site-footer__contact-list li .site-footer__address { display: inline-flex; align-items: flex-start; gap: 0.5rem; word-break: break-all; }
.site-footer__bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 0.75rem; align-items: center; justify-content: space-between; font-size: 11px; color: color-mix(in srgb, var(--color-foreground) 50%, transparent); letter-spacing: 0.02em; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__credit { text-align: center; }
@media (min-width: 640px) { .site-footer__credit { text-align: right; } }
.site-footer__credit a { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); font-weight: 500; }
.site-footer__credit a:hover { color: var(--color-gold); text-decoration: underline; }

/* =========================================================================
   CART DRAWER (Section 12)
   ========================================================================= */
#theme-cart-overlay {
	position: fixed; inset: 0; background: color-mix(in srgb, var(--color-foreground) 30%, transparent); z-index: 60;
	opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
#theme-cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: min(28rem, 100%); background: var(--color-background);
	z-index: 61; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); opacity: 1;
}
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }
body.cart-open #theme-cart-drawer { transform: translateX(0); }
.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__header h2 { font-size: 1.5rem; }
.theme-cart-drawer__close { padding: 0.375rem; border-radius: 0.75rem; background: none; border: none; color: var(--color-foreground); }
.theme-cart-drawer__close:hover { background: color-mix(in srgb, var(--color-foreground) 6%, transparent); }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty svg { color: color-mix(in srgb, var(--color-foreground) 30%, transparent); }
.theme-cart-drawer__empty p { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); font-size: 14px; }
.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-cart-drawer__item { display: flex; gap: 1rem; }
.theme-cart-drawer__thumb { width: 80px; height: 96px; flex-shrink: 0; border-radius: 0.75rem; overflow: hidden; background: var(--color-foreground); position: relative; }
.theme-cart-drawer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-drawer__item-body { flex: 1; min-width: 0; }
.theme-cart-drawer__item-title { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-drawer__item-title:hover { color: var(--color-primary); }
.theme-cart-drawer__item-price { margin-top: 0.125rem; font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-cart-drawer__item-controls { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 0.75rem; background: none; border: none; color: var(--color-foreground); display: inline-flex; }
.theme-cart-qty-btn:hover { background: var(--color-linen); }
.theme-cart-drawer__qty { font-size: 13px; width: 24px; text-align: center; }
.theme-cart-drawer__remove { margin-left: auto; font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); background: none; border: none; }
.theme-cart-drawer__remove:hover { color: var(--color-destructive); }
.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-linen) 40%, transparent); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 14px; }
.theme-cart-drawer__subtotal span:last-child { font-weight: 500; }
.theme-cart-drawer__note { font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-cart-drawer__checkout { width: 100%; }
.theme-cart-drawer__empty-btn { width: 100%; }

/* View cart" link 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; }

/* =========================================================================
   WOOCOMMERCE — GLOBAL 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;
	background-image: linear-gradient(
		135deg,
		color-mix(in srgb, var(--color-button-gold) 82%, var(--color-foreground) 18%) 0%,
		var(--color-button-gold) 45%,
		color-mix(in srgb, var(--color-button-gold) 55%, var(--color-background) 45%) 52%,
		var(--color-button-gold) 60%,
		color-mix(in srgb, var(--color-button-gold) 82%, var(--color-foreground) 18%) 100%
	) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
/* Card compact button — overrides the globals above (scoped, after) */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: 44px !important;
	padding: var(--btn-icon-padding, 0 1rem) !important;
	border-radius: 9999px !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 NOTICES (Section 14.1)
   ========================================================================= */
.woocommerce-error, .woocommerce-message, .woocommerce-info {
	list-style: none; margin: 0 0 1.5rem; padding: 1rem 1.5rem; border-radius: 0.75rem; font-size: 14px;
	background: var(--color-linen); border: 1px solid var(--color-border); color: var(--color-foreground);
}
.woocommerce-error { border-color: var(--color-destructive); color: var(--color-destructive); background: color-mix(in srgb, var(--color-destructive) 8%, var(--color-background)); }

/* =========================================================================
   SHOP ARCHIVE (Section 19)
   ========================================================================= */
.theme-shop-archive { padding-top: 7rem; padding-bottom: 5rem; background: var(--color-linen); min-height: 60vh; }
.shop-heading.shop-heading { margin-bottom: 2.5rem; }

/* =========================================================================
   SINGLE PRODUCT (Section 11)
   ========================================================================= */
.single-product-main { padding-top: 6rem; padding-bottom: 3rem; background: var(--color-background); min-height: 100vh; }
@media (min-width: 1024px) { .single-product-main { padding-top: 7rem; } }
.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: 5rem; align-items: start; 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%; }
@media (min-width: 1024px) { .theme-product-gallery { position: sticky; top: 7rem; align-self: start; } }
.theme-product-gallery__main { position: relative; aspect-ratio: 1 / 1; width: 100%; background: var(--color-linen); border-radius: 1.5rem; overflow: hidden; margin-bottom: 1rem; }
.theme-product-main-img { width: 100%; height: 100%; }
.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0.625rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { aspect-ratio: 1 / 1; background: var(--color-linen); border-radius: 0.75rem; overflow: hidden; border: 2px solid transparent; position: relative; padding: 0; }
.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__cat { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.75rem; font-weight: 500; }
.product-title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.05; color: var(--color-foreground); margin-bottom: 1rem; }
@media (min-width: 768px) { .product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .product-title { font-size: 2.6rem; } }
.theme-product-info__price { font-size: 20px; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); margin-bottom: 1.75rem; }
.theme-stock-status { margin-bottom: 1.25rem; font-size: 13px; font-weight: 600; }
.theme-stock-status--out { color: var(--color-destructive); }
.theme-product-info__description { font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); margin-bottom: 2rem; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }
.theme-product-info__description p { margin-bottom: 1em; }

.theme-quantity-wrapper { margin-bottom: 1.5rem; }
.theme-quantity-label { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 0.625rem; }
.theme-quantity-control { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent); border-radius: 0.75rem; }
.theme-qty-minus, .theme-qty-plus { padding: 0.625rem 1rem; background: none; border: none; color: var(--color-foreground); }
.theme-qty-minus:hover, .theme-qty-plus:hover { color: var(--color-primary); }
.theme-qty-input { width: 44px; min-width: 44px; text-align: center; font-size: 14px; font-weight: 500; border: none; background: none; -moz-appearance: textfield; padding: 0.625rem 0; }
.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; }
.theme-single-cta-row { display: flex; gap: 0.75rem; width: 100%; flex-wrap: wrap; }
@media (min-width: 640px) { .theme-single-cta-row { flex-wrap: nowrap; } }
.single-product .single_add_to_cart_button,
.theme-buy-now-button { flex: 1 1 auto; min-width: 160px; }
.theme-buy-now-button {
	display: inline-flex; align-items: center; justify-content: center;
	height: var(--btn-height); border-radius: var(--btn-radius); border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent);
	background: transparent; color: var(--color-foreground); font-size: var(--btn-font-size); font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing); text-transform: var(--btn-text-transform); transition: all 0.2s ease;
}
.theme-buy-now-button:hover { border-color: var(--color-foreground); background: color-mix(in srgb, var(--color-foreground) 4%, transparent); }
.theme-buy-now-button.disabled { opacity: 0.4; pointer-events: none; cursor: not-allowed; }

.theme-product-details { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-product-details__label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 1rem; }
.theme-product-details__list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.theme-product-details__list li { font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); display: flex; align-items: flex-start; overflow-wrap: break-word; word-break: break-word; }
.theme-product-details__list li::before { content: ''; width: 4px; height: 4px; background: var(--color-primary); border-radius: 9999px; margin-top: 0.6rem; margin-right: 0.75rem; flex-shrink: 0; }

.theme-trust-badges {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	width: 100%;
}
.theme-trust-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 0;
}
.theme-trust-badge svg {
	display: block;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin-bottom: 0.5rem;
	color: var(--color-primary);
}
.theme-trust-badge__label {
	display: block;
	margin: 0;
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
	line-height: 1.35;
}

.theme-related-products { padding-top: 5rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-related-products__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.theme-related-products__heading { font-size: 1.875rem; }
@media (min-width: 768px) { .theme-related-products__heading { font-size: 2.25rem; } }
.theme-related-products__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-products__viewall { display: inline-flex; } }
.theme-related-products__viewall:hover { color: var(--color-primary); }

/* PDP attribute fields */
.theme-product-attributes { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.theme-product-attribute__label {
	display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
	color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 0.625rem;
}
.theme-attr-select {
	width: 100%; max-width: 100%; height: 44px; padding: 0 1rem;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
	border-radius: 0.75rem; background: var(--color-background); color: var(--color-foreground);
	font-family: var(--font-body); font-size: 14px;
}
.theme-attr-select-hidden { display: none !important; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; }
.theme-attr-pill {
	display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--color-border);
	border-radius: 9999px; background: transparent; color: var(--color-foreground);
	padding: 0.35rem 0.85rem 0.35rem 0.35rem; font-size: 13px; cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.theme-attr-pill--license { padding: 0.5rem 1rem; border-radius: 9999px; }
.theme-attr-pill__swatch {
	width: 1.25rem; height: 1.25rem; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	flex-shrink: 0;
}
.theme-attr-pill.is-selected {
	border-color: var(--color-primary);
	background: color-mix(in srgb, var(--color-primary) 5%, transparent);
}
.theme-attr-pills--license .theme-attr-pill.is-selected {
	background: var(--color-foreground);
	border-color: var(--color-foreground);
	color: var(--color-background);
}
.theme-attr-pill__label { line-height: 1.2; }

/* Cart drawer line meta */
.theme-cart-item-meta { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.theme-cart-item-meta__row { display: flex; align-items: center; gap: 0.5rem; font-size: 12px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }
.theme-cart-item-meta-swatch {
	width: 0.75rem; height: 0.75rem; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); flex-shrink: 0;
}

/* Variation table layout (legacy fallback) */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-weight: 600; }
.single-product .variations tbody td.value { padding-top: 0; }

/* =========================================================================
   404
   ========================================================================= */
.theme-404-main { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--color-linen); }
.theme-404-inner { text-align: center; padding-inline: 1.25rem; }
@media (min-width: 640px) { .theme-404-inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .theme-404-inner { padding-inline: 2.5rem; } }
.site-fallback-main .container-wide { padding-block: 6rem; }
.theme-404-inner h1 { font-size: 3rem; margin-bottom: 1rem; font-family: var(--font-display); }
.theme-404-inner p { font-size: 1.25rem; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); margin-bottom: 1.5rem; }
.theme-404-link { color: var(--color-primary); text-decoration: underline; }
.theme-404-link:hover { color: var(--color-gold); }

/* =========================================================================
   GENERIC PAGE / CHECKOUT SHELL
   ========================================================================= */
.site-page-main { padding-top: 7rem; padding-bottom: 4rem; min-height: 60vh; background: var(--color-background); }
.page-title { font-size: 2.5rem; margin-bottom: 2rem; }

body.woocommerce-checkout .theme-checkout-main {
	padding-top: 80px;
	padding-bottom: 4rem;
	min-height: 60vh;
	background: var(--color-background);
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .theme-checkout-main {
		padding-top: 96px;
	}
}
body.admin-bar.woocommerce-checkout .theme-checkout-main {
	padding-top: calc(80px + 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar.woocommerce-checkout .theme-checkout-main {
		padding-top: calc(80px + 46px);
	}
}
@media (min-width: 1024px) {
	body.admin-bar.woocommerce-checkout .theme-checkout-main {
		padding-top: calc(96px + 32px);
	}
}
.theme-checkout-shell {
	padding-block: 0.5rem 4rem;
	padding-inline: 1.25rem;
	width: 100%;
	max-width: none;
}
@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: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	margin-bottom: 0;
}
.checkout-continue-link {
	display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
	font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent);
}
.checkout-continue-link:hover { color: var(--color-primary); }
.theme-checkout-title { margin: 0; font-size: 2.25rem; line-height: 1.1; }
@media (min-width: 768px) { .theme-checkout-title { font-size: 3rem; } }
.theme-checkout-intro { margin: 0.75rem 0 0; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); font-size: 15px; }

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,
.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;
}

body.woocommerce-checkout .wc-block-checkout.alignwide,
.entry-content .wc-block-checkout.alignwide {
	margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-components-main,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
	margin-top: 0;
	padding-top: 0;
}

body.woocommerce-checkout .wc-block-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);
}

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;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
		flex-direction: unset;
		flex-wrap: nowrap;
		margin: 0;
	}

	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
		width: auto !important;
		max-width: 100%;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
	}

	body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar),
	.entry-content .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar) {
		display: grid;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
	}

	body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices,
	.entry-content .wc-block-checkout > .wc-block-components-notices {
		grid-column: 1 / -1;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar {
	background: transparent;
	padding: 0;
	border-radius: 0;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	background: var(--color-linen);
	border-radius: var(--card-radius);
	padding: 1.5rem;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
	margin-inline: auto;
	max-width: 36rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select { width: 100% !important; max-width: none !important; }
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select {
	font-family: var(--font-body); color: var(--color-foreground); border: 1px solid var(--color-border);
	border-radius: 0.5rem; background-color: var(--color-background);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { outline: none; border-color: var(--color-primary); }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--color-primary) !important; color: var(--color-button-text) !important; border-radius: var(--btn-radius) !important;
	text-transform: var(--btn-text-transform); letter-spacing: var(--btn-letter-spacing); font-weight: var(--btn-font-weight);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }
body.woocommerce-checkout h2, body.woocommerce-checkout h3 { font-family: var(--font-display); }
body.woocommerce-checkout .wc-block-components-notice-banner { border-radius: 0.75rem; }

/* =========================================================================
   OTHER WOOCOMMERCE PAGES — width/alignment parity (Section 13.7)
   ========================================================================= */
body.woocommerce-cart .site-page-main,
body.woocommerce-account .site-page-main { padding-top: var(--header-height, 96px); }
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title { max-width: 80rem; margin-left: auto; margin-right: auto; }

/* =========================================================================
   THANK YOU PAGE (Section 22.8)
   ========================================================================= */
body.theme-thankyou-page { overflow-x: hidden; }
.theme-thankyou { max-width: 42rem; margin: 0 auto; text-align: center; }
.theme-thankyou__icon { width: 64px; height: 64px; background: var(--color-primary); color: var(--color-button-text); border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); padding: 0 0 1rem 0; font-size: 1.75rem; }
body.theme-thankyou-page .woocommerce-order-overview { list-style: none; margin: 0 0 2rem; padding: 1.5rem; background: var(--color-linen); border-radius: var(--card-radius); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 14px; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; font-size: 14px; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; margin: 0 auto; font-style: normal; font-size: 14px; line-height: 1.6; }
.theme-thankyou__cta { margin-top: 2rem; }

/* =========================================================================
   IMAGE COVER COMPLETENESS (Section 15.1)
   ========================================================================= */
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img) { max-width: 100%; height: auto; }

/* =========================================================================
   RESPONSIVE OVERFLOW GUARDS
   ========================================================================= */
main,
.site-header__row,
.shop-section__head,
.contact-section__grid,
.contact-section__form,
.theme-checkout-header,
.wc-block-checkout,
.wc-block-components-sidebar-layout {
	min-width: 0;
	max-width: 100%;
}
.theme-btn,
.theme-pill-btn,
.theme-pill-outline-btn {
	max-width: 100%;
}
.theme-buy-now-button {
	min-width: 0;
}
@media (max-width: 639px) {
	.theme-buy-now-button { flex: 1 1 100%; }
}
