/* =====================================================================
   JUSTER — Design System
   Outfit (display) + DM Sans (body)
   Palette: cream bg · charcoal text · mint accent · coral CTA
   ===================================================================== */

/* ─── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Brand colors */
  --mint:       #a6e0d0;
  --mint-mid:   #7ec8b8;
  --mint-dark:  #4fa899;
  --mint-pale:  #e8f7f4;
  --charcoal:   #384049;
  --charcoal-2: #2a3038;
  --steel:      #5a7388;
  --coral:      #cd5f5e;
  --coral-dark: #b44c4b;

  /* Surface */
  --cream:      #f5f3ef;
  --cream-dark: #eceae4;
  --white:      #ffffff;
  --ink:        #1c2027;
  --muted:      #7a8290;
  --border:     rgba(56,64,73,.1);
  --border-mid: rgba(56,64,73,.18);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing scale (multiples of 4px) */
  --sp-1: 0.25rem;  /* 4px  */
  --sp-2: 0.5rem;   /* 8px  */
  --sp-3: 0.75rem;  /* 12px */
  --sp-4: 1rem;     /* 16px */
  --sp-5: 1.25rem;  /* 20px */
  --sp-6: 1.5rem;   /* 24px */
  --sp-8: 2rem;     /* 32px */
  --sp-10: 2.5rem;  /* 40px */
  --sp-12: 3rem;    /* 48px */
  --sp-16: 4rem;    /* 64px */
  --sp-20: 5rem;    /* 80px */
  --sp-24: 6rem;    /* 96px */
  --sp-32: 8rem;    /* 128px */

  /* Layout */
  --max-w:    1280px;
  --max-w-sm: 760px;

  /* Motion */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --dur:      0.35s;
  --dur-slow: 0.6s;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(28,32,39,.06), 0 1px 2px rgba(28,32,39,.04);
  --shadow-md:  0 4px 16px rgba(28,32,39,.08), 0 2px 4px rgba(28,32,39,.04);
  --shadow-lg:  0 16px 48px rgba(28,32,39,.10), 0 4px 8px rgba(28,32,39,.04);
  --shadow-xl:  0 32px 80px rgba(28,32,39,.12);

  /* Border radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;
}

/* ─── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  hanging-punctuation: first last;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── 3. TYPOGRAPHY SCALE ───────────────────────────────────── */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1, .h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
h2, .h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 500; line-height: 1.2;  letter-spacing: -0.015em; }
h3, .h3 { font-family: var(--font-display); font-size: clamp(1.125rem, 1.8vw, 1.5rem); font-weight: 500; line-height: 1.3; }
h4, .h4 { font-family: var(--font-body);    font-size: 1rem;   font-weight: 600; line-height: 1.4; }

.text-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.text-body-lg { font-size: 1.125rem; line-height: 1.65; }
.text-muted    { color: var(--muted); }
.text-mint     { color: var(--mint-dark); }
.text-coral    { color: var(--coral); }
.text-white    { color: var(--white); }

/* ─── 4. LAYOUT UTILITIES ───────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
@media (max-width: 640px) { .container { padding-inline: var(--sp-4); } }

.section { padding-block: var(--sp-20); }
.section-sm { padding-block: var(--sp-12); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}
.section-header .view-all {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.section-header .view-all:hover { color: var(--coral); }
.section-header .view-all svg { transition: transform var(--dur) var(--ease); }
.section-header .view-all:hover svg { transform: translateX(3px); }

/* ─── 5. ANNOUNCEMENT BAR ───────────────────────────────────── */
.announcement-bar {
  background: var(--charcoal);
  color: var(--white);
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.announcement-marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.marquee-track {
  display: inline-block;
  animation: marquee 40s linear infinite;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-inline: var(--sp-4);
}
.announcement-bar:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── 6. HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-6);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  height: 68px;
}

/* Logo */
.site-logo img { height: 36px; width: auto; object-fit: contain; }

