/* ============ DESIGN TOKENS ============ */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1280px;

  /* Measured at runtime by app.js; fallbacks for first paint */
  --site-chrome-h: 5.75rem;
  --site-header-h: 5.75rem;
  --site-announce-h: 0px;
  --site-header-gap: 1.5rem;

  --font-display: "Luckiest Guy", "Clash Display", sans-serif;
  --font-head: "Clash Display", "Poppins", sans-serif;
  --font-body: "General Sans", "Helvetica Neue", sans-serif;
}

/* LIGHT (default) — Friolin tropical palette (yellow/green/red/blue + cream) */
:root,
[data-theme="light"] {
  --color-bg: #fffaf0;
  --color-surface: #ffffff;
  --color-surface-2: #fffdf7;
  --color-surface-offset: #fff3d6;
  --color-cream: #fff0c9;
  --color-text: #1b3a5b; /* deep friendly navy (from Helados outline) */
  --color-text-muted: #5d7185;
  --color-text-faint: #a9b6c2;
  --color-text-inverse: #ffffff;
  --color-border: #ffe08a;
  --color-divider: #ffeab0;

  /* Brand colors pulled straight from the logo */
  --color-yellow: #ffd60a;
  --color-yellow-deep: #f5b800;
  --color-green: #06a13f;
  --color-green-hover: #048234;
  --color-red: #e30613;
  --color-red-hover: #c40510;
  --color-blue: #1e8fd5;
  --color-blue-deep: #1b3a5b;
  --color-sky: #bfe8ff;

  /* roles */
  --color-primary: #e30613; /* red = main CTA (paleta/cap/tagline) */
  --color-primary-hover: #c40510;
  --color-primary-active: #a30410;
  --color-accent: #06a13f; /* green */
  --color-accent2: #1e8fd5; /* blue */
  --color-sand: #f7e3b0;

  --shadow-sm: 0 2px 6px rgba(27, 58, 91, 0.1);
  --shadow-md: 0 10px 26px rgba(27, 58, 91, 0.14);
  --shadow-lg: 0 26px 60px rgba(27, 58, 91, 0.2);
  --shadow-brand: 0 14px 30px rgba(227, 6, 19, 0.3);
  --shadow-pop: 0 6px 0 rgba(27, 58, 91, 0.18);
}

[data-theme="dark"] {
  --color-bg: #0f2236;
  --color-surface: #15314c;
  --color-surface-2: #1a3a59;
  --color-surface-offset: #13304a;
  --color-cream: #1d3e5e;
  --color-text: #fdf6e3;
  --color-text-muted: #a9c0d4;
  --color-text-faint: #5d7a94;
  --color-text-inverse: #0f2236;
  --color-border: #2a557d;
  --color-divider: #1d4063;
  --color-yellow: #ffd60a;
  --color-yellow-deep: #ffe35c;
  --color-green: #2fc465;
  --color-green-hover: #52d281;
  --color-red: #ff5a52;
  --color-red-hover: #ff7a73;
  --color-blue: #5fb8f0;
  --color-blue-deep: #bfe8ff;
  --color-sky: #1a3a59;
  --color-primary: #ff5a52;
  --color-primary-hover: #ff7a73;
  --color-primary-active: #ff9a94;
  --color-accent: #2fc465;
  --color-accent2: #5fb8f0;
  --color-sand: #1d3e5e;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, 0.6);
  --shadow-brand: 0 14px 30px rgba(255, 90, 82, 0.35);
  --shadow-pop: 0 6px 0 rgba(0, 0, 0, 0.35);
}

/* ============ BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(
    var(--site-chrome-h, var(--site-header-h)) + var(--site-header-gap)
  );
}
body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}
img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role="list"] {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.05;
  font-family: var(--font-head);
  font-weight: 600;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}
p {
  text-wrap: pretty;
  max-width: 60ch;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: rgba(236, 97, 18, 0.22);
  color: var(--color-text);
}
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
a,
button,
input,
textarea,
select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Never leave infinite loops at 0.01ms — that causes flicker / hyper-speed */
  .hero-float-a,
  .hero-float-b,
  .marquee-track,
  .scroll-cue .line,
  .announce-dot,
  .pviz-cell.on {
    animation: none !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  transform: translateY(-200%);
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.skip-link:focus-visible {
  transform: translateY(0);
}

.wrap {
  width: min(100% - 2.5rem, var(--content-wide));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(100% - 2.5rem, var(--content-default));
  margin-inline: auto;
}
section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-green);
  background: color-mix(in oklab, var(--color-green) 14%, transparent);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}
.eyebrow.y {
  color: var(--color-yellow-deep);
  background: color-mix(in oklab, var(--color-yellow) 22%, transparent);
}
.eyebrow.b {
  color: var(--color-blue);
  background: color-mix(in oklab, var(--color-blue) 14%, transparent);
}
.eyebrow.r {
  color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============ SITE CHROME (announce + header stack) ============ */
.site-chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
}

/* ============ ANNOUNCEMENT BAR ============ */
.announce {
  flex: none;
  width: 100%;
  min-height: 2.5rem;
  background: var(--color-blue-deep);
  color: #fff;
  display: flex;
  align-items: center;
}
.announce[hidden] {
  display: none;
}
[data-theme="dark"] .announce {
  background: #0a1929;
  border-bottom: 1px solid var(--color-border);
}
.announce-inner {
  width: min(100% - 2.5rem, var(--content-wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.announce-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-yellow);
}
@media (prefers-reduced-motion: no-preference) {
  .announce-dot {
    animation: announce-pulse 2.2s ease-in-out infinite;
  }
}
@keyframes announce-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0
      color-mix(in oklab, var(--color-yellow) 55%, transparent);
  }
  50% {
    box-shadow: 0 0 0 5px transparent;
  }
}
.announce-text {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.announce-x {
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.7);
}
.announce-x:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.announce-x:focus-visible {
  outline-color: var(--color-yellow);
}

