@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600&display=swap');

/* ============================================
   Kinetic — Icelandic Performance / Kappgjarn
   Brand: an Icelandic sports-performance house — built for movement,
          measured, competitive. Confident and energetic, never clinical SaaS.
   Fonts: Barlow Condensed (display) + Barlow (body) — condensed CAPS
          do the loud display work; body type stays normal-case and human.
   Signature motif: the FORWARD-LEAN. A single shared angular cut
          (clip-path slicing the trailing edge) on every primary action,
          badge and active marker — a racing edge no sibling theme has —
          paired with a "start-line" rule (thick tick + hairline) that
          opens every section head, PDP block and call-up panel.
   Type:  a real modular scale (--step-*, ratio ~1.30) so the huge
          condensed display sizes tower over the small tracked labels.
   Motion: snappy, athletic — transform/opacity only, one ease curve.
   Color: deep emerald energy + an electric-lime pop. The theme OWNS its
          palette + type (declared at body scope below) so it always reads
          kinetic, immune to any stale per-store colour/font config.
   ============================================ */

/* Identity — enforced at body scope so it beats per-store --primary/--font
   overrides that the platform injects at :root (specificity 0,1,1 > 0,1,0). */
body.theme-kinetic {
  --primary: #0e7a4f;
  --primary-hover: #0a5f3d;
  --bg: #ffffff;
  --bg-subtle: #f1f7f3;
  --text: #11231b;
  --text-muted: #5c6b63;
  --border: #e3ede7;
  --surface: #ffffff;
  --surface-alt: #eef5f0;
  --accent: #c6f135;
  --accent-ink: #11231b;
  --error: #c0392b;
  --success: #1e8e5a;
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  font-family: var(--font-body);
}