/* Search */
.header-search { width: 100%; max-width: 540px; justify-self: center; }
.search-form {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-full);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-form:focus-within {
  border-color: var(--mint-dark);
  box-shadow: 0 0 0 3px var(--mint-pale);
}
.search-form input[type="search"] {
  flex: 1;
  padding: 0.55rem var(--sp-4);
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: var(--charcoal);
}
.search-form input::placeholder { color: var(--muted); }
.search-form button {
  padding: 0.55rem var(--sp-4);
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color var(--dur) var(--ease);
}
.search-form button:hover { color: var(--charcoal); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.header-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  color: var(--charcoal);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.header-action-btn:hover { background: var(--cream); color: var(--mint-dark); }

/* Cart count */
.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 3px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cart-count.has-items { opacity: 1; transform: scale(1); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  border-radius: var(--r-sm);
}
.toggle-line {
  display: block;
  width: 22px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-toggle[aria-expanded="true"] .toggle-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle[aria-expanded="true"] .toggle-line:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .toggle-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Primary Nav */
.primary-nav {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  height: 44px;
}
.nav-list > li > a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-list > li > a:hover {
  color: var(--mint-dark);
  background: var(--mint-pale);
}
.nav-list > li.current-menu-item > a,
.nav-list > li.current-page-ancestor > a { color: var(--mint-dark); }

/* ─── 7. HERO SECTION ───────────────────────────────────────── */
.hero {
  min-height: calc(100dvh - 148px);
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-16) var(--sp-12) var(--sp-16) var(--sp-16);
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--mint-dark);
  border-radius: var(--r-full);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--charcoal);
  margin-bottom: var(--sp-6);
}
.hero-title strong {
  font-weight: 600;
  color: var(--mint-dark);
}

.hero-desc {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: var(--sp-8);
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}

.hero-pills {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.pill {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--steel);
}
.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--mint-pale);
  border-radius: var(--r-full);
  color: var(--mint-dark);
}

/* Hero visual */
.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: var(--cream-dark);
}

.hero-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(56, 64, 73, .16));
  pointer-events: none;
}

.hero-visual-badge {
  position: absolute;
  right: var(--sp-6);
  bottom: var(--sp-6);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-4) var(--sp-5);
  color: var(--white);
  background: rgba(56, 64, 73, .88);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--r-md);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.hero-visual-badge strong { font-family: var(--font-display); font-weight: 600; }
.hero-visual-badge span { font-size: .75rem; opacity: .8; }

.visual-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-6);
  overflow: hidden;
  position: relative;
  min-height: 240px;
}
.visual-tile-label {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
}
.visual-tile-sub {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
  margin-top: var(--sp-1);
}
.visual-tile-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Tile: mint */
.tile-mint {
  background: var(--mint);
  color: var(--charcoal-2);
  grid-column: 1; grid-row: 1;
}
.tile-mint::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 180%; height: 180%;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.35) 0%, transparent 60%);
  pointer-events: none;
}

/* Tile: charcoal */
.tile-charcoal {
  background: var(--charcoal);
  color: var(--white);
  grid-column: 2; grid-row: 1;
}
.tile-charcoal-inner {
  position: relative;
  z-index: 1;
}
.tile-charcoal::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 30% 80%, rgba(166,224,208,.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Tile: cream + big number */
.tile-cream {
  background: var(--cream-dark);
  color: var(--charcoal);
  grid-column: 1; grid-row: 2;
  justify-content: flex-start;
  padding-top: var(--sp-6);
}

/* Tile: coral */
.tile-coral {
  background: var(--coral);
  color: var(--white);
  grid-column: 2; grid-row: 2;
}
.tile-coral::before {
  content: '';
  position: absolute;
  top: -20%; right: -30%;
  width: 150%; height: 150%;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,.2) 0%, transparent 60%);
  pointer-events: none;
}

/* Tile hover lifts */
.visual-tile {
  transition: transform var(--dur-slow) var(--ease);
}
.visual-tile:hover { transform: scale(1.02); }

/* ─── 8. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform 0.1s ease;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  box-shadow: 0 6px 20px rgba(205,95,94,.3);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border-mid);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  padding-inline: 0;
  gap: var(--sp-2);
}
.btn-ghost:hover { color: var(--coral); }
.btn-ghost svg { transition: transform var(--dur) var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-mint {
  background: var(--mint);
  color: var(--charcoal);
  border-color: var(--mint);
}
.btn-mint:hover { background: var(--mint-mid); border-color: var(--mint-mid); }

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}
.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ─── 9. STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  background: var(--charcoal);
  padding-block: var(--sp-12);
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.stat-item {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
  padding-inline: var(--sp-4);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--mint);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.55);
  margin-top: var(--sp-2);
  font-weight: 400;
}

/* ─── 10. CATEGORIES SECTION ────────────────────────────────── */
.categories-section {
  background: var(--white);
}
.categories-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-4);
}

