/* ============================================================
   CLAVE VITAL — GLOBAL STYLESHEET
   Terracota + Salvia + Arena | Space Grotesk + Inter
   Direction: e-commerce-dense / catalog-forward (Zalando-style)
   ============================================================ */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* --- RESET & ROOT --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  /* Brand palette — terracotta + sage + warm sand */
  --white:       #FFFFFF;
  --lavender:    #A9B999;
  --lavender-light: #EEF1E5;
  --lavender-mid: #BFCBAC;
  --cobalt:      #BE5A34;
  --cobalt-dark: #984526;
  --ink:         #2B2420;
  --muted:       #7D7266;
  --muted-light: #A89D8D;
  --cream:       #F6F1E6;
  --cream-warm:  #FDFBF5;

  /* Typography — single grotesk family system (store, not magazine) */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-gap: clamp(40px, 6vw, 72px);
  --card-radius: 10px;
  --btn-radius:  8px;

  /* Dense-nav dimensions (utility strip + main row) */
  --nav-h: 60px;
  --utility-h: 30px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* --- ON-DARK SCOPING --- */
.on-dark { color: rgba(255,255,255,0.85); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p { color: rgba(255,255,255,0.72); }
.on-dark a:not(.btn) { color: inherit; }

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.container--narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
h4 { font-size: clamp(15px, 1.6vw, 18px); font-weight: 600; }

p { font-size: 16px; line-height: 1.7; color: var(--muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.text-cobalt { color: var(--cobalt); }
.text-muted  { color: var(--muted); }
.text-ink    { color: var(--ink); }

/* T4 — first letter slightly larger on exactly ONE hero headline */
.headline-accent .first-letter {
  display: inline-block;
  font-size: 1.25em;
  line-height: 1;
  vertical-align: baseline;
  color: var(--cobalt);
}

/* ============================================================
   BUTTONS — soft rounded pill-edge
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--btn-radius);
  overflow: hidden;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.18s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cobalt);
  color: #fff;
}
.btn-primary:hover {
  background: var(--cobalt-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(190,90,52,0.28);
}

/* ============================================================
   HERO CTA — single emphasized order button (product pages)
   ============================================================ */
.btn-hero-cta {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-dark) 100%) !important;
  box-shadow: 0 10px 28px rgba(190,90,52,0.32), 0 0 0 0 rgba(190,90,52,0.35);
  animation: heroCtaPulse 2.6s ease-in-out infinite;
}
.btn-hero-cta:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 14px 34px rgba(190,90,52,0.4);
}
@keyframes heroCtaPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(190,90,52,0.32), 0 0 0 0 rgba(190,90,52,0.32); }
  50%      { box-shadow: 0 10px 28px rgba(190,90,52,0.32), 0 0 0 9px rgba(190,90,52,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-hero-cta { animation: none; }
}

.btn-ghost {
  background: transparent;
  color: var(--cobalt);
  border: 1.5px solid var(--cobalt);
}
.btn-ghost:hover {
  background: var(--cobalt);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--cobalt);
}
.btn-white:hover {
  background: var(--lavender-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
}

.btn.is-loading { opacity: 0.7; cursor: wait; }

/* Spinner inside button */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CARDS — soft rounded (organic, wellness-friendly)
   ============================================================ */

.card {
  background: var(--white);
  border: 1px solid rgba(190,90,52,0.10);
  border-radius: var(--card-radius);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 16px 40px rgba(190,90,52,0.14);
  transform: translateY(-4px);
}

/* ============================================================
   NAVIGATION — V1: Transparent over hero, scrolled = dark
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 clamp(20px, 4vw, 48px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav--scrolled {
  background: rgba(43,36,32,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 32px rgba(43,36,32,0.18);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-dot {
  width: 8px; height: 8px;
  background: var(--lavender);
  border-radius: 50%;
  display: inline-block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--lavender); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
@media (max-width: 767px) {
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(43,36,32,0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  .nav__links--open { display: flex; }
  .nav__links a { font-size: 16px; }
}

/* ============================================================
   TIERED HEADER — utility strip + centered-logo split nav
   (opt-in via .nav--tiered; base .nav above is untouched so
   pages that still use the single-row nav keep working)
   ============================================================ */

.header-utility {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 901;
  height: var(--utility-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: var(--ink);
}

.header-utility__group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-utility__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.header-utility__item:hover { color: var(--lavender); }

.nav--tiered {
  top: var(--utility-h);
  background: var(--cream-warm);
  box-shadow: 0 1px 0 rgba(43,36,32,0.07);
}

.nav--tiered.nav--scrolled {
  background: rgba(253,251,245,0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(43,36,32,0.1);
}

.nav--tiered .nav__logo { color: var(--ink); }
.nav--tiered .nav__hamburger span { background: var(--ink); }

.nav--tiered .nav__links {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 16px;
  list-style: none;
}

.nav__group {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__group--left { justify-self: start; }
.nav__group--right { justify-self: end; }

.nav__group a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__group a:hover { color: var(--cobalt); }

.nav__logo-wrap { justify-self: center; list-style: none; }

.nav__cta { white-space: nowrap; }

@media (max-width: 767px) {
  .header-utility { display: none; }
  .nav--tiered { top: 0; }

  .nav--tiered .nav__links {
    display: none;
    grid-template-columns: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(253,251,245,0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  .nav--tiered .nav__links--open { display: flex; }
  .nav--tiered .nav__group,
  .nav--tiered .nav__logo-wrap { justify-self: auto; }
  .nav--tiered .nav__group {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
  }
  .nav--tiered .nav__logo-wrap { order: -1; margin-bottom: 8px; }
  .nav--tiered .nav__group a { font-size: 16px; }
}

/* ============================================================
   ADVERTORIAL STRIP
   ============================================================ */

.advertorial-bar {
  position: relative;
  z-index: 800;
  background: var(--cobalt);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 5px 20px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  /* sits below fixed nav, but we push the page body top so the bar is visible */
}

/* ============================================================
   HERO — compact catalog-forward banner (NOT full-viewport)
   text ~55% / framed media ~45%, capped height ~400-480px so
   real products are visible within 1-2 scrolls of the page.
   ============================================================ */

.hero-split {
  position: relative;
  width: 100%;
  padding: calc(var(--nav-h) + var(--utility-h) + 24px) 0 28px;
  background: var(--cream);
  overflow: hidden;
}

.hero-split .container {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-height: 340px;
}

.hero-split__text { max-width: 520px; }

.hero-split__title {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  margin: 10px 0 12px;
  color: var(--ink);
}

.hero-split__subtitle {
  font-size: 15px;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 18px;
  line-height: 1.55;
}

.hero-split__cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-split__media {
  position: relative;
}

.hero-split__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 360px;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--lavender-light);
  box-shadow: 0 12px 32px rgba(43,36,32,0.12);
}

.hero-split__frame video,
.hero-split__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-split__frame-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(253,251,245,0.92);
  color: var(--cobalt);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .hero-split .container { grid-template-columns: 1fr; min-height: 0; }
  .hero-split__media { order: -1; }
  .hero-split__frame { aspect-ratio: 4/3; max-height: 280px; max-width: 480px; margin-inline: auto; }
  .hero-split__text { max-width: none; }
}

/* ============================================================
   TRUST STRIP — single static slim row directly under the hero
   (no marquee/animation): 4-5 icon+label items
   ============================================================ */

.trust-strip {
  background: var(--cream-warm);
  border-top: 1px solid rgba(190,90,52,0.10);
  border-bottom: 1px solid rgba(190,90,52,0.10);
  padding: 14px 0;
}

.trust-strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 32px;
}

.trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.trust-strip__item svg { color: var(--cobalt); flex-shrink: 0; }

@media (max-width: 600px) {
  .trust-strip__row { gap: 10px 18px; justify-content: flex-start; overflow-x: auto; }
}

/* ============================================================
   BADGE STACK — compact trust badges under hero CTAs
   (replaces the old full-width scrolling trust-bar marquee)
   ============================================================ */

.badge-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.badge-stack__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid rgba(190,90,52,0.14);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.badge-stack__item svg {
  flex-shrink: 0;
  color: var(--cobalt);
}

@media (max-width: 500px) {
  .badge-stack { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION — flat boundaries (dense e-commerce: no decorative
   wave dividers; alternating flat backgrounds + 1px borders)
   ============================================================ */

.section { padding: var(--section-gap) 0; }
.section--lavender { background: var(--lavender-light); }
.section--cream    { background: var(--cream); }
.section--cobalt   { background: var(--cobalt); }
.section--ink      { background: var(--ink); }
.section--bordered { border-top: 1px solid rgba(190,90,52,0.10); }
.section--tight    { padding: clamp(28px, 4vw, 44px) 0; }

/* ============================================================
   PRODUCT CARDS — catalog grid
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(190,90,52,0.10);
  border-radius: var(--card-radius);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 16px 40px rgba(190,90,52,0.14);
  transform: translateY(-5px);
}

.product-card__media {
  background: var(--cream);
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.product-card__media img,
.product-card__media .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--cobalt);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 10px;
}

.product-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--lavender-light);
  color: var(--cobalt);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
}

.chip svg { flex-shrink: 0; }

.product-card__price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cobalt);
  margin-top: auto;
  margin-bottom: 16px;
}

.product-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  padding-top: 13px;
  padding-bottom: 13px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

/* ============================================================
   PHOTO PLACEHOLDER
   ============================================================ */

.photo-placeholder {
  background: linear-gradient(135deg, var(--cobalt), var(--cobalt-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: inherit;
}

.photo-placeholder__icon { font-size: 32px; }

.photo-placeholder__label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: sans-serif;
  text-align: center;
  padding: 0 16px;
}

/* ============================================================
   USP STRIP — compact horizontal "why buy from us" band
   (replaces the old zig-zag editorial rows + stat-band: one
   line per item, icon + 3-6 word label, 4-6 items + 2-3 stats,
   wraps on mobile). Reusable across index/catalog/product pages.
   ============================================================ */

.usp-strip {
  background: var(--white);
  border-top: 1px solid rgba(190,90,52,0.10);
  border-bottom: 1px solid rgba(190,90,52,0.10);
  padding: 22px 0;
}

.usp-strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
}

.usp-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.usp-item__icon {
  width: 34px;
  height: 34px;
  background: var(--lavender-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.usp-item__icon svg { color: var(--cobalt); }

.usp-item__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  max-width: 160px;
}

.usp-item--stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.usp-item--stat .usp-item__number {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--cobalt);
  line-height: 1;
}

@media (max-width: 700px) {
  .usp-strip__row { gap: 14px 22px; }
  .usp-item__label { max-width: 140px; }
}

/* ============================================================
   WHY GLUCOVIDA SECTION (legacy icon-grid, still used on
   product detail pages)
   ============================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-item__icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 1.5px solid var(--lavender-mid);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-item__icon svg { color: var(--cobalt); }

.why-item__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.why-item__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   STATS — N3: Inline in text
   ============================================================ */

.stat-inline {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-inline__number {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  color: var(--cobalt);
  line-height: 1;
}

.stat-inline__unit {
  font-size: 22px;
  font-weight: 700;
  color: var(--cobalt);
}

.stat-inline__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  max-width: 140px;
  line-height: 1.4;
}

/* ============================================================
   SPLIT SECTION (reused by article teaser + product pages)
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

@media (max-width: 767px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
}

.split__media {
  position: relative;
  overflow: visible;
}

.split__img {
  width: 100%;
  display: block;
  border-radius: 16px;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--cream);
}

.split__bleed {
  margin-left: -48px;
}

@media (max-width: 767px) {
  .split__bleed { margin-left: 0; }
}

/* ============================================================
   PROMO BANNER — thin conversion strip (replaces the old
   editorial dark split section): one line of copy + one stat
   + one CTA, all in a single row. No product photography.
   ============================================================ */

.promo-banner {
  background: var(--ink);
  padding: clamp(24px, 4vw, 36px) 0;
}

.promo-banner__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.promo-banner__text {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: #fff;
  max-width: 440px;
  line-height: 1.35;
}

.promo-banner__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.promo-banner__stat-number {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--lavender);
  line-height: 1;
}

.promo-banner__stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   CATEGORY TILES — "shop by category" navigation module
   (replaces the second full product showcase row: clickable
   tiles into catalog.html filters, not more product cards)
   ============================================================ */

.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  padding: 28px 16px;
  background: var(--cream);
  border: 1px solid rgba(190,90,52,0.12);
  border-radius: var(--card-radius);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.category-tile:hover {
  background: var(--lavender-light);
  border-color: var(--lavender-mid);
  transform: translateY(-3px);
}

.category-tile__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt);
}

.category-tile__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid rgba(190,90,52,0.12);
}

