/* =========================================================================
   Ladoski Bakery theme stylesheet.
   Color tokens are injected as CSS variables via wp_add_inline_style()
   (Section 22.9) from Customizer values; :root below provides fallbacks
   matching the original design defaults exactly.
   ========================================================================= */

:root {
  --color-background: #fdfbf7;
  --color-foreground: #251b18;
  --color-primary: #da252b;
  --color-card: #f5e8d1;
  --color-accent: #c68439;
  --color-cinnamon-amber: #b7622a;
  --color-raisin-plum: #673249;
  --color-muted-foreground: #5b4d48;
  --color-border: #dcd2c6;
  --logo-height: 44px;

  --color-button-text: var(--color-background);
  --color-card-foreground: var(--color-foreground);
  --color-muted: color-mix(in srgb, var(--color-card) 88%, var(--color-foreground) 12%);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', system-ui, -apple-system, sans-serif;

  --shadow-soft: 0 2px 12px -4px rgb(0 0 0 / 0.08);
  --shadow-elevated: 0 8px 32px -8px rgb(0 0 0 / 0.18);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-reveal: cubic-bezier(0.25, 0.4, 0.25, 1);

  --header-height: 64px;

  --btn-radius: 4px;
  --btn-height: 48px;
  --btn-padding: 0.85rem 1.5rem;
  --btn-font-size: 0.875rem;
  --btn-font-weight: 600;
  --btn-letter-spacing: 0.03em;
  --btn-text-transform: none;

  --card-radius: 6px;
  --checkout-gap: 2rem;
}

/* -------------------------------------------------------------------------
   RESET / BASE
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  padding-top: var(--header-height);
  max-width: 100%;
  overflow-x: clip;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
img:not(.cover-img):not(.theme-product-card-img):not(.theme-product-main-img):not(.theme-product-thumb-img):not(.theme-cart-item-img):not(.hero-video-fallback):not(.contact-video-fallback):not(.site-logo-img) {
  height: auto;
}
.cover-img, .theme-product-card-img, .theme-product-main-img, .theme-product-thumb-img,
.theme-cart-item-img, .theme-cart-drawer-item-thumb img,
.hero-video-fallback, .contact-video-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100% !important;
  object-fit: cover; object-position: center;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0; }

::selection { background: var(--color-primary); color: var(--color-background); }

[hidden] { display: none !important; }

.container-wide {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 768px) {
  .container-wide { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .container-wide { padding-left: 3rem; padding-right: 3rem; }
}

/* Section horizontal padding utilities — never zero on mobile/tablet */
[class*="section-pad-"] {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 768px) {
  [class*="section-pad-"] { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  [class*="section-pad-"] { padding-left: 3rem; padding-right: 3rem; }
}

.section-py { padding: 4rem 0; }
@media (min-width: 768px) { .section-py { padding: 6rem 0; } }

.scroll-reveal-section { scroll-margin-top: 6rem; }
#top { scroll-margin-top: 0; }

.bg-shell { background: var(--color-background); min-height: 60vh; }

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after, .link-underline[data-active="true"]::after { transform: scaleX(1); }

/* -------------------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------------- */
.theme-btn-primary, .single_add_to_cart_button.button, .add_to_cart_button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  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, transform 0.15s ease !important;
  white-space: nowrap;
}
.theme-btn-primary:hover, .single_add_to_cart_button.button:hover, .add_to_cart_button.button:hover {
  filter: brightness(1.1);
  opacity: 1 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}
.theme-btn-primary, .theme-btn-secondary { align-self: flex-start; }
.contact-cta-primary,
.single-product .theme-add-to-cart-btn,
.theme-add-to-cart-btn,
.theme-cart-drawer-checkout-btn { align-self: stretch; }
@media (min-width: 640px) {
  .contact-cta-primary { align-self: flex-start; }
}
.theme-btn-primary:active { transform: scale(0.98); }

.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.5 !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.5 !important;
  background-color: var(--color-primary) !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; }

.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; }

.theme-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--color-foreground);
  border: 1px solid color-mix(in srgb, var(--color-foreground) 80%, transparent);
  border-radius: var(--btn-radius); padding: var(--btn-padding);
  font-size: var(--btn-font-size); font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing); transition: all 0.2s ease;
}
.theme-btn-secondary:hover { background: var(--color-foreground); color: var(--color-background); }
.theme-btn-secondary--hero { border-color: color-mix(in srgb, #fff 70%, transparent); color: #fff; }
.theme-btn-secondary--hero:hover { background: #fff; color: var(--color-foreground); }

.theme-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent);
  color: var(--color-foreground); padding: 0.65rem 1.25rem; border-radius: var(--btn-radius);
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  transition: all 0.2s ease;
}
.theme-btn-outline:hover { background: var(--color-foreground); color: var(--color-background); }

/* -------------------------------------------------------------------------
   ANIMATIONS (Section 2.1)
   ---------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes routeDraw { from { stroke-dashoffset: var(--route-length, 1000); } to { stroke-dashoffset: 0; } }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes revealUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes revealFade { from { opacity: 0; } to { opacity: 1; } }

.anim-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.anim-slide-up { animation: slideUp 0.4s var(--transition-smooth) forwards; }
.anim-marquee { animation: marquee 32s linear infinite; }
.anim-route-draw {
  stroke-dasharray: var(--route-length, 1000);
  stroke-dashoffset: var(--route-length, 1000);
  animation: routeDraw 0.75s var(--transition-smooth) 0.2s forwards;
}
.anim-hero-zoom { animation: heroZoom 24s ease-in-out infinite alternate; will-change: transform; transform-origin: center center; }

/* Scroll-reveal items: hidden until observed, per-element stagger via delay classes. */
.reveal-item { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--transition-reveal), transform 0.6s var(--transition-reveal); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; transition: opacity 0.6s var(--transition-smooth); }
.reveal-fade.is-visible { opacity: 1; }
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }
.reveal-delay-5 { transition-delay: 0.3s; }