.cat-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  background: var(--cream);
  min-height: 200px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cat-card:hover .cat-arrow { transform: translateX(4px); }

/* Large cat card: spans col 1, rows 1+2 */
.cat-card--large {
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 420px;
  background: var(--charcoal);
  color: var(--white);
}
.cat-card--large .cat-bg-num {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-6);
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  opacity: 0.07;
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
}

.cat-card--mint { background: var(--mint); color: var(--charcoal); }
.cat-card--steel { background: var(--steel); color: var(--white); }
.cat-card--coral-light { background: #fdf2f2; color: var(--charcoal); }
.cat-card--cream-dark { background: var(--cream-dark); color: var(--charcoal); }

.cat-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--sp-1);
}
.cat-card--large .cat-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.cat-count {
  font-size: 0.75rem;
  opacity: 0.6;
  font-weight: 400;
}
.cat-arrow {
  display: inline-block;
  margin-top: var(--sp-4);
  font-size: 1.25rem;
  transition: transform var(--dur) var(--ease);
}

.cat-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.64;
  transition: opacity var(--dur) var(--ease);
}
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(56,64,73,.04) 15%, rgba(56,64,73,.82) 100%);
  pointer-events: none;
}
.cat-card > :not(.cat-thumb-img) { position: relative; z-index: 1; }
.cat-card .cat-name,
.cat-card .cat-count,
.cat-card .cat-arrow { color: var(--white); text-shadow: 0 1px 14px rgba(0,0,0,.25); }
.cat-card:hover .cat-thumb-img { opacity: 0.78; }
.cat-card--all::after { display: none; }
.cat-card--all .cat-name,
.cat-card--all .cat-arrow { color: inherit; text-shadow: none; }

/* View all cats card */
.cat-card--all {
  background: transparent;
  border: 2px dashed var(--border-mid);
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--steel);
  grid-column: 2;
  grid-row: 2;
}
.cat-card--all:hover {
  background: var(--cream);
  border-color: var(--mint-dark);
  color: var(--mint-dark);
  box-shadow: none;
}

/* ─── 11. FEATURED PRODUCTS ─────────────────────────────────── */
.products-section { background: var(--cream); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.product-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--white);
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center top;
  padding: var(--sp-4) var(--sp-6) var(--sp-10) var(--sp-6);
  background: var(--white);
  transition: transform var(--dur-slow) var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: var(--coral);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-full);
}

.product-card-body {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-body > a:not(.btn) {
  display: block;
  min-height: calc(2 * 1.35em + var(--sp-3));
}
.product-brand {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-1);
}
.product-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.35;
  margin-bottom: var(--sp-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--sp-3);
}
.product-price-regular {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: var(--sp-2);
  font-weight: 400;
}
.btn-add-to-cart {
  width: 100%;
  justify-content: center;
  background: var(--cream);
  color: var(--charcoal);
  border-radius: var(--r-md);
  padding: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px solid var(--border-mid);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn-add-to-cart:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

/* ─── 12. VALUE PROPOSITION ─────────────────────────────────── */
.value-section { background: var(--white); overflow: hidden; }

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-16);
  padding-block: var(--sp-10);
}
.value-grid + .value-grid { border-top: 1px solid var(--border); }
.value-grid--reverse { direction: rtl; }
.value-grid--reverse > * { direction: ltr; }

.value-content {}
.value-eyebrow { margin-bottom: var(--sp-4); }
.value-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: var(--sp-4);
}
.value-title strong { font-weight: 600; color: var(--mint-dark); }
.value-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: var(--sp-6);
}

.value-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.value-visual-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* CSS-only illustration panels */
.value-panel {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--mint-pale) 0%, var(--mint) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-10);
  gap: var(--sp-3);
}
.value-panel--dark {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
}
.value-panel-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--charcoal);
  opacity: 0.12;
}
.value-panel--dark .value-panel-number {
  color: var(--mint);
  opacity: 0.2;
}
.value-panel-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
}
.value-panel--dark .value-panel-text { color: var(--white); }

/* Value proposition — real images */
.value-img-wrap {
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}
.value-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.value-img-wrap--contain img {
  object-fit: contain;
  background: var(--cream);
  padding: var(--sp-6);
}
.value-img-badge {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-4);
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  letter-spacing: 0.03em;
}
.value-img-badge--dark {
  background: var(--mint-dark);
  color: var(--charcoal);
}