/* ============ HEADER ============ */
#hdr,
.site-chrome > header {
  position: relative;
  inset: auto;
  flex: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
}
#hdr.scrolled,
.site-chrome > header.scrolled {
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding-block: 0.65rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--color-blue-deep);
}
[data-theme="dark"] .brand {
  color: var(--color-text);
}
.brand img.logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  flex: none;
}
.brand svg {
  flex: none;
}
.brand .b-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  line-height: 1;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav a.lnk {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav a.lnk:hover {
  color: var(--color-text);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid transparent;
}
.icon-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-interactive);
}
.btn {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2.5px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-pop);
  border-color: var(--color-blue-deep);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 9px 0 rgba(27, 58, 91, 0.18);
}
[data-theme="dark"] .btn-primary {
  border-color: transparent;
}
.btn-green {
  background: var(--color-green);
  color: #fff;
  box-shadow: var(--shadow-pop);
  border-color: var(--color-blue-deep);
}
.btn-green:hover {
  background: var(--color-green-hover);
  transform: translateY(-3px);
}
.btn-ghost {
  border: 2.5px solid var(--color-blue-deep);
  color: var(--color-text);
  background: var(--color-surface);
}
[data-theme="dark"] .btn-ghost {
  border-color: var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px);
}
.btn-lg {
  padding: 1rem 1.9rem;
  font-size: var(--text-base);
}
.nav-cta {
  display: inline-flex;
}
.menu-toggle {
  display: none;
}

/* ============ MOBILE NAV PANEL ============ */
.mobile-nav[hidden] {
  display: none;
}
.mobile-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: calc(var(--site-chrome-h, 5.75rem) + 1rem)
    clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.mobile-nav a {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  padding: 0.8rem 0.5rem;
  border-radius: var(--radius-md);
}
.mobile-nav a:hover {
  background: var(--color-surface-offset);
}
.mobile-nav a.btn {
  margin-top: 0.75rem;
  justify-content: center;
  color: #fff;
}
body.mobile-nav-open {
  overflow: hidden;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(
    var(--site-chrome-h, 5.75rem) + var(--site-header-gap, 1.5rem)
  );
  padding-bottom: 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 78% 48%, #4fc3f7 0%, transparent 70%),
    linear-gradient(
      165deg,
      #bfe8ff 0%,
      var(--color-sky) 35%,
      var(--color-bg) 78%
    );
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 50% 60% at 78% 48%, #1a5a7a 0%, transparent 70%),
    linear-gradient(165deg, #0f2236 0%, #15314c 50%, var(--color-bg) 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.blob.b1 {
  width: 26rem;
  height: 26rem;
  background: var(--color-yellow);
  top: -6rem;
  right: 20%;
  opacity: 0.28;
}
.blob.b2 {
  width: 22rem;
  height: 22rem;
  background: var(--color-green);
  top: 30%;
  left: -6rem;
  opacity: 0.16;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-copy {
  max-width: 36rem;
}
.hero h1 {
  font-size: var(--text-hero);
  margin: 1.25rem 0;
  color: var(--color-blue-deep);
}
.hero h1 .em {
  color: var(--color-primary);
  display: block;
}
.hero h1 .yel {
  color: var(--color-yellow-deep);
  -webkit-text-stroke: 2px var(--color-blue-deep);
}
[data-theme="dark"] .hero h1 {
  color: var(--color-text);
}
.hero p.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 36ch;
  margin-bottom: 2rem;
  font-weight: 500;
}
.hero-logo {
  width: clamp(96px, 12vw, 150px);
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  margin-bottom: 0.5rem;
}
[data-theme="dark"] .hero-logo {
  border-color: var(--color-surface-2);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 3rem;
  flex-wrap: wrap;
}
.stat .n {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1;
}
.stat .l {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* Hero product stage — studio cyan matching duo photo */
.hero-product {
  position: relative;
  min-height: clamp(22rem, 48vw, 34rem);
  display: grid;
  place-items: center;
}
.hero-stage {
  position: relative;
  width: min(100%, 34rem);
  aspect-ratio: 1;
  border-radius: 42% 58% 48% 52% / 52% 42% 58% 48%;
  background: #4fc3f7;
  box-shadow:
    var(--shadow-lg),
    inset 0 -20px 40px rgba(27, 58, 91, 0.08);
  overflow: hidden;
  transform: rotate(-4deg);
}
.hero-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: rotate(4deg) scale(1.08);
}
.hero-float {
  position: absolute;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #fff;
  background: var(--color-surface);
  will-change: transform;
}
.hero-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-float-a {
  width: clamp(5.5rem, 12vw, 8rem);
  aspect-ratio: 1;
  top: 6%;
  right: 2%;
  background: #ffd60a;
  animation: floaty-a 10s ease-in-out infinite;
}
.hero-float-b {
  width: clamp(4.75rem, 10vw, 7rem);
  aspect-ratio: 1;
  bottom: 8%;
  left: 0;
  background: #f4a574;
  animation: floaty-b 12s ease-in-out infinite;
}
@keyframes floaty-a {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }
  50% {
    transform: rotate(8deg) translateY(-14px);
  }
}
@keyframes floaty-b {
  0%,
  100% {
    transform: rotate(-10deg) translateY(0);
  }
  50% {
    transform: rotate(-10deg) translateY(-12px);
  }
}
[data-theme="dark"] .hero-float {
  border-color: var(--color-surface-2);
}
.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-cue .line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(var(--color-primary), transparent);
  animation: cue 2.8s ease-in-out infinite;
}
@keyframes cue {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.4;
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
    transform-origin: top;
  }
}

/* marquee — duration scales with content via --marquee-duration (set in JS) */
.marquee {
  background: var(--color-primary);
  color: #fff;
  padding: 0.85rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: scrollx var(--marquee-duration, 55s) linear infinite;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  will-change: transform;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}