.faq-item:first-child { border-top: 1px solid rgba(190,90,52,0.12); }

.faq-item__trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
}

.faq-item__trigger:hover { color: var(--cobalt); }

.faq-item__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--cobalt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s;
}

.faq-item__icon::after {
  content: '';
  display: block;
  width: 8px;
  height: 2px;
  background: var(--cobalt);
  position: relative;
}

.faq-item__icon::before {
  content: '';
  display: block;
  width: 2px;
  height: 8px;
  background: var(--cobalt);
  position: absolute;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.faq-item.faq--open .faq-item__icon { background: var(--cobalt); transform: rotate(45deg); }
.faq-item.faq--open .faq-item__icon::after { background: #fff; }
.faq-item.faq--open .faq-item__icon::before { background: #fff; }

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item__body p {
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.faq--open .faq-item__body { max-height: 400px; }

/* ============================================================
   FAQ — compact single column (visually secondary, low priority)
   ============================================================ */

.faq-compact { max-width: 680px; margin: 0 auto; }
.faq-compact__intro { margin-bottom: 20px; }
.faq-compact__intro p { margin-top: 8px; font-size: 14px; }

/* ============================================================
   CATALOG PAGE — thin breadcrumb/title bar + sidebar filters
   + dense product grid (replaces the tall dark catalog-hero and
   the horizontal pill filter-bar)
   ============================================================ */

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cobalt); }
.breadcrumb span { color: var(--ink); font-weight: 600; }

.catalog-topbar {
  padding: 18px 0;
  background: var(--cream-warm);
  border-bottom: 1px solid rgba(190,90,52,0.10);
}

.catalog-topbar h1 {
  font-size: clamp(19px, 2.2vw, 26px);
  margin-bottom: 2px;
}

.catalog-topbar p {
  font-size: 13px;
  color: var(--muted);
}

/* --- Sidebar + grid layout (replaces the horizontal pill filter-bar) --- */

.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--utility-h) + 16px);
  background: var(--white);
  border: 1px solid rgba(190,90,52,0.12);
  border-radius: var(--card-radius);
  padding: 20px 18px;
}