/* Customizer-preview fallback: never hide content the editor needs to show live. */
body.is-customizer .reveal-item,
body.is-customizer .reveal-fade { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .anim-marquee, .anim-route-draw, .anim-fade-in, .anim-slide-up, .anim-hero-zoom { animation: none !important; }
  .reveal-item, .reveal-fade { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* -------------------------------------------------------------------------
   HEADER
   ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  background: var(--color-background);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-home { background: var(--color-background); }
.site-header.is-solid,
.site-header.is-scrolled,
.site-header.is-menu-open {
  background: color-mix(in srgb, var(--color-background) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
@media (min-width: 768px) {
  :root { --header-height: 72px; }
}

.site-brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.site-logo-img {
  height: var(--logo-height-mobile, 40px) !important;
  width: auto !important;
  max-height: var(--logo-height-mobile, 40px);
  display: block;
  object-fit: contain;
}
@media (min-width: 768px) {
  .site-logo-img {
    height: var(--logo-height, 44px) !important;
    max-height: var(--logo-height, 44px);
  }
}
.site-logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: var(--logo-height); }
.site-brand-text { display: none; flex-direction: column; line-height: 1.2; }
@media (min-width: 640px) { .site-brand-text { display: flex; } }
.site-brand-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--color-foreground); }
.site-brand-tagline { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted-foreground); }

.site-nav-desktop { display: none; }
@media (min-width: 1024px) { .site-nav-desktop { display: flex; align-items: center; gap: 2rem; } }
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--color-foreground);
  transition: color 0.2s ease;
}
.theme-nav-link:hover { color: var(--color-primary); }

.site-nav-actions { display: flex; align-items: center; gap: 0.25rem; }
.theme-cart-btn { position: relative; padding: 0.5rem; border-radius: 4px; color: var(--color-foreground); transition: color 0.2s; }
.theme-cart-btn:hover { color: var(--color-primary); }
.theme-cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; border-radius: 999px;
  background: var(--color-primary); color: var(--color-button-text);
}
.theme-cart-count:empty { display: none; }

.theme-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  color: var(--color-foreground);
}
@media (min-width: 1024px) {
  .theme-mobile-toggle { display: none !important; }
}

.theme-mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 110;
  background: color-mix(in srgb, var(--color-foreground) 35%, transparent);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--transition-smooth);
}
.theme-mobile-overlay.is-open {
  display: block;
  opacity: 1; pointer-events: auto;
}

.theme-mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 120;
  height: 100dvh; max-height: 100dvh;
  background: var(--color-background); color: var(--color-foreground);
  flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-elevated);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.theme-mobile-menu.is-open {
  display: flex;
}
@media (min-width: 1024px) {
  .theme-mobile-menu,
  .theme-mobile-overlay { display: none !important; }
}
.theme-mobile-menu-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; border-bottom: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-background) 98%, transparent);
}
.theme-mobile-menu-header .site-brand-text { display: flex; }
.theme-mobile-menu-header .site-logo-img {
  height: 40px !important;
  max-height: 40px;
}
.theme-mobile-menu-actions { display: flex; align-items: center; gap: 0.25rem; }
.theme-mobile-menu-actions .theme-cart-btn,
.theme-mobile-close {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-mobile-close { padding: 0.5rem; }
.theme-mobile-menu-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 0;
  align-self: stretch;
}
.theme-mobile-nav-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}
.theme-mobile-nav-list,
.theme-mobile-menu-nav .theme-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}
.theme-mobile-nav-list li,
.theme-mobile-menu-nav .theme-nav-list li {
  margin: 0;
  width: 100%;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}
.theme-mobile-menu-nav .theme-nav-link,
.theme-mobile-nav-list a,
.theme-mobile-nav-list .theme-mobile-nav-link {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: var(--color-foreground);
  transition: color 0.2s ease;
  cursor: pointer;
}
.theme-mobile-menu-nav .theme-nav-link:hover,
.theme-mobile-nav-list a:hover,
.theme-mobile-nav-list .theme-mobile-nav-link:hover,
.theme-mobile-nav-list .current-menu-item > a,
.theme-mobile-nav-list .current-menu-ancestor > a {
  color: var(--color-primary);
}
.theme-mobile-menu-nav .link-underline::after { display: none; }
.theme-mobile-cart-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  background: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: var(--color-foreground);
  cursor: pointer;
  transition: color 0.2s ease;
}
.theme-mobile-cart-link:hover { color: var(--color-primary); }
.theme-mobile-cart-count { font-size: 12px; font-weight: 600; color: var(--color-primary); }

/* -------------------------------------------------------------------------
   HERO
   ---------------------------------------------------------------------- */
.hero-section {
  position: relative; overflow: hidden;
  background: var(--color-foreground); color: var(--color-background);
  min-height: 700px;
}
@media (min-width: 768px) { .hero-section { min-height: 780px; } }
@media (min-width: 1024px) { .hero-section { min-height: 800px; } }
body.theme-no-hero .hero-section { display: none; }