.marquee-track span::after {
  content: "✧";
  color: var(--color-yellow);
}
@keyframes scrollx {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* scalloped divider */
.scallop {
  display: block;
  width: 100%;
  height: 24px;
  line-height: 0;
}
.scallop svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============ STORY ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.story-img {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-img img {
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
}
.story-img-promo img {
  object-position: center 40%;
}
.story-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.story-badge .yr {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}
.story-badge .tx {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
}
h2.title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--text-2xl);
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 1rem 0 1.25rem;
  color: var(--color-blue-deep);
}
[data-theme="dark"] h2.title {
  color: var(--color-text);
}
h2.title .pink,
h2.title .red {
  color: var(--color-primary);
}
h2.title .grn {
  color: var(--color-green);
}
.section-lede {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: 1.5rem;
}
.checklist {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--text-sm);
}
.checklist .ck {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-full);
  background: color-mix(in oklab, var(--color-green) 18%, transparent);
  color: var(--color-green);
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}

/* ============ PRODUCT LINEUP (studio photos) ============ */
.head-center {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 3.5rem;
}
.head-center .eyebrow {
  justify-content: center;
}
.head-center .eyebrow::before {
  display: none;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.product-grid-dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.product-grid-dense .product-meta p:not(.flavor-price):not(.es) {
  display: none;
}
.product-grid-dense .product-shot {
  aspect-ratio: 1;
}

.flavor-directory {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.flavor-directory-flat {
  gap: 1rem;
}
.flavor-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-divider);
}
.flavor-group-head h3 {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0;
}
.flavor-group-head span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.flavor-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.flavor-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
.flavor-row:hover {
  border-color: color-mix(
    in oklab,
    var(--swatch, var(--color-primary)) 45%,
    var(--color-border)
  );
  box-shadow: var(--shadow-sm);
}
.flavor-row.is-unavailable {
  opacity: 0.55;
}
.flavor-row-swatch {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex: none;
  background: linear-gradient(145deg, var(--studio), var(--swatch, #ec6112));
  border: 1px solid var(--color-border);
}
.flavor-row-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flavor-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
}
.flavor-row-top h3 {
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}
.flavor-row-line {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.flavor-row-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin: 0.2rem 0 0.35rem;
}
.flavor-row .flavor-price {
  margin: 0.15rem 0 0;
}
.flavor-row .tag,
.flavor-row .avail-badge {
  margin-right: 0.35rem;
}
.flavor-row-action {
  justify-self: end;
}
.flavor-row-action .flavor-add-btn {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .flavor-row {
    grid-template-columns: 3rem 1fr;
    grid-template-rows: auto auto;
  }
  .flavor-row-action {
    grid-column: 1/-1;
    justify-self: stretch;
  }
  .flavor-row-action .flavor-add-btn {
    width: 100%;
  }
  .product-grid-dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.product-shot {
  position: relative;
  aspect-ratio: 1;
  background: var(--studio, #bfe8ff);
  overflow: hidden;
}
.product-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-shot img {
  transform: scale(1.06);
}
.product-shot-promo {
  aspect-ratio: 16/11;
}
.product-shot-promo img {
  object-position: center 35%;
}
.product-card-wide {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.product-card-wide .product-shot {
  aspect-ratio: auto;
  min-height: 16rem;
}

/* Flavor catalog filters + fallback shots */
.flavor-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 auto 2rem;
  max-width: 52rem;
}
.flavor-chip {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
}
.flavor-chip:hover,
.flavor-chip.active {
  color: var(--color-text);
  border-color: var(--color-primary);
  background: color-mix(
    in oklab,
    var(--color-primary) 8%,
    var(--color-surface)
  );
}
.flavor-chip:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.product-shot-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.flavor-price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-green);
  margin: 0.35rem 0;
}
.avail-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.45rem;
}
.avail-in_stock {
  background: color-mix(in oklab, var(--color-green) 18%, transparent);
  color: var(--color-green);
}
.avail-limited,
.avail-seasonal {
  background: color-mix(in oklab, var(--color-yellow) 22%, transparent);
  color: #9a6b00;
}
.avail-out_of_stock,
.avail-discontinued {
  background: color-mix(in oklab, var(--color-text-faint) 25%, transparent);
  color: var(--color-text-muted);
}
.avail-pickup {
  background: color-mix(in oklab, var(--color-blue) 18%, transparent);
  color: var(--color-blue-deep);
}
.avail-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0.2rem 0 0.4rem;
}
.product-card.is-unavailable {
  opacity: 0.72;
}
.product-card.is-unavailable .product-shot {
  filter: grayscale(0.35);
}
.fulfillment-block {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.fulfillment-block[hidden] {
  display: none !important;
}
.fulfillment-callout {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.fulfillment-callout.local {
  border-left: 4px solid var(--color-green);
}
.fulfillment-callout.dist {
  border-left: 4px solid var(--color-blue);
}
.fulfillment-callout.freight {
  border-left: 4px solid var(--color-primary);
}
.fulfillment-callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-blue-deep);
}
.fulfillment-callout p,
.fulfillment-blurb {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}
.fulfillment-blurb + .fulfillment-blurb {
  margin-top: 0.5rem;
}
.muted {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.family-callout {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--color-green) 10%, var(--color-surface));
  border: 1px solid color-mix(in oklab, var(--color-green) 22%, transparent);
}
.family-callout p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.family-callout strong {
  color: var(--color-blue-deep);
}
.flavor-add-btn {
  margin-top: 0.65rem;
  width: 100%;
}
.flavor-search-wrap {
  max-width: 520px;
  margin: 0 auto 1rem;
}
.flavor-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-bg);
}
.flavor-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
  font: inherit;
}
.flavor-search input:focus {
  outline: none;
}
.story-es {
  margin-top: 1rem;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-green);
  line-height: 1.45;
}
.cta-form-labeled .cta-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}
.cta-form-labeled .lbl {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.cta-form-labeled .req {
  color: #ffd60a;
}
.form-guidance {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.form-guidance a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.product-meta {
  position: relative;
  padding: 1.35rem 1.4rem 1.5rem;
}
.product-meta .line-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.55rem;
}
.product-meta h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--text-xl);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--color-blue-deep);
  margin-bottom: 0.25rem;
}
[data-theme="dark"] .product-meta h3 {
  color: var(--color-text);
}
.product-meta .es {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.product-meta p:last-child {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.product-meta .tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.55rem;
}

/* ============ PALLET BUILDER ============ */
.builder {
  background: var(--color-surface-offset);
}
.builder-shell {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.builder-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.builder-browse-toggle {
  align-self: flex-start;
  font-weight: 700;
}
.builder-catalog-head {
  margin-bottom: 0.85rem;
}
.builder-meta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.45;
}
.builder-meta-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0.35rem 0 0;
  line-height: 1.4;
}
.builder-browse {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1rem 1rem 1.25rem;
}
.builder-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.builder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}
.builder-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.builder-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.builder-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.builder-tab-n {
  font-size: 0.65rem;
  opacity: 0.75;
  font-weight: 600;
}
.builder-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 12rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-2);
}
.builder-search svg {
  color: var(--color-text-muted);
  flex: none;
}
.builder-search input {
  border: 0;
  background: transparent;
  width: 100%;
  font-size: var(--text-sm);
  color: var(--color-text);
  outline: none;
}
.builder-empty,
.flavor-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
/* --- builder product cards --- */
.builder-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.bprod {
  position: relative;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
  min-width: 0;
}
.bprod:hover {
  border-color: color-mix(
    in oklab,
    var(--pcolor, var(--color-primary)) 55%,
    var(--color-border)
  );
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.bprod.has-qty {
  border-color: color-mix(
    in oklab,
    var(--pcolor, var(--color-primary)) 70%,
    var(--color-border)
  );
  box-shadow: 0 0 0 2px
    color-mix(in oklab, var(--pcolor, var(--color-primary)) 22%, transparent);
}
.bprod-flash {
  animation: bprod-flash 1.2s ease;
}
@keyframes bprod-flash {
  0%,
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
  25% {
    box-shadow: 0 0 0 4px
      color-mix(in oklab, var(--pcolor, var(--color-primary)) 35%, transparent);
  }
}
.bprod.is-unavailable {
  opacity: 0.65;
}
.bprod.is-unavailable .bp-controls {
  display: none;
}
.bprod .avail-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
}
.bp-badge {
  position: absolute;
  top: -0.55rem;
  right: 0.75rem;
  z-index: 2;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.02em;
}
.bp-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}
.bprod .thumb {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--studio, #bfe8ff);
  flex: none;
  border: 1.5px solid var(--color-border);
  display: grid;
  place-items: center;
}
.bprod .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.bprod .thumb-fallback {
  border-radius: var(--radius-md);
}
.bprod .thumb-initials {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.04em;
}
.bp-id {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.bp-cat {
  align-self: flex-start;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
}
.bp-id h4 {
  font-size: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-blue-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
  margin: 0;
}
[data-theme="dark"] .bp-id h4 {
  color: var(--color-text);
}
.bp-es {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.bp-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.bp-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  min-width: 0;
}
.bp-price b {
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.bp-unit {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}
.bp-perbar {
  flex: none;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-green);
  background: color-mix(in oklab, var(--color-green) 12%, transparent);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.bp-case {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin: 0;
}
.bp-controls {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
}
.bstep {
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  gap: 0.4rem;
  align-items: stretch;
}
.bstep-btn {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  display: grid;
  place-items: center;
  line-height: 1;
  background: var(--color-surface-2);
  min-height: 2.75rem;
}
.bstep-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: color-mix(
    in oklab,
    var(--color-primary) 6%,
    var(--color-surface)
  );
}
.bstep-btn:active {
  transform: scale(0.96);
}
.bstep-input {
  width: 100%;
  min-width: 0;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  padding: 0.45rem 0.25rem;
  border-radius: var(--radius-md);
  min-height: 2.75rem;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
  -moz-appearance: textfield;
  appearance: textfield;
}
.bstep-input::-webkit-outer-spin-button,
.bstep-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bstep-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px
    color-mix(in oklab, var(--color-primary) 18%, transparent);
}
.bquick {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.4rem;
}
.bquick button {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius-md);
  min-height: 2.35rem;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
}
.bquick button:hover {
  border-color: var(--color-green);
  color: var(--color-green);
  background: color-mix(in oklab, var(--color-green) 8%, transparent);
}
.bquick button:active {
  transform: scale(0.98);
}