.theme-kinetic {
  /* --- Modular type scale (ratio ~1.30, condensed display) --- */
  --step--1: 0.78rem;
  --step-0: 1rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 3.5vw, 2.95rem);
  --step-4: clamp(2.6rem, 5vw, 3.85rem);
  --step-5: clamp(3.4rem, 8vw, 6.25rem);

  /* --- Athletic vertical rhythm (denser + bigger jumps than base) --- */
  --rhythm: clamp(2.5rem, 5vw, 4rem);
  --tick-w: 2.75rem;
  --tick-h: 5px;

  /* --- One snappy motion curve, distinct from base's soft ease --- */
  --ease-pulse: cubic-bezier(0.2, 0.9, 0.2, 1);
  --speed: 0.18s;

  /* --- The forward-lean: trailing edge sliced off, leaning right --- */
  --lean: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%);

  /* Label voice — small, tracked, condensed caps. Used everywhere a label belongs. */
  & .hero-content .hero-eyebrow,
  & .product-brand,
  & .pdp-info .pdp-brand,
  & .breadcrumb ol,
  & .filter-group h3,
  & .catalog-toolbar .result-count,
  & .pdp-trust,
  & footer nav h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  /* Tighten section padding for urgency (denser than base --gap-lg) */
  & main > section {
    padding-block: var(--rhythm);
  }

  /* ========== START-LINE: shared section-head treatment ========== */
  & .section-head {
    margin-block-end: 0.85rem;
    align-items: end;
    gap: 1.25rem;

    & h2 {
      font-family: var(--font-display);
      font-size: var(--step-3);
      font-weight: 700;
      line-height: 0.92;
      letter-spacing: -0.03em;
      text-transform: uppercase;
      display: flex;
      flex-direction: column;
      gap: 0.55rem;

      /* the start-line tick — the motif that opens every block */
      &::before {
        content: "";
        width: var(--tick-w);
        height: var(--tick-h);
        background: var(--primary);
        clip-path: var(--lean);
      }
    }

    & p {
      font-family: var(--font-body);
      text-transform: none;
      letter-spacing: 0;
      color: var(--text-muted);
      font-size: var(--step--1);
      max-width: 60ch;
    }

    & .section-link {
      font-family: var(--font-display);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: 600;
      font-size: var(--step--1);
      transition: color var(--speed) var(--ease-pulse),
                  transform var(--speed) var(--ease-pulse);

      &:hover { color: var(--primary); transform: translateX(3px); }
    }
  }

  /* ========== HERO: towering compressed display ========== */
  & .hero-content {
    & .hero-eyebrow {
      color: var(--primary);
      font-size: var(--step--1);
      margin-block-end: 0.85rem;
    }

    & h1 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: var(--step-5);
      letter-spacing: -0.035em;
      text-transform: uppercase;
      line-height: 0.86;
      margin-block-end: 1.25rem;
    }

    & .hero-sub {
      font-family: var(--font-body);
      text-transform: none;
      letter-spacing: 0;
      font-size: var(--step-0);
      font-weight: 400;
      color: var(--text-muted);
      line-height: 1.65;
      max-width: 46ch;
      margin-block-end: 1.75rem;
    }
  }

  /* Banner / minimal / edge hero headings inherit the compressed voice */
  & .hero.hero-banner .hero-banner-text h1,
  & .hero.hero-minimal h1,
  & .hero.hero-edge .hero-center h1,
  & .hero.hero-fullwidth .hero-content h1,
  & .hero.hero-split .hero-text-col h1 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.9;
  }

  /* ========== PRIMARY ACTIONS: the forward-lean ========== */
  & .hero-actions a,
  & .pdp-add-btn,
  & .product-card .card-action,
  & .empty-state a,
  & .empty-state button {
    border-radius: 0;
    clip-path: var(--lean);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: transform var(--speed) var(--ease-pulse),
                background var(--speed) var(--ease-pulse),
                opacity var(--speed) var(--ease-pulse);

    &:hover {
      transform: translateY(-2px);
      box-shadow: none;
    }
  }

  & .hero-actions a {
    padding: 0.9em 2.75em;
    font-size: var(--step--1);

    &.secondary {
      clip-path: var(--lean);
      border-radius: 0;
    }
  }

  /* Action colours: emerald primary that snaps to electric-lime on intent. */
  & .product-card .card-action,
  & .pdp-add-btn {
    background: var(--primary);
    color: var(--surface);
    border: none;
  }
  & .product-card:hover .card-action,
  & .pdp-add-btn:hover {
    background: var(--accent);
    color: var(--accent-ink);
  }
  & .hero-actions a:not(.secondary) {
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
  }
  & .hero-actions a.secondary {
    background: transparent;
    color: var(--surface);
    border: 2px solid color-mix(in oklab, var(--surface) 55%, transparent);
  }
  & .hero-actions a.secondary:hover {
    border-color: var(--surface);
    background: color-mix(in oklab, var(--surface) 10%, transparent);
  }

  /* ========== CATEGORIES: branded tiles — image-led, bold typographic fallback ========== */
  & .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 10px;
  }

  & .category-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 168px;
    padding: 1.25rem 1.3rem;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    background: linear-gradient(157deg, var(--primary) 0%, var(--primary-hover) 68%, #06301f 100%);
    color: var(--surface);
    transition: transform var(--speed) var(--ease-pulse);

    /* image layer: transparent by default so the emerald shows; a cover image
       (set inline by the template when present) overlays it behind a scrim */
    & .category-image {
      position: absolute;
      inset: 0;
      z-index: 0;
      width: auto;
      height: auto;
      margin: 0;
      background-color: transparent;
      background-size: cover;
      background-position: center;
      border-radius: 0;
    }
    & .category-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
    /* legibility scrim only when an actual image is present */
    & .category-image[style*="background-image"]::after,
    & .category-image:has(img)::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(6, 40, 26, 0.05) 0%, rgba(6, 40, 26, 0.82) 100%);
    }

    /* the oversized watermark initial — typographic identity, image or not */
    & .category-initial {
      position: absolute;
      right: -0.05em;
      bottom: -0.24em;
      inset-block-start: auto;
      inset-inline-start: auto;
      z-index: 1;
      width: auto;
      height: auto;
      background: none;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 8.5rem;
      line-height: 0.78;
      color: color-mix(in oklab, var(--accent) 24%, transparent);
      pointer-events: none;
    }

    /* lime energy wipe on hover */
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: color-mix(in oklab, var(--accent) 14%, transparent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.26s var(--ease-pulse);
      pointer-events: none;
    }

    & h3 {
      position: relative;
      z-index: 2;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: var(--step-2);
      line-height: 0.94;
      letter-spacing: 0.01em;
      text-transform: uppercase;
      color: var(--surface);
      margin: 0;
    }

    & p {
      position: relative;
      z-index: 2;
      font-family: var(--font-body);
      text-transform: none;
      letter-spacing: 0;
      font-size: var(--step--1);
      color: color-mix(in oklab, var(--surface) 78%, transparent);
      margin: 0;
    }

    /* the browse chip (template-provided, translatable) — lime, sliced */
    & .category-cta {
      position: relative;
      z-index: 2;
      align-self: flex-start;
      margin-block-start: 0.15rem;
      font-family: var(--font-display);
      font-weight: 600;
      font-size: var(--step--1);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent-ink);
      background: var(--accent);
      padding: 0.34em 0.9em;
      clip-path: var(--lean);
    }

    &:hover {
      transform: translateY(-4px);
      &::before { transform: scaleX(1); }
    }
  }

  /* ========== PRODUCT CARDS: scoreboard prices, human titles ========== */
  & .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  & .catalog .product-grid {
    gap: clamp(0.65rem, 1.5vw, 1rem);
  }

  & .product-card {
    border-radius: 0;

    & .product-image { border-radius: 0; }

    /* sliced sale badge — same lean as the buttons */
    & .sale-badge {
      border-radius: 0;
      clip-path: var(--lean);
      font-family: var(--font-display);
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      font-style: italic;
    }

    /* titles in body type, normal case — the deliberate contrast */
    & h3 {
      font-family: var(--font-body);
      font-weight: 600;
      font-size: var(--step-0);
      text-transform: none;
      letter-spacing: 0;
      line-height: 1.3;
    }

    /* the stat: oversized condensed tabular price */
    & .product-price {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: var(--step-2);
      line-height: 1;
      letter-spacing: -0.02em;
      font-variant-numeric: tabular-nums;

      & del {
        font-size: var(--step-0);
        font-weight: 600;
        color: var(--text-muted);
      }

      & ins {
        color: var(--accent);
      }
    }

    & .card-action {
      font-size: var(--step--1);
    }

    &:hover .card-action { transform: translateX(2px); }
  }

  /* ========== NEWSLETTER: red ad-board with a sliced corner ========== */
  & .newsletter {
    border-radius: 0;
    background: var(--primary);
    color: var(--surface);
    position: relative;
    overflow: hidden;

    /* sliced corner echoing the lean, on the panel itself */
    &::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      width: clamp(60px, 10vw, 120px);
      height: clamp(60px, 10vw, 120px);
      background: color-mix(in oklab, var(--text) 70%, var(--primary));
      clip-path: polygon(100% 0, 100% 100%, 0 0);
    }

    & .newsletter-inner h2 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: var(--step-3);
      line-height: 0.95;
      letter-spacing: -0.03em;
      text-transform: uppercase;
      color: var(--surface);
    }

    & p {
      color: color-mix(in oklab, var(--surface) 85%, transparent);
      font-size: var(--step-0);
      font-weight: 400;
    }

    & form {
      background: color-mix(in oklab, var(--text) 18%, var(--primary));
      border-radius: 0;
      clip-path: var(--lean);
    }

    & input[type="email"] {
      border-radius: 0;
      color: var(--surface);

      &::placeholder { color: color-mix(in oklab, var(--surface) 60%, transparent); }
    }

    & button {
      border-radius: 0;
      background: var(--surface);
      color: var(--text);
      font-family: var(--font-display);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      transition: transform var(--speed) var(--ease-pulse);

      &:hover { background: var(--surface); transform: translateY(-1px); }
    }
  }

  /* ========== PDP ========== */
  & .pdp { gap: clamp(1.75rem, 3vw, 3rem); }

  & .pdp-gallery .pdp-hero { border-radius: 0; }

  /* active thumbnail wears the motif: a sliced primary tick, not a border */
  & .pdp-gallery nav button {
    border-radius: 0;
    position: relative;

    &[aria-pressed="true"]::after {
      content: "";
      position: absolute;
      inset-inline: 0;
      inset-block-end: 0;
      height: var(--tick-h);
      background: var(--primary);
      clip-path: var(--lean);
    }
  }

  & .pdp-info {
    & .pdp-brand {
      color: var(--primary);
      font-size: var(--step--1);
    }

    & h1 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: var(--step-4);
      text-transform: uppercase;
      letter-spacing: -0.03em;
      line-height: 0.92;
    }

    & .pdp-subtitle {
      font-family: var(--font-body);
      text-transform: none;
      color: var(--text-muted);
    }

    /* the headline stat */
    & .pdp-price {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: var(--step-3);
      line-height: 1;
      letter-spacing: -0.02em;
      font-variant-numeric: tabular-nums;
    }

    & .pdp-description {
      font-family: var(--font-body);
      text-transform: none;
      letter-spacing: 0;
      font-size: var(--step-0);
      line-height: 1.7;
      max-width: 68ch;
      color: var(--text-muted);
    }
  }

  & .pdp-add-btn {
    font-size: var(--step-0);
    padding: 1rem 2rem;
  }

  & .pdp-actions .quantity-selector { border-radius: 0; }

  & .pdp-variants .pdp-variant-btn {
    border-radius: 0;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--step--1);
    transition: transform var(--speed) var(--ease-pulse),
                border-color var(--speed) var(--ease-pulse);

    &:hover { transform: translateY(-1px); }
  }

  & .pdp-tabs .pdp-tab-nav button {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: var(--step--1);
    border-radius: 0;
  }

  & .pdp-trust { font-size: var(--step--1); }

  /* second energy tone (--accent) on selected size/colour, sale ins */
  & .size-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--surface);
  }

  & .color-swatch.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent);
  }

  /* ========== CATALOG TOOLBAR + FILTERS ========== */
  & .catalog { gap: 1rem; }

  & .catalog-toolbar {
    padding-block-end: 0.75rem;

    & .result-count { font-size: var(--step--1); }

    & .filter-toggle {
      border-radius: 0;
      clip-path: var(--lean);
      font-family: var(--font-display);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: var(--step--1);
    }

    & .sort-select select { border-radius: 0; }
  }

  & .filter-group h3 { font-size: var(--step--1); letter-spacing: 0.1em; }

  /* sliced active-filter pills — the motif again */
  & .active-filters .active-filter-pill {
    border-radius: 0;
    clip-path: var(--lean);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--step--1);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* ========== RELATED: dark sponsor band with a primary start-line ========== */
  & .related-section {
    background: var(--text);
    color: var(--surface);
    border-radius: 0;
    border-block-start: var(--tick-h) solid var(--primary);
    padding: clamp(2.25rem, 4vw, 3.25rem);
    margin-block-start: var(--rhythm);

    & .section-head h2 {
      color: var(--surface);

      &::before { background: var(--primary); }
    }

    & .product-card h3 a { color: var(--surface); }
    & .product-card .product-price { color: var(--surface); }
  }

  /* ========== CATEGORY HERO + CMS ========== */
  & .category-hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--step-3);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.95;
  }

  & .cms-page > h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--step-3);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.95;
  }

  /* ========== FOOTER: dark bar, token-derived light (no #fff) ==========
     Scope to the PAGE footer (it carries data-theme); a bare `footer` selector
     also hits nested <footer> elements like a testimonial card's author block,
     painting them dark-on-dark. */
  & footer[data-theme] {
    background: var(--text);
    color: var(--surface);
    border-block-start: var(--tick-h) solid var(--primary);

    & nav h3 {
      font-size: var(--step--1);
      letter-spacing: 0.14em;
      color: var(--surface);
    }

    & a {
      color: color-mix(in oklab, var(--surface) 72%, transparent);
      transition: color var(--speed) var(--ease-pulse),
                  transform var(--speed) var(--ease-pulse);

      &:hover { color: var(--surface); transform: translateX(2px); }
    }
  }

  & .footer-brand .logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: var(--step-1);
  }

  /* ========== BREADCRUMB ========== */
  & .breadcrumb ol { font-size: var(--step--1); letter-spacing: 0.1em; }

  /* Respect reduced-motion: kill the transforms, keep the wipe instant */
  @media (prefers-reduced-motion: reduce) {
    & .category-card:hover { transform: none; }
    & .category-card::before { transition: none; }
    & .hero-actions a:hover,
    & .pdp-add-btn:hover,
    & .product-card:hover .card-action,
    & .section-head .section-link:hover,
    & footer a:hover { transform: none; }
  }
}