.catalog-sidebar__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--lavender-light);
  color: var(--cobalt);
  border-color: var(--lavender-mid);
}

.catalog-sidebar__sort {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(190,90,52,0.10);
}

.catalog-sidebar__sort select {
  width: 100%;
  padding: 9px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream-warm);
  border: 1.5px solid rgba(190,90,52,0.18);
  border-radius: 8px;
  outline: none;
}

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .filter-bar { flex-direction: row; flex-wrap: wrap; }
  .filter-btn { width: auto; }
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */

.checkout-wrap {
  min-height: 100vh;
  background: var(--cream-warm);
  padding-top: var(--nav-h);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
}

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

.checkout-summary {
  background: var(--white);
  border: 1px solid rgba(190,90,52,0.12);
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.checkout-summary__header {
  background: var(--cobalt);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-summary__toggle {
  font-size: 18px;
  transition: transform 0.3s;
}

.checkout-summary__body { padding: 20px 24px; }

.checkout-summary__product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.checkout-summary__img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 16px;
  overflow: hidden;
}

.checkout-summary__img .photo-placeholder {
  min-height: unset;
  height: 80px;
}

.checkout-summary__info { flex: 1; }
.checkout-summary__pname {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}

.checkout-summary__price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(190,90,52,0.08);
  font-size: 14px;
  color: var(--muted);
}

