/* ==========================================================================
   Maddy Mayhem – theme.css
   ========================================================================== */

/* ── Google Fonts loaded via functions.php enqueue ── */

/* ─────────────────────────────────────────────────────────────────────────
   1. CSS VARIABLES
   ───────────────────────────────────────────────────────────────────────── */
:root {
  /* Injected by PHP wp_add_inline_style - fallbacks only */
  --color-background: #f7f3ed;
  --color-foreground: #302721;
  --color-primary:    #476f5b;
  --color-button-text:#f8f5f0;
  --color-teal:       #589dce;
  --color-marigold:   #eacc70;
  --color-rosa:       #c67056;
  --color-lilac:      #b39ed0;
  --color-nopal:      #476f5b;
  --color-butter:     #e8e2d7;
  --color-card:       #ece6de;
  --color-border:     #cec6bf;
  --color-muted:      #cdc6c0;
  --color-muted-foreground: #6a5f57;
  --color-indigo:     #39496a;
  --logo-height:      40px;

  /* Foreground / background opacity tokens (Lovable hsl(... / alpha)) */
  --color-foreground-80: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  --color-foreground-75: color-mix(in srgb, var(--color-foreground) 75%, transparent);
  --color-foreground-85: color-mix(in srgb, var(--color-foreground) 85%, transparent);
  --color-foreground-70: color-mix(in srgb, var(--color-foreground) 70%, transparent);
  --color-foreground-60: color-mix(in srgb, var(--color-foreground) 60%, transparent);
  --color-foreground-55: color-mix(in srgb, var(--color-foreground) 55%, transparent);
  --color-foreground-40: color-mix(in srgb, var(--color-foreground) 40%, transparent);
  --color-foreground-30: color-mix(in srgb, var(--color-foreground) 30%, transparent);
  --color-foreground-25: color-mix(in srgb, var(--color-foreground) 25%, transparent);
  --color-foreground-20: color-mix(in srgb, var(--color-foreground) 20%, transparent);
  --color-foreground-15: color-mix(in srgb, var(--color-foreground) 15%, transparent);
  --color-foreground-10: color-mix(in srgb, var(--color-foreground) 10%, transparent);
  --color-foreground-5:  color-mix(in srgb, var(--color-foreground) 5%, transparent);
  --color-background-95: color-mix(in srgb, var(--color-background) 95%, transparent);
  --color-background-90: color-mix(in srgb, var(--color-background) 90%, transparent);
  --color-border-60:     color-mix(in srgb, var(--color-border) 60%, transparent);
  --color-teal-20:       color-mix(in srgb, var(--color-teal) 20%, transparent);
  --color-teal-30:       color-mix(in srgb, var(--color-teal) 30%, transparent);
  --color-teal-40:       color-mix(in srgb, var(--color-teal) 40%, transparent);
  --color-lilac-20:      color-mix(in srgb, var(--color-lilac) 20%, transparent);
  --color-lilac-25:      color-mix(in srgb, var(--color-lilac) 25%, transparent);
  --color-lilac-40:      color-mix(in srgb, var(--color-lilac) 40%, transparent);
  --color-marigold-30:   color-mix(in srgb, var(--color-marigold) 30%, transparent);
  --color-marigold-40:   color-mix(in srgb, var(--color-marigold) 40%, transparent);
  --color-nopal-15:      color-mix(in srgb, var(--color-nopal) 15%, transparent);
  --color-nopal-20:      color-mix(in srgb, var(--color-nopal) 20%, transparent);
  --color-nopal-25:      color-mix(in srgb, var(--color-nopal) 25%, transparent);
  --color-nopal-30:      color-mix(in srgb, var(--color-nopal) 30%, transparent);
  --color-nopal-40:      color-mix(in srgb, var(--color-nopal) 40%, transparent);

  /* Typography */
  --font-display: 'Gelasio', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Buttons */
  --btn-radius:         9999px;
  --btn-height:         48px;
  --btn-padding:        0.75rem 2rem;
  --btn-font-size:      0.75rem;
  --btn-font-weight:    600;
  --btn-letter-spacing: 0.22em;
  --btn-text-transform: uppercase;

  /* Shadows */
  --shadow-soft:     0 4px 20px -4px color-mix(in srgb, var(--color-foreground) 8%, transparent);
  --shadow-elevated: 0 8px 40px -8px color-mix(in srgb, var(--color-foreground) 16%, transparent);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);

  /* Layout */
  --header-height: 80px;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. RESET / BASE
   ───────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

/* ─────────────────────────────────────────────────────────────────────────
   3. LAYOUT UTILITIES
   ───────────────────────────────────────────────────────────────────────── */
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide { padding-inline: 2rem; }
}