/* legacy bp-top alias if referenced elsewhere */
.bp-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

/* Legacy stepper base — still used by the admin order editor (.line-row .stepper) */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.stepper button {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  display: grid;
  place-items: center;
  line-height: 1;
}
.stepper button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.stepper .qty {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-base);
}

/* --- preset row --- */
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: -1.5rem 0 2rem;
}
.preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.preset-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}
.preset-btn:active {
  transform: translateY(0);
}
.preset-btn .preset-sub {
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.preset-btn:hover .preset-sub {
  color: inherit;
}
.preset-clear {
  border-style: dashed;
  color: var(--color-text-muted);
}
.preset-size-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 700;
}
.preset-size-control select {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  outline: none;
}

/* --- summary panel --- */
.pallet-summary {
  position: sticky;
  top: 6rem;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .pallet-summary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.pallet-summary h3 {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: inherit;
  margin-bottom: 0.25rem;
}
.pallet-summary .sub {
  font-size: var(--text-xs);
  opacity: 0.65;
  margin-bottom: 1rem;
}
.fill-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  opacity: 0.75;
  margin: 0.5rem 0 1.1rem;
  font-weight: 600;
}

/* --- pallet visualization --- */
.pviz {
  position: relative;
  margin-top: 0.25rem;
}
.pviz-grid {
  display: grid;
  gap: 3px;
  padding: 0.45rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
}
[data-theme="dark"] .pviz-grid {
  background: var(--color-surface-offset);
  border-color: var(--color-border);
}
.pviz-cell {
  aspect-ratio: 2.2/1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}