.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.hero-overlay { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.hero-overlay-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-foreground) 88%, transparent) 0%, color-mix(in srgb, var(--color-foreground) 60%, transparent) 45%, color-mix(in srgb, var(--color-foreground) 40%, transparent) 100%);
}
.hero-overlay-bottom {
  position: absolute; inset-inline: 0; bottom: 0; height: 14rem;
  background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 90%, transparent), transparent);
}

.hero-content-wrap { position: relative; z-index: 20; display: flex; align-items: center; min-height: 700px; }
@media (min-width: 768px) { .hero-content-wrap { min-height: 780px; } }
@media (min-width: 1024px) { .hero-content-wrap { min-height: 800px; } }
.hero-content { padding-top: 4rem; padding-bottom: 11rem; }
@media (min-width: 768px) { .hero-content { padding-top: 6rem; padding-bottom: 14rem; } }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.8; margin-bottom: 1.5rem; }
.hero-eyebrow-rule { width: 2rem; height: 2px; background: var(--color-primary); display: inline-block; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.75rem); font-weight: 500; line-height: 1.02; margin-bottom: 1.5rem; max-width: 48rem; }
.hero-subtitle { font-size: 1rem; opacity: 0.85; max-width: 36rem; line-height: 1.6; margin-bottom: 2rem; }
@media (min-width: 768px) { .hero-subtitle { font-size: 1.125rem; } }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-index-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 13px; letter-spacing: 0.02em; opacity: 0.85; border-top: 1px solid color-mix(in srgb, #fff 20%, transparent); padding-top: 1.25rem; max-width: 48rem; }
.hero-index-list li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-index-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--color-primary); display: inline-block; }

.hero-route-line { position: absolute; inset-inline: 0; bottom: 34px; z-index: 20; pointer-events: none; opacity: 0.9; }
@media (min-width: 768px) { .hero-route-line { bottom: 38px; } }
.route-line-svg { width: 100%; height: auto; display: block; aspect-ratio: 10 / 1; }

.hero-marquee {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 30; overflow: hidden;
  background: var(--color-primary); color: var(--color-button-text);
  box-shadow: 0 -8px 24px -8px color-mix(in srgb, var(--color-foreground) 60%, transparent);
}
.hero-marquee-track { display: flex; white-space: nowrap; padding: 0.75rem 0; }
.hero-marquee-item { display: inline-flex; align-items: center; gap: 1.5rem; padding: 0 1.5rem; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.hero-marquee-dot { width: 6px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--color-button-text) 70%, transparent); display: inline-block; }

/* -------------------------------------------------------------------------
   SHARED SECTION / EYEBROW / HEADINGS (Section 2.2 per-section scales)
   ---------------------------------------------------------------------- */
.theme-eyebrow { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; margin-bottom: 0.75rem; }
.theme-eyebrow-rule { width: 2rem; height: 2px; background: var(--color-primary); display: inline-block; margin-right: 0.75rem; }
.section-heading { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; color: var(--color-foreground); font-size: 2.25rem; }
@media (min-width: 768px) { .section-heading { font-size: 3rem; } }

/* -------------------------------------------------------------------------
   PRODUCTS SECTION + PRODUCT CARD
   ---------------------------------------------------------------------- */
.products-section { background: var(--color-background); }
.products-heading-row { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .products-heading-row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.products-heading-col { max-width: 42rem; }
.products-heading { margin-top: 0.25rem; }
.products-subheading { color: var(--color-muted-foreground); margin-top: 1rem; line-height: 1.6; }

.products-strip { position: relative; margin-bottom: 4rem; }
.products-route-line { display: none; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 0; }
@media (min-width: 768px) { .products-route-line { display: block; } }

.theme-product-grid { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-home-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .theme-home-product-grid .theme-product-card-wrap:nth-child(2),
  .theme-home-product-grid .theme-product-card-wrap:nth-child(4) { margin-top: 1rem; }
}

.theme-product-card-wrap { min-width: 0; display: flex; }
.theme-product-card {
  position: relative; width: 100%; display: flex; flex-direction: column;
  border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--transition-smooth);
}
.theme-product-card:hover { transform: translateY(-4px); }
.theme-product-card__strip { position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 3px; z-index: 4; }
.strip-primary { background: var(--color-primary); }
.strip-gold { background: var(--color-accent); }
.strip-cocoa { background: var(--color-foreground); }
.strip-plum { background: var(--color-raisin-plum); }

.card-surface-cocoa { background: var(--color-foreground); color: var(--color-background); }
.card-surface-cinnamon { background: var(--color-cinnamon-amber); color: var(--color-background); }
.card-surface-cream { background: var(--color-card); color: var(--color-foreground); }
.card-surface-plum { background: var(--color-raisin-plum); color: var(--color-background); }
.card-surface-gold { background: var(--color-accent); color: var(--color-foreground); }

