/* =============================================================================
   רון ירקות — design system
   Concept: "שוק" / market abundance — a spring market stall at 7am.
   Crates stacked tight, produce spilling over, price tags swinging on strings.
   Density IS the design: an asymmetric packed mosaic with 8–12px gutters.

   Layered tokens:  primitives (§0.1)  ->  semantic/contract tokens (§0.2)
                    ->  scales (§0.3)   ->  components (§3+)
   Nothing below §0 hardcodes a colour: components consume tokens only.
   Hebrew RTL — logical properties everywhere, no left/right for flow.
   No external requests: system font stacks only.
   ========================================================================== */

/* =============================================================================
   0.1 — PRIMITIVES  (the market palette)
   ========================================================================== */
:root {
  /* ground: sand / kraft paper */
  --p-sand:      #F7EAD6;
  --p-sand-2:    #F0DEBD;
  --p-kraft:     #E8CFA4;
  --p-cream:     #FFF7E8;

  /* crate wood */
  --p-wood:      #C08A4E;
  --p-wood-dk:   #8E5B27;
  --p-wood-dp:   #5E3A14;

  /* ink */
  --p-ink:       #2E1C0A;
  --p-ink-2:     #5A3E20;

  /* produce */
  --p-tomato:    #C7331B;
  --p-tomato-dp: #9E230F;
  --p-tomato-lt: #F0836B;
  --p-leaf:      #256B25;
  --p-leaf-dp:   #194B19;
  --p-leaf-lt:   #7DC85E;
  --p-grass:     #4C9A2A;
  --p-sun:       #F5B21A;
  --p-sun-2:     #FFD34D;
  --p-sun-dk:    #8F5E06;
}

/* =============================================================================
   0.2 — SEMANTIC TOKENS  (the build contract's names, mapped to the market)
   ========================================================================== */
:root {
  --c-bg:            var(--p-sand);
  --c-bg-2:          var(--p-sand-2);
  --c-surface:       var(--p-cream);
  --c-surface-2:     var(--p-kraft);
  --c-border:        var(--p-wood);
  --c-border-strong: var(--p-wood-dk);
  --c-border-deep:   var(--p-wood-dp);

  --c-text:          var(--p-ink);
  --c-text-muted:    var(--p-ink-2);
  --c-text-invert:   var(--p-cream);

  --c-brand:         var(--p-leaf);        /* leaf green */
  --c-brand-strong:  var(--p-leaf-dp);
  --c-brand-ink:     var(--p-leaf);        /* brand used as TEXT on the ground */
  --c-brand-soft:    #DCEBCD;

  --c-accent:        var(--p-tomato);      /* tomato red — CTAs, price tags */
  --c-accent-strong: var(--p-tomato-dp);
  --c-accent-ink:    var(--p-tomato-dp);   /* accent used as TEXT */
  --c-accent-soft:   #F7DACF;

  --c-sun:           var(--p-sun);
  --c-sun-2:         var(--p-sun-2);
  --c-sun-edge:      var(--p-sun-dk);

  --c-success:       var(--p-leaf);
  --c-warn:          var(--p-sun-dk);
  --c-danger:        var(--p-tomato-dp);
  --c-danger-soft:   #F7DACF;

  --c-on-brand:      var(--p-cream);
  --c-on-accent:     var(--p-cream);
  --c-on-sun:        var(--p-ink);
  --c-ring:          var(--p-tomato);

  /* footer / marquee ground — the dark end of the wood scale */
  --c-deep-bg:       var(--p-wood-dp);
  --c-deep-text:     #FFF3DE;
  --c-deep-accent:   var(--p-sun-2);

  /* highlighter mark behind headline words */
  --c-marker:        var(--p-sun-2);

  /* photo tiles fall back to this when an image is missing */
  --c-photo-bed:     var(--p-sand-2);

  --shadow-stack:    0 3px 0 var(--c-border-strong), 0 7px 0 rgba(94, 58, 20, .38), 0 14px 24px rgba(94, 58, 20, .20);
  --shadow-stack-sm: 0 2px 0 var(--c-border-strong), 0 5px 0 rgba(94, 58, 20, .30), 0 10px 16px rgba(94, 58, 20, .16);
  --shadow-sm:       0 2px 0 rgba(94, 58, 20, .28);
  --shadow-md:       0 3px 0 rgba(94, 58, 20, .26), 0 8px 14px rgba(94, 58, 20, .14);
  --shadow-lg:       var(--shadow-stack);

  --slat:            rgba(142, 91, 39, .14);
  --slat-invert:     rgba(255, 255, 255, .22);
  --page-wash-1:     rgba(255, 211, 77, .34);
  --page-wash-2:     rgba(199, 51, 27, .10);
  --page-grain:      rgba(142, 91, 39, .045);
  --lip:             linear-gradient(180deg, rgba(94, 58, 20, .28), rgba(94, 58, 20, .06));
}

/* =============================================================================
   0.3 — SCALES
   ========================================================================== */
:root {
  /* spacing */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;

  /* type — body never below 16px */
  --fs-xs:  .82rem;
  --fs-sm:  .92rem;
  --fs-md:  1rem;
  --fs-lg:  1.09rem;
  --fs-xl:  clamp(1.2rem, 2.1vw, 1.42rem);
  --fs-2xl: clamp(1.45rem, 3vw, 2rem);
  --fs-3xl: clamp(1.75rem, 4.4vw, 2.9rem);
  --fs-4xl: clamp(2.05rem, 6.2vw, 4.05rem);

  --lh-tight: 1.05;
  --lh-snug:  1.25;
  --lh-body:  1.6;

  /* radii */
  --r-sm: 7px;  --r-md: 10px;  --r-lg: 14px;  --r-full: 99px;

  /* structure */
  --gut: 10px;
  --maxw: 1320px;
  --maxw-text: 62ch;
  --crate-border: 3px;

  --font-body:    "Assistant", "Rubik", "Heebo", "Noto Sans Hebrew", "Arial Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --font-serif:   "Frank Ruhl Libre", "David Libre", Georgia, "Times New Roman", serif;
}