/* ─── 13. BRAND MARQUEE ─────────────────────────────────────── */
.brands-section {
  background: var(--cream);
  padding-block: var(--sp-12);
  overflow: hidden;
}
.brands-title-area {
  text-align: center;
  margin-bottom: var(--sp-8);
}
.brands-marquee-wrap {
  position: relative;
  overflow: hidden;
}
.brands-marquee-wrap::before,
.brands-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.brands-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), transparent);
}
.brands-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), transparent);
}

.brands-track {
  display: flex;
  gap: var(--sp-2);
  animation: brands-scroll 32s linear infinite;
  width: max-content;
}
.brands-section:hover .brands-track { animation-play-state: paused; }

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  cursor: default;
}
.brand-chip:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

/* ─── 14. DELIVERY SECTION ──────────────────────────────────── */
.delivery-section {
  background: var(--mint-pale);
  padding-block: var(--sp-20);
}
.delivery-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.delivery-content .section-header { margin-bottom: var(--sp-6); }
.delivery-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.delivery-desc {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  max-width: 44ch;
}

.delivery-info-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.delivery-card {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.delivery-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--charcoal);
}
.delivery-card-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.delivery-card-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Communes grid */
.communes-panel {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
}
.communes-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.communes-title-dot {
  width: 8px; height: 8px;
  background: var(--coral);
  border-radius: var(--r-full);
}
.communes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-6);
}
.commune-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  color: var(--charcoal);
  padding-block: var(--sp-1);
  border-bottom: 1px solid var(--border);
}
.commune-item:nth-last-child(-n+2) { border-bottom: none; }
.commune-check {
  width: 16px; height: 16px;
  border-radius: var(--r-full);
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.commune-check svg { width: 10px; height: 10px; color: var(--charcoal); }
.communes-note {
  margin-top: var(--sp-4);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* ─── 15. CTA BANNER ────────────────────────────────────────── */
.cta-section {
  background: var(--charcoal);
  padding-block: var(--sp-20);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(166,224,208,.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 50%, rgba(205,95,94,.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}
.cta-title strong { font-weight: 600; color: var(--mint); }
.cta-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.55);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
  line-height: 1.65;
}
.cta-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── 16. FOOTER ────────────────────────────────────────────── */
.site-footer { background: var(--charcoal-2); color: var(--white); }
.footer-top { padding-block: var(--sp-16); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
}

.footer-logo img { height: 36px; width: auto; filter: brightness(10); margin-bottom: var(--sp-4); }
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: var(--sp-4);
}
.footer-contact {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.5);
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: var(--sp-4);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer-links li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--dur) var(--ease);
}
.footer-links li a:hover { color: var(--mint); }
.footer-links--small li { font-size: 0.8125rem; color: rgba(255,255,255,.45); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-block: var(--sp-6);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,.3); }
.footer-payment-icons { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.payment-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.07);
  border-radius: var(--r-full);
  padding: 3px var(--sp-3);
  letter-spacing: 0.03em;
}

/* ─── 17. PAGE & SHOP GENERIC ───────────────────────────────── */
.page-hero {
  background: var(--cream-dark);
  padding-block: var(--sp-12);
}
.page-hero h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }

.content-area { padding-block: var(--sp-16); background: var(--white); }
.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: var(--font-display);
  margin-bottom: var(--sp-4);
  color: var(--charcoal);
}
.entry-content p { margin-bottom: var(--sp-4); color: var(--muted); line-height: 1.75; max-width: 72ch; }
.entry-content ul { list-style: disc; padding-left: var(--sp-6); margin-bottom: var(--sp-4); }
.entry-content ul li { color: var(--muted); margin-bottom: var(--sp-2); }
.entry-content ol { padding-left: var(--sp-6); margin-bottom: var(--sp-6); }
.entry-content ol li { color: var(--muted); line-height: 1.7; margin-bottom: var(--sp-3); padding-left: var(--sp-2); }
.entry-content a:not(.btn) { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-top: var(--sp-10); }
.entry-content h3 { font-size: 1.1rem; }