/* Spacing utilities (Tailwind parity used in templates) */
.text-center { text-align: center; }
.py-2  { padding-block: 0.5rem; }
.py-16 { padding-block: 4rem; }
.py-20 { padding-block: 5rem; }
.py-24 { padding-block: 6rem; }
.py-28 { padding-block: 7rem; }
.py-32 { padding-block: 8rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.scroll-mt-24 { scroll-margin-top: 6rem; }
@media (min-width: 768px) {
  .md\:py-20 { padding-block: 5rem; }
  .md\:py-24 { padding-block: 6rem; }
  .md\:py-28 { padding-block: 7rem; }
  .md\:mb-14 { margin-bottom: 3.5rem; }
  .md\:mb-20 { margin-bottom: 5rem; }
}
@media (min-width: 1024px) {
  .lg\:py-20 { padding-block: 5rem; }
}

.section-text-center { text-align: center; }
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.text-teal    { color: var(--color-teal); }
.text-nopal   { color: var(--color-nopal); }
.text-lilac   { color: var(--color-lilac); }
.text-marigold{ color: var(--color-marigold); }
.text-rosa    { color: var(--color-rosa); }
.text-foreground { color: var(--color-foreground); }
.text-muted   { color: var(--color-muted-foreground); }

.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ─────────────────────────────────────────────────────────────────────────
   4. ANNOUNCEMENT BAR
   ───────────────────────────────────────────────────────────────────────── */
.announcement-bar {
  position: relative;
  background-color: var(--color-nopal);
  color: var(--color-background);
}
.announcement-text {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.announcement-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}
.announcement-link:hover { opacity: 0.8; }
.announcement-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem;
  color: var(--color-background);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.announcement-close:hover { opacity: 1; }
.announcement-bar.hidden { display: none; }

/* ─────────────────────────────────────────────────────────────────────────
   5. HEADER
   ───────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  left: 0; right: 0;
  z-index: 100;
  border-top: 2px solid var(--color-lilac-40);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
  background-color: transparent;
}
.site-header.is-solid,
.site-header.is-scrolled {
  background-color: var(--color-background-95);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--color-border-60);
}
.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 1024px) {
  .site-nav { height: 80px; }
}
.nav-left, .nav-right {
  display: none;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
}
@media (min-width: 1024px) {
  .nav-left { display: flex; }
  .nav-right { display: flex; justify-content: flex-end; }
}
.nav-right-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-foreground-80);
  transition: color 0.2s;
  cursor: pointer;
}
.nav-link:hover { color: var(--color-foreground); }

/* Logo */
.site-logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
  object-fit: contain;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: var(--logo-height);
  display: block;
  color: var(--color-foreground);
}

/* Cart button */
.nav-cart-area { display: flex; align-items: center; gap: 0.75rem; }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-foreground-30);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-foreground);
  transition: border-color 0.2s;
}
.cart-btn:hover { border-color: var(--color-foreground); }
.cart-btn svg { position: absolute; opacity: 0; }
.theme-cart-count {
  font-size: 0.8125rem;
  font-family: var(--font-body);
  min-width: 16px;
  text-align: center;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
  margin-left: -0.5rem;
}
.mobile-menu-btn:hover { opacity: 0.6; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border-60);
}
.mobile-menu.open { display: block; }
.mobile-nav-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  color: var(--color-foreground);
  transition: color 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.mobile-nav-link:hover { color: var(--color-muted-foreground); }

/* ─────────────────────────────────────────────────────────────────────────
   6. HERO
   ───────────────────────────────────────────────────────────────────────── */
.hero-section { background-color: var(--color-background); }
.hero-media-wrap {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 560px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-media-wrap { height: 88vh; min-height: 680px; }
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-foreground-55) 0%, var(--color-foreground-25) 50%, transparent 100%);
}
.hero-content-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-content { max-width: 36rem; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: var(--color-background);
  margin-bottom: 1.5rem;
  max-width: 26rem;
}
.hero-subtitle {
  color: var(--color-background-90);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-family: var(--font-body);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 28rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-marigold);
  color: var(--color-foreground);
  border: 1px solid var(--color-marigold);
  border-radius: var(--btn-radius);
  padding: 1rem 2.5rem;
  font-size: var(--btn-font-size);
  font-family: var(--font-body);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-hero-primary:hover {
  background-color: var(--color-background);
  color: var(--color-foreground);
  border-color: var(--color-background);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background);
  color: var(--color-foreground);
  border: 1px solid var(--color-background);
  border-radius: var(--btn-radius);
  padding: 1rem 2.5rem;
  font-size: var(--btn-font-size);
  font-family: var(--font-body);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  transition: background-color 0.2s, color 0.2s;
}
.btn-hero-secondary:hover {
  background-color: transparent;
  color: var(--color-background);
}

/* ─────────────────────────────────────────────────────────────────────────
   7. CATEGORY STRIP
   ───────────────────────────────────────────────────────────────────────── */