[data-theme="dark"] .pviz-cell {
  background: rgba(255, 255, 255, 0.06);
}
.pviz-cell.on {
  box-shadow:
    inset 0 -3px 4px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
@media (prefers-reduced-motion: no-preference) {
  .pviz-cell.on {
    animation: cell-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}
@keyframes cell-pop {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}
.pviz-base {
  display: flex;
  gap: 6px;
  height: 0.55rem;
  padding: 0 0.3rem;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  background: linear-gradient(#b07b3e, #8a5a26);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.pviz-base span {
  flex: 1;
  background: rgba(0, 0, 0, 0.22);
  margin-block: 0.14rem;
  border-radius: 1px;
}
.pviz-more {
  position: absolute;
  top: -0.55rem;
  right: -0.35rem;
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--color-yellow);
  color: var(--color-blue-deep);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transform: rotate(3deg);
}

/* --- tier progress rail --- */
.tier-block {
  margin-bottom: 1.1rem;
}
.tier-rail {
  position: relative;
  height: 3.1rem;
  margin: 0 1.35rem 0 0.5rem;
}
.tier-track {
  position: absolute;
  top: 0.45rem;
  left: 0;
  right: 0;
  height: 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
[data-theme="dark"] .tier-track {
  background: var(--color-surface-offset);
}
.tier-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-green), var(--color-yellow));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tier-mark {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}
.tier-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  margin-top: 0.2rem;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}
[data-theme="dark"] .tier-dot {
  background: var(--color-surface-offset);
  border-color: var(--color-border);
}
.tier-mark.hit .tier-dot {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
}
.tier-mark.on .tier-dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 4px
    color-mix(in oklab, var(--color-yellow) 30%, transparent);
}
.tier-pct {
  font-size: var(--text-xs);
  font-weight: 700;
  opacity: 0.85;
  line-height: 1.1;
  margin-top: 0.3rem;
}
.tier-mark.hit .tier-pct {
  color: var(--color-yellow);
  opacity: 1;
}
.tier-cs {
  font-size: 0.62rem;
  opacity: 0.55;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tier-nudge {
  font-size: var(--text-xs);
  text-align: center;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  line-height: 1.45;
}
[data-theme="dark"] .tier-nudge {
  background: var(--color-surface-offset);
  border-color: var(--color-border);
}
.tier-nudge b {
  color: var(--color-yellow);
}
.tier-nudge.done {
  border-style: solid;
  border-color: color-mix(in oklab, var(--color-green) 60%, transparent);
  background: color-mix(in oklab, var(--color-green) 16%, transparent);
}
.tier-nudge.done b {
  color: var(--color-green);
}
[data-theme="dark"] .tier-nudge.done b {
  color: var(--color-green);
}

/* --- cart lines --- */
.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 0.25rem;
}
.cart-lines:empty::after {
  content: "Add products to start building your pallet.";
  display: block;
  font-size: var(--text-sm);
  opacity: 0.55;
  padding: 1.25rem 0;
  text-align: center;
}
.cline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  gap: 0.5rem;
}
.cline .cl-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.cline .cl-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  flex: none;
}
.cline .cl-q {
  opacity: 0.6;
  font-size: var(--text-xs);
}
.cline .cl-amt {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

/* --- ship stats --- */
.ship-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.ship-stat {
  text-align: center;
  padding: 0.55rem 0.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .ship-stat {
  background: var(--color-surface-offset);
}
.ship-stat .ss-n {
  display: block;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  line-height: 1.2;
}
.ship-stat .ss-l {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 0.15rem;
}

/* --- money rows --- */
.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 1rem 0;
}
[data-theme="dark"] .summary-divider {
  background: var(--color-border);
}
.srow {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
}
.srow.total {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 0.75rem;
}
.srow.total span:last-child {
  color: var(--color-primary);
}
.srow.avg {
  font-size: var(--text-xs);
  opacity: 0.7;
}
.srow.avg span:last-child {
  font-variant-numeric: tabular-nums;
}
.disc {
  color: var(--color-green);
  font-weight: 600;
}
.min-warn {
  font-size: var(--text-xs);
  text-align: center;
  margin-top: 0.85rem;
  line-height: 1.45;
  background: color-mix(in oklab, var(--color-red) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-red) 45%, transparent);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
}
.min-warn b {
  color: var(--color-yellow);
}
[data-theme="dark"] .min-warn b {
  color: var(--color-red);
}
.pallet-summary .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 1.25rem;
}
.pallet-summary .btn-primary.is-disabled {
  opacity: 0.55;
  filter: saturate(0.4);
  cursor: not-allowed;
  box-shadow: none;
}
.pallet-summary .btn-primary.is-disabled:hover {
  transform: none;
  background: var(--color-primary);
}
.note {
  font-size: var(--text-xs);
  opacity: 0.6;
  margin-top: 0.85rem;
  text-align: center;
}

/* Mobile sticky pallet bar (shows while scrolling the flavor catalog) */
.builder-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in oklab, var(--color-text) 92%, transparent);
  color: var(--color-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}