.theme-product-card__image-link {
  display: block; position: relative; z-index: 1;
}
.theme-product-card__image-wrapper {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: color-mix(in srgb, var(--color-background) 95%, transparent);
}
.theme-product-card__info {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column;
  padding: 1rem 1.25rem 1.25rem 1.5rem;
}
@media (min-width: 768px) { .theme-product-card__info { padding: 1.25rem 1.5rem 1.5rem 1.75rem; } }
.theme-product-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 600; line-height: 1.2; min-width: 0;
}
.theme-product-card__title-link { color: inherit; transition: color 0.2s ease; }
.theme-product-card__title-link:hover { color: var(--color-primary); }
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.35rem; } }
.theme-product-badge {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  padding: 0.15rem 0.6rem; border-radius: 999px;
  background: var(--color-foreground); color: var(--color-background);
}
.theme-stock-badge {
  position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 3;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  padding: 0.25rem 0.6rem; border-radius: 4px;
  background: var(--color-primary); color: var(--color-button-text);
}
.theme-product-card__desc { font-size: 13px; line-height: 1.4; opacity: 0.85; margin-top: 0.5rem; flex: 1; }
.theme-product-card__footer { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.theme-product-card__price { font-weight: 600; font-size: 1rem; }
@media (min-width: 768px) { .theme-product-card__price { font-size: 1.125rem; } }
.theme-product-card__price .woocommerce-Price-amount { font-family: var(--font-body); }
.theme-product-card__view-link {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 0.1rem;
  transition: opacity 0.2s ease; white-space: nowrap;
}
.theme-product-card__view-link:hover { opacity: 0.8; }

.theme-shop-grid, .theme-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .theme-shop-grid, .theme-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-shop-empty { text-align: center; padding: 3rem 0; color: var(--color-muted-foreground); }
.theme-shop-wrap { padding: 3rem 0; }

/* -------------------------------------------------------------------------
   DISTRIBUTION SECTION
   ---------------------------------------------------------------------- */
.distribution-section { background: var(--color-card); }
.distribution-section .section-py { padding: 3.5rem 0; }
@media (min-width: 768px) { .distribution-section .section-py { padding: 5rem 0; } }
@media (min-width: 1024px) { .distribution-section .section-py { padding: 6rem 0; } }
.distribution-section .theme-eyebrow { font-size: 12px; }
.distribution-intro { max-width: 36rem; margin-bottom: 3rem; }
.distribution-heading { color: var(--color-foreground); font-size: 2rem; }
@media (min-width: 768px) { .distribution-heading { font-size: 2.75rem; } }
.distribution-body { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.55; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }

.distribution-steps-wrap { position: relative; }
.distribution-route-svg {
  display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
@media (min-width: 768px) { .distribution-route-svg { display: block; } }

.distribution-steps-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 1.5rem; z-index: 1; }
@media (min-width: 768px) { .distribution-steps-grid { row-gap: 2rem; } }
@media (min-width: 640px) { .distribution-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .distribution-steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .distribution-steps-grid .distribution-step:nth-child(2),
  .distribution-steps-grid .distribution-step:nth-child(4) { margin-top: 1.25rem; }
  .distribution-steps-grid .distribution-step:nth-child(6) { margin-top: 0.75rem; }
}

.distribution-step {
  position: relative; background: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
  border-radius: 5px; padding: 1.5rem; transition: transform 0.2s ease; min-width: 0;
}
.distribution-step:hover { transform: translateY(-2px); }
.distribution-step.is-destination { background: color-mix(in srgb, var(--color-accent) 15%, transparent); border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent); border-left: 3px solid var(--color-primary); }
.distribution-step-entry { position: absolute; top: -1px; left: 1.5rem; width: 1.5rem; height: 2px; background: color-mix(in srgb, var(--color-primary) 70%, transparent); }
.distribution-step-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.distribution-step-num {
  width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--color-primary); color: var(--color-button-text);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--color-card);
}
.distribution-step-label { font-size: 19px; font-weight: 600; line-height: 1.2; color: var(--color-foreground); }
.distribution-step-tag { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; margin-bottom: 0.5rem; }
.distribution-step-body { font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }

.distribution-summary-grid { position: relative; margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .distribution-summary-grid { margin-top: 2.5rem; } }
.distribution-summary-connector { display: none; }
@media (min-width: 1024px) {
  .distribution-summary-connector {
    display: block; position: absolute; top: -1.5rem; width: 2px; height: 1.5rem;
    background: color-mix(in srgb, var(--color-primary) 60%, transparent);
  }
  .distribution-summary-connector--left { left: 25%; }
  .distribution-summary-connector--right { right: 12%; }
}
@media (min-width: 1024px) { .distribution-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.distribution-summary { background: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); border-left: 3px solid var(--color-primary); padding: 1.5rem; border-radius: 0 5px 5px 0; }
.distribution-summary--wide { grid-column: span 2 / span 2; }
@media (max-width: 1023px) { .distribution-summary--wide { grid-column: auto; } }
.distribution-summary--gold { background: color-mix(in srgb, var(--color-accent) 15%, transparent); border-color: color-mix(in srgb, var(--color-accent) 40%, transparent); border-left-color: var(--color-primary); }
.distribution-summary-label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; margin-bottom: 0.5rem; }
.distribution-summary-body { font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }

/* -------------------------------------------------------------------------
   ABOUT SECTION
   ---------------------------------------------------------------------- */