.checkout-summary__total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  border-top: 2px solid var(--cobalt);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--cobalt);
}

.checkout-form-section {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(190,90,52,0.10);
  padding: 32px;
  margin-bottom: 20px;
}

.checkout-form-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(190,90,52,0.10);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream-warm);
  border: 1.5px solid rgba(190,90,52,0.18);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cobalt);
  background: #fff;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e53e3e;
}

.form-error {
  font-size: 12px;
  color: #e53e3e;
  font-weight: 600;
  display: none;
}

.form-error.visible { display: block; }

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form-group--checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--cobalt);
}

.form-group--checkbox label {
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  line-height: 1.5;
}

.seller-block {
  background: var(--lavender-light);
  border-left: 4px solid var(--cobalt);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.seller-block__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 8px;
}

.seller-block p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}

.order-terms {
  background: var(--cream);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.order-terms a { color: var(--cobalt); text-decoration: underline; }

.cod-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lavender-light);
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--lavender-mid);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(43,36,32,0.65);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: fade-up 0.4s var(--ease);
}

.modal-box__icon {
  width: 64px;
  height: 64px;
  background: var(--lavender-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-box h3 {
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 12px;
}

.modal-box p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 36px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand .nav__logo { display: inline-flex; margin-bottom: 14px; }

.footer__brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 220px;
}

.footer__col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 12px;
}