[data-theme="dark"] .builder-sticky-bar {
  background: color-mix(in oklab, var(--color-surface-2) 94%, transparent);
  color: var(--color-text);
  border-color: var(--color-border);
}
.builder-sticky-bar[hidden] {
  display: none !important;
}
.bsb-stats {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.bsb-cases {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
}
.bsb-total {
  font-size: var(--text-xs);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.bsb-cta {
  flex: none;
  white-space: nowrap;
  padding: 0.55rem 1rem;
  font-size: var(--text-sm);
}
body.has-builder-sticky {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

/* ============ WHOLESALE STRIP ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feat {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.feat .ic {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--color-cream);
  color: var(--color-primary);
  margin-bottom: 1.1rem;
}
.feat h3 {
  font-size: var(--text-lg);
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-blue-deep);
}
[data-theme="dark"] .feat h3 {
  color: var(--color-text);
}
.feat .ic {
  background: color-mix(in oklab, var(--color-yellow) 25%, transparent);
  color: var(--color-blue-deep);
}
.feat p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============ CTA / CONTACT ============ */
.cta {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem);
  background: linear-gradient(
    125deg,
    var(--color-primary),
    var(--color-yellow-deep) 130%
  );
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(255, 255, 255, 0.22),
    transparent 50%
  );
}
.cta-inner {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 34rem;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: 1rem;
}
.cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}
.cta-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: -0.75rem 0 1.75rem;
}
.cta-contact:empty {
  display: none;
}
.cta-contact a,
.cta-contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.cta-contact a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-contact svg {
  flex: none;
  opacity: 0.75;
}
.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.cta-form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.85rem;
  grid-column: 1/-1;
}
.cta-form .full {
  grid-column: 1/-1;
}
.cta-form input,
.cta-form textarea,
.cta-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: var(--text-sm);
}
.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.cta-form input:focus,
.cta-form textarea:focus,
.cta-form select:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
.cta-form select option {
  color: #2a1a12;
}
.cta-form button {
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  padding: 0.95rem;
  border-radius: var(--radius-md);
}
.cta-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.form-ok {
  grid-column: 1/-1;
  display: none;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: var(--text-sm);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ============ FOOTER ============ */
footer {
  padding-block: var(--space-16) var(--space-10);
  border-top: 1px solid var(--color-border);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.foot-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.foot-col a,
.foot-col p {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0.55rem;
  max-width: 26ch;
}
.foot-col a:hover {
  color: var(--color-primary);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  position: relative;
}
.foot-bottom a {
  color: var(--color-text-muted);
}
.foot-bottom .credit b {
  color: var(--color-text-muted);
}
.foot-bottom-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.foot-staff {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  opacity: 0.55;
  text-decoration: none;
}
.foot-staff:hover,
.foot-staff:focus-visible {
  opacity: 1;
  color: var(--color-text-muted);
}
@media (max-width: 640px) {
  .foot-bottom-meta {
    width: 100%;
    justify-content: space-between;
  }
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 95;
  background: var(--color-green);
  color: #fff;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-card-wide {
    grid-column: 1/-1;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 880px) {
  .builder-shell {
    grid-template-columns: 1fr;
  }
  .pallet-summary {
    position: static;
    order: 2;
  }
  .builder-main {
    order: 1;
  }
  .builder-browse-toggle {
    display: none;
  }
  .builder-products {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .bprod {
    padding: 0.85rem;
    gap: 0.55rem;
  }
  .bprod .thumb {
    width: 2.85rem;
    height: 2.85rem;
  }
  .bp-id h4 {
    font-size: 0.95rem;
  }
  .bstep {
    grid-template-columns: 2.5rem 1fr 2.5rem;
  }
  .bstep-btn,
  .bstep-input {
    min-height: 2.5rem;
  }
  .builder-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }
  .builder-tabs::-webkit-scrollbar {
    display: none;
  }
  .builder-tab {
    font-size: 0.65rem;
    padding: 0.45rem 0.7rem;
    flex: none;
  }
  .preset-row {
    margin-top: -1rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }
  .preset-btn {
    flex: none;
  }
  .announce-text {
    font-size: 0.72rem;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split.rev .story-img {
    order: -1;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-product {
    min-height: 20rem;
    order: -1;
  }
  .hero-stage {
    width: min(100%, 22rem);
  }
  .hero-copy {
    text-align: center;
    margin-inline: auto;
  }
  .hero-copy .hero-logo {
    display: none;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero p.lede {
    margin-inline: auto;
  }
}
@media (max-width: 680px) {
  .nav .lnk {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
  .hero-stats {
    gap: 1.5rem;
  }
  .cta-form {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-float {
    display: none;
  }
  .builder-products {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .bprod {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "head head"
      "price price"
      "case case"
      "controls controls";
    align-items: start;
  }
  .bp-head {
    grid-area: head;
  }
  .bp-pricing {
    grid-area: price;
  }
  .bp-case {
    grid-area: case;
  }
  .bp-controls {
    grid-area: controls;
  }
  .bprod .thumb {
    width: 3.5rem;
    height: 3.5rem;
  }
  .bp-id h4 {
    font-size: 1.05rem;
    -webkit-line-clamp: 2;
  }
  .bp-controls {
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
  }
  .bstep {
    flex: 1.2;
    grid-template-columns: 2.75rem 1fr 2.75rem;
  }
  .bquick {
    flex: 1;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 380px) {
  .bp-controls {
    flex-direction: column;
  }
}

/* ============================================================
   Store Locator + Retailer sections (added Jul 7, 2026)
   ============================================================ */

/* Shared centered section head (also used by other future sections) */
.section-head {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}
.section-head .eyebrow {
  justify-content: center;
}
.section-head .eyebrow::before {
  display: none;
}
.section-head .section-lede {
  margin-inline: auto;
}

/* Green + gold eyebrow variants used by locator + retailer */
.eyebrow.g {
  color: var(--color-green);
  background: color-mix(in oklab, var(--color-green) 14%, transparent);
}

/* -------- Store Locator ------------------------------------- */
.locator {
  padding: 5rem 0;
  background: var(--color-surface);
}
[data-theme="dark"] .locator {
  background: var(--color-surface-2);
}

.locator-controls {
  max-width: 800px;
  margin: 0 auto 2rem;
}
.locator-search {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: stretch;
}
.locator-input-wrap {
  position: relative;
}
.locator-input-wrap .locator-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.locator-search input[type="search"] {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.locator-search input[type="search"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px
    color-mix(in oklab, var(--color-primary) 22%, transparent);
}
.locator-search .btn {
  white-space: nowrap;
}
.locator-status {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  min-height: 1.25em;
}
.locator-status.err {
  color: var(--color-primary);
}
.locator-status.ok {
  color: var(--color-green);
}

.locator-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.locator-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.locator-card {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.locator-card:hover,
.locator-card:focus-visible {
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px
    color-mix(in oklab, var(--color-primary) 40%, transparent);
  outline: none;
}
.locator-card.active {
  border-color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 5%, var(--color-bg));
}
.locator-card.is-hq {
  border-color: color-mix(in oklab, var(--color-green) 45%, transparent);
  background: color-mix(in oklab, var(--color-green) 8%, var(--color-bg));
}
.locator-card .lc-hq {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-green);
  background: color-mix(in oklab, var(--color-green) 14%, transparent);
}
.locator-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: var(--color-text);
}
.locator-card .lc-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.locator-card .lc-meta .lc-dist {
  color: var(--color-green);
  font-weight: 600;
  margin-left: 0.25rem;
}
.locator-card .lc-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.locator-card .lc-actions a {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-blue) 12%, transparent);
  color: var(--color-blue);
  text-decoration: none;
  transition: background 0.15s;
}
.locator-card .lc-actions a:hover {
  background: color-mix(in oklab, var(--color-blue) 22%, transparent);
}
.locator-card .lc-actions a.dir {
  background: color-mix(in oklab, var(--color-green) 14%, transparent);
  color: var(--color-green);
}
.locator-card .lc-actions a.dir:hover {
  background: color-mix(in oklab, var(--color-green) 24%, transparent);
}

.locator-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.locator-map {
  min-height: 480px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-surface-offset);
  overflow: hidden;
  position: relative;
}
.locator-map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  z-index: 1;
}
.locator-attr {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: right;
  margin: 0;
}
.locator-attr a {
  color: inherit;
  text-decoration: underline;
}

.locator-empty {
  margin-top: 1.5rem;
  text-align: center;
  padding: 1.5rem;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
}
.locator-empty p {
  margin: 0.25rem 0;
  color: var(--color-text-muted);
}

/* Leaflet popup skinning to match the site */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm) !important;
  padding: 2px 4px !important;
}
.leaflet-popup-content {
  font-family: var(--font-body) !important;
  color: var(--color-text) !important;
  margin: 10px 14px !important;
}
.leaflet-popup-content b {
  color: var(--color-text);
}
.leaflet-popup-content .pp-dir {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-green);
  text-decoration: none;
}
.leaflet-popup-content .pp-dir:hover {
  text-decoration: underline;
}

/* -------- Retailer section ---------------------------------- */
.retailer {
  padding: 5rem 0;
  background:
    radial-gradient(
      1200px 500px at 100% 0%,
      color-mix(in oklab, var(--color-yellow) 18%, transparent),
      transparent 60%
    ),
    radial-gradient(
      900px 400px at 0% 100%,
      color-mix(in oklab, var(--color-blue) 12%, transparent),
      transparent 60%
    ),
    var(--color-bg);
}
.retailer-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.retailer-copy {
  padding-top: 0.5rem;
}
.retailer-copy .title {
  margin-top: 0.75rem;
}

.retailer-perks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.retailer-perks li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.retailer-perks .retailer-perk-ic {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-green) 14%, transparent);
  color: var(--color-green);
}
.retailer-perks li strong {
  color: var(--color-text);
  font-weight: 700;
}
.retailer-perks li span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.retailer-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 12px 30px -18px rgba(15, 34, 54, 0.28);
}
[data-theme="dark"] .retailer-card {
  background: var(--color-surface-2);
}