/* =============================================================================
   0.4 — DARK THEME  (warm kraft/soil, not grey — the stall after sundown)
   Only the grounds and inks flip; the produce colours stay saturated so the
   market keeps its character. Accents get lighter "-ink" variants for text.
   ========================================================================== */
[data-theme="dark"] {
  --p-sand:      #1E150D;
  --p-sand-2:    #271C12;
  --p-kraft:     #3A2A1B;
  --p-cream:     #2C2016;

  --p-wood:      #8A5F32;
  --p-wood-dk:   #A97840;
  --p-wood-dp:   #14100A;

  --p-ink:       #F7E9D3;
  --p-ink-2:     #CBB08A;

  --c-text-invert:  #FFF3DE;
  --c-brand-ink:    var(--p-leaf-lt);
  --c-brand-soft:   #23331C;
  --c-accent-ink:   var(--p-tomato-lt);
  --c-accent-soft:  #3A1A12;
  --c-danger:       var(--p-tomato-lt);
  --c-danger-soft:  #3A1A12;

  --c-deep-bg:      #14100A;
  --c-deep-text:    #FFF3DE;

  --c-marker:       #7A4E06;
  --c-photo-bed:    #33251A;

  --shadow-stack:    0 3px 0 #120D07, 0 7px 0 rgba(0, 0, 0, .55), 0 14px 24px rgba(0, 0, 0, .45);
  --shadow-stack-sm: 0 2px 0 #120D07, 0 5px 0 rgba(0, 0, 0, .45), 0 10px 16px rgba(0, 0, 0, .35);
  --shadow-sm:       0 2px 0 rgba(0, 0, 0, .5);
  --shadow-md:       0 3px 0 rgba(0, 0, 0, .45), 0 8px 14px rgba(0, 0, 0, .4);

  --slat:        rgba(0, 0, 0, .32);
  --slat-invert: rgba(255, 255, 255, .14);
  --page-wash-1: rgba(245, 178, 26, .10);
  --page-wash-2: rgba(199, 51, 27, .12);
  --page-grain:  rgba(255, 232, 196, .035);
  --lip:         linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .12));
}

/* =============================================================================
   1 — RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  color-scheme: light;
}
[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--lh-body);
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(circle at 12% 4%, var(--page-wash-1), transparent 46%),
    radial-gradient(circle at 88% 0%, var(--page-wash-2), transparent 40%),
    repeating-linear-gradient(112deg, var(--page-grain) 0 2px, transparent 2px 9px);
  -webkit-font-smoothing: antialiased;
}

/* images/*.png carry intrinsic width+height, which silently defeats
   aspect-ratio — neutralise it here, then object-fit inside fixed-ratio boxes. */
img, svg, video, canvas { display: block; max-inline-size: 100%; }
img { block-size: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-snug); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

::selection { background: var(--p-sun-2); color: #2E1C0A; }

:focus-visible {
  outline: 3px solid var(--c-ring);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* =============================================================================
   2 — UTILITIES
   ========================================================================== */
.container { max-inline-size: var(--maxw); margin-inline: auto; padding-inline: clamp(10px, 2.4vw, 26px); }
.container--narrow { max-inline-size: 880px; }

.sec { padding-block: clamp(18px, 3vw, 34px); }
.sec--tight { padding-block: clamp(12px, 2vw, 20px); }

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, var(--sp-3)); }
.stack > * { min-inline-size: 0; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.grid { display: grid; gap: var(--gut); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid > * { min-inline-size: 0; }

.muted { color: var(--c-text-muted); }
.measure { max-inline-size: var(--maxw-text); }
.money { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; inline-size: 1px; block-size: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-block-start: -100px; inset-inline-start: var(--sp-4); z-index: 200;
  background: var(--c-surface); color: var(--c-text);
  border: var(--crate-border) solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
  font-weight: 800; text-decoration: none; box-shadow: var(--shadow-md);
}
.skip-link:focus { inset-block-start: var(--sp-3); }

/* =============================================================================
   3 — CRATE FRAMING  (slat rules + stacking shadows)
   ========================================================================== */
.crate {
  position: relative;
  background: var(--c-surface);
  border: var(--crate-border) solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-stack-sm);
  overflow: hidden;
  min-inline-size: 0;
}
.crate::before {                    /* slat rules */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(180deg, var(--slat) 0 2px, transparent 2px 15px);
  opacity: .55;
  pointer-events: none;
}
.crate::after {                     /* crate lip */
  content: "";
  position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 7px;
  background: var(--lip), var(--c-border);
  pointer-events: none;
}
.crate > * { position: relative; z-index: 1; }

.crate--tall  { box-shadow: var(--shadow-stack); }
.crate--sun   { background: linear-gradient(168deg, var(--p-sun-2), var(--p-sun)); color: #2E1C0A; border-color: var(--c-sun-edge); }
.crate--red   { background: linear-gradient(168deg, var(--p-tomato), var(--p-tomato-dp)); color: var(--c-on-accent); border-color: var(--c-accent-strong); }
.crate--leaf  { background: linear-gradient(168deg, var(--p-leaf), var(--p-leaf-dp)); color: var(--c-on-brand); border-color: var(--c-brand-strong); }
.crate--kraft { background: var(--c-surface-2); }

.crate--red::after, .crate--leaf::after, .crate--sun::after { background: rgba(0, 0, 0, .22); }
.crate--red::before, .crate--leaf::before, .crate--sun::before {
  opacity: .30;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 15px);
}
.pad { padding: clamp(12px, 1.5vw, 18px); }

/* =============================================================================
   4 — SWING PRICE TAGS  (hang from a string, tilt, sway on hover)
   ========================================================================== */
.tagwrap {
  position: relative;
  display: inline-block;
  padding-block-start: 15px;
  transform: rotate(-3deg);
  transform-origin: 94% 2px;
  max-inline-size: 100%;
}
.tagwrap--b { transform: rotate(2.5deg); }

.tag-string {
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: -13px;
  inline-size: 26px; block-size: 24px;
  color: var(--c-border-deep);
  pointer-events: none;
}
.crate--red .tag-string, .crate--leaf .tag-string, .till .tag-string { color: var(--c-deep-text); }

.tag {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .42em;
  margin-inline-start: 17px;
  padding: .42em .78em;
  background: var(--c-surface);
  color: var(--c-text);
  border: 2.5px solid var(--c-border-strong);
  border-start-start-radius: 2px;
  border-end-start-radius: 2px;
  border-start-end-radius: 7px;
  border-end-end-radius: 7px;
  font-weight: 800;
  line-height: 1.25;
  filter: drop-shadow(0 3px 4px rgba(94, 58, 20, .30));
  max-inline-size: 100%;
}
/* the die-cut point where the string threads through */
.tag-head {
  position: absolute;
  inset-inline-start: -16px;
  inset-block: -2.5px;
  inline-size: 16px;
  color: var(--c-border-strong);
  pointer-events: none;
}
.tag-eye {
  position: absolute;
  inset-inline-start: -9px;
  inset-block-start: calc(50% - 4px);
  inline-size: 8px; block-size: 8px;
  border: 2px solid var(--c-border-deep);
  border-radius: 50%;
  background: var(--c-bg);
}
.tag-lab { font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-muted); letter-spacing: -.01em; }
.tag .money { font-size: 1.18rem; font-weight: 900; letter-spacing: -.02em; }