.about-section { background: var(--color-background); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 5fr 7fr; } }
.about-heading { margin-top: 0.5rem; font-size: 2.25rem; }
@media (min-width: 768px) { .about-heading { font-size: 3rem; } }
.about-col-body { display: flex; flex-direction: column; gap: 1.5rem; font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
@media (min-width: 768px) { .about-col-body { font-size: 17px; } }
.about-intro { font-size: 1.125rem; color: var(--color-foreground); }
@media (min-width: 768px) { .about-intro { font-size: 1.25rem; } }
.about-blocks { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-top: 0.5rem; }
@media (min-width: 640px) { .about-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-block { border-top: 1px solid color-mix(in srgb, var(--color-primary) 60%, transparent); padding-top: 1rem; min-width: 0; }
.about-block--span2 { grid-column: 1 / -1; }
.about-block-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.about-block-body { font-size: 14px; color: var(--color-muted-foreground); line-height: 1.55; }

/* -------------------------------------------------------------------------
   FAQ SECTION
   ---------------------------------------------------------------------- */
.faq-section { background: var(--color-card); }
.faq-wrap { max-width: 48rem; }
.faq-heading { margin-bottom: 2rem; font-size: 2.25rem; }
@media (min-width: 768px) { .faq-heading { font-size: 3rem; } }
.faq-item { border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; padding: 1.25rem 0; color: var(--color-foreground);
}
@media (min-width: 768px) { .faq-question { font-size: 1.25rem; } }
.faq-chevron { color: var(--color-primary); flex-shrink: 0; transition: transform 0.3s ease-out; }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer-wrap {
  display: grid; grid-template-rows: 0fr; overflow: hidden;
  transition: grid-template-rows 0.3s ease-out;
}
.faq-answer-wrap.is-open { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-wrap.is-open .faq-answer-inner { padding-bottom: 1.25rem; }
.faq-answer-inner p { font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }

/* -------------------------------------------------------------------------
   CONTACT SECTION
   ---------------------------------------------------------------------- */
.contact-section { background: var(--color-foreground); color: var(--color-background); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-title { font-family: var(--font-display); font-weight: 500; font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .contact-title { font-size: 3rem; } }
.contact-body { opacity: 0.8; line-height: 1.6; margin-bottom: 2rem; max-width: 28rem; }
.contact-cta-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-bottom: 2rem; }
.contact-cta-primary { width: 100%; align-self: stretch; }
@media (min-width: 640px) {
  .contact-cta-primary { width: auto; align-self: flex-start; }
}
.contact-cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; width: 100%; }
@media (min-width: 640px) { .contact-cta-row { flex-direction: row; width: auto; } }
.contact-social-label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; margin-bottom: 0.75rem; }
.contact-social-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 14px; opacity: 0.8; }
.contact-social-note { font-size: 12px; opacity: 0.5; margin-top: 0.5rem; }

.contact-video-wrap { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 1px solid color-mix(in srgb, #fff 10%, transparent); min-width: 0; }
@media (min-width: 768px) { .contact-video-wrap { aspect-ratio: 5 / 4; } }
.contact-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.contact-video-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--color-foreground) 15%, transparent) 0%, color-mix(in srgb, var(--color-foreground) 55%, transparent) 100%); }
.contact-video-caption { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; }
.contact-video-caption svg { color: var(--color-primary); }

/* -------------------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------------- */
.site-footer { background: var(--color-foreground); color: var(--color-background); }
.site-footer-inner { padding-top: 3rem; padding-bottom: 3.5rem; }
.site-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-footer-brand .site-brand { gap: 0.75rem; }
.site-footer-logo { background: color-mix(in srgb, #fff 5%, transparent); padding: 0.25rem; border-radius: 4px; height: 48px !important; }
.site-footer-brand-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.site-footer-tagline { margin-top: 1rem; font-size: 14px; opacity: 0.7; line-height: 1.55; }
.site-footer-heading { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; margin-bottom: 1rem; }
.theme-footer-nav-list, .site-footer-range-list { display: flex; flex-direction: column; gap: 0.6rem; }
.theme-footer-link, .theme-footer-nav-list a { font-size: 14px; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.theme-footer-link:hover, .theme-footer-nav-list a:hover { color: var(--color-primary); opacity: 1; }
.theme-footer-cart-link { display: inline-flex; align-items: center; gap: 0.4rem; }
.site-footer-range-list li { font-size: 14px; opacity: 0.85; }
.site-footer-email { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 14px; opacity: 0.85; word-break: break-all; }
.site-footer-email:hover { color: var(--color-primary); opacity: 1; }
.site-footer-social { margin-top: 1.25rem; }
.site-footer-social-label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; margin-bottom: 0.5rem; }
.site-footer-social-list { display: flex; flex-direction: column; gap: 0.25rem; font-size: 14px; opacity: 0.7; }
.site-footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, #fff 15%, transparent); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .site-footer-bottom { flex-direction: row; justify-content: space-between; } }
.site-footer-copyright, .site-footer-credit { font-size: 12px; opacity: 0.6; }
.site-footer-credit a:hover { color: var(--color-primary); text-decoration: underline; }

/* -------------------------------------------------------------------------
   CART DRAWER
   ---------------------------------------------------------------------- */
#theme-cart-overlay {
  position: fixed; inset: 0; z-index: 149; background: color-mix(in srgb, var(--color-foreground) 40%, 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: 420px; z-index: 150;
  background: var(--color-background); box-shadow: var(--shadow-elevated);
  display: flex; flex-direction: column; border-left: 1px solid var(--color-border);
  transform: translateX(100%); transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer-header { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; border-bottom: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-card) 60%, transparent); }
.theme-cart-drawer-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--color-primary); }
.theme-cart-drawer-eyebrow { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: var(--color-muted-foreground); }
.theme-cart-drawer-title { font-size: 1.25rem; font-weight: 500; margin-top: 0.15rem; }
.theme-cart-drawer-close { padding: 0.5rem; border-radius: 4px; transition: background 0.2s; }
.theme-cart-drawer-close:hover { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }

.theme-cart-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.theme-cart-drawer-empty svg { color: color-mix(in srgb, var(--color-foreground) 40%, transparent); margin-bottom: 1rem; }
.theme-cart-drawer-empty p { margin-bottom: 1.5rem; font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

.theme-cart-drawer-items { flex: 1; overflow: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-cart-drawer-item { position: relative; display: flex; gap: 0.75rem; background: var(--color-background); border: 1px solid var(--color-border); border-radius: 6px; padding: 0.75rem; overflow: hidden; }
.theme-cart-drawer-item-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--color-primary); }
.theme-cart-drawer-item-thumb {
  position: relative;
  width: 64px; height: 80px; flex-shrink: 0;
  border-radius: 4px; overflow: hidden;
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-card) 50%, transparent);
}
.theme-cart-drawer-item-thumb img,
.theme-cart-drawer-item-thumb .theme-cart-item-img {
  height: 100% !important;
  width: 100%;
  object-fit: cover;
}
.theme-cart-drawer-item-body { flex: 1; min-width: 0; }
.theme-cart-drawer-item-name { font-family: var(--font-display); font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-drawer-item-name:hover { color: var(--color-primary); }
.theme-cart-drawer-item-price { font-size: 13px; font-weight: 600; margin-top: 0.25rem; }
.theme-cart-drawer-item-variation { font-size: 12px; color: var(--color-muted-foreground); margin-top: 0.15rem; }
.theme-cart-drawer-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.theme-cart-drawer-item-remove { margin-left: auto; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-cart-drawer-item-remove:hover { color: var(--color-primary); }

.theme-qty-wrapper { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent); border-radius: 4px; background: var(--color-background); }
.theme-quantity-wrapper {
  display: inline-flex; align-items: center;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent);
  border-radius: 4px; background: var(--color-background);
}
.theme-quantity-wrapper button,
.theme-qty-wrapper button { padding: 0.625rem 0.75rem; transition: background 0.2s ease; }
.theme-quantity-wrapper button:hover,
.theme-qty-wrapper button:hover { background: color-mix(in srgb, var(--color-card) 60%, transparent); }
.theme-qty-wrapper span, .theme-qty-input { min-width: 40px; text-align: center; font-size: 14px; padding: 0.5rem 0; border: none; background: transparent; font-family: var(--font-body); font-weight: 500; }
.theme-quantity-wrapper .theme-qty-input { min-width: 48px; text-align: center; font-size: 14px; padding: 0.5rem 0; border: none; background: transparent; font-family: var(--font-body); font-weight: 500; }
.theme-qty-wrapper--sm button { padding: 0.35rem 0.55rem; }
.theme-qty-wrapper--sm span { min-width: 28px; font-size: 12px; }
.theme-qty-input { -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-cart-drawer-footer { padding: 1.25rem; border-top: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-card) 40%, transparent); display: flex; flex-direction: column; gap: 0.75rem; }
.theme-cart-drawer-subtotal { display: flex; justify-content: space-between; font-size: 14px; }
.theme-cart-drawer-subtotal span:last-child { font-weight: 600; }
.theme-cart-drawer-note { font-size: 12px; color: var(--color-muted-foreground); }
.theme-cart-drawer-checkout-btn { width: 100%; text-align: center; }
.theme-cart-drawer-empty-btn { width: 100%; text-align: center; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); padding: 0.35rem 0; }
.theme-cart-drawer-empty-btn:hover { color: var(--color-primary); }

/* -------------------------------------------------------------------------
   ROUTE HEADER (breadcrumb banner used on inner pages)
   ---------------------------------------------------------------------- */
.route-header { background: var(--color-card); border-bottom: 1px solid var(--color-border); }
.route-header-inner { padding-top: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .route-header-inner { padding-top: 3.5rem; padding-bottom: 3.5rem; } }
.route-header-eyebrow { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.route-header-title { font-family: var(--font-display); font-weight: 500; font-size: 1.875rem; line-height: 1.05; margin-top: 0.75rem; color: var(--color-foreground); }
@media (min-width: 768px) { .route-header-title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .route-header-title { font-size: 3rem; } }
.route-header-rule { display: block; margin-top: 1.25rem; width: 4rem; height: 3px; border-radius: 2px; background: var(--color-primary); }

.theme-breadcrumb { padding: 1.5rem 0; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.theme-breadcrumb a:hover { color: var(--color-primary); }
.theme-breadcrumb-sep { opacity: 0.4; }
.theme-breadcrumb-current { color: var(--color-foreground); }

/* -------------------------------------------------------------------------
   SINGLE PRODUCT PAGE
   ---------------------------------------------------------------------- */
.single-product .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) {
  .single-product .theme-product-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3.5rem;
  }
  .theme-product-gallery { grid-column: span 7 / span 7; }
  .theme-product-info { grid-column: span 5 / span 5; }
}