.section-cats-header { text-align: center; margin-bottom: 2.5rem; }
.cats-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--color-foreground);
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-inline: 0.5rem;
}
@media (min-width: 768px) {
  .cats-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
  }
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s;
}
@media (min-width: 768px) { .cat-tile { gap: 1rem; } }
.cat-tile:hover .cat-circle { transform: scale(1.05); }
.cat-circle {
  width: 6rem; height: 6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-smooth);
  color: var(--color-foreground-80);
}
@media (min-width: 640px) { .cat-circle { width: 7rem; height: 7rem; } }
@media (min-width: 768px) { .cat-circle { width: 10rem; height: 10rem; } }
.cat-circle svg { width: 2rem; height: 2rem; }
@media (min-width: 768px) { .cat-circle svg { width: 3rem; height: 3rem; } }
.cat-tone-marigold { background-color: var(--color-marigold-40); }
.cat-tone-teal     { background-color: var(--color-teal-30); }
.cat-tone-lilac    { background-color: var(--color-lilac-40); }
.cat-tone-nopal    { background-color: var(--color-nopal-25); }
.cat-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-foreground-85);
  text-align: center;
  transition: color 0.2s;
}
@media (min-width: 768px) { .cat-label { font-size: 0.875rem; } }
.cat-tile:hover .cat-label { color: var(--color-foreground); }

/* ─────────────────────────────────────────────────────────────────────────
   8. REELS CAROUSEL
   ───────────────────────────────────────────────────────────────────────── */
.reels-section {
  background-color: var(--color-lilac-20);
  padding-block: 5rem;
  overflow: hidden;
}
@media (min-width: 768px) { .reels-section { padding-block: 7rem; } }
.reels-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .reels-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
  }
}
.reels-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.reels-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-foreground);
  transition: color 0.2s;
  align-self: flex-start;
}
@media (min-width: 768px) { .reels-ig-link { align-self: flex-end; } }
.reels-ig-link:hover { color: var(--color-teal); }

.reels-track-wrap {
  position: relative;
}
.reels-track-wrap:hover .reels-marquee { animation-play-state: paused; }

.reels-marquee {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: reelsMarquee 60s linear infinite;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .reels-marquee { gap: 1.5rem; padding-inline: 3rem; }
}
@keyframes reelsMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reel-card {
  flex-shrink: 0;
  width: 70vw;
  aspect-ratio: 9/16;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-smooth);
  cursor: pointer;
}
@media (min-width: 640px) { .reel-card { width: 40vw; } }
@media (min-width: 768px) { .reel-card { width: 26vw; } }
@media (min-width: 1024px) { .reel-card { width: 20vw; } }
.reel-card:hover { transform: translateY(-4px); }
.reel-blue   { background-color: var(--color-teal-20); }
.reel-lilac  { background-color: var(--color-lilac-25); }
.reel-yellow { background-color: var(--color-marigold-30); }
.reel-sage   { background-color: var(--color-nopal-20); }
.reel-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.reel-caption-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, var(--color-foreground-60), transparent);
}
.reel-caption {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-background);
  text-align: left;
}

/* Reel modal */
.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel-modal[hidden] { display: none; }
.reel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-foreground-85);
}
.reel-modal-inner {
  position: relative;
  max-width: 28rem;
  width: 90vw;
  background: var(--color-foreground);
  border-radius: 1rem;
  overflow: hidden;
}
.reel-modal-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-background-90);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.reel-modal-close:hover { opacity: 0.7; }
.reel-modal-video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

/* ─────────────────────────────────────────────────────────────────────────
   9. FEATURED PIECES
   ───────────────────────────────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 4vw, 3.125rem);
  line-height: 1.1;
  color: var(--color-foreground);
}
.section-cta-wrap { text-align: center; margin-top: 3.5rem; }
.featured-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (min-width: 1024px) { .featured-product-grid { gap: 3rem; } }

/* ─────────────────────────────────────────────────────────────────────────
   10. OUR STORY
   ───────────────────────────────────────────────────────────────────────── */
.story-chapter {}
.story-intro,
.story-body-wrap {
  padding-block: 5rem;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .story-intro, .story-body-wrap { padding-block: 7rem; padding-inline: 3.5rem; }
}
@media (min-width: 1024px) {
  .story-intro, .story-body-wrap { padding-inline: 5rem; }
}
.story-chapter-inner,
.story-body-inner {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.story-icon-ring {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.story-ring-teal  { border-color: var(--color-teal-40);  color: var(--color-teal); }
.story-ring-nopal { border-color: var(--color-nopal-40);   color: var(--color-nopal); }
.story-ring-lilac { border-color: var(--color-lilac-40); color: var(--color-lilac); }
.story-lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 3vw, 2.75rem);
  line-height: 1.25;
  color: var(--color-foreground);
}
.story-image-strip {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}
@media (min-width: 768px) { .story-image-strip { height: 420px; } }
@media (min-width: 1024px) { .story-image-strip { height: 520px; } }
.story-image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.story-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.story-body-text {
  color: var(--color-foreground-75);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}
.story-ch3-cta {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-foreground);
}
.story-divider { max-width: 48rem; margin-inline: auto; padding-inline: 1.5rem; }
.story-divider-line { height: 1px; background: var(--color-foreground-10); }

/* ─────────────────────────────────────────────────────────────────────────
   11. MEET THE OWNER
   ───────────────────────────────────────────────────────────────────────── */