.tag--red { background: var(--p-tomato); border-color: var(--p-tomato-dp); color: var(--c-on-accent); }
.tag--red .tag-lab { color: #FFE2D6; }
.tag--red .tag-head { color: var(--p-tomato-dp); }
.tag--sun { background: var(--p-sun-2); border-color: var(--p-sun-dk); color: #2E1C0A; }
.tag--sun .tag-lab { color: #5A3E20; }
.tag--sun .tag-head { color: var(--p-sun-dk); }
.tag--xl { padding: .5em 1em; }
.tag--xl .money { font-size: clamp(1.5rem, 4.2vw, 2.1rem); }

@media (hover: hover) {
  .tagwrap:hover, .tagwrap:focus-within { animation: sway 1.35s ease-in-out infinite; }
  .tagwrap--b:hover, .tagwrap--b:focus-within { animation-name: sway-b; }
}
@keyframes sway   { 0%, 100% { transform: rotate(-3deg); }  50% { transform: rotate(2.2deg); } }
@keyframes sway-b { 0%, 100% { transform: rotate(2.5deg); } 50% { transform: rotate(-2.6deg); } }

/* =============================================================================
   5 — PENNANTS / BADGES / KICKER
   ========================================================================== */
.pennant, .badge {
  display: inline-block;
  max-inline-size: 100%;
  padding: .2em 1.5em .2em .8em;
  background: var(--p-leaf);
  color: var(--c-on-brand);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: -.01em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pennant--red  { background: var(--p-tomato); color: var(--c-on-accent); }
.pennant--sun  { background: var(--p-sun-dk); color: #FFF7E8; }
.pennant--wood { background: var(--p-wood-dk); color: #FFF7E8; }

.kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  align-self: flex-start;
  font-size: var(--fs-sm); font-weight: 900; letter-spacing: -.01em;
  color: var(--c-text-muted);
  background: var(--c-bg);
  border: 2px dashed var(--c-border-strong);
  border-radius: var(--r-full);
  padding: .24rem .8rem;
}
.kicker svg { flex: none; }

/* =============================================================================
   6 — MARQUEE  (two strips, counter-running)
   ========================================================================== */
.marquee {
  overflow: hidden;
  background: var(--c-deep-bg);
  color: var(--c-deep-accent);
  border-block-end: 3px solid var(--c-sun);
}
.marquee--slow { border-block-end: 0; border-block-start: 3px solid var(--c-sun); }
.marq-track { display: flex; inline-size: max-content; animation: marq 34s linear infinite; }
.marquee--slow .marq-track { animation-duration: 46s; animation-direction: reverse; }
.marq-track > span {
  display: flex; align-items: center; gap: .6rem;
  padding-inline: 1.05rem; padding-block: .55rem;
  font-size: var(--fs-sm); font-weight: 800; letter-spacing: -.01em; white-space: nowrap;
}
.marq-track svg { flex: none; opacity: .85; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================================
   7 — HEADER
   ========================================================================== */
.top {
  position: sticky; inset-block-start: 0; z-index: 60;
  background: var(--c-bg);
  border-block-end: 3px solid var(--c-border);
  box-shadow: 0 4px 0 rgba(142, 91, 39, .20);
}
.top-in { display: flex; align-items: center; gap: .7rem; padding-block: .5rem; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; flex: none; min-block-size: 44px; }
.brand-mark {
  inline-size: 42px; block-size: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--p-leaf); color: var(--c-on-brand);
  border: 2.5px solid var(--p-leaf-dp);
  border-radius: 11px;
  box-shadow: 0 3px 0 var(--p-leaf-dp);
}
.brand-name { display: block; font-size: 1.22rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.brand-sub { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-muted); line-height: 1.2; }

.nav { display: flex; gap: .15rem; margin-inline-start: auto; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center;
  min-block-size: 44px; padding-inline: .72rem;
  text-decoration: none; font-weight: 800; font-size: var(--fs-md);
  border-radius: var(--r-md);
}
.nav a:hover, .nav a.is-active { background: var(--c-surface-2); }

.top-actions { display: flex; align-items: center; gap: .4rem; }

.icon-btn {
  inline-size: 44px; block-size: 44px; flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: var(--c-surface); color: var(--c-text);
  border: 2.5px solid var(--c-border-strong);
  border-radius: 11px;
  box-shadow: 0 3px 0 var(--c-border-strong);
  transition: transform .16s ease-out, box-shadow .16s ease-out, background .16s ease-out;
}
.icon-btn:hover { background: var(--c-surface-2); }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--c-border-strong); }
.icon-btn .ico-moon { display: none; }
[data-theme="dark"] .icon-btn .ico-moon { display: block; }
[data-theme="dark"] .icon-btn .ico-sun { display: none; }

.top-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  min-block-size: 44px; padding-inline: .9rem;
  background: var(--p-tomato); color: var(--c-on-accent);
  border: 2.5px solid var(--p-tomato-dp); border-radius: 11px;
  box-shadow: 0 3px 0 var(--p-tomato-dp);
  font-weight: 900; text-decoration: none;
  transition: transform .16s ease-out, box-shadow .16s ease-out;
}
.top-cta:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--p-tomato-dp); }
.cart-pip {
  min-inline-size: 22px; block-size: 22px; padding-inline: 5px;
  display: grid; place-items: center;
  background: var(--p-sun-2); color: #2E1C0A;
  border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* =============================================================================
   8 — MOSAIC ENGINE
   ========================================================================== */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(84px, auto);
  gap: var(--gut);
  grid-auto-flow: dense;
}
.mosaic > * { grid-column: span var(--sp, 4); grid-row: span var(--rw, 2); min-inline-size: 0; }