/* The footer is a dark --text band; the payment-methods heading inherits the
   base `.footer-payment h3 { color: var(--text) }` (dark) and vanishes on it.
   Match it to the footer's light text. */
body.theme-kinetic footer .footer-payment h3 { color: var(--surface); }

/* "Powered by Kauply" — base styles it text-muted @ 0.5 opacity, invisible on the
   dark kinetic footer; make it a clear, legible attribution that lifts to lime. */
body.theme-kinetic footer[data-theme] .powered-by {
  color: color-mix(in oklab, var(--surface) 55%, transparent);
  opacity: 1;
}
body.theme-kinetic footer[data-theme] .powered-by:hover { color: var(--accent); }

/* 2028 card depth: a smooth lift + soft emerald shadow on hover (transform/opacity only). */
body.theme-kinetic .product-card {
  transition: transform 0.22s var(--ease-pulse), box-shadow 0.22s var(--ease-pulse);
}
/* Equal card layout regardless of the optional brand eyebrow: flex column with the
   price + add-to-cart pinned to the bottom, so titles + prices + CTAs line up across
   the row even when some products have no brand assigned. */
body.theme-kinetic .product-card {
  display: flex;
  flex-direction: column;
}
body.theme-kinetic .product-card .product-info {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
body.theme-kinetic .product-card .product-info .product-price { margin-block-start: auto; }
body.theme-kinetic .product-grid .product-card:hover,
body.theme-kinetic .product-carousel .product-card:hover,
body.theme-kinetic .related-section .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px -16px rgba(6, 40, 26, 0.28);
}