.section-owners { background-color: var(--color-teal); }
.owners-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .owners-grid { grid-template-columns: 1fr 1fr; }
}
.owners-photo {
  position: relative;
  min-height: 380px;
}
@media (min-width: 768px) { .owners-photo { min-height: 520px; } }
@media (min-width: 1024px) { .owners-photo { min-height: 620px; } }
.owners-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.owners-content {
  display: flex;
  align-items: center;
  background-color: var(--color-background);
  padding-block: 4rem;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) { .owners-content { padding-block: 6rem; padding-inline: 3.5rem; } }
@media (min-width: 1024px) { .owners-content { padding-inline: 5rem; } }
@media (min-width: 1280px) { .owners-content { padding-inline: 6rem; } }
.owners-inner { max-width: 36rem; }
.owners-content .eyebrow { margin-bottom: 1.25rem; }
.owners-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.75rem;
}
.owners-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-foreground-85);
  line-height: 1.4;
  margin-bottom: 2rem;
}
.owners-bio {
  font-family: var(--font-body);
  color: var(--color-foreground-75);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   12. SERVICES
   ───────────────────────────────────────────────────────────────────────── */
.services-title {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1152px;
  margin-inline: auto;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(5, 1fr); gap: 2rem; } }
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--color-foreground-5);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -15px rgba(0,0,0,0.15);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 2.5rem; height: 2.5rem; }
.service-name {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-foreground);
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  font-family: var(--font-body);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}
.service-cta {
  margin-top: auto;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.service-cta:hover { color: var(--color-foreground) !important; }

/* ─────────────────────────────────────────────────────────────────────────
   13. SHOP SECTION
   ───────────────────────────────────────────────────────────────────────── */
.shop-search-wrap {
  position: relative;
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.shop-search-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-foreground);
  pointer-events: none;
}
.shop-search-input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s;
}
.shop-search-input:focus { border-bottom-color: var(--color-foreground); }
.shop-search-input::placeholder { color: var(--color-muted-foreground); }

.shop-cats-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-inline: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.shop-cats-row::-webkit-scrollbar { display: none; }
.shop-cat-pill {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  border-radius: var(--btn-radius);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-foreground);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.shop-cat-pill:hover { border-color: var(--color-lilac); color: var(--color-lilac); }
.shop-cat-pill.active { background: var(--color-teal); color: var(--color-background); border-color: var(--color-teal); }

/* Price filter */
.price-filter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.price-filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  cursor: pointer;
  transition: color 0.2s;
}
.price-filter-toggle:hover { color: var(--color-foreground); }
.price-filter-display { opacity: 0.7; text-transform: none; letter-spacing: normal; }
.price-chevron { transition: transform 0.3s; }
.price-chevron.open { transform: rotate(180deg); }

.price-filter-body {
  width: 100%;
  max-width: 24rem;
  padding-block: 0.5rem;
}
.price-filter-body[hidden] { display: none; }

/* Price range slider – dual handle overlay */
.price-range-wrapper {
  position: relative;
  height: 24px;
  margin-bottom: 0.75rem;
}
.price-range-wrapper::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
}
.range-track-fill {
  position: absolute;
  height: 4px;
  background: var(--color-primary);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  border-radius: 2px;
  z-index: 1;
  left: 0;
  width: 0;
}
.price-range-wrapper input[type="range"] {
  position: absolute;
  width: 100%;
  height: 24px;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  z-index: 2;
}
#price-max { z-index: 3; }
.price-range-wrapper input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border: none;
}
.price-range-wrapper input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
  border: none;
}
.price-range-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid var(--color-background);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  pointer-events: auto;
  margin-top: -6px;
}
.price-range-wrapper input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid var(--color-background);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  pointer-events: auto;
}
.price-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-top: 0.5rem;
}

/* Product grid */
.theme-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .theme-product-grid { gap: 2.5rem; } }

.theme-product-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.theme-product-card-wrap[hidden] {
  display: none !important;
}
.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}
.theme-product-card * { pointer-events: none; }
.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--color-card);
  margin-bottom: 1.25rem;
}
.theme-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s var(--ease-smooth);
}
.theme-product-card:hover .theme-product-card__img { transform: scale(1.04); }
.product-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 10;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.sold-out-badge { background: var(--color-foreground); color: var(--color-background); }
.card-add-to-cart-btn {
  position: absolute;
  inset-inline: 1rem;
  bottom: 1rem;
  padding: 0.75rem;
  border-radius: var(--btn-radius);
  background: var(--color-teal);
  color: var(--color-background);
  border: 1px solid var(--color-teal);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, color 0.2s;
  pointer-events: auto;
  z-index: 2;
  cursor: pointer;
  display: block;
}
.theme-product-card:hover .card-add-to-cart-btn {
  opacity: 1;
  transform: translateY(0);
}
.card-add-to-cart-btn:hover {
  background: var(--color-background);
  color: var(--color-teal);
}
.theme-product-card__info {
  padding-inline: 0.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  pointer-events: none;
}
.product-card-category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}
.product-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.3;
  color: var(--color-foreground);
  transition: color 0.3s;
}
.theme-product-card:hover .product-card-name { color: var(--color-primary); }
.product-card-price {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-foreground-85);
}
.product-card-price .woocommerce-Price-amount { font-family: var(--font-body); }