/* photo crop tiles — background images so the crop zooms can breathe */
.crop {
  position: relative;
  background-color: var(--c-photo-bed);
  background-repeat: no-repeat;
  border: var(--crate-border) solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-stack-sm);
  overflow: hidden;
}
.crop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(255, 211, 77, .18), transparent 55%);
  pointer-events: none;
}
.z1 { background-size: cover; background-position: 50% 55%; }
.z2 { background-size: 175%;  background-position: 38% 58%; }
.z3 { background-size: 260%;  background-position: 60% 50%; }
.z4 { background-size: 135%;  background-position: 50% 62%; }

.crop-tag  { position: absolute; inset-block-end: 8px; inset-inline-start: 17px; z-index: 2; max-inline-size: calc(100% - 26px); }
.crop-flag { position: absolute; inset-block-start: 0; inset-inline-end: 0; z-index: 2; max-inline-size: 92%; }

/* desktop tile spans (12 columns) */
.t-hero   { --sp: 7; --rw: 5; }
.t-tom    { --sp: 5; --rw: 3; }
.t-mini   { --sp: 2; --rw: 2; }
.t-cuc    { --sp: 3; --rw: 2; }
.t-band   { --sp: 7; --rw: 2; }
.t-let    { --sp: 3; --rw: 2; }

.t-ban    { --sp: 4; --rw: 3; }
.t-crop-c { --sp: 2; --rw: 3; }
.t-ban3   { --sp: 6; --rw: 2; }
.t-tr     { --sp: 3; --rw: 2; }
.t-crop-e { --sp: 6; --rw: 2; }

.t-story  { --sp: 7; --rw: 5; }
.t-pull   { --sp: 5; --rw: 2; }
.t-crop-a { --sp: 5; --rw: 3; }
.t-hyd    { --sp: 7; --rw: 4; }
.t-crop-b { --sp: 5; --rw: 4; }
.t-ami    { --sp: 8; --rw: 3; }
.t-crop-d { --sp: 4; --rw: 3; }

/* =============================================================================
   9 — HERO / MINI PRICE CRATES / BAND
   ========================================================================== */
.hero-crate { display: flex; flex-direction: column; justify-content: center; gap: .75rem; padding: clamp(16px, 2.4vw, 30px); }

.h-xl { font-size: var(--fs-4xl); font-weight: 900; line-height: .98; letter-spacing: -.035em; }
.hl {
  background: linear-gradient(180deg, transparent 58%, var(--c-marker) 58%, var(--c-marker) 93%, transparent 93%);
  padding-inline: .08em;
}
.lede { font-size: var(--fs-lg); max-inline-size: 56ch; color: var(--c-text-muted); font-weight: 600; }
.btnrow { display: flex; gap: 9px; flex-wrap: wrap; padding-block-start: .25rem; }
.flagrow { display: flex; gap: 6px; flex-wrap: wrap; padding-block-start: .35rem; }