.retailer-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.retailer-form .rf-row {
  display: grid;
  gap: 0.35rem;
}
/* Ensure input control is on a new line under the label text, not next
   to the required asterisk (see .retailer-form label rule above). */
.retailer-form label > input,
.retailer-form label > select,
.retailer-form label > textarea {
  margin-top: 0;
}
.retailer-form .rf-row.rf-2 {
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.retailer-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
/* Inline the required asterisk with the label text — the label itself is a
   column flex container so any raw text node before the input would wrap. */
.retailer-form label .req {
  color: var(--color-primary);
  margin-left: 0.15rem;
  font-weight: 700;
}
.retailer-form input,
.retailer-form select,
.retailer-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.retailer-form textarea {
  resize: vertical;
  min-height: 80px;
}
.retailer-form input:focus,
.retailer-form select:focus,
.retailer-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px
    color-mix(in oklab, var(--color-primary) 22%, transparent);
}
.retailer-form .btn.full {
  margin-top: 0.5rem;
}
.retailer-form .rf-fine {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0;
}
.retailer-form .form-ok {
  display: none;
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: color-mix(in oklab, var(--color-green) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-green) 35%, transparent);
  color: var(--color-green);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
}

/* Responsive collapse */
@media (max-width: 900px) {
  .retailer-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .locator-grid {
    grid-template-columns: 1fr;
  }
  .locator-list {
    max-height: 400px;
  }
  .locator-map {
    min-height: 360px;
  }
}
@media (max-width: 560px) {
  .locator-search {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .locator-search .btn {
    width: 100%;
    justify-content: center;
  }
  .retailer-form .rf-row.rf-2 {
    grid-template-columns: 1fr;
  }
}

/* ============ VISUAL CATALOG REBUILD (Jul 2026) ============ */
.flavor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0 auto 1.15rem;
  max-width: 52rem;
}
.flavor-result-count {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.flavor-toolbar .flavor-search-wrap {
  flex: 1;
  min-width: min(100%, 18rem);
  max-width: 520px;
  margin: 0;
}
.flavor-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 auto 2rem;
  max-width: 56rem;
}
.flavor-qchip {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
}
.flavor-qchip:hover,
.flavor-qchip.active {
  color: var(--color-green);
  border-color: var(--color-green);
  background: color-mix(in oklab, var(--color-green) 12%, var(--color-surface));
}
.flavor-qchip:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.catalog-directory {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive),
    border-color var(--transition-interactive);
}
.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(
    in oklab,
    var(--swatch, var(--color-primary)) 40%,
    var(--color-border)
  );
}
.catalog-card.is-unavailable {
  opacity: 0.72;
}
.catalog-card.is-unavailable .product-shot {
  filter: grayscale(0.35);
}
.catalog-card-media {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  position: relative;
  width: 100%;
}
.catalog-card-media:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.catalog-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  pointer-events: none;
  z-index: 1;
}
.catalog-card-badges .tag,
.catalog-card-badges .avail-badge {
  margin: 0;
}
.catalog-card .product-shot {
  background: linear-gradient(
    160deg,
    var(--studio, #bfe8ff),
    color-mix(in oklab, var(--swatch, #ec6112) 35%, var(--studio, #bfe8ff))
  );
}
.catalog-card:hover .product-shot img {
  transform: scale(1.05);
}
.catalog-card-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.catalog-card-body .line-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}
.catalog-card-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--color-blue-deep);
  margin: 0 0 0.15rem;
}
[data-theme="dark"] .catalog-card-body h3 {
  color: var(--color-text);
}
.catalog-card-body .es {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}
.catalog-card-pack {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0 0 0.35rem;
}
.pack-size-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
}
.pack-size-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  border: 1px solid
    color-mix(in oklab, var(--color-text-muted) 35%, transparent);
  border-radius: 0.4rem;
  padding: 0.15rem 0.45rem;
  line-height: 1.2;
  background: color-mix(in oklab, var(--color-surface, #fff) 88%, transparent);
  cursor: pointer;
  font-family: inherit;
}
button.pack-size-chip {
  appearance: none;
  -webkit-appearance: none;
}
.pack-size-chip.is-default,
.pack-size-chip.is-selected {
  color: var(--color-green);
  border-color: color-mix(in oklab, var(--color-green) 45%, transparent);
  background: color-mix(in oklab, var(--color-green) 10%, transparent);
}
.pack-size-chip:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--color-green) 55%, transparent);
  outline-offset: 2px;
}
.pack-size-note {
  flex: 1 1 100%;
  font-size: 0.65rem;
  color: var(--color-text-muted);
  margin: 0;
}
.cl-size {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-left: 0.2rem;
}
.product-modal-body .pack-size-options {
  margin: 0.25rem 0 0.15rem;
}
.bprod .pack-size-options {
  margin: 0.15rem 0 0.35rem;
}
.flavor-price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-green);
  margin: 0.15rem 0 0.55rem;
}
.flavor-price .fp-unit {
  color: var(--color-text-muted);
  font-weight: 600;
}
.flavor-price .fp-case {
  color: var(--color-green);
}
.catalog-card-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.5rem;
  margin-top: auto;
}
.catalog-card-actions .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0;
}
.catalog-card-locked {
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.55rem;
}
.catalog-card .flavor-add-btn {
  margin-top: 0;
  width: 100%;
}

