/* ===========================================================================
   KEDAI SNEK — storefront
   ---------------------------------------------------------------------------
   Deliberately nothing like the digital store this codebase came from. That
   one is near-black, neon pink and blackletter, which suits 3D renders and
   would make kerepek look inedible. Nobody's appetite is stirred by gothic.

   Register here: a good sundry shop. Warm paper, abundant, things packed
   close together rather than floating in a gallery. Packaged goods look right
   in boxes, so unlike the digital store these tiles keep their borders — a
   packet of crisps with no edge just looks like a photograph of crisps.

   Two anxieties shape the detail work. Food bought online raises questions a
   file does not: is it fresh, is it halal, what is actually in it, will it
   survive the post. Every one of those gets an answer on the page rather than
   in a FAQ.

   Palette
     #FBF7F0  warm paper      page ground
     #FFFFFF  white           product tiles
     #2A1F1A  dark cocoa      text
     #B33A28  chilli red      actions, price
     #E8DDCB  biscuit         rules and edges
     #3E7A4E  leaf green      halal, in stock, delivery confirmations
   ========================================================================= */

:root {
  --paper:    #FBF7F0;
  --card:     #FFFFFF;
  --ink:      #2A1F1A;
  --ink-soft: #6E6055;
  --ink-faint:#9C8F82;
  --line:     #E8DDCB;
  --chilli:   #B33A28;
  --chilli-d: #8F2C1D;
  --leaf:     #3E7A4E;
  --leaf-bg:  #EDF4EE;
  --butter:   #F5E9D0;

  /* Bricolage Grotesque has real character without being cute — wide, a
     little irregular, reads as a shop sign rather than a corporate header.
     Inter carries anything a customer has to read carefully, like ingredients
     and allergens. */
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans:    'Inter', system-ui, -apple-system, sans-serif;

  --max:  1200px;
  --gut:  clamp(1rem, 4vw, 2.5rem);
  --r:    10px;              /* softer than the digital store's 2px — food is not architecture */
  --ease: cubic-bezier(.22,.61,.36,1);
  --lift: 0 1px 2px rgba(42,31,26,.04), 0 6px 18px rgba(42,31,26,.06);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--chilli); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - var(--gut)*2, var(--max)); margin-inline: auto; }

/* ── type ───────────────────────────────────────────────────────────────── */

.d1 { font-family: var(--display); font-size: clamp(2rem,4.6vw,3.1rem);
      line-height: 1.08; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.d2 { font-family: var(--display); font-size: clamp(1.45rem,2.8vw,2rem);
      line-height: 1.15; font-weight: 700; letter-spacing: -.015em; margin: 0; }
.d3 { font-family: var(--display); font-size: 1.15rem; font-weight: 700;
      letter-spacing: -.01em; margin: 0; }
.lede { font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); max-width: 56ch; margin: 0; }
.meta { font-size: .82rem; line-height: 1.5; color: var(--ink-soft); }

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border: 1px solid transparent; border-radius: 8px;
  font-family: var(--sans); font-size: .92rem; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--buy   { background: var(--chilli); color: #fff; border-color: var(--chilli); }
.btn--buy:hover { background: var(--chilli-d); border-color: var(--chilli-d); }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg    { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ── header ─────────────────────────────────────────────────────────────── */

.hdr { position: sticky; top: 0; z-index: 40; background: rgba(251,247,240,.94);
       backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 1.75rem; height: 68px; }
.hdr__mark { font-family: var(--display); font-size: 1.3rem; font-weight: 800;
             letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.hdr__nav { display: flex; gap: 1.4rem; }
.hdr__nav a { font-size: .9rem; font-weight: 500; text-decoration: none;
              padding-bottom: .2rem; border-bottom: 2px solid transparent; }
.hdr__nav a:hover, .hdr__nav a[aria-current="page"] { border-bottom-color: var(--chilli); }
.hdr__cart { display: flex; align-items: center; gap: .45rem; font-size: .9rem;
             font-weight: 600; text-decoration: none; }
.hdr__count { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center;
              font-size: .7rem; font-weight: 800; background: var(--chilli); color: #fff;
              border-radius: 10px; }
@media (max-width: 760px) { .hdr__nav { display: none; } }

/* ── promise bar ─────────────────────────────────────────────────────────
   Food bought online carries questions a download does not. These three
   answer the ones people actually hesitate over, above the fold. */

.promise { background: var(--butter); border-bottom: 1px solid var(--line); }
.promise__in { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
               padding-block: .85rem; }
.promise__i { padding-inline: 1.25rem; font-size: .84rem; line-height: 1.45; }
.promise__i + .promise__i { border-left: 1px solid rgba(42,31,26,.1); }
.promise__i strong { display: block; font-weight: 700; }
.promise__i span { color: var(--ink-soft); }
@media (max-width: 720px) {
  .promise__in { grid-template-columns: 1fr; gap: .6rem; }
  .promise__i + .promise__i { border-left: 0; }
}

/* ── category strip ─────────────────────────────────────────────────────── */

.cats { display: flex; gap: .6rem; overflow-x: auto; padding-block: .25rem;
        scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; padding: .55rem 1.1rem; border-radius: 100px;
  background: var(--card); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.cats a:hover { border-color: var(--chilli); color: var(--chilli); }
.cats a[aria-current="page"] { background: var(--chilli); border-color: var(--chilli); color: #fff; }

/* ── product tile ───────────────────────────────────────────────────────
   Boxed, unlike the digital store. A packet of crisps with no edge reads as
   a photograph of crisps rather than a thing you can buy. */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr));
        gap: clamp(1rem,2vw,1.5rem); }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: .85rem; } }