.mini { display: flex; flex-direction: column; justify-content: center; gap: .35rem; padding: 12px; text-align: center; }
.mini .num { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.mini .lab { font-size: var(--fs-sm); font-weight: 800; line-height: 1.25; }
.mini svg { margin-inline: auto; opacity: .9; }
.mini .tagwrap { align-self: center; }

.band { display: flex; flex-direction: column; justify-content: center; gap: .55rem; padding: 13px clamp(14px, 1.8vw, 20px); }
.band-t { font-size: clamp(1.15rem, 2.3vw, 1.75rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.band-l { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 800; font-size: var(--fs-md); }
.band-l li { display: flex; align-items: center; gap: .42rem; }
.band-l svg { flex: none; opacity: .92; }

/* =============================================================================
   10 — SECTION HEADERS
   ========================================================================== */
.sechead { display: flex; align-items: flex-end; gap: .9rem; flex-wrap: wrap; padding-block-end: 12px; }
.sechead h2 { font-size: var(--fs-3xl); font-weight: 900; line-height: 1; letter-spacing: -.035em; }
.sechead .why { font-size: var(--fs-md); font-weight: 700; color: var(--c-text-muted); max-inline-size: 52ch; }
.rule {
  flex: 1 1 60px; block-size: 12px; min-inline-size: 40px;
  border-radius: var(--r-full);
  background: repeating-linear-gradient(90deg, var(--c-border) 0 14px, var(--c-sun) 14px 28px);
  opacity: .7;
  margin-block-end: .5rem;
}

/* =============================================================================
   11 — BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-block-size: 48px; padding-inline: 1.15rem;
  border-radius: 13px; border: 3px solid;
  font-weight: 900; font-size: var(--fs-lg); letter-spacing: -.02em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .16s ease-out, box-shadow .16s ease-out;
}
.btn > svg { flex: none; }
.btn--lg { min-block-size: 52px; padding-inline: 1.35rem; }
.btn--block { inline-size: 100%; }

.btn--primary, .btn--red { background: var(--p-tomato); border-color: var(--p-tomato-dp); color: var(--c-on-accent); box-shadow: 0 4px 0 var(--p-tomato-dp); }
.btn--sun    { background: var(--p-sun-2); border-color: var(--p-sun-dk); color: #2E1C0A; box-shadow: 0 4px 0 var(--p-sun-dk); }
.btn--leaf   { background: var(--p-leaf); border-color: var(--p-leaf-dp); color: var(--c-on-brand); box-shadow: 0 4px 0 var(--p-leaf-dp); }
.btn--ghost  { background: var(--c-surface); border-color: var(--c-border-strong); color: var(--c-text); box-shadow: 0 4px 0 var(--c-border-strong); }
.btn--danger { background: var(--p-tomato-dp); border-color: var(--p-tomato-dp); color: var(--c-on-accent); box-shadow: 0 4px 0 var(--c-border-deep); }

.btn:hover { transform: translateY(2px); }
.btn--primary:hover, .btn--red:hover { box-shadow: 0 2px 0 var(--p-tomato-dp); }
.btn--sun:hover    { box-shadow: 0 2px 0 var(--p-sun-dk); }
.btn--leaf:hover   { box-shadow: 0 2px 0 var(--p-leaf-dp); }
.btn--ghost:hover  { box-shadow: 0 2px 0 var(--c-border-strong); }
.btn--danger:hover { box-shadow: 0 2px 0 var(--c-border-deep); }

.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--c-bg-2); border-color: var(--c-border-strong); color: var(--c-text-muted);
  box-shadow: 0 4px 0 var(--c-border-strong);
  cursor: not-allowed; transform: none;
}

.link-btn {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font: inherit; font-size: var(--fs-sm); font-weight: 800;
  color: var(--c-accent-ink); text-decoration: underline; text-underline-offset: 3px;
  min-block-size: 32px;
}

/* =============================================================================
   12 — FORMS
   ========================================================================== */
.field { display: block; }
.field + .field { margin-block-start: var(--sp-3); }
.flab, .field label { display: block; font-size: var(--fs-sm); font-weight: 800; color: var(--c-text-muted); padding-block-end: 5px; }
legend { font-size: var(--fs-lg); font-weight: 900; color: var(--c-text); letter-spacing: -.02em; padding-block-end: var(--sp-2); }

.input, .select, .textarea {
  inline-size: 100%;
  min-block-size: 46px;
  padding: .55rem .75rem;
  background: var(--c-surface);
  color: var(--c-text);
  border: 2.5px solid var(--c-border-strong);
  border-radius: var(--r-md);
  box-shadow: inset 0 2px 0 rgba(94, 58, 20, .10);
  font-weight: 700;
}
.input::placeholder { color: var(--c-text-muted); opacity: .8; font-weight: 600; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--c-ring); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--p-tomato-dp); background: var(--c-danger-soft); }

.field__error { display: block; font-size: var(--fs-sm); font-weight: 800; color: var(--c-danger); padding-block-start: 4px; }
.field__error:empty { display: none; }

/* kg  /  unit switch */
.switch {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: var(--c-border-strong);
  border: 3px solid var(--c-border-deep);
  border-radius: 13px;
  box-shadow: inset 0 -4px 0 rgba(50, 30, 8, .34), 0 3px 0 rgba(94, 58, 20, .25);
}
.switch input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; pointer-events: none; }
.switch label {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  min-block-size: 44px; padding-inline: 6px; padding-block-end: 0;
  font-weight: 900; font-size: var(--fs-md); letter-spacing: -.02em;
  color: #FFF7E8;
  border-radius: 9px;
  cursor: pointer; text-align: center;
  transition: color .18s ease-out;
  -webkit-user-select: none; user-select: none;
}
.switch input:checked + label { color: #2E1C0A; }
.switch input:focus-visible + label { outline: 3px solid var(--c-ring); outline-offset: 2px; }
.switch input:disabled + label { opacity: .5; cursor: not-allowed; }
.switch-thumb {
  position: absolute;
  inset-block: 4px;
  inset-inline-start: 4px;
  inline-size: calc(50% - 4px);
  background: linear-gradient(180deg, #FFF7E8, #F0DEBD);
  border-radius: 9px;
  box-shadow: 0 2px 0 rgba(94, 58, 20, .45), inset 0 2px 0 rgba(255, 255, 255, .7);
  transition: inset-inline-start .2s cubic-bezier(.2, .8, .3, 1);
  z-index: 1;
}
/* the thumb follows the checked radio (2nd input = "unit"), so it tracks the
   control's own state rather than any JS-set attribute */
.switch input:nth-of-type(2):checked ~ .switch-thumb,
[data-mode="unit"] .switch-thumb { inset-inline-start: 50%; }

/* stepper */
.stepper {
  display: inline-flex; align-items: stretch;
  background: var(--c-surface);
  border: 3px solid var(--c-border-strong);
  border-radius: 13px;
  box-shadow: 0 3px 0 rgba(94, 58, 20, .28);
  overflow: hidden;
  max-inline-size: 100%;
}
.stepper__btn {
  inline-size: 46px; min-block-size: 46px; flex: none;
  display: grid; place-items: center;
  background: var(--c-surface-2); color: var(--c-text);
  cursor: pointer;
  transition: background .15s ease-out;
}
.stepper__btn:hover { background: var(--p-sun-2); color: #2E1C0A; }
.stepper__btn:disabled { opacity: .4; cursor: not-allowed; }
.stepper__btn:focus-visible { outline: 3px solid var(--c-ring); outline-offset: -3px; }
.stepper > :first-child { border-inline-end: 3px solid var(--c-border-strong); }
.stepper > :last-child  { border-inline-start: 3px solid var(--c-border-strong); }
.stepper__input {
  inline-size: 5rem; min-inline-size: 0;
  text-align: center;
  background: transparent; color: var(--c-text);
  border: 0; border-radius: 0; box-shadow: none;
  font-weight: 900; font-size: var(--fs-lg); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  padding-inline: 4px;
  min-block-size: 46px;
}
.stepper__input:focus-visible { outline: 3px solid var(--c-ring); outline-offset: -3px; }
.stepper--sm .stepper__btn { inline-size: 44px; min-block-size: 44px; }
.stepper--sm .stepper__input { inline-size: 3.6rem; font-size: var(--fs-md); min-block-size: 44px; }
.stepper-unit { font-size: var(--fs-sm); font-weight: 800; color: var(--c-text-muted); }

/* =============================================================================
   13 — SHOP / STALL / PRODUCT CRATES
   ========================================================================== */
.shopzone {
  background:
    repeating-linear-gradient(90deg, var(--page-grain) 0 3px, transparent 3px 17px),
    linear-gradient(180deg, var(--page-wash-1), transparent);
  border-block: 4px solid var(--c-border);
  padding-block: clamp(20px, 3.2vw, 38px);
}
.stall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr));
  gap: var(--gut);
  align-items: stretch;
}
.pcard { display: flex; flex-direction: column; border-width: 4px; }
.pcard .shot {
  position: relative;
  aspect-ratio: 16 / 11;
  background-color: var(--c-photo-bed);
  border-block-end: 3px solid var(--c-border);
  overflow: hidden;
}
.pcard .shot img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.pcard .shot .pennant { position: absolute; inset-block-start: 10px; inset-inline-start: 0; z-index: 2; }
.pbody { display: flex; flex-direction: column; gap: .55rem; padding: 13px; flex: 1; }
.pcard h3 { font-size: 1.42rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.pdesc { font-size: var(--fs-sm); color: var(--c-text-muted); font-weight: 600; line-height: 1.5; }

.prices {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px;
  background: var(--c-bg);
  border: 2px dashed var(--c-border-strong);
  border-radius: var(--r-md);
}
.prices dl { margin: 0; display: grid; gap: 2px; }
.prices dt { font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-muted); }
.prices dd { margin: 0; font-size: 1.06rem; font-weight: 900; letter-spacing: -.02em; }
.prices .is-on { color: var(--c-accent-ink); }

.qrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.linebox { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-block-start: auto; padding-block-start: 6px; }
.soldout-note { font-size: var(--fs-sm); font-weight: 800; color: var(--c-danger); }

/* =============================================================================
   14 — THE COUNTER (cart lines + till + checkout)
   ========================================================================== */
.counter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-width: 4px;
}

/* ---- cart modal ---------------------------------------------------------
   The counter is presented as a centred dialog. Closes on the X, a backdrop
   click, or Escape. */

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 32px);
}
.cart-modal[hidden] { display: none; }

.cart-modal__scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--c-text) 62%, transparent);
  backdrop-filter: blur(2px);
  animation: cart-fade .18s ease-out;
}

.cart-modal__box {
  position: relative;
  z-index: 1;
  inline-size: min(660px, 100%);
  max-block-size: min(86dvh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 26px 70px rgb(38 24 8 / .42);
  animation: cart-pop .2s cubic-bezier(.2, .8, .3, 1);
}

/* themed close: a small crate-stamp square, not a bare glyph */
.cart-modal__x {
  position: absolute;
  inset-block-start: 9px;
  inset-inline-start: 9px;          /* RTL: lands top-left, away from the title */
  z-index: 2;
  inline-size: 38px;
  block-size: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--c-text-invert);
  background: var(--c-accent);
  border: 2px solid var(--c-border-deep);
  border-radius: 9px;
  box-shadow: 2px 2px 0 var(--c-border-deep);
  transition: transform .14s ease, box-shadow .14s ease;
}
.cart-modal__x svg { inline-size: 19px; block-size: 19px; }
.cart-modal__x:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--c-border-deep); }
.cart-modal__x:active { transform: translate(2px, 2px); box-shadow: none; }
.cart-modal__x:focus-visible { outline: 3px solid var(--c-sun); outline-offset: 2px; }

@keyframes cart-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes cart-pop {
  from { opacity: 0; transform: translateY(10px) scale(.985) }
  to   { opacity: 1; transform: none }
}

body.cart-open { overflow: hidden; }

@media (max-width: 620px) {
  .cart-modal { padding: 0; place-items: end stretch; }
  .cart-modal__box {
    inline-size: 100%;
    max-block-size: 92dvh;
    border-start-start-radius: 16px;
    border-start-end-radius: 16px;
  }
}
.counter-list { padding: 13px; display: flex; flex-direction: column; gap: 9px; min-inline-size: 0; }
.counter h3 { font-size: 1.2rem; font-weight: 900; letter-spacing: -.03em; display: flex; align-items: center; gap: .4rem; }