.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
  .theme-product-info { position: sticky; top: 7rem; align-self: start; }
}
.theme-product-gallery-frame {
  position: relative; background: var(--color-background);
  border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
  border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--transition-smooth);
}
.theme-product-gallery-frame::before,
.theme-product-gallery-frame::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 1px;
  background: color-mix(in srgb, var(--color-foreground) 10%, transparent); z-index: 3; pointer-events: none;
}
.theme-product-gallery-frame::before { left: 0; }
.theme-product-gallery-frame::after { right: 0; }
.theme-product-gallery-frame:hover { transform: translateY(-2px); }
.theme-product-gallery-tab { position: absolute; top: 0; left: 0; height: 3px; width: 6rem; background: var(--color-primary); z-index: 2; }
.theme-product-gallery-main { position: relative; aspect-ratio: 1 / 1; background: color-mix(in srgb, var(--color-card) 40%, transparent); overflow: hidden; }
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; max-width: 100%; overflow-x: auto; padding-bottom: 0.25rem; }
.theme-product-thumb { position: relative; width: 80px; height: 80px; flex-shrink: 0; overflow: hidden; border-radius: 4px; border: 1px solid var(--color-border); transition: border-color 0.2s; }
.theme-product-thumb.is-active { border-color: var(--color-primary); }
.theme-product-thumb:hover { border-color: color-mix(in srgb, var(--color-foreground) 40%, transparent); }

.theme-product-info-heading { position: relative; padding-left: 1.25rem; }
.theme-product-info-accent { position: absolute; left: 0; top: 0.25rem; bottom: 0.25rem; width: 3px; border-radius: 2px; background: var(--color-primary); }
.theme-product-category { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-product-category a { color: inherit; }
.theme-product-title {
  font-family: var(--font-display); font-weight: 500; font-size: 1.875rem; line-height: 1.05; margin-top: 0.5rem; color: var(--color-foreground);
}
@media (min-width: 768px) { .theme-product-title { font-size: 2.25rem; } }
.theme-product-price {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  color: var(--color-foreground);
}
.theme-product-price .woocommerce-Price-amount { font-family: var(--font-body); font-weight: 600; }
.theme-product-description {
  font-family: var(--font-body);
  color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
  line-height: 1.625; margin-top: 1.25rem; font-size: 15px;
  overflow-wrap: break-word; word-break: break-word;
}
.theme-field-label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); margin-bottom: 0.75rem; }
.theme-quantity-block { margin-top: 2rem; }

.single-product .theme-add-to-cart-btn, .theme-add-to-cart-btn {
  margin-top: 1.5rem; width: 100%;
  text-transform: uppercase !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.14em !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.theme-product-accordion {
  margin-top: 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
}
.theme-accordion-section { border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); }
.theme-product-accordion > .theme-accordion-trigger:first-child { border-top: none; }
.theme-accordion-bottom-rule {
  border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
}
.theme-accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; text-align: left;
}
.theme-accordion-trigger span { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: var(--color-foreground); }
.theme-accordion-trigger svg { transition: transform 0.2s ease; flex-shrink: 0; }
.theme-accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.theme-accordion-panel-inner { padding-bottom: 1.5rem; font-family: var(--font-body); }
.theme-accordion-section .theme-accordion-panel-inner p { font-size: 14px; line-height: 1.625; }
.theme-accordion-section .theme-accordion-panel-inner { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-product-details-heading { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--color-foreground); margin-bottom: 0.75rem; }
.theme-accordion-panel-inner ul { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-accordion-panel-inner li { font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); display: flex; align-items: flex-start; }
.theme-accordion-panel-inner li::before { content: ''; width: 4px; height: 4px; background: var(--color-primary); margin: 0.45rem 0.75rem 0 0; border-radius: 999px; flex-shrink: 0; }
.theme-accordion-panel-inner > p { font-size: 15px; line-height: 1.625; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); margin-bottom: 1rem; overflow-wrap: break-word; word-break: break-word; }
.theme-product-info-full { white-space: pre-line; margin-bottom: 1rem !important; }
.theme-product-details-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.theme-product-details-list li { font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); display: flex; align-items: flex-start; }
.theme-product-details-list li::before { content: ''; width: 4px; height: 4px; background: var(--color-primary); margin: 0.45rem 0.75rem 0 0; border-radius: 999px; flex-shrink: 0; }