.content-kicker {
  color: var(--mint-dark) !important;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.content-lead {
  color: var(--charcoal) !important;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.45 !important;
  max-width: 60ch !important;
}
.about-intro { margin-bottom: var(--sp-10); }
.content-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-block: var(--sp-8);
}
.content-feature {
  padding: var(--sp-6);
  background: var(--cream);
  border-radius: var(--r-lg);
}
.content-feature h3 { margin-bottom: var(--sp-3); }
.content-feature p { margin: 0; font-size: .9rem; }
.content-feature-number {
  display: block;
  margin-bottom: var(--sp-6);
  color: var(--mint-dark);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.faq-list { margin-top: var(--sp-8); border-top: 1px solid var(--border-mid); }
.faq-list details { border-bottom: 1px solid var(--border-mid); }
.faq-list summary {
  position: relative;
  padding: var(--sp-5) var(--sp-10) var(--sp-5) 0;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: var(--sp-2);
  top: 50%;
  transform: translateY(-50%);
  color: var(--mint-dark);
  font-size: 1.5rem;
  font-weight: 400;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-answer { padding: 0 var(--sp-8) var(--sp-5) 0; }
.faq-answer p:last-child { margin-bottom: 0; }
.communes-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-6);
}

@media (max-width: 768px) {
  .content-feature-grid { grid-template-columns: 1fr; }
  .communes-inline { grid-template-columns: 1fr; }
}

/* ─── 18. HERO CSS ENTRY ANIMATIONS ────────────────────────── */
@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0.01; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes tile-in {
  from { transform: scale(0.97) translateY(8px); opacity: 0.01; }
  to   { transform: scale(1)    translateY(0);   opacity: 1; }
}

/* Hero content — content visible immediately, slides up gracefully */
.hero-eyebrow  { animation: slide-up 0.65s var(--ease) 0.05s both; }
.hero-title    { animation: slide-up 0.75s var(--ease) 0.12s both; }
.hero-desc     { animation: slide-up 0.65s var(--ease) 0.2s  both; }
.hero-actions  { animation: slide-up 0.65s var(--ease) 0.28s both; }
.hero-pills    { animation: slide-up 0.65s var(--ease) 0.36s both; }

/* Visual tiles */
.tile-mint     { animation: tile-in 0.6s var(--ease) 0.1s  both; }
.tile-charcoal { animation: tile-in 0.6s var(--ease) 0.18s both; }
.tile-cream    { animation: tile-in 0.6s var(--ease) 0.26s both; }
.tile-coral    { animation: tile-in 0.6s var(--ease) 0.34s both; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title, .hero-desc, .hero-actions, .hero-pills,
  .tile-mint, .tile-charcoal, .tile-cream, .tile-coral { animation: none; }
}

/* ─── 19b. SCROLL REVEAL (JS class-based) ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── 19. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: auto auto auto; }
  .header-search { display: none; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content {
    padding: var(--sp-16) var(--sp-6) var(--sp-10);
    max-width: 100%;
  }
  .hero-visual { min-height: auto; aspect-ratio: 4/3; }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .cat-card--large { grid-column: 1 / 3; grid-row: 1; min-height: 240px; }
  .cat-card--all { grid-column: 2; grid-row: 3; }

  .products-grid { grid-template-columns: repeat(3, 1fr); }

  .value-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .value-grid--reverse { direction: ltr; }

  .delivery-inner { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .footer-brand { grid-column: 1 / 3; }

  .stats-bar .container { gap: var(--sp-4); }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .primary-nav.open { display: block; }
  .nav-list {
    flex-direction: column;
    height: auto;
    padding-block: var(--sp-4);
    gap: 0;
  }
  .nav-list > li > a { padding: var(--sp-3) var(--sp-2); border-radius: 0; }

  .menu-toggle { display: flex; }

  .hero-visual { aspect-ratio: 5/4; }
  .visual-tile { min-height: auto; }
  .visual-tile-num { font-size: 2.5rem; }

  .stats-bar .container { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:last-child { border-bottom: none; }

  .categories-grid { grid-template-columns: 1fr; }
  .cat-card--large { grid-column: 1; }
  .cat-card--all { grid-column: 1; grid-row: auto; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .communes-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }

  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer-payment-icons { gap: var(--sp-1); }

  .section-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-content { padding: var(--sp-10) var(--sp-4) var(--sp-8); }
  .hero-actions { gap: var(--sp-2); }
  .btn { padding: 0.7rem 1.2rem; font-size: 0.875rem; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .product-card-img img {
    padding: 8px 10px 24px 10px;
  }
  .hero-visual { aspect-ratio: 1/1; }
  .hero-visual-badge { right: var(--sp-4); bottom: var(--sp-4); }
  .cta-title { font-size: 1.75rem; }
}

/* ─── 20. PAGE EDITORIAL IMAGE (quienes-somos) ──────────────── */
.page-editorial {
  background: var(--white);
  padding-bottom: var(--sp-2);
}
.page-editorial-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--r-xl);
  margin-top: var(--sp-6);
}