.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer__col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__col ul li a:hover { color: var(--lavender); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer__contact-item a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__contact-item a:hover { color: var(--lavender); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* Trust-badge chips in the footer bottom bar (payment / shipping / returns) */
.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}

.footer__badge svg { color: var(--lavender); flex-shrink: 0; }

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__legal-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__legal-links a:hover { color: var(--lavender); }

/* ============================================================
   FOOTER — dense e-commerce structure: top row (logo + one-line
   blurb + quick contact) + tight link-columns row + bottom bar
   (copyright + trust-badge chips)
   ============================================================ */

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 24px;
}

.footer-top .nav__logo { display: inline-flex; margin-bottom: 8px; }

.footer-top__blurb {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  max-width: 380px;
}

.footer-top__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-top__contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-top__contact a:hover { color: var(--lavender); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 0 24px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .footer-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .footer-columns { grid-template-columns: 1fr; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9500;
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(43,36,32,0.5);
  padding: 24px 28px;
  max-width: 600px;
  width: calc(100% - 40px);
  font-family: var(--font-body);
  border-top: 3px solid var(--cobalt);
}

.cookie-banner.visible { display: block; }

.cookie-banner__text {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.75);
}

.cookie-banner__text a { color: var(--lavender); text-decoration: underline; }

.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.cookie-banner__panel {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
  margin-top: 4px;
}

.cookie-banner__panel.open { display: block; }

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.cookie-toggle-row label { font-weight: 600; }
.cookie-toggle-row span { font-size: 11px; color: rgba(255,255,255,0.4); }

.toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-switch .slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-switch .slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch input:checked + .slider { background: var(--cobalt); }
.toggle-switch input:checked + .slider::before { transform: translateX(16px); }
.toggle-switch input:disabled + .slider { cursor: not-allowed; opacity: 0.5; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.stagger.stagger-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.stagger-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.stagger.stagger-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.stagger.stagger-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.stagger.stagger-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
.stagger.stagger-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }
.stagger.stagger-visible > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 0.6s; }

/* ============================================================
   MISC UTILITIES
   ============================================================ */

.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.section-title { margin-bottom: clamp(32px, 5vw, 56px); }

.divider-line {
  border: none;
  border-top: 1px solid rgba(190,90,52,0.12);
  margin: 0;
}

.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 800;
  background: var(--cobalt);
  color: #fff;
  padding: 14px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

.sticky-cta--visible { transform: translateY(0); }

.sticky-cta__text { color: rgba(255,255,255,0.85); }