.tile {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.tile:hover { border-color: #D6C4A8; box-shadow: var(--lift); transform: translateY(-2px); }

.tile__media { position: relative; aspect-ratio: 1; background: var(--butter); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }

/* Halal sits top-left on the image. For most Malaysian buyers this is a
   purchase decision, not a detail — putting it behind a click loses the sale
   before it starts. */
.tile__halal {
  position: absolute; top: .55rem; left: .55rem;
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .22rem .5rem; border-radius: 100px;
  background: rgba(255,255,255,.94); color: var(--leaf);
  font-size: .68rem; font-weight: 800; letter-spacing: .02em;
}
.tile__sale {
  position: absolute; top: .55rem; right: .55rem;
  padding: .22rem .5rem; border-radius: 100px;
  background: var(--chilli); color: #fff; font-size: .68rem; font-weight: 800;
}
.tile__low {
  position: absolute; bottom: .55rem; left: .55rem;
  padding: .2rem .5rem; border-radius: 100px;
  background: rgba(42,31,26,.82); color: #fff; font-size: .68rem; font-weight: 700;
}

.tile__body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; flex: 1; }
.tile__name { font-size: .95rem; font-weight: 600; line-height: 1.35; margin: 0 0 .15rem; }
/* Net weight beside the name, because "RM 8.50" means nothing without it —
   and comparing a 180 g bag to a 400 g one is the first thing anyone does. */
.tile__weight { font-size: .76rem; color: var(--ink-faint); margin: 0 0 .6rem; }
.tile__price { margin: auto 0 0; font-size: 1.02rem; font-weight: 800; color: var(--chilli); }
.tile__was { font-size: .82rem; font-weight: 500; color: var(--ink-faint);
             text-decoration: line-through; margin-left: .4rem; }

/* ── sections ───────────────────────────────────────────────────────────── */

.sec { padding-block: clamp(2.5rem,5vw,4rem); }
.sechead { display: flex; align-items: baseline; justify-content: space-between;
           gap: 1rem; margin-bottom: 1.5rem; }
.sechead a { font-size: .88rem; font-weight: 600; color: var(--chilli);
             text-decoration: none; white-space: nowrap; }

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(2.5rem,6vw,4.5rem) clamp(2rem,4vw,3rem); }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,3.5rem);
            align-items: center; }
.hero__img { border-radius: var(--r); aspect-ratio: 4/3; object-fit: cover;
             box-shadow: var(--lift); }
@media (max-width: 820px) { .hero__in { grid-template-columns: 1fr; } .hero__img { order: -1; } }

/* ── product page ───────────────────────────────────────────────────────── */

.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem);
       align-items: start; padding-block: clamp(1.5rem,3vw,2.5rem); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }

.pdp__img { width: 100%; aspect-ratio: 1; object-fit: cover;
            border-radius: var(--r); border: 1px solid var(--line); }
.pdp__price { font-family: var(--display); font-size: 2.1rem; font-weight: 800;
              color: var(--chilli); margin: .75rem 0 .2rem; }
.pdp__was { font-family: var(--sans); font-size: 1rem; font-weight: 500;
            color: var(--ink-faint); text-decoration: line-through; margin-left: .5rem; }

/* Specs as a definition list. Ingredients and allergens are not marketing
   copy — people with a peanut allergy read this to decide whether they can
   safely eat, so it gets its own block rather than a line in a paragraph. */
.spec { margin: 1.75rem 0 0; border-top: 1px solid var(--line); }
.spec > div { display: flex; justify-content: space-between; gap: 1.25rem;
              padding: .7rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: .85rem; color: var(--ink-soft); margin: 0; flex: none; }
.spec dd { font-size: .85rem; font-weight: 500; margin: 0; text-align: right; }

.allergen {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: 8px;
  background: #FDF3EF; border: 1px solid #F0D5CC;
  font-size: .84rem; line-height: 1.55;
}
.allergen strong { color: var(--chilli-d); }

.halal-note {
  display: flex; gap: .6rem; align-items: flex-start;
  margin-top: 1rem; padding: .85rem 1rem; border-radius: 8px;
  background: var(--leaf-bg); border: 1px solid #CFE3D4;
  font-size: .84rem; line-height: 1.55;
}
.halal-note strong { color: var(--leaf); }

.qty { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.qty input { width: 68px; padding: .7rem; text-align: center; font-size: 1rem;
             font-weight: 600; border: 1px solid var(--line); border-radius: 8px;
             background: var(--card); }

/* ── cart & the courier picker ──────────────────────────────────────────
   The showpiece. A postcode in, live prices from every courier that will
   carry the parcel, and a choice. Most small shops charge one flat rate and
   lose money on half their orders. */

.cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem,3vw,2.5rem);
        align-items: start; }
@media (max-width: 880px) { .cart { grid-template-columns: 1fr; } }

.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem;
        align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px;
            border: 1px solid var(--line); }
.line__name { font-size: .95rem; font-weight: 600; margin: 0 0 .15rem; }
.line__meta { font-size: .78rem; color: var(--ink-faint); margin: 0; }
.line__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.line__remove { background: none; border: 0; padding: 0; cursor: pointer;
                font-size: .78rem; color: var(--ink-faint); text-decoration: underline; }
.line__remove:hover { color: var(--chilli); }

.panel { background: var(--card); border: 1px solid var(--line);
         border-radius: var(--r); padding: clamp(1.1rem,2.5vw,1.5rem); }
.panel--sticky { position: sticky; top: 92px; }

.totals__row { display: flex; justify-content: space-between; gap: 1rem;
               padding: .45rem 0; font-size: .92rem; color: var(--ink-soft); }