/* ============================================================
   Kinetic additions — hero field, conversion + trust sections, nav,
   mobile. One intentional layer; the old contradictory "fix pass"
   overrides (system-ui, pills, rounded tiles) are gone — the identity
   block at the top + the Pulse system above now stand on their own.
   ============================================================ */

/* ---------- HERO: cinematic emerald field — drifting mesh, film grain, lime energy ---------- */
body.theme-kinetic .hero.hero-fullwidth,
body.theme-kinetic .hero.hero-banner,
body.theme-kinetic .hero.hero-split,
body.theme-kinetic .hero.hero-carousel,
body.theme-kinetic .hero.hero-edge {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #0e7a4f 0%, #0a5f3d 55%, #073e29 100%);
  background-blend-mode: soft-light, normal;
  color: var(--surface);
  position: relative;
  overflow: hidden;
}
/* drifting radial mesh — the field reads alive, not static */
body.theme-kinetic .hero::after {
  content: "";
  position: absolute;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(38% 48% at 80% 16%, rgba(198, 241, 53, 0.24), transparent 60%),
    radial-gradient(46% 56% at 14% 94%, rgba(30, 190, 120, 0.5), transparent 62%),
    radial-gradient(62% 62% at 52% 122%, rgba(5, 28, 18, 0.5), transparent 70%);
  animation: kinetic-drift 19s ease-in-out infinite alternate;
}
@keyframes kinetic-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1.04); }
  to { transform: translate3d(3%, 2%, 0) scale(1.12); }
}
/* twin diagonal lime light-streaks (the second via box-shadow) */
body.theme-kinetic .hero::before {
  content: "";
  position: absolute;
  inset-block: -30%;
  right: 9%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  box-shadow: 14vw 0 0 0 color-mix(in oklab, var(--accent) 32%, transparent);
  transform: rotate(18deg);
  opacity: 0.5;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  body.theme-kinetic .hero::after { animation: none; }
}
body.theme-kinetic .hero .hero-content { position: relative; z-index: 4; }
body.theme-kinetic .hero .hero-content h1 { color: var(--surface); }
body.theme-kinetic .hero .hero-eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.16em; }
body.theme-kinetic .hero .hero-sub { color: color-mix(in oklab, var(--surface) 88%, transparent); }
body.theme-kinetic .hero .hero-figure { position: relative; z-index: 3; }
/* offer / urgency badge (hero building-block) — lime, sliced */
body.theme-kinetic .hero .hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--step--1);
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.35em 0.9em;
  clip-path: var(--lean);
  margin-block-end: 1rem;
}