/* Article page (white text on very light background for compliance) */
.article-page { background: #fff; }
.article-body { max-width: 760px; margin-inline: auto; padding: 0 clamp(20px,5vw,48px) 80px; }
.article-body h2 { font-size: clamp(22px,3vw,30px); margin: 40px 0 14px; color: var(--ink); }
.article-body h3 { font-size: 19px; margin: 28px 0 10px; color: var(--cobalt); }
.article-body p  { font-size: 16px; color: var(--muted); margin-bottom: 18px; }
.article-body ul { padding-left: 20px; margin-bottom: 18px; }
.article-body ul li { font-size: 15px; color: var(--muted); margin-bottom: 6px; line-height: 1.6; }
.article-hero { background: var(--ink); color: #fff; padding: calc(var(--nav-h) + 60px) 0 60px; }
.article-hero h1 { color: #fff; font-size: clamp(32px,5vw,56px); }
.article-hero .eyebrow { color: var(--lavender); }

/* Table scroll wrapper */
.table-scroll {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.spec-table { width: 100%; border-collapse: collapse; min-width: 480px; background: #fff; }
.spec-table th, .spec-table td { padding: 16px 20px; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 14px; }
.spec-table thead th { background: var(--ink); color: #fff; font-weight: 700; }
.spec-table__label { background: #f9f9f9; font-weight: 600; text-align: left; }
.spec-table tbody th.spec-table__label { text-align: left; }
.spec-table__hl { background: var(--cobalt); color: #fff; font-weight: 700; }
.spec-table thead th.spec-table__hl { background: var(--cobalt); }

/* Page top offset for advertorial bar + nav */
.page-top { padding-top: calc(var(--nav-h) + 36px); }

/* ============================================================
   PRODUCT PAGE — gallery thumbnail strip
   ============================================================ */

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 10px;
}

.gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--cream);
  cursor: pointer;
  padding: 0;
  transition: border-color .2s, opacity .2s;
  opacity: 0.7;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { border-color: var(--cobalt); opacity: 1; }

/* ============================================================
   PRODUCT PAGE — tabbed module (Descripción / Especificaciones / Envío)
   ============================================================ */

.product-tabs__nav {
  display: flex;
  gap: 4px;
  border-bottom: 1.5px solid var(--lavender-light);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.product-tabs__btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 14px 20px;
  margin-bottom: -1.5px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  letter-spacing: 0.01em;
}

.product-tabs__btn:hover { color: var(--cobalt); }
.product-tabs__btn.is-active { color: var(--cobalt); border-bottom-color: var(--cobalt); }

.product-tabs__panel { display: none; }
.product-tabs__panel.is-active { display: block; }

/* ============================================================
   BLOG — hero header + card grid (index.html, blog.html)
   ============================================================ */

.blog-hero {
  background: var(--ink);
  padding: calc(72px + 64px) 0 56px;
}
.blog-hero .eyebrow { color: var(--lavender); margin-bottom: 16px; }
.blog-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4.6vw, 46px);
  max-width: 720px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.blog-hero p {
  color: rgba(255,255,255,0.68);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid rgba(190,90,52,0.10);
  border-radius: var(--card-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  text-decoration: none;
}
.blog-card:hover {
  box-shadow: 0 16px 40px rgba(190,90,52,0.14);
  transform: translateY(-5px);
}
.blog-card__media {
  background: var(--cream);
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 10px;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.32;
  margin-bottom: 10px;
}
.blog-card__teaser {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--cobalt);
  margin-top: auto;
}

.blog-grid--compact { gap: 22px; }
.blog-grid--compact .blog-card__media { aspect-ratio: 4/3; }
.blog-grid--compact .blog-card__body { padding: 16px 16px 20px; }
.blog-grid--compact .blog-card__title { font-size: 15px; }
.blog-grid--compact .blog-card__teaser { font-size: 12.5px; }

.blog-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.blog-preview-head a {
  font-size: 13px;
  font-weight: 700;
  color: var(--cobalt);
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE MISC
   ============================================================ */

@media (max-width: 767px) {
  h1 { font-size: clamp(26px, 8vw, 36px); }
  h2 { font-size: clamp(20px, 6vw, 28px); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .checkout-form-section { padding: 20px; }
  .modal-box { padding: 32px 24px; }
}

/* Progressive-enhancement safety (injected by builder): scroll-reveal blocks stay VISIBLE
   unless JS confirms it can animate them by adding .js-anim to <html>. Guarantees a
   truncated page or a failed script can never leave content permanently hidden. */
html:not(.js-anim) .reveal,
html:not(.js-anim) .reveal-left,
html:not(.js-anim) .reveal-right,
html:not(.js-anim) .reveal-scale,
html:not(.js-anim) .stagger-child {
  opacity: 1 !important;
  transform: none !important;
}