/* ─── 21. COVERAGE MAP (delivery section) ───────────────────── */
.coverage-map {
  margin: 0 0 var(--sp-6);
  border-radius: var(--r-lg);
  overflow: hidden;
  line-height: 0;
}
.coverage-map img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
}

/* ─── 22. CONTACT PAGE ──────────────────────────────────────── */
.contact-lead {
  font-size: 1.0625rem;
  color: var(--charcoal);
  line-height: 1.7;
  max-width: 52ch;
}
.contact-channels {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin: var(--sp-8) 0;
}
.contact-channel-link {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-5) var(--sp-6);
  background: var(--cream-dark);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--charcoal);
  flex: 1;
  min-width: 220px;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border: 1.5px solid transparent;
}
.contact-channel-link:hover {
  background: var(--white);
  border-color: var(--border-mid);
  box-shadow: var(--shadow-md);
}
.contact-channel-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-channel-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* ─── 23. CART EMPTY ────────────────────────────────────────── */
.cart-empty-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-20) var(--sp-6);
  gap: var(--sp-4);
}
.cart-empty-icon { color: var(--muted); }
.cart-empty-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.cart-empty-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 38ch;
}

/* ─── 24. MOTION & MICRO-INTERACTIONS ───────────────────────── */
/* Interaction feedback stays within 150–300ms; only the one-time hero entrance runs longer. */
:root {
  --dur-fast: 0.18s;
  --dur-ui:   0.28s;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus — visible on every interactive element (WCAG 2.4.7) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.btn:focus-visible,
.header-action-btn:focus-visible { border-radius: var(--r-full); }

/* Buttons: colour fill sweeps in from the left, slight lift, press-down */
.btn-primary,
.btn-outline,
.btn-mint,
.btn-add-to-cart {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color var(--dur-ui) var(--ease),
              border-color var(--dur-ui) var(--ease),
              box-shadow var(--dur-ui) var(--ease),
              transform var(--dur-fast) var(--ease);
}
/* White on --coral is 3.89:1 (fails AA); --coral-dark is 5.15:1 */
.btn-primary,
.btn-primary:hover { background-color: var(--coral-dark); border-color: var(--coral-dark); }

.btn-primary::before,
.btn-outline::before,
.btn-mint::before,
.btn-add-to-cart::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-ui) var(--ease);
}
.btn-primary::before,
.btn-outline::before,
.btn-add-to-cart::before { background: var(--charcoal); }
.btn-mint::before        { background: var(--mint-mid); }

.btn-outline:hover,
.btn-add-to-cart:hover { background-color: transparent; }
.btn-mint:hover        { background-color: var(--mint); }
.btn-primary:hover     { border-color: var(--charcoal); box-shadow: 0 8px 24px rgba(56,64,73,.25); }
.btn-primary:hover,
.btn-outline:hover,
.btn-mint:hover,
.btn-add-to-cart:hover { transform: translateY(-2px); }
.btn-primary:hover::before,
.btn-outline:hover::before,
.btn-mint:hover::before,
.btn-add-to-cart:hover::before { transform: scaleX(1); }

.btn:active,
.btn-primary:active,
.btn-outline:active,
.btn-add-to-cart:active { transform: translateY(0) scale(0.97); }

.btn svg { transition: transform var(--dur-ui) var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* Add-to-cart states (WC adds .loading during the request) */
.btn-add-to-cart.loading {
  color: transparent !important;
  pointer-events: none;
}
.btn-add-to-cart.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border: 2px solid var(--charcoal);
  border-right-color: transparent;
  border-radius: var(--r-full);
  animation: juster-spin 0.6s linear infinite;
}
.btn-add-to-cart.is-added {
  background: var(--mint) !important;
  border-color: var(--mint-dark) !important;
  color: var(--charcoal) !important;
  animation: juster-pop var(--dur-ui) var(--ease);
}
.btn-add-to-cart.is-added::before { transform: scaleX(0); }
/* The drawer replaces WC's inline "Ver carrito" link */
.product-card .added_to_cart { display: none !important; }