/* ---------- HERO CAROUSEL: product-led, auto-advancing deck ----------
   Replaces leanbody.is's flat Canva banner slideshow. Each slide pairs editorial
   copy with a real product cut-out on the cinematic emerald field. The track slides
   via a Datastar-bound transform; slides are full-width flex items clipped by the
   section's overflow:hidden. */
body.theme-kinetic .hero.hero-carousel {
  padding: 0;
  min-height: 80svh;
  display: grid;
  /* minmax(0,1fr) pins the single column to the section's own width; a plain
     `auto` column would size to the track's max-content (the un-wrapping flex
     slides) and shove the figure column off-screen. */
  grid-template-columns: minmax(0, 1fr);
}
body.theme-kinetic .hero-carousel-track {
  position: relative;
  z-index: 4;
  display: flex;
  inline-size: 100%;
  min-inline-size: 0;
  transition: transform 0.8s cubic-bezier(0.16, 0.84, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  body.theme-kinetic .hero-carousel-track { transition: none; }
}
body.theme-kinetic .hero-slide {
  flex: 0 0 100%;
  min-inline-size: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 7vw, 6rem);
  box-sizing: border-box;
}
body.theme-kinetic .hero-slide-copy {
  position: relative;
  z-index: 4;
  max-inline-size: 40ch;
}
body.theme-kinetic .hero-slide-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5.6vw, 5.1rem);
  color: var(--surface);
  margin: 0 0 1rem;
}
body.theme-kinetic .hero-slide-copy .hero-eyebrow { margin-block-end: 0.6rem; }
body.theme-kinetic .hero-slide-copy .hero-sub { margin-block-end: 1.6rem; max-inline-size: 36ch; }
body.theme-kinetic .hero-slide-figure {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  align-self: stretch;
}
body.theme-kinetic .hero-slide-figure img {
  max-block-size: 62svh;
  max-inline-size: 100%;
  inline-size: auto;
  object-fit: contain;
  /* Most supplement shots ship on a solid (often black) background; a soft radius
     reads as a deliberate product card rather than a raw photo. Invisible on
     transparent cut-outs. drop-shadow follows the rounded silhouette. */
  border-radius: 16px;
  filter: drop-shadow(0 32px 52px rgba(3, 28, 18, 0.55));
}
body.theme-kinetic .hero-dots {
  position: absolute;
  z-index: 6;
  inset-block-end: clamp(1.1rem, 3vh, 2rem);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
}
body.theme-kinetic .hero-dot {
  inline-size: 26px;
  block-size: 5px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: color-mix(in oklab, var(--surface) 35%, transparent);
  cursor: pointer;
  transition: background 0.3s, inline-size 0.3s;
}
body.theme-kinetic .hero-dot.active { background: var(--accent); inline-size: 42px; }
@media (max-width: 720px) {
  body.theme-kinetic .hero.hero-carousel { min-height: auto; }
  body.theme-kinetic .hero-slide {
    grid-template-columns: 1fr;
    padding-block: clamp(2rem, 8vw, 3rem);
    gap: 1.2rem;
  }
  body.theme-kinetic .hero-slide-figure { order: -1; }
  body.theme-kinetic .hero-slide-figure img { max-block-size: 34svh; }
  body.theme-kinetic .hero-slide-copy { max-inline-size: none; }
  /* Content-sized CTA on mobile. The base mobile rule stretches hero CTAs to
     width:100% with padding-block:1em — on the sliced kinetic button that reads
     as an oversized lime slab and the angled clip looks wrong full-bleed. Size it
     to its label (left-aligned to match the copy) while keeping a ~44px tap target. */
  body.theme-kinetic .hero-carousel .hero-actions { align-items: flex-start; }
  body.theme-kinetic .hero-carousel .hero-actions a { width: auto; padding-block: 0.85em; }
}