.totals__row--sum { margin-top: .6rem; padding-top: .8rem; border-top: 1px solid var(--line);
                    font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.totals__row span:last-child { font-variant-numeric: tabular-nums; }

.ship-form { display: flex; gap: .5rem; margin-bottom: 1rem; }
.ship-form input {
  flex: 1; min-width: 0; padding: .7rem .85rem;
  font-size: .95rem; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}
.ship-form input:focus { outline: none; border-color: var(--chilli);
                         box-shadow: 0 0 0 3px rgba(179,58,40,.1); }

.courier {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem .9rem; margin-bottom: .5rem; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.courier:hover { border-color: var(--chilli); }
.courier:has(input:checked) { border-color: var(--chilli); background: #FDF3EF; }
.courier input { accent-color: var(--chilli); width: 17px; height: 17px; flex: none; }
.courier__body { flex: 1; min-width: 0; }
.courier__name { font-size: .9rem; font-weight: 600; margin: 0; }
.courier__eta  { font-size: .76rem; color: var(--ink-faint); margin: 0; }
.courier__price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Cheapest is marked rather than merely sorted first — people scan for the
   label, not the order. */
.courier__best { display: inline-block; margin-left: .4rem; padding: .1rem .4rem;
                 border-radius: 100px; background: var(--leaf-bg); color: var(--leaf);
                 font-size: .66rem; font-weight: 800; }

.ship-note { font-size: .78rem; color: var(--ink-faint); line-height: 1.5; margin: .6rem 0 0; }

/* ── forms ──────────────────────────────────────────────────────────────── */

.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .75rem .9rem; font-family: var(--sans); font-size: .95rem;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--chilli); box-shadow: 0 0 0 3px rgba(179,58,40,.1);
}
.field__err { display: block; margin-top: .3rem; font-size: .78rem; color: var(--chilli-d); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .f2 { grid-template-columns: 1fr; } }

/* ── notices ────────────────────────────────────────────────────────────── */

.notice { padding: .85rem 1rem; border-radius: 8px; font-size: .88rem;
          line-height: 1.55; margin-bottom: 1.25rem; }
.notice--err  { background: #FDF3EF; border: 1px solid #F0D5CC; }
.notice--ok   { background: var(--leaf-bg); border: 1px solid #CFE3D4; }
.flash { padding: .8rem 1rem; margin-bottom: 1.5rem; background: var(--leaf-bg);
         border: 1px solid #CFE3D4; border-radius: 8px; font-size: .88rem; }

.empty { padding: clamp(3rem,7vw,4.5rem) 1rem; text-align: center; }
.empty__t { font-family: var(--display); font-size: 1.2rem; font-weight: 700; margin: 0 0 .4rem; }
.empty__b { font-size: .92rem; color: var(--ink-soft); margin: 0 0 1.4rem; }

/* ── footer ─────────────────────────────────────────────────────────────── */

.ftr { margin-top: clamp(3rem,6vw,4.5rem); padding-block: 2.5rem 1.75rem;
       background: var(--ink); color: rgba(255,255,255,.72); }
.ftr__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.ftr__mark { font-family: var(--display); font-size: 1.3rem; font-weight: 800; color: #fff; margin: 0; }
.ftr h4 { font-size: .78rem; font-weight: 700; color: #fff; margin: 0 0 .7rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ftr a { font-size: .86rem; color: rgba(255,255,255,.72); text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr__base { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14);
             font-size: .78rem; color: rgba(255,255,255,.5); }
@media (max-width: 720px) { .ftr__in { grid-template-columns: 1fr; gap: 1.75rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .tile:hover { transform: none; }
}

/* ═══ CHECKOUT ══════════════════════════════════════════════════════════════
   Added after the first pass, where checkout inherited the digital store's
   view and half its classes did not exist here.
   ========================================================================= */

/* A form that runs the full 1200px is exhausting to fill in — the eye has to
   travel the whole width for a postcode. Two columns, with the summary pinned
   so the total is always visible while they type. */
.checkout { display: grid; grid-template-columns: 1.35fr .9fr;
            gap: clamp(1.5rem,3.5vw,3rem); align-items: start;
            padding-block: 2rem 3.5rem; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }

.checkout__form { max-width: 30rem; }

.step { margin-bottom: 2rem; }
.step__head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .9rem; }
.step__n {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center;
  background: var(--ink); color: #fff; border-radius: 50%;
  font-size: .72rem; font-weight: 800;
}
.step__t { font-family: var(--display); font-size: 1.05rem; font-weight: 700; margin: 0; }

/* ── payment picker ──────────────────────────────────────────────────────
   The digital store rendered these inline because its own classes were
   missing. Stacked cards, one per row, with the logo mark carrying the
   recognition rather than the label alone. */

.pays { display: grid; gap: .55rem; margin-bottom: 1.25rem; }

.pay {
  display: flex; align-items: center; gap: .8rem;
  padding: .95rem 1rem; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.pay:hover { border-color: var(--chilli); }
.pay:has(input:checked) { border-color: var(--chilli); background: #FDF3EF; }
.pay input { accent-color: var(--chilli); width: 17px; height: 17px; flex: none; margin: 0; }

.pay__body { flex: 1; min-width: 0; }
.pay__name { display: block; font-size: .93rem; font-weight: 700; line-height: 1.3; }
.pay__note { display: block; font-size: .78rem; color: var(--ink-faint); line-height: 1.4;
             margin-top: .1rem; }

/* Payment-method marks. Text rather than logo files — real brand assets have
   usage rules, and a wrong-coloured Visa logo looks worse than none. */
.pay__marks { display: flex; gap: .3rem; flex: none; }
.pay__mark {
  padding: .2rem .42rem; border-radius: 4px;
  background: var(--butter); border: 1px solid var(--line);
  font-size: .62rem; font-weight: 800; letter-spacing: .02em; color: var(--ink-soft);
}

#payment-element { min-height: 80px; margin: 1rem 0 1.25rem; }

/* ── order summary ──────────────────────────────────────────────────────── */

.summary__line { display: flex; justify-content: space-between; gap: 1rem;
                 padding: .55rem 0; font-size: .89rem; }
.summary__line img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px;
                     border: 1px solid var(--line); flex: none; }
.summary__item { display: flex; gap: .65rem; align-items: center; flex: 1; min-width: 0; }
.summary__name { font-weight: 600; line-height: 1.3; }
.summary__qty { font-size: .76rem; color: var(--ink-faint); }

.secure-note { display: flex; gap: .5rem; align-items: flex-start;
               margin-top: 1rem; font-size: .78rem; color: var(--ink-faint);
               line-height: 1.5; }

/* ── polish fixes ───────────────────────────────────────────────────────── */

/* The wordmark was wrapping onto two lines and pushing the header out. */
.hdr__mark { white-space: nowrap; }

/* Nav overflowed with more than four categories. Scrolls rather than wraps. */
.hdr__nav { overflow-x: auto; scrollbar-width: none; }
.hdr__nav::-webkit-scrollbar { display: none; }
.hdr__nav a { white-space: nowrap; }

/* Page headings were oversized against the form beneath them. */
.page-head { padding-block: 2rem 0; }
.page-head .d2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

/* ── background texture ─────────────────────────────────────────────────
   A very faint dot grid on the paper ground. Warm shops have texture; a flat
   colour reads as a web app.

   Kept under 2% opacity and never behind body text — anything stronger and
   ingredient lists become tiring to read, which for an allergen warning is a
   real cost rather than an aesthetic one. */
body {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(42,31,26,.045) 1px, transparent 0);
  background-size: 22px 22px;
  background-attachment: fixed;
}

/* Panels and tiles stay flat so the texture never shows through content. */
.panel, .tile, .field input, .field textarea, .field select,
.pay, .courier, .allergen, .halal-note { background-clip: padding-box; }


/* ═══ RHYTHM ═══════════════════════════════════════════════════════════════
   The first pass was one cream colour from top to bottom, which reads flat no
   matter what texture sits behind it. Boring is a rhythm problem, not a
   texture problem.

   Fixed by giving sections different grounds so the page has a beat, and by
   putting the snack pattern in specific bands rather than everywhere. A
   pattern behind everything stops registering after ten seconds and makes
   small text harder to read for no gain.
   ========================================================================= */

:root {
  --cream:  #FBF7F0;
  --warm:   #F6EDE0;   /* one step deeper — section alternation */
  --deep:   #F0E2CE;   /* deepest of the three, used sparingly */
  --snacks-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E %3Cg fill='none' stroke='%23B33A28' stroke-width='1.6' stroke-linecap='round' opacity='0.5'%3E %3C%21-- peanut --%3E %3Cpath d='M18 30c-6-4-6-12 0-15s10 2 14 2 8-5 14-2 6 11 0 15-10-2-14-2-8 5-14 2z'/%3E %3C%21-- crisp, wavy --%3E %3Cpath d='M96 22c8-6 18-2 22 4s-2 14-10 16-18-2-20-8 2-9 8-12z'/%3E %3Cpath d='M102 28c4-2 8-1 10 2'/%3E %3C%21-- round biscuit --%3E %3Ccircle cx='46' cy='92' r='13'/%3E %3Ccircle cx='46' cy='92' r='4'/%3E %3C%21-- twisted muruku --%3E %3Cpath d='M124 84c10 0 10 10 0 10s-10 10 0 10 10-10 0-10'/%3E %3C%21-- cube of dodol --%3E %3Crect x='14' y='132' width='20' height='20' rx='3'/%3E %3C%21-- cashew --%3E %3Cpath d='M92 140c8-8 20-6 24 2s-6 14-14 12-14-6-10-14z'/%3E %3C%21-- seeds --%3E %3Cellipse cx='150' cy='46' rx='5' ry='8' transform='rotate(25 150 46)'/%3E %3Cellipse cx='66' cy='158' rx='5' ry='8' transform='rotate(-20 66 158)'/%3E %3C/g%3E %3C/svg%3E");
}

/* The dot grid from the first pass, removed. The pattern below replaces it,
   and two textures at once is one too many. */
body { background-image: none; background-color: var(--cream); }

/* Bands. Full-bleed colour with the content still in the normal wrapper. */
.band        { background: var(--cream); }
.band--warm  { background: var(--warm); }
.band--deep  { background: var(--deep); }

/* The pattern, at low opacity, in bands that hold headings and short copy —
   never long text. */
.band--pattern { position: relative; overflow: hidden; }
.band--pattern::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--snacks-pattern);
  background-size: 180px 180px;
  /* Visible enough to register as texture, faint enough that the heading on
     top of it never has to compete. Tested at 28% for the pattern itself —
     that reads as wallpaper and pulls attention off the products. */
  opacity: .13;
  pointer-events: none;
}
.band--pattern > * { position: relative; }

/* ── hero ───────────────────────────────────────────────────────────────
   Full-bleed photograph with a warm scrim, rather than an image sat politely
   in a column. Food shops sell on appetite, and appetite is carried by the
   picture being big. */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  /* Slightly desaturated and darkened so white text stays legible over any
     part of the image — a scrim that only works on the left is a scrim that
     breaks on mobile. */
  filter: saturate(115%);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(42,31,26,.9) 0%, rgba(42,31,26,.78) 45%,
                            rgba(42,31,26,.35) 100%),
    linear-gradient(0deg, rgba(42,31,26,.35), transparent 45%);
}
.hero__in { position: relative; max-width: 34rem; }
.hero .d1  { color: #fff; }
.hero .lede { color: rgba(255,255,255,.82); }

.hero__tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; margin-bottom: 1.1rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px; color: #fff;
  font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(4px);
}

/* ── marquee ────────────────────────────────────────────────────────────
   A moving strip of what is in the shop. Cheap warmth, and it reads as a
   market stall rather than a web form. Pauses on hover and stops entirely
   for anyone who has asked for reduced motion. */

.marquee {
  background: var(--chilli); color: #fff; overflow: hidden;
  padding-block: .6rem; border-block: 1px solid rgba(0,0,0,.08);
}
.marquee__track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--display); font-size: .92rem; font-weight: 700;
  letter-spacing: .01em; white-space: nowrap; opacity: .95;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ── section divider ────────────────────────────────────────────────────
   A torn-paper edge between bands. Packaging language — snacks come in paper,
   and it stops the colour change reading as a hard rectangle. */

.tear { position: relative; height: 22px; margin-bottom: -1px; }
.tear svg { display: block; width: 100%; height: 100%; }

/* ── category cards ─────────────────────────────────────────────────────
   The pill row was thin and easy to miss. Cards with an image give the eye
   somewhere to land between the hero and the grid. */

.catcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
            gap: .9rem; }
.catcard {
  position: relative; display: block; aspect-ratio: 4/3;
  border-radius: var(--r); overflow: hidden; text-decoration: none;
  border: 1px solid var(--line);
}
.catcard img { width: 100%; height: 100%; object-fit: cover;
               transition: transform .5s var(--ease); }
.catcard:hover img { transform: scale(1.05); }
.catcard span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .75rem .85rem;
  background: linear-gradient(transparent, rgba(42,31,26,.85));
  color: #fff; font-family: var(--display); font-size: .95rem; font-weight: 700;
}

/* ── inline note ────────────────────────────────────────────────────────── */

.pitch {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
}
.pitch__i h3 { font-family: var(--display); font-size: 1rem; font-weight: 700;
               margin: 0 0 .35rem; }
.pitch__i p  { font-size: .88rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }
@media (max-width: 720px) { .pitch { grid-template-columns: 1fr; gap: 1.25rem; } }