.citem {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: 9px;
  font-weight: 700; font-size: var(--fs-md);
}
.citem__main { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; flex: 1 1 8rem; }
.cname { font-weight: 900; }
.cqty { color: var(--c-text-muted); font-size: var(--fs-sm); font-weight: 700; }
.cmoney { margin-inline-start: auto; font-weight: 900; }
.crm {
  inline-size: 44px; block-size: 44px; flex: none;
  display: grid; place-items: center;
  background: transparent; color: inherit;
  border: 2px solid var(--c-border); border-radius: 8px; cursor: pointer;
}
.crm:hover { background: var(--p-tomato); color: var(--c-on-accent); border-color: var(--p-tomato-dp); }
.empty { font-weight: 700; color: var(--c-text-muted); padding: 8px 2px; }

.till {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .55rem;
  padding: 14px;
  background: linear-gradient(168deg, var(--p-leaf), var(--p-leaf-dp));
  color: var(--c-on-brand);
  border-inline-start: 4px solid var(--p-leaf-dp);
  inline-size: min(100%, 280px);
}
.till .tl { font-size: var(--fs-sm); font-weight: 800; opacity: .95; }
.till .btn { inline-size: 100%; }
.till .note { font-size: var(--fs-sm); font-weight: 700; }

.checkout-form { display: flex; flex-direction: column; gap: var(--sp-2); }
.checkout-form .flab, .checkout-form label { color: var(--c-text-muted); }

.cart-success { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; padding: 4px 2px; }
.cart-success__mark {
  inline-size: 46px; block-size: 46px; display: grid; place-items: center;
  background: var(--p-leaf); color: var(--c-on-brand);
  border: 2.5px solid var(--p-leaf-dp); border-radius: 12px;
}
.cart-success h3 { font-size: 1.2rem; font-weight: 900; }
.cart-success p { font-weight: 700; color: var(--c-text-muted); }

/* =============================================================================
   15 — TRUST / STORY / PULL QUOTE
   ========================================================================== */
.tcard { display: flex; flex-direction: column; gap: .35rem; padding: 13px; }
.tcard .ic {
  inline-size: 40px; block-size: 40px; display: grid; place-items: center; flex: none;
  background: var(--c-bg); border: 2.5px solid var(--c-border-strong);
  border-radius: 11px; color: var(--c-brand-ink);
}
.crate--red .tcard .ic, .crate--leaf .tcard .ic {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); color: #FFF7E8;
}
.tcard h3 { font-size: 1.08rem; font-weight: 900; letter-spacing: -.02em; }
.tcard p { font-size: var(--fs-sm); font-weight: 600; line-height: 1.45; color: var(--c-text-muted); }
.crate--red .tcard p, .crate--leaf .tcard p { color: #FFEFE4; }

.story { display: flex; flex-direction: column; gap: .6rem; padding: clamp(14px, 2vw, 22px); }
.story h2, .story h3 { font-size: clamp(1.4rem, 2.7vw, 2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.story p { font-size: var(--fs-md); line-height: 1.62; }
.crate--red .story p, .crate--leaf .story p { color: #FFEFE4; }
.crate--sun .story p { color: #2E1C0A; }
.story--serif p { font-family: var(--font-serif); font-size: var(--fs-lg); line-height: 1.72; }
.dropcap::first-letter {
  font-family: var(--font-serif);
  font-size: 3.1em; line-height: .82; font-weight: 700;
  float: right;
  margin-inline-start: .09em; margin-block-start: .06em;
  color: var(--c-accent-ink);
}
.pull {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  font-weight: 700; line-height: 1.3; letter-spacing: -.02em;
  padding: 14px;
  display: flex; align-items: center;
}

/* =============================================================================
   16 — FOOTER
   ========================================================================== */
.foot {
  background: var(--c-deep-bg);
  color: var(--c-deep-text);
  border-block-start: 5px solid var(--c-sun);
  padding-block: clamp(20px, 3vw, 34px) 16px;
  margin-block-start: clamp(18px, 3vw, 30px);
}
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: var(--gut) 18px; }
.fcol h2, .fcol h3 { font-size: 1.05rem; font-weight: 900; color: var(--c-deep-accent); letter-spacing: -.02em; margin-block-end: .35rem; }
.fline { display: flex; align-items: flex-start; gap: .5rem; padding-block: .28rem; font-weight: 600; font-size: var(--fs-md); }
.fline svg { flex: none; margin-block-start: 2px; color: var(--c-sun); }
.fline a { text-decoration: none; }
.fline a:hover { text-decoration: underline; }
.fphone {
  display: inline-flex; align-items: center; min-block-size: 44px;
  font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em;
  text-decoration: none; color: var(--c-deep-accent);
}
.flist li { padding-block: .2rem; }
.flist a { display: inline-flex; align-items: center; min-block-size: 34px; font-weight: 700; text-decoration: none; }
.flist a:hover { text-decoration: underline; }
/* ---- social links: crate-stamp buttons, same language as the cart X ---- */
.social-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-block: 18px 4px;
}
.social-row[hidden] { display: none; }

.soc {
  inline-size: 46px;
  block-size: 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--c-deep-text);
  background: rgba(255, 255, 255, .07);
  border: 2px solid rgba(255, 243, 222, .28);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .3);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
}
.soc svg { inline-size: 21px; block-size: 21px; }
.soc:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, .3);
  background: var(--c-sun);
  color: var(--c-on-sun);
  border-color: var(--c-sun-edge);
}
.soc:active { transform: translate(2px, 2px); box-shadow: none; }
.soc:focus-visible { outline: 3px solid var(--c-sun); outline-offset: 3px; }