.shop-no-results {
  text-align: center;
  padding: 5rem 1rem;
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  grid-column: 1 / -1;
}
.shop-load-more-wrap { text-align: center; margin-top: 3rem; }

/* Load more / btn variants */
.btn-outline-nopal, .btn-outline-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--btn-radius);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  background: transparent;
}
.btn-outline-nopal {
  border: 1px solid var(--color-nopal);
  color: var(--color-nopal);
}
.btn-outline-nopal:hover {
  background: var(--color-nopal);
  color: var(--color-background);
}
.btn-outline-teal {
  border: 1px solid var(--color-teal);
  color: var(--color-teal);
}
.btn-outline-teal:hover {
  background: var(--color-teal);
  color: var(--color-background);
}

/* ─────────────────────────────────────────────────────────────────────────
   14. FAQ
   ───────────────────────────────────────────────────────────────────────── */
.section-faq { background-color: var(--color-background); }
.faq-header { max-width: 40rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .faq-header { margin-bottom: 3.5rem; } }
.faq-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 4vw, 3.75rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.faq-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  color: var(--color-foreground-75);
  line-height: 1.6;
}
.faq-email-link { text-decoration: underline; text-underline-offset: 4px; transition: color 0.2s; }
.faq-email-link:hover { color: var(--color-foreground); }

.faq-tabs {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}
.faq-tabs::-webkit-scrollbar { display: none; }
.faq-tab {
  flex-shrink: 0;
  border-radius: var(--btn-radius);
  border: 1px solid;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--color-foreground);
  transition: background 0.2s, color 0.2s;
}
.faq-border-teal     { border-color: var(--color-teal); }
.faq-border-rosa     { border-color: var(--color-rosa); }
.faq-border-lilac    { border-color: var(--color-lilac); }
.faq-border-nopal    { border-color: var(--color-nopal); }
.faq-border-marigold { border-color: var(--color-marigold); }
.faq-tab-teal     { background: var(--color-teal);     color: var(--color-background); }
.faq-tab-rosa     { background: var(--color-rosa);     color: var(--color-foreground); }
.faq-tab-lilac    { background: var(--color-lilac);    color: var(--color-foreground); }
.faq-tab-nopal    { background: var(--color-nopal);    color: var(--color-background); }
.faq-tab-marigold { background: var(--color-marigold); color: var(--color-foreground); }

.faq-panels { border-top: 1px solid var(--color-foreground-15); }
.faq-panel[hidden] { display: none; }
.faq-item { border-bottom: 1px solid var(--color-foreground-15); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  text-align: left;
  cursor: pointer;
}
@media (min-width: 768px) { .faq-question { padding-block: 1.5rem; } }
.faq-q-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-foreground);
  line-height: 1.4;
}
.faq-chevron-wrap {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  transition: background 0.2s, color 0.2s;
}
.faq-chevron {
  transition: transform 0.2s;
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer { overflow: hidden; }
.faq-answer[hidden] { display: none; }
.faq-answer-text {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  color: var(--color-foreground-75);
  line-height: 1.7;
  padding-bottom: 1.5rem;
  padding-right: 3rem;
  max-width: 48rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   15. TESTIMONIALS
   ───────────────────────────────────────────────────────────────────────── */
.section-testimonials { background-color: var(--color-nopal-15); }
.testimonials-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3.125rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-foreground);
}
@media (min-width: 768px) { .testimonials-title { margin-bottom: 3.5rem; } }
.testimonials-carousel {
  position: relative;
  max-width: 72rem;
  margin-inline: auto;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  transition: transform 0.7s ease-out;
}
.testimonial-slide {
  width: 100%;
  flex-shrink: 0;
  padding-inline: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .testimonial-slide { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-inline: 1.5rem; }
}
.testimonial-img-card {
  aspect-ratio: 1/1;
  background: var(--color-muted);
  border-radius: 1rem;
  overflow: hidden;
}
.testimonial-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.testimonial-quote-card {
  aspect-ratio: 1/1;
  background: var(--color-nopal);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) { .testimonial-quote-card { padding: 3rem; } }
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.star-icon { color: var(--color-marigold); width: 1rem; height: 1rem; }
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.5;
  text-align: center;
  color: #fff;
  font-style: normal;
}
.testimonial-author {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.testimonial-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-nopal);
  color: var(--color-nopal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.testimonial-arrow:hover { background: var(--color-nopal); color: var(--color-background); }
.testimonials-dots { display: flex; align-items: center; gap: 0.5rem; }
.testimonial-dot {
  height: 8px;
  border-radius: var(--btn-radius);
  background: var(--color-nopal-30);
  width: 8px;
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.testimonial-dot.active { width: 32px; background: var(--color-nopal); }

/* ─────────────────────────────────────────────────────────────────────────
   16. CONTACT CTA
   ───────────────────────────────────────────────────────────────────────── */
.contact-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 420px;
}
@media (min-width: 1024px) {
  .contact-cta-grid { grid-template-columns: 1fr 1fr; }
}
.contact-mosaic {
  position: relative;
  background: var(--color-butter);
  overflow: hidden;
  min-height: 280px;
}
@media (min-width: 1024px) { .contact-mosaic { min-height: 480px; } }
.mosaic-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.mosaic-cell { position: relative; overflow: hidden; }
.mosaic-rosa     { background-color: var(--color-rosa); }
.mosaic-butter   { background-color: var(--color-butter); }
.mosaic-marigold { background-color: var(--color-marigold); }
.mosaic-indigo   { background-color: var(--color-indigo); }
.mosaic-marigold2{ background-color: var(--color-marigold); }
.mosaic-nopal    { background-color: var(--color-nopal); }
.mosaic-rosa2    { background-color: var(--color-rosa); }
.mosaic-marigold3{ background-color: var(--color-marigold); }
.mosaic-overlay {
  position: absolute;
  inset: 0;
}
.mosaic-overlay-top {
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  background: var(--color-butter);
  opacity: 0;
}
.contact-cta-panel {
  background-color: var(--color-marigold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
}
@media (min-width: 768px) { .contact-cta-panel { padding: 6rem 4rem; } }
.contact-cta-inner { max-width: 28rem; text-align: center; }
.cta-eyebrow {
  display: block;
  color: var(--color-foreground-70);
  margin-bottom: 1.25rem;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  line-height: 1.1;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
}
.cta-body {
  font-family: var(--font-body);
  color: var(--color-foreground-85);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 640px) { .cta-btns { flex-direction: row; justify-content: center; } }
.cta-btn-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background);
  color: var(--color-foreground);
  border: 1px solid var(--color-foreground);
  border-radius: var(--btn-radius);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  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: background 0.2s, color 0.2s;
  cursor: pointer;
}
.cta-btn-shop:hover { background: var(--color-foreground); color: var(--color-background); }
.cta-btn-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-foreground);
  border: 1px solid var(--color-foreground-40);
  border-radius: var(--btn-radius);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  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: border-color 0.2s;
  cursor: pointer;
}
.cta-btn-message:hover { border-color: var(--color-foreground); }