/* ---------- CATEGORY TILES: outrank the base's per-header-theme overrides ----------
   The base scopes category-card backgrounds by header style
   (`header[data-theme="mega"] ~ main .category-card`, specificity 0,2,2); the kinetic
   preset uses header-mega, so the nested `.theme-kinetic .category-card` (0,2,0) loses.
   These `.category-grid .category-card` rules (0,3,1) win cleanly — no !important. */
body.theme-kinetic .category-grid .category-card {
  background: linear-gradient(157deg, var(--primary) 0%, var(--primary-hover) 68%, #06301f 100%);
  color: var(--surface);
  border: none;
}
body.theme-kinetic .category-grid .category-card h3 { color: var(--surface); }
body.theme-kinetic .category-grid .category-card .category-image { background-color: transparent; }

/* Section heads: the base header-mega layer flattens these to the body font at a
   small size; re-assert the towering condensed display (the tick is ours already). */
body.theme-kinetic main .section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* ---------- ANNOUNCEMENT BAR: thin dark strip, lime keyword ---------- */
body.theme-kinetic .announcement-bar {
  background: var(--text);
  color: var(--surface);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--step--1);
  text-align: center;
  padding: 0.6rem 1rem;
}
body.theme-kinetic .announcement-bar strong,
body.theme-kinetic .announcement-bar mark { color: var(--accent); background: none; }