.rights {
  margin-block-start: 16px; padding-block-start: 12px;
  border-block-start: 2px dashed rgba(255, 243, 222, .3);
  font-size: var(--fs-sm); font-weight: 600; opacity: .9;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between;
}

/* =============================================================================
   17 — STATES (app error, empty/error blocks, toast, no-JS)
   ========================================================================== */
.app-error {
  background: var(--p-tomato); color: var(--c-on-accent);
  border-block-end: 3px solid var(--p-tomato-dp);
  padding: var(--sp-3) var(--sp-4); text-align: center;
  font-size: var(--fs-sm); font-weight: 800;
}
.app-error__retry {
  margin-inline-start: var(--sp-3); font: inherit; font-weight: 900; cursor: pointer;
  background: transparent; color: inherit; border: 2px solid currentColor;
  border-radius: var(--r-full); padding: 4px var(--sp-3); min-block-size: 32px;
}
.state {
  grid-column: 1 / -1;
  text-align: center; padding: clamp(1.5rem, 5vw, 3rem) var(--sp-4);
  border: 3px dashed var(--c-border-strong); border-radius: var(--r-lg);
  background: var(--c-surface);
}
.state h3 { font-size: var(--fs-xl); font-weight: 900; margin-block-end: var(--sp-2); }
.state p { color: var(--c-text-muted); font-weight: 600; margin-block-end: var(--sp-4); }

.toast {
  position: fixed; inset-block-end: var(--sp-5); inset-inline-start: var(--sp-5); z-index: 120;
  background: var(--c-deep-bg); color: var(--c-deep-text);
  border: 3px solid var(--c-sun);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 13px; box-shadow: var(--shadow-stack-sm);
  font-weight: 800; font-size: var(--fs-sm);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-inline-size: calc(100vw - 2rem);
}
.toast.is-visible { opacity: 1; transform: none; }

.nojs { padding: var(--sp-4); text-align: center; font-weight: 800; background: var(--p-sun-2); color: #2E1C0A; }

/* =============================================================================
   18 — GENERIC CONTRACT COMPONENTS (.card, .table, .select) — kept in the
        crate language for any surface that is not part of the mosaic.
   ========================================================================== */
.card {
  background: var(--c-surface);
  border: var(--crate-border) solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-stack-sm);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.card__title { font-size: var(--fs-xl); font-weight: 900; letter-spacing: -.02em; }

.select { appearance: none; padding-inline-end: var(--sp-6); cursor: pointer; }

.table { inline-size: 100%; border-collapse: collapse; background: var(--c-surface); }
.table th, .table td { text-align: start; padding: var(--sp-3); border-block-end: 2px solid var(--c-border); }
.table thead th { background: var(--c-surface-2); font-weight: 900; }
.table td[data-num], .table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* =============================================================================
   19 — RESPONSIVE
   ========================================================================== */
@media (max-width: 1040px) {
  .mosaic { grid-template-columns: repeat(6, 1fr); }
  .t-hero   { --sp: 6; --rw: 4; }
  .t-tom    { --sp: 4; --rw: 3; }
  .t-mini   { --sp: 2; --rw: 3; }
  .t-cuc    { --sp: 2; --rw: 2; }
  .t-band   { --sp: 6; --rw: 1; }
  .t-let    { --sp: 2; --rw: 2; }

  .t-ban    { --sp: 4; --rw: 3; }
  .t-crop-c { --sp: 2; --rw: 3; }
  .t-ban3   { --sp: 6; --rw: 2; }
  .t-tr     { --sp: 3; --rw: 2; }
  .t-crop-e { --sp: 6; --rw: 2; }

  .t-story  { --sp: 6; --rw: 4; }
  .t-pull   { --sp: 3; --rw: 2; }
  .t-crop-a { --sp: 3; --rw: 2; }
  .t-hyd    { --sp: 6; --rw: 4; }
  .t-crop-b { --sp: 3; --rw: 3; }
  .t-crop-d { --sp: 3; --rw: 3; }
  .t-ami    { --sp: 6; --rw: 3; }
}

@media (max-width: 620px) {
  :root { --gut: 8px; }
  body { font-size: 16px; }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .mosaic > * { grid-column: span 2; grid-row: auto; }
  .mosaic > .half { grid-column: span 1; }
  .crop { aspect-ratio: 4 / 3; }
  .crop.half { aspect-ratio: 1 / 1; }

  .counter { grid-template-columns: 1fr; }
  .till { border-inline-start: 0; border-block-start: 4px solid var(--p-leaf-dp); inline-size: auto; }

  /* header: brand + actions on one line, nav scrolls under it, not sticky */
  .top { position: static; }
  .top-in { padding-block: .4rem; gap: .5rem; }
  .top-actions { order: 2; margin-inline-start: auto; }
  .nav {
    order: 3; flex-basis: 100%;
    flex-wrap: nowrap; overflow-x: auto;
    margin-inline-start: 0;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; }
  .brand-name { font-size: 1.1rem; }
  .top-cta .top-cta__label { display: none; }
  .pull p { font-size: 1.12rem; }
  .stepper__input { inline-size: 4.2rem; }
  .toast { inset-inline: var(--sp-3); inset-block-end: var(--sp-3); }
}

@media (max-width: 400px) {
  .nav a { padding-inline: .5rem; font-size: var(--fs-sm); }
  .brand-sub { display: none; }
  .prices { gap: 4px; }
  .tag .money { font-size: 1.05rem; }
}

/* =============================================================================
   20 — MOTION
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Base state is always visible — the animation only adds an entrance when
   motion is welcome, so nothing can ever be left stuck at opacity:0. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .5s ease-out backwards; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .marq-track { animation: none; transform: none; }
  .tagwrap:hover, .tagwrap:focus-within { animation: none; }
}