/* ─────────────────────────────────────────────────────────────────────────
   17. FOOTER
   ───────────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-butter);
}
.footer-brand-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 640px) {
  .footer-brand-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-logo-link { flex-shrink: 0; }
.footer-logo { height: 3rem !important; }
@media (min-width: 640px) { .footer-logo { height: 3.5rem !important; } }
.footer-logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.footer-brand-info { max-width: 36rem; }
@media (min-width: 640px) { .footer-brand-info { text-align: right; } }
.footer-brand-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground-70);
  line-height: 1.6;
}
.footer-contact-link { transition: color 0.2s; }
.footer-contact-link:hover { color: var(--color-foreground); }
.footer-contact-sep { margin-inline: 0.5rem; color: var(--color-foreground-40); }

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-columns { grid-template-columns: repeat(4, 1fr); } }
.footer-col-wide { grid-column: span 2; }
@media (min-width: 768px) { .footer-col-wide { grid-column: span 1; } }
.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-foreground);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground-70);
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
}
.footer-link:hover { color: var(--color-foreground); }

.footer-social { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-foreground-70);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-foreground);
  transition: background 0.2s, color 0.2s;
}
.social-btn:hover { background: var(--color-foreground); color: var(--color-background); }
.footer-newsletter-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground-70);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.footer-newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-email-input {
  flex: 1;
  border-radius: var(--btn-radius);
  background: var(--color-background);
  border: 1px solid var(--color-foreground-20);
  height: 44px;
  padding-inline: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s;
}
.footer-email-input:focus { border-color: var(--color-nopal); }
.footer-nl-btn {
  height: 44px;
  padding-inline: 1.25rem;
  border-radius: var(--btn-radius);
  background: var(--color-nopal);
  color: var(--color-background);
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.footer-nl-btn:hover { opacity: 0.85; }
.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;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--color-nopal);
  letter-spacing: 0.05em;
}
.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  letter-spacing: 0.05em;
}
.footer-credit-link { text-decoration: underline; transition: color 0.2s; }
.footer-credit-link:hover { color: var(--color-foreground); }

/* ─────────────────────────────────────────────────────────────────────────
   18. CONTACT MODAL
   ───────────────────────────────────────────────────────────────────────── */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-foreground-40);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 1rem;
}
.contact-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.contact-modal {
  position: relative;
  background: var(--color-background);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
}
.contact-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.contact-modal-close:hover { opacity: 0.6; }
.contact-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  padding-right: 2.5rem;
}
.contact-modal-desc {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}
.contact-modal-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.contact-info-item { display: flex; align-items: center; gap: 0.5rem; }
.contact-info-link { transition: color 0.2s; }
.contact-info-link:hover { color: var(--color-foreground); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .contact-form-row { grid-template-columns: 1fr 1fr; } }
.contact-form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.contact-form-field label { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; }
.cf-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-foreground);
  outline: none;
  transition: box-shadow 0.3s, border-color 0.2s;
}
.cf-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-nopal-15);
}
.cf-input::placeholder { color: var(--color-muted); }
.cf-textarea { resize: none; }
.contact-form-footer { display: flex; justify-content: flex-end; margin-top: 0.5rem; }
.cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: var(--color-button-text);
  border: none;
  border-radius: var(--btn-radius);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cf-submit:hover { opacity: 0.85; }