@keyframes juster-spin { to { transform: rotate(360deg); } }
@keyframes juster-pop {
  0%   { transform: scale(0.96); }
  60%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Cart count bump */
.cart-count.bump { animation: juster-bump 0.3s var(--ease); }
@keyframes juster-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.header-action-btn { transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease); }
.header-action-btn:active { transform: scale(0.94); }

/* Product cards: keyboard users get the same lift as mouse users */
.product-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-card:hover .product-card-img img { transform: scale(1.04); }

/* Image skeleton shimmer while photos load */
img.img-loading {
  background: linear-gradient(100deg, var(--cream) 30%, var(--white) 50%, var(--cream) 70%) !important;
  background-size: 200% 100% !important;
  animation: juster-shimmer 1.2s linear infinite;
}
@keyframes juster-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

/* ─── 25. HERO — word-by-word reveal ─────────────────────────── */
.hero-title--words { animation: none; }
.hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em; /* keep descenders inside the mask */
  margin-bottom: -0.08em;
}
.hw-in {
  display: inline-block;
  animation: juster-word-in 0.7s var(--ease) both;
  animation-delay: calc(0.12s + var(--i) * 0.06s);
}
@keyframes juster-word-in {
  from { transform: translateY(105%); opacity: 0.01; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hero-visual-image { animation: juster-hero-zoom 1.4s var(--ease) both; }
@keyframes juster-hero-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero-visual-badge { animation: slide-up 0.6s var(--ease) 0.7s both; }

/* ─── 26. MINI-CART DRAWER ───────────────────────────────────── */
html.cart-drawer-active { overflow: hidden; }

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(28, 32, 39, .45);
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease);
}
.cart-drawer-overlay.is-open { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 999;
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--dur-ui) var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--charcoal);
}
.cart-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  color: var(--charcoal);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.cart-drawer-close:hover { background: var(--cream); transform: rotate(90deg); }

.cart-drawer-note {
  margin: 0;
  padding: var(--sp-2) var(--sp-6);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--mint-pale);
}

.cart-drawer .widget_shopping_cart_content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cart-drawer .woocommerce-mini-cart {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: var(--sp-4) var(--sp-6);
}
.cart-drawer .woocommerce-mini-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-8) var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--charcoal);
  animation: slide-up var(--dur-ui) var(--ease) both;
}
.cart-drawer .woocommerce-mini-cart-item > a:not(.remove) {
  display: contents;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
}
.cart-drawer .woocommerce-mini-cart-item img {
  grid-row: span 2;
  width: 64px; height: 64px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.cart-drawer .woocommerce-mini-cart-item .quantity {
  grid-column: 2;
  font-size: 0.8125rem;
  color: var(--steel);
}
.cart-drawer .woocommerce-mini-cart-item a.remove {
  position: absolute;
  top: var(--sp-4); right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--steel);
  text-decoration: none;
  border-radius: var(--r-full);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.cart-drawer .woocommerce-mini-cart-item a.remove:hover { background: var(--coral-dark); color: var(--white); }

.cart-drawer .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border-mid);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--charcoal);
}
.cart-drawer .woocommerce-mini-cart__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin: 0;
  padding: 0 var(--sp-6) var(--sp-6);
}
.cart-drawer .woocommerce-mini-cart__buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--r-full);
  border: 2px solid var(--charcoal);
  background: var(--white);
  color: var(--charcoal);
  transition: background var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease), transform var(--dur-fast) var(--ease);
}
.cart-drawer .woocommerce-mini-cart__buttons a:hover { background: var(--charcoal); color: var(--white); }
.cart-drawer .woocommerce-mini-cart__buttons a.checkout {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  color: var(--white);
}
.cart-drawer .woocommerce-mini-cart__buttons a.checkout:hover { background: var(--charcoal); border-color: var(--charcoal); }
.cart-drawer .woocommerce-mini-cart__buttons a:active { transform: scale(0.97); }

.cart-drawer .woocommerce-mini-cart__empty-message {
  margin: auto;
  padding: var(--sp-16) var(--sp-6);
  text-align: center;
  color: var(--steel);
}

/* ─── 27. REDUCED MOTION — overrides everything above ────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track,
  .brands-track { animation: none !important; transform: none !important; }
  .btn:hover, .product-card:hover, .product-card:focus-within { transform: none !important; }
  .product-card:hover .product-card-img img { transform: none !important; }
}