/* ---------- TRUST BAND: clean centered value-props, emerald line icons ---------- */
body.theme-kinetic .trust-badges-section {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}
body.theme-kinetic .trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
/* the badge has 3 children (icon, h3, p) — stack + centre them, never a 2-col grid
   (which dropped the subtitle into column 1 under the icon). */
body.theme-kinetic .trust-badges .trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}
body.theme-kinetic .trust-badges .trust-badge svg {
  width: 2.1rem;
  height: 2.1rem;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.theme-kinetic .trust-badges .trust-badge h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.05;
  margin: 0;
}
body.theme-kinetic .trust-badges .trust-badge p {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: var(--step--1);
  line-height: 1.35;
  margin: 0;
}

/* ---------- PRODUCT CAROUSEL / RAILS ---------- */
body.theme-kinetic .product-carousel .carousel-track { gap: clamp(0.75rem, 1.5vw, 1rem); }

/* ---------- PROMO BANNER: emerald slab, lime CTA ---------- */
body.theme-kinetic .promo-banner {
  background: linear-gradient(135deg, #0e7a4f, #0a5f3d);
  color: var(--surface);
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
body.theme-kinetic .promo-banner .promo-content h2,
body.theme-kinetic .promo-banner .promo-content h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--surface);
}
body.theme-kinetic .promo-banner a,
body.theme-kinetic .promo-banner .button {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 0;
  clip-path: var(--lean);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- TESTIMONIALS / RESULTS: premium social proof ---------- */
body.theme-kinetic .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
body.theme-kinetic .testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2rem 1.75rem 1.6rem;
  border-block-start: var(--tick-h) solid var(--primary);
  transition: transform var(--speed) var(--ease-pulse), box-shadow var(--speed) var(--ease-pulse);
}
body.theme-kinetic .testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(6, 40, 26, 0.08);
}
/* oversized lime quote mark */
body.theme-kinetic .testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  right: 1.1rem;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: color-mix(in oklab, var(--accent) 55%, transparent);
  pointer-events: none;
}
body.theme-kinetic .testimonial-stars { display: flex; gap: 3px; color: var(--accent); }
body.theme-kinetic .testimonial-stars svg { width: 18px; height: 18px; }
body.theme-kinetic .testimonial-quote {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.45;
  font-style: normal;
  color: var(--text);
  margin: 0;
}
body.theme-kinetic .testimonial-card .testimonial-author {
  /* nested <footer> — reset the base footer{} chrome it would inherit */
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: none;
  border-block-start: 0;
  margin: 0;
  padding: 0.5rem 0 0;
}
body.theme-kinetic .testimonial-avatar {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--primary), var(--primary-hover));
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
}
body.theme-kinetic .testimonial-id { display: flex; flex-direction: column; gap: 1px; }
body.theme-kinetic .testimonial-id strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--text);
}
body.theme-kinetic .testimonial-role {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  color: var(--text-muted);
}
body.theme-kinetic .testimonial-verified { color: var(--success); flex: none; }