.cf-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.contact-success {
  text-align: center;
  padding: 2rem 0;
}
.contact-success-icon {
  width: 56px; height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1rem;
  color: var(--color-button-text);
}
.contact-success h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.contact-success p { font-family: var(--font-body); font-size: 0.875rem; color: var(--color-muted); }

/* ─────────────────────────────────────────────────────────────────────────
   19. CART DRAWER
   ───────────────────────────────────────────────────────────────────────── */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-foreground-20);
  z-index: 149;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}
#theme-cart-drawer {
  position: fixed;
  right: 0; top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--color-background);
  z-index: 150;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.cart-drawer-close { color: var(--color-foreground); transition: opacity 0.2s; }
.cart-drawer-close:hover { opacity: 0.6; }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  gap: 1rem;
}
.cart-empty-icon { color: var(--color-muted); }
.cart-empty-text { font-family: var(--font-body); color: var(--color-muted); }
.cart-continue-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cart-continue-btn:hover { background: var(--color-foreground); color: var(--color-background); }

.cart-items-list { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cart-item { display: flex; gap: 1rem; }
.cart-item-img-link { width: 80px; height: 96px; flex-shrink: 0; background: var(--color-card); overflow: hidden; display: block; }
.cart-item-img-link img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.cart-item-name { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; transition: opacity 0.2s; }
.cart-item-name:hover { opacity: 0.7; }
.cart-item-variant { font-family: var(--font-body); font-size: 0.75rem; color: var(--color-muted); }
.cart-item-price { font-family: var(--font-body); font-size: 0.875rem; color: var(--color-muted); }
.cart-qty-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background 0.2s; color: var(--color-foreground); }
.cart-qty-btn:hover { background: var(--color-card); }
.cart-qty-display { font-family: var(--font-body); font-size: 0.875rem; min-width: 1.5rem; text-align: center; }
.cart-remove-btn { margin-left: auto; font-family: var(--font-body); font-size: 0.875rem; color: var(--color-muted); cursor: pointer; transition: color 0.2s; }
.cart-remove-btn:hover { color: var(--color-foreground); }

.cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.cart-subtotal-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); font-size: 0.875rem; }
.cart-subtotal-label { color: var(--color-muted); }
.cart-subtotal-value { font-weight: 500; }
.cart-checkout-btn {
  display: block;
  text-align: center;
  padding: 1rem;
  border-radius: var(--btn-radius);
  background: var(--color-foreground);
  color: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s;
  cursor: pointer;
}
.cart-checkout-btn:hover { opacity: 0.85; }
.cart-empty-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cart-empty-cart-btn:hover {
  background: var(--color-card);
  border-color: var(--color-foreground);
}

/* ─────────────────────────────────────────────────────────────────────────
   20. WOOCOMMERCE SINGLE PRODUCT
   ───────────────────────────────────────────────────────────────────────── */
.woocommerce-single-main { padding-top: 6rem; }
@media (min-width: 1024px) { .woocommerce-single-main { padding-top: 7rem; } }

.product-breadcrumb { padding-block: 1.5rem; }
.back-to-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
}
.back-to-shop-link:hover { color: var(--color-foreground); }

.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 6rem;
  padding-top: 1rem;
  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%; }
.product-main-img-wrap { overflow: hidden; background: var(--color-card); border-radius: 0.25rem; margin-bottom: 1rem; }
.product-main-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }

.theme-product-thumbnails {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 100%;
  overflow-x: auto;
}
.product-thumb-btn {
  position: relative;
  width: 80px; height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-card);
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.product-thumb-btn.is-active, .product-thumb-btn:hover { opacity: 1; }
.product-thumb-btn::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-foreground);
  opacity: 0;
  transition: opacity 0.2s;
}
.product-thumb-btn.is-active::after { opacity: 1; }
.product-thumb-img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1024px) {
  .theme-product-info { position: sticky; top: 7rem; align-self: start; }
}
.product-cat-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.75rem;
}
.product-cat-label a { color: var(--color-muted); transition: color 0.2s; }
.product-cat-label a:hover { color: var(--color-foreground); }
.product-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.product-price {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
}
.product-price .woocommerce-Price-amount { font-family: var(--font-body); }
.product-sold-out-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--color-foreground);
  color: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  margin-bottom: 1.25rem;
}
.product-description {
  font-family: var(--font-body);
  color: var(--color-foreground-75);
  line-height: 1.7;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Quantity + add to cart */
.theme-add-to-cart-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.theme-quantity-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  overflow: hidden;
}
.theme-qty-minus, .theme-qty-plus {
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-foreground);
  transition: background 0.2s;
  cursor: pointer;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-card); }