.theme-back-link { margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.theme-back-link:hover { color: var(--color-primary); }

/* Variable product attribute pills */
.theme-variations-form { margin-top: 0; }
.theme-variation-block { margin-top: 2rem; }
.theme-variation-block:first-child { margin-top: 2rem; }
.theme-variation-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-variation-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
  border-radius: 4px; background: transparent; color: var(--color-foreground);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.theme-variation-pill:hover { border-color: color-mix(in srgb, var(--color-foreground) 50%, transparent); }
.theme-variation-pill.is-selected {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
  color: var(--color-primary);
}
.theme-variation-swatch {
  width: 12px; height: 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
  flex-shrink: 0;
}
.theme-variation-select {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.theme-variations-form .theme-quantity-block--in-form { margin-top: 2rem; }
.theme-variations-form .woocommerce-variation-add-to-cart { margin-top: 1.5rem; }
.theme-variations-form .single_add_to_cart_button:disabled {
  opacity: 0.6 !important; cursor: not-allowed !important; pointer-events: none !important;
}
.theme-variations-form .woocommerce-variation-price { margin-top: 1rem; font-family: var(--font-body); font-weight: 600; }

.related-products-section { margin-top: 2rem; padding-top: 2rem; padding-bottom: 5rem; border-top: 1px solid var(--color-border); }
.theme-section-heading-row { margin-bottom: 2rem; }

/* -------------------------------------------------------------------------
   404
   ---------------------------------------------------------------------- */
.theme-404-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--color-muted);
}
.theme-404-inner { text-align: center; padding: 4rem 1.25rem; }
.theme-404-code { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; color: var(--color-foreground); }
.theme-404-body { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-404-link { color: var(--color-primary); text-decoration: underline; transition: color 0.2s ease; }
.theme-404-link:hover { color: color-mix(in srgb, var(--color-primary) 90%, transparent); }

/* -------------------------------------------------------------------------
   GENERIC PAGES / PAGE TITLE
   ---------------------------------------------------------------------- */
.theme-generic-page { padding: 3rem 0 4rem; }
.page-title { font-family: var(--font-display); font-weight: 500; font-size: 2.25rem; margin-bottom: 1.5rem; color: var(--color-foreground); }

/* =========================================================================
   WOOCOMMERCE STYLE OVERRIDE (Section 14) — cart, checkout, thank-you
   ========================================================================= */
.woocommerce-cart .theme-generic-page,
.woocommerce-account .theme-generic-page { padding-top: 2rem; }

.woocommerce table.cart, .woocommerce table.shop_table {
  width: 100%; border-collapse: collapse; background: var(--color-background);
  border: 1px solid var(--color-border); border-radius: 6px; overflow: hidden; font-family: var(--font-body);
}
.woocommerce table.cart th, .woocommerce table.shop_table th {
  background: var(--color-card); text-align: left; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.85rem 1rem; font-weight: 600; color: var(--color-foreground);
}
.woocommerce table.cart td, .woocommerce table.shop_table td { padding: 1rem; border-top: 1px solid var(--color-border); vertical-align: middle; }
.woocommerce table.cart img { width: 64px; border-radius: 4px; }
.woocommerce .quantity .qty { border: 1px solid var(--color-border); border-radius: 4px; padding: 0.5rem; width: 60px; }
.woocommerce a.remove { color: var(--color-primary) !important; font-size: 1.25rem; }
.woocommerce-cart-form__cart-item .product-remove { text-align: center; }
.woocommerce #coupon_code { border: 1px solid var(--color-border); border-radius: 4px; padding: 0.65rem 0.85rem; }
.woocommerce button.button, .woocommerce input.button { border-radius: var(--btn-radius); }
.woocommerce-cart .cart-collaterals { margin-top: 2rem; }
.woocommerce-cart .cart_totals {
  background: var(--color-foreground); color: var(--color-background); border-radius: 6px; padding: 1.5rem;
}
.woocommerce-cart .cart_totals table { width: 100%; }
.woocommerce-cart .cart_totals th, .woocommerce-cart .cart_totals td { border: none; padding: 0.6rem 0; color: inherit; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  width: 100%; text-align: center; display: block;
}

/* Notices — scoped visibility (Section 14.1) */
.single-product .woocommerce-message, .single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-radius: 6px; padding: 1rem 1.25rem; font-size: 14px; border: 1px solid var(--color-border);
  background: var(--color-card); color: var(--color-foreground); margin-bottom: 1.5rem;
}
.woocommerce-error { border-color: var(--color-primary); }

/* -------------------------------------------------------------------------
   CHECKOUT BLOCK (Section 13) — all scoped under body.woocommerce-checkout
   ---------------------------------------------------------------------- */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .theme-generic-page { padding-top: 2rem; padding-bottom: 4rem; }
body.woocommerce-checkout .wc-block-checkout { display: block; }

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout,
  body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--checkout-gap);
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0; width: 100%; max-width: none;
}
body.woocommerce-checkout .wc-block-components-notice-banner { grid-column: 1 / -1; }

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-combobox-control .components-form-token-field__input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-select .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout select,
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout input[type="number"],
body.woocommerce-checkout textarea {
  width: 100% !important;
  max-width: none !important;
  background-color: var(--color-background) !important;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent) !important;
  border-radius: 4px !important;
  color: var(--color-foreground) !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout input:focus,
body.woocommerce-checkout textarea:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 1px var(--color-primary) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-combobox-control input::placeholder,
body.woocommerce-checkout textarea::placeholder,
body.woocommerce-checkout input::placeholder {
  color: color-mix(in srgb, var(--color-foreground) 45%, transparent) !important;
  opacity: 1 !important;
}
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label,
body.woocommerce-checkout .wc-block-components-textarea label {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: color-mix(in srgb, var(--color-foreground) 75%, transparent) !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-card); border-radius: var(--card-radius); padding: var(--section-padding, 2rem);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important; color: var(--color-button-text) !important;
  border-radius: var(--btn-radius) !important; text-transform: none !important; font-weight: 600 !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.85; }
body.woocommerce-checkout h1, body.woocommerce-checkout h2, body.woocommerce-checkout h3 { font-family: var(--font-display); color: var(--color-foreground); }
body.woocommerce-checkout .page-title { max-width: 1280px; margin: 0 auto 1.5rem; padding-left: 0; padding-right: 0; }

/* -------------------------------------------------------------------------
   THANK YOU PAGE (Section 22.8)
   ---------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); font-size: 1.5rem; padding: 0 0 1rem 0; color: var(--color-foreground); }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-overview li {
  background: var(--color-card); border-radius: 6px; padding: 1rem 1.25rem; list-style: none; flex: 1 1 140px;
}
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
@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; border: 1px solid var(--color-border); border-radius: 6px; padding: 1.25rem; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }

/* Media control (admin Customizer) preview inputs (Section 22.3) */