/* ---------- BEFORE / AFTER (results) ---------- */
body.theme-kinetic .before-after { border-radius: 0; overflow: hidden; }
body.theme-kinetic .before-after-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--text);
  color: var(--surface);
  border-radius: 0;
}
body.theme-kinetic .before-after-label.after-label { background: var(--primary); }

/* ---------- BRAND STRIP ---------- */
body.theme-kinetic .brands { background: var(--bg-subtle); }
body.theme-kinetic .brand-track {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
body.theme-kinetic .brand-track > * {
  color: var(--text-muted);
  transition: color var(--speed) var(--ease-pulse);
}
body.theme-kinetic .brand-track > *:hover { color: var(--primary); }

/* ---------- STORE LOCALITY (map) ---------- */
body.theme-kinetic .map-section .map-address {
  border-block-start: var(--tick-h) solid var(--primary);
  background: var(--surface);
}
body.theme-kinetic .map-section .map-address h2,
body.theme-kinetic .map-section .map-address h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* ---------- NEWSLETTER: visible white input + lime submit ---------- */
body.theme-kinetic .newsletter input[type="email"] {
  background: var(--surface);
  color: var(--text);
  border: none;
  border-radius: 0;
  padding: 0.9em 1.15em;
  min-width: 240px;
  flex: 1 1 240px;
}
body.theme-kinetic .newsletter input[type="email"]::placeholder { color: var(--text-muted); }
body.theme-kinetic .newsletter button { background: var(--accent); color: var(--accent-ink); }

/* ---------- HEADER + MEGA-MENU (header-mega; click-to-open via Datastar) ---------- */
body.theme-kinetic header nav,
body.theme-kinetic header ul { font-size: 0.78rem; letter-spacing: 0.01em; }
body.theme-kinetic header nav > ul { align-items: center; }
body.theme-kinetic header nav > ul > li > a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
body.theme-kinetic .mega-nav .has-mega { position: relative; }
body.theme-kinetic .mega-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 2px 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  border-block-start: var(--tick-h) solid var(--primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  padding: 1rem 1.25rem;
  min-width: 420px;
  z-index: 60;
}
body.theme-kinetic .mega-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
body.theme-kinetic .mega-panel > a { padding: 0.5rem 0.25rem; color: var(--text); }
body.theme-kinetic .mega-panel > a:hover {
  background: color-mix(in oklab, var(--primary) 8%, var(--surface));
  color: var(--primary);
}
body.theme-kinetic .mega-nav .has-mega > a[aria-haspopup]::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.6;
}

/* ---------- MOBILE ERGONOMICS ---------- */
@media (max-width: 640px) {
  body.theme-kinetic .hero.hero-fullwidth { min-height: 68svh; }
  body.theme-kinetic .hero .hero-content h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); }
  body.theme-kinetic .hero-actions { display: flex; flex-direction: column; gap: 0.6rem; }
  body.theme-kinetic .hero-actions a { width: 100%; text-align: center; padding-block: 1em; }
  body.theme-kinetic .category-grid { grid-template-columns: repeat(2, 1fr); }
  body.theme-kinetic .mega-panel { min-width: auto; grid-template-columns: 1fr; }
}