.product-modal {
  border: 0;
  padding: 0;
  max-width: min(920px, 94vw);
  width: 100%;
  background: transparent;
  color: inherit;
}
.product-modal::backdrop {
  background: rgba(15, 34, 54, 0.55);
  backdrop-filter: blur(4px);
}
.product-modal-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.product-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text);
}
.product-modal-close:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.product-modal-media {
  min-height: 18rem;
  background: linear-gradient(160deg, var(--studio, #bfe8ff), #fff3d6);
}
.product-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 18rem;
}
.product-modal-body {
  padding: 1.75rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.product-modal-line {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}
.product-modal-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);
  line-height: 1;
  margin: 0.15rem 0;
  color: var(--color-blue-deep);
}
.product-modal-sub {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin: 0 0 0.35rem;
}
.product-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.25rem 0;
}
.product-modal-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0.35rem 0 0.75rem;
}
.product-modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0;
}
.product-modal-specs div {
  margin: 0;
}
.product-modal-specs dt {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin: 0 0 0.15rem;
}
.product-modal-specs dd {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.product-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: auto;
}
.product-modal-qty {
  display: grid;
  grid-template-columns: 2.5rem 3.5rem 2.5rem;
  gap: 0.35rem;
  align-items: stretch;
}
.product-modal-qty input {
  text-align: center;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-2);
  min-height: 2.5rem;
}

.pallet-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.pallet-summary-head h3 {
  margin-bottom: 0;
}
.pallet-summary-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  white-space: nowrap;
}
[data-theme="dark"] .pallet-summary-pill {
  background: color-mix(in oklab, var(--color-primary) 18%, transparent);
  color: var(--color-primary);
}

.bprod .thumb {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-card-actions {
    grid-template-columns: 1fr;
  }
  .product-modal-shell {
    grid-template-columns: 1fr;
  }
  .product-modal-media {
    min-height: 14rem;
  }
  .product-modal-media img {
    min-height: 14rem;
  }
  .flavor-filters,
  .flavor-quick-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
  }
  .flavor-filters::-webkit-scrollbar,
  .flavor-quick-filters::-webkit-scrollbar {
    display: none;
  }
  .flavor-chip,
  .flavor-qchip {
    flex: none;
  }
}