.theme-qty-input {
  padding: 0.5rem 1rem;
  min-width: 44px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  outline: none;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.theme-btn-primary {
  flex: 1 1 auto;
  min-width: 160px;
}

/* Variation attributes */
.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; }
.single-product .variations tbody td.value { padding-top: 0; }
.single-product .variations tbody td.label label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}
.theme-attr-select-hidden { display: none !important; }
.attr-buttons-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.attr-option-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  background: transparent;
  color: var(--color-foreground);
}
.attr-option-btn:hover { border-color: var(--color-foreground-60); }
.attr-option-btn.selected { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }

/* Product accordions */
.product-details-accordion { border-top: 1px solid var(--color-border); margin-top: 1rem; }
.product-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--color-foreground);
}
.accordion-chevron { transition: transform 0.3s; }
.product-accordion-btn[aria-expanded="true"] .accordion-chevron { transform: rotate(180deg); }
.product-accordion-content {
  padding-bottom: 1.5rem;
  font-family: var(--font-body);
  color: var(--color-foreground-75);
  line-height: 1.7;
  font-size: 0.9375rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-accordion-content[hidden] { display: none; }
.product-accordion-content ul { padding-left: 0; list-style: none; }
.product-accordion-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.product-accordion-content ul li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-foreground);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* Related products */
.related-products-section { padding-block: 5rem; border-top: 1px solid var(--color-border); }
.related-products-header { text-align: center; margin-bottom: 3rem; }
.related-you-may { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted); margin-bottom: 0.5rem; }
.related-also-like { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.875rem, 4vw, 2.5rem); }
.related-product-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .related-product-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─────────────────────────────────────────────────────────────────────────
   21. ADD-TO-CART BUTTON OVERRIDES (§11.4.1)
   ───────────────────────────────────────────────────────────────────────── */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}
/* Disabled state (§11.4.1) */
.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 override */
.theme-product-card .add_to_cart_button.ajax_add_to_cart.card-add-to-cart-btn {
  min-height: unset !important;
  padding: 0.75rem !important;
  border-radius: var(--btn-radius) !important;
}

/* Button loading state */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* Hide View Cart injected by WC */
.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 notices (§14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* ─────────────────────────────────────────────────────────────────────────
   22. PAGE TEMPLATES
   ───────────────────────────────────────────────────────────────────────── */
.page-main {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 6rem;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--color-foreground);
}
.entry-content {
  font-family: var(--font-body);
  color: var(--color-foreground-80);
  line-height: 1.7;
}
.entry-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-block: 2rem 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   23. CHECKOUT (§13.x)
   ───────────────────────────────────────────────────────────────────────── */
body.woocommerce-checkout .site-main.page-main {
  max-width: 1280px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.5rem;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  body.woocommerce-checkout .site-main.page-main {
    padding-inline: 2rem;
  }
}
body.woocommerce-checkout .page-title {
  padding-inline: 0;
}
body.woocommerce-checkout .entry-content {
  max-width: 100%;
  width: 100%;
}
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout {
  max-width: 100%;
  width: 100%;
}
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout {
    display: block;
  }
  body.woocommerce-checkout
  .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    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-checkout__sidebar {
  background-color: var(--color-butter);
  border-radius: 1rem;
  padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-nopal-15);
  outline: none;
}
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;
  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;
  padding: 1rem 2rem !important;
  border: none !important;
  width: 100%;
  cursor: pointer !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85 !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   24. THANK YOU PAGE (§22.8)
   ───────────────────────────────────────────────────────────────────────── */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order { font-family: var(--font-body); }
body.theme-thankyou-page .thankyou-wrap { max-width: 860px; margin-inline: auto; }
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;
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--color-butter);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  list-style: none;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-family: var(--font-body);
  font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--font-body);
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
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;
  font-style: normal;
  font-family: var(--font-body);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────────────
   25. WC ARCHIVE
   ───────────────────────────────────────────────────────────────────────── */
.woocommerce-archive-main { padding-top: calc(var(--header-height) + 2rem); }
.woocommerce-archive-main h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-foreground);
  text-align: center;
  margin-bottom: 3rem;
}
.wc-archive-section {}
.woocommerce-pagination { margin-top: 3rem; text-align: center; }
.woocommerce-pagination ul { display: flex; gap: 0.5rem; justify-content: center; list-style: none; }
.woocommerce-pagination li a,
.woocommerce-pagination li span {
  padding: 0.5rem 1rem;
  border-radius: var(--btn-radius);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--color-foreground);
  display: block;
}
.woocommerce-pagination li .current,
.woocommerce-pagination li a:hover {
  background: var(--color-teal);
  color: var(--color-background);
  border-color: var(--color-teal);
}

/* ─────────────────────────────────────────────────────────────────────────
   26. ANIMATION HELPERS
   ───────────────────────────────────────────────────────────────────────── */
.js-reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }
.js-reveal.revealed { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────────────────────────────────
   27. RESPONSIVE
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .featured-product-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-product-layout { gap: 2rem; }
  .testimonial-img-card,
  .testimonial-quote-card { aspect-ratio: 1/1; }
}
@media (max-width: 639px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; }
}
