/* ===========================================================
   RAMESH GROCERIES — "Masala Dabba"
   Steel container, spice contents.
   =========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* brushed steel — the tin */
  --steel-900: #17191c;
  --steel-800: #212429;
  --steel-700: #3a3e44;
  --steel-500: #6c7278;
  --steel-400: #9aa0a7;
  --steel-250: #c8ccd0;
  --steel-150: #dfe1e3;
  --steel-080: #ebeced;
  --steel-050: #f4f5f6;
  --white: #ffffff;
  --ink: #101215;

  /* seven spices — the contents. Nothing else is coloured. */
  --manjal: #e3a012;      /* turmeric   */
  --milagai: #b02a18;     /* chilli     */
  --kothamalli: #7e8c42;  /* coriander  */
  --elakkai: #46765a;     /* cardamom   */
  --kirambu: #6b3620;     /* clove      */
  --milagu: #24201d;      /* pepper     */
  --perungayam: #c8a860;  /* asafoetida */

  /* type */
  --display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --body: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", monospace;

  /* scale */
  --t-hero: clamp(2.75rem, 7.4vw, 6.5rem);
  --t-h2: clamp(1.9rem, 3.9vw, 3.4rem);
  --t-h3: clamp(1.25rem, 1.9vw, 1.6rem);
  --t-body: clamp(1rem, 0.96rem + 0.22vw, 1.135rem);
  --t-label: 0.66rem;

  /* rhythm */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --maxw: 1360px;
  --radius: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--steel-150);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-booting { overflow: hidden; }
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }

::selection { background: var(--manjal); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--manjal);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--ink); color: var(--steel-050);
  padding: 0.7em 1.2em; font-family: var(--mono); font-size: var(--t-label);
  letter-spacing: 0.14em; text-transform: uppercase; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Type roles ---------- */
.label {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--steel-500);
}
.price { font-family: var(--mono); font-weight: 600; letter-spacing: -0.03em; font-size: 0.95rem; }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--section-y); }
.band--dark { background: var(--steel-900); color: var(--steel-150); }
.band--dark .label { color: var(--steel-500); }
.band--tight { padding-block: clamp(3rem, 5.5vw, 5rem); }

.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.75rem);
}
@media (min-width: 900px) {
  .band-head { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; gap: 2.5rem; }
}
.band-head__title { font-family: var(--display); font-weight: 700; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.03em; }
/* a hard break that has already wrapped reads as a mistake — let narrow screens flow */
.br-wide { display: none; }
@media (min-width: 760px) { .br-wide { display: inline; } }
.band-head__note { color: var(--steel-500); max-width: 46ch; }
.band--dark .band-head__note { color: var(--steel-400); }


/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.65em;
  padding: 0.95em 1.6em;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 100px;
  transition: transform 0.35s var(--ease-out), background-color 0.25s, color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--fill { background: var(--ink); color: var(--steel-050); }
.btn--fill:hover { background: var(--milagu); box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.6); }
.btn--gold { background: var(--manjal); color: var(--ink); }
.btn--gold:hover { box-shadow: 0 10px 26px -10px rgba(227, 160, 18, 0.75); }
.btn--line { border: 1px solid currentColor; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--steel-050); border-color: var(--ink); }
.band--dark .btn--line { color: var(--steel-150); }
.band--dark .btn--line:hover { background: var(--steel-150); color: var(--ink); }
.btn__arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
/* buttons in a row keep their gap when they wrap onto a second line */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- 6. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--steel-150) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.header.is-stuck { border-bottom-color: var(--steel-250); }
.header__in {
  display: flex; align-items: center; gap: 1.25rem;
  height: clamp(60px, 7vw, 76px);
}
.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; min-width: 0; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  display: block;
  font-family: var(--display); font-weight: 800; font-size: 1.06rem;
  letter-spacing: -0.035em; text-transform: uppercase;
  white-space: nowrap;
  /* the wordmark is all caps with no descenders, so the bottom third of a
     line-height:1 box is dead air sitting between it and the locality line */
  line-height: 0.8;
}
/* line-height:1 matters — without it the sub inherits the body's 1.6 and the
   half-leading opens a gap under the wordmark that no margin explains. */
.brand__sub {
  display: block; white-space: nowrap;
  font-family: var(--mono); font-size: 0.63rem; line-height: 1;
  letter-spacing: 0.28em; color: var(--steel-500); margin-top: 3px;
}

.nav { display: none; gap: 0.35rem; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav__link {
  position: relative; padding: 0.5rem 0.9rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel-700); transition: color 0.2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.25rem;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  transition: background-color 0.2s;
}
.icon-btn:hover { background: var(--steel-250); }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 100px;
  background: var(--milagai); color: #fff;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600; line-height: 1;
  transform: scale(0); transition: transform 0.35s var(--ease-out);
}
.cart-count.is-on { transform: scale(1); }

.burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
@media (min-width: 900px) { .burger { display: none; } }
.burger span {
  display: block; width: 19px; height: 1.5px; background: currentColor; border-radius: 2px;
  transform-origin: 50% 50%;
  transition: transform 0.32s var(--ease), opacity 0.18s, background-color 0.3s;
}
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* with the menu open the header stops being a bar and just holds the close control */
body.menu-open .header {
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  color: var(--steel-050);
}
body.menu-open .brand__sub { color: var(--steel-500); }
body.menu-open .icon-btn:hover { background: var(--steel-800); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 85;
  background: var(--steel-900); color: var(--steel-150);
  padding: calc(clamp(60px, 7vw, 76px) + 1.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out);
  visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu__link {
  font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 9vw, 3rem);
  letter-spacing: -0.04em; line-height: 1.1; padding: 0.22em 0;
  border-bottom: 1px solid var(--steel-800);
  display: flex; align-items: baseline; justify-content: space-between;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
body.menu-open .mobile-menu__link { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--i) * 0.055s); }
.mobile-menu__nav { margin-block: auto; width: 100%; }
.mobile-menu__foot {
  padding-top: 1.75rem; border-top: 1px solid var(--steel-800);
  display: grid; gap: 0.65rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out) 0.42s, transform 0.5s var(--ease-out) 0.42s;
}
body.menu-open .mobile-menu__foot { opacity: 1; transform: none; }
.mobile-menu__foot a { font-size: 1.02rem; color: var(--steel-150); }
.mobile-menu__foot .label { color: var(--steel-700); }
.mobile-menu__link .label { color: var(--steel-700); }

/* ---------- 7. Boot / startup animation ---------- */
.boot {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: var(--steel-900);
  overflow: hidden;
}
.boot[hidden] { display: none; }
.boot__lid {
  position: relative;
  width: min(78vmin, 520px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.10) 0 1.5px, rgba(0,0,0,0.05) 1.5px 3.2px),
    radial-gradient(circle at 34% 26%, #fdfdfe 0%, #d3d7db 40%, #9aa0a7 68%, #5f656b 100%);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(255,255,255,0.35);
  transform: scale(0.62);
  opacity: 0;
  animation: lid-in 0.9s var(--ease-out) 0.1s forwards;
}
.boot__lid::before {
  content: ""; position: absolute; inset: 5.5%; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16), inset 0 0 0 6px rgba(255,255,255,0.16);
}
.boot__lid::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: linear-gradient(74deg, transparent 34%, rgba(255,255,255,0.85) 47%, transparent 60%);
  opacity: 0;
  transform: translateX(-60%);
  animation: gleam 1.15s var(--ease) 0.85s forwards;
}
.boot__engrave { position: relative; z-index: 2; text-align: center; padding: 1rem; }
/* stacked wordmark, engraved into the lid — both words the same size */
.boot__word {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.75rem, 7.6vmin, 3.15rem); line-height: 0.94;
  letter-spacing: -0.035em;
  color: rgba(30, 34, 38, 0.62);
  text-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 -1px 1px rgba(0,0,0,0.28);
  opacity: 0; transform: translateY(10px);
  animation: engrave 0.7s var(--ease-out) 0.42s forwards;
}
.boot__word + .boot__word { animation-delay: 0.54s; }
.boot__name {
  margin-top: 0.85rem;
  font-family: var(--mono); font-size: clamp(0.62rem, 1.7vmin, 0.72rem);
  letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase;
  color: rgba(30, 34, 38, 0.5);
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
  opacity: 0;
  animation: engrave 0.7s var(--ease-out) 0.76s forwards;
}
.boot__rule {
  width: 40%; height: 1px; margin: 0.95rem auto 0;
  background: rgba(30,34,38,0.28);
  transform: scaleX(0);
  animation: rule-in 0.8s var(--ease-out) 0.66s forwards;
}
.boot.is-lifting .boot__lid { animation: lid-lift 0.95s var(--ease) forwards; }
.boot.is-lifting { animation: boot-fade 0.7s var(--ease) 0.35s forwards; }

@keyframes lid-in { to { transform: scale(1); opacity: 1; } }
@keyframes engrave { to { opacity: 1; transform: none; } }
@keyframes rule-in { to { transform: scaleX(1); } }
@keyframes gleam {
  0% { opacity: 0; transform: translateX(-65%); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateX(65%); }
}
@keyframes lid-lift {
  to { transform: scale(2.9) translateY(-6%); opacity: 0; filter: blur(6px); }
}
@keyframes boot-fade { to { opacity: 0; visibility: hidden; } }

/* ---------- 8. Reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d] { transition-delay: calc(var(--i, 0) * 0.075s); }

/* hero line mask */
.line-mask { display: block; overflow: hidden; }
.line-mask > span {
  display: block; transform: translateY(102%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.09s);
}
.hero.is-live .line-mask > span { transform: none; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 200vw; height: 1px;
  transform: translateX(-50%); background: var(--steel-250);
}
/* Narrow: headline, then the tin, then the pitch. Wide: two columns. */
.hero__grid { display: grid; gap: clamp(2.25rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    column-gap: clamp(2rem, 4vw, 4.5rem);
    row-gap: 0;
  }
  .hero__head { grid-column: 1; grid-row: 1; }
  .hero__copy { grid-column: 1; grid-row: 2; }
  .dabba-stage { grid-column: 2; grid-row: 1 / span 2; }
}
.hero__title { font-family: var(--display); font-weight: 800; font-size: var(--t-hero); line-height: 0.93; letter-spacing: -0.042em; }
.hero__title em { font-style: normal; color: var(--milagai); }
.hero__lede {
  margin-top: clamp(1.25rem, 2.4vw, 1.9rem);
  max-width: 42ch; color: var(--steel-700); font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--ease-out) 0.5s, transform 0.8s var(--ease-out) 0.5s;
}
.hero.is-live .hero__lede { opacity: 1; transform: none; }
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: clamp(1.75rem, 3vw, 2.5rem);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--ease-out) 0.62s, transform 0.8s var(--ease-out) 0.62s;
}
.hero.is-live .hero__cta { opacity: 1; transform: none; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.25rem; border-top: 1px solid var(--steel-250);
  opacity: 0; transition: opacity 0.9s var(--ease-out) 0.8s;
}
.hero.is-live .hero__facts { opacity: 1; }
.hero__fact { display: flex; align-items: baseline; gap: 0.5rem; }
.hero__fact b { font-family: var(--mono); font-weight: 600; font-size: 0.82rem; letter-spacing: -0.02em; }
.hero__fact span { font-size: 0.8rem; color: var(--steel-500); }

/* ---------- 10. THE DABBA (signature) ---------- */
.dabba-stage { display: grid; gap: 1.5rem; justify-items: center; }
.dabba {
  position: relative; width: min(100%, 560px); aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.10) 0 1.5px, rgba(0,0,0,0.045) 1.5px 3.2px),
    radial-gradient(circle at 32% 24%, #ffffff 0%, #e6e9ec 36%, #bdc3c9 64%, #878e94 88%, #666c72 100%);
  box-shadow:
    0 44px 80px -40px rgba(23, 25, 28, 0.65),
    0 6px 18px -8px rgba(23, 25, 28, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: opacity 0.9s var(--ease-out) 0.15s, transform 1.1s var(--ease-out) 0.15s;
}
/* only the hero's tin waits for the opening sequence */
.hero .dabba { opacity: 0; transform: scale(0.9); }
.hero.is-live .dabba { opacity: 1; transform: none; }
/* inner rim */
.dabba::before {
  content: ""; position: absolute; inset: 4.5%; border-radius: 50%; z-index: 0;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0 1px, rgba(0,0,0,0.04) 1px 2.4px),
    radial-gradient(circle at 38% 30%, #fafbfb, #d6dade 56%, #aeb4ba 100%);
  box-shadow: inset 0 3px 14px rgba(0,0,0,0.22), inset 0 -2px 6px rgba(255,255,255,0.6);
}
/* specular sheen — rides on the metal only, never across the wells */
.dabba::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
  background: linear-gradient(
    calc(52deg + var(--spin, 0deg) * 0.35),
    transparent 34%, rgba(255,255,255,0.5) 47%, rgba(255,255,255,0.06) 55%, transparent 68%);
  mix-blend-mode: screen; opacity: 0.8;
}

.dabba__ring {
  position: absolute; inset: 0; z-index: 2;
  transform: rotate(var(--spin, 0deg));
  will-change: transform;
}
/* Well size and ring radius are computed in JS from the number of categories —
   six around one is the designed case, but the tin re-tools for any count. */
.well {
  position: absolute; top: 50%; left: 50%;
  aspect-ratio: 1; margin: 0;
}
.well--ring {
  width: var(--wsize, 26%);
  transform:
    translate(-50%, -50%)
    rotate(var(--a))
    translateY(var(--ty, -105.8%))
    rotate(calc(-1 * var(--a)));
}
.well--center { width: var(--csize, 26%); transform: translate(-50%, -50%); z-index: 3; }
/* the well: a ring of spice powder with the ingredient sitting in it */
.well__face {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden;
  background: var(--wellcolor, var(--steel-250));
  box-shadow:
    inset 0 4px 11px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.65);
  transform: rotate(calc(-1 * var(--spin, 0deg)));
  transition: box-shadow 0.4s var(--ease);
}
.well__face img {
  position: absolute; inset: 9%; width: 82%; height: 82%;
  border-radius: 50%;
  object-fit: cover; object-position: center 46%;
  transform: scale(1);
  transition: transform 0.7s var(--ease-out);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}
.well__face::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 4%, rgba(0, 0, 0, 0.3), transparent 46%);
  pointer-events: none;
}
.well:hover .well__face img,
.well.is-active .well__face img { transform: scale(1.09); }
.well:hover .well__face,
.well.is-active .well__face {
  box-shadow:
    inset 0 4px 11px rgba(0, 0, 0, 0.42),
    0 0 0 3px var(--steel-050),
    0 0 0 5px var(--wellcolor, var(--steel-400));
}

/* readout below the tin */
.dabba-readout {
  display: grid; gap: 0.35rem; text-align: center; min-height: 3.9rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.8s var(--ease-out) 0.55s, transform 0.8s var(--ease-out) 0.55s;
}
.hero.is-live .dabba-readout { opacity: 1; transform: none; }
.dabba-readout__swatch { width: 26px; height: 3px; margin-inline: auto; background: var(--wellcolor, var(--ink)); transition: background-color 0.35s; }
.dabba-readout__en { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.5rem); letter-spacing: -0.03em; line-height: 1.12; }
.dabba-readout__meta { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-500); }
.dabba-readout.is-swapping .dabba-readout__en,
.dabba-readout.is-swapping .dabba-readout__meta { opacity: 0; transform: translateY(-5px); }
.dabba-readout__en, .dabba-readout__meta { transition: opacity 0.22s, transform 0.22s; }

.dabba-hint {
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--steel-400); text-align: center;
}

/* plain category list — always available, the tin is never the only route */
.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--steel-250); border-block: 1px solid var(--steel-250); }
.category {
  background: var(--steel-150); padding: 1.15rem 1.15rem 1.25rem;
  display: grid; gap: 0.15rem; align-content: start;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.category:hover { background: var(--steel-050); }
.category__bar { height: 3px; width: 22px; background: var(--wellcolor); margin-bottom: 0.55rem; transition: width 0.4s var(--ease-out); }
.category:hover .category__bar { width: 40px; }
.category__en { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.025em; line-height: 1.18; }
.category__n { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--steel-500); margin-top: 0.35rem; }

/* ---------- 11. Fresh rail (dark band) ---------- */
.rail {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1.25rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--steel-700) transparent;
}
.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-thumb { background: var(--steel-700); border-radius: 4px; }
.rail > * { scroll-snap-align: start; flex: 0 0 clamp(200px, 24vw, 260px); }

.fresh-card {
  background: var(--steel-050); color: var(--ink);
  display: grid; grid-template-rows: auto 1fr auto;
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.fresh-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -26px rgba(0,0,0,0.7); }
.fresh-card__img { position: relative; aspect-ratio: 1; background: var(--white); overflow: hidden; }
.fresh-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform 0.65s var(--ease-out); }
.fresh-card:hover .fresh-card__img img { transform: scale(1.07); }
.fresh-card__tag {
  position: absolute; top: 0.7rem; left: 0.7rem;
  font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--ink); color: var(--steel-050); padding: 0.35em 0.7em; border-radius: 100px;
}
.fresh-card__body { padding: 1rem 1.1rem 0.35rem; display: grid; gap: 0.15rem; }
.fresh-card__name { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; line-height: 1.2; }
.fresh-card__unit { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--steel-500); text-transform: uppercase; }
.fresh-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 1.1rem 1.1rem; }

.add-btn {
  display: inline-flex; align-items: center; gap: 0.45em;
  border: 1px solid var(--steel-250); border-radius: 100px; padding: 0.5em 0.9em;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.add-btn:hover { background: var(--ink); color: var(--steel-050); border-color: var(--ink); }
.add-btn.is-added { background: var(--elakkai); border-color: var(--elakkai); color: #fff; }

/* ---------- 12. Brand wall ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 1rem; width: max-content; animation: slide 46s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 58s; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.brand-chip {
  flex: none;
  width: clamp(88px, 10vw, 118px); height: clamp(88px, 10vw, 118px);
  background: var(--white); border-radius: 50%;
  /* px, not %: the track is max-content, so a percentage would resolve
     against the whole strip and blow the chip up. */
  display: grid; place-items: center; padding: 15px;
  box-shadow: inset 0 0 0 1px var(--steel-250);
  transition: transform 0.4s var(--ease-out);
}
.brand-chip:hover { transform: scale(1.06); }
.brand-chip img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* ---------- 13. Delivery ---------- */
.slots { display: grid; gap: 1px; background: var(--steel-700); }
@media (min-width: 760px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slot { background: var(--steel-900); padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; gap: 0.6rem; align-content: start; }
.slot__time { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--manjal); }
.slot__title { font-family: var(--display); font-weight: 700; font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1.14; color: var(--steel-050); }
.slot__note { color: var(--steel-400); font-size: 0.95rem; }

.zones { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.zone {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em;
  padding: 0.45em 0.85em; border: 1px solid var(--steel-250); border-radius: 100px;
  color: var(--steel-500); transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.zone:hover { color: var(--ink); border-color: var(--steel-500); }
.zone--free { border-color: var(--elakkai); color: var(--elakkai); }
.band--dark .zone { border-color: var(--steel-700); color: var(--steel-400); }
.band--dark .zone:hover { color: var(--steel-050); border-color: var(--steel-400); }
.band--dark .zone--free { border-color: var(--elakkai); color: #9ec9ae; }

/* ---------- 14. Reviews ---------- */
.quotes { display: grid; gap: 1px; background: var(--steel-250); }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--steel-150); padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: 1rem; align-content: start; }
.quote__stars { display: flex; gap: 3px; color: var(--manjal); }
.quote__text { font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.35; letter-spacing: -0.02em; }
.quote__who { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-500); }

/* ---------- 15. Footer ---------- */
.footer { background: var(--steel-900); color: var(--steel-400); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; } }
.footer__mark { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.045em; line-height: 0.95; color: var(--steel-050); text-transform: uppercase; }
.footer__addr { margin-top: 1.1rem; font-size: 0.92rem; line-height: 1.65; font-style: normal; }
.footer__addr a:hover { color: var(--steel-050); }
.footer h4 { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel-500); font-weight: 400; margin-bottom: 1rem; }
.footer li + li { margin-top: 0.5rem; }
.footer li a { font-size: 0.92rem; transition: color 0.2s; }
.footer li a:hover { color: var(--steel-050); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--steel-800);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-700);
}
.newsletter { display: flex; gap: 0.5rem; margin-top: 1rem; }
.newsletter input {
  flex: 1; min-width: 0; background: transparent; border: 1px solid var(--steel-700);
  border-radius: 100px; padding: 0.75em 1.1em; font-size: 0.85rem; color: var(--steel-050);
  transition: border-color 0.25s;
}
.newsletter input::placeholder { color: var(--steel-700); }
.newsletter input:focus { border-color: var(--steel-400); outline: none; }
.newsletter button {
  flex: none; background: var(--manjal); color: var(--ink); border-radius: 100px; padding: 0 1.1em;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  transition: transform 0.3s var(--ease-out);
}
.newsletter button:hover { transform: translateY(-2px); }
.newsletter__done { font-size: 0.8rem; color: var(--elakkai); margin-top: 0.6rem; }

/* ---------- 16. Cart drawer ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 95; background: rgba(16, 18, 21, 0.55);
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  backdrop-filter: blur(2px);
}
body.cart-open .scrim { opacity: 1; visibility: visible; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 96;
  width: min(420px, 100%); background: var(--steel-050);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(102%);
  transition: transform 0.55s var(--ease-out);
  box-shadow: -30px 0 60px -30px rgba(0,0,0,0.5);
}
body.cart-open .cart { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem var(--gutter); border-bottom: 1px solid var(--steel-250); }
.cart__title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.cart__body { overflow-y: auto; padding: 0 var(--gutter); }
.cart__empty { padding: 3rem 0; display: grid; gap: 1rem; justify-items: start; }
.cart__empty p { color: var(--steel-500); max-width: 30ch; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 0.9rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--steel-250); }
.cart-line__img { width: 56px; height: 56px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px var(--steel-250); overflow: hidden; display: grid; place-items: center; }
.cart-line__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.cart-line__initial { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--steel-400); }
.cart-line__name { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.02em; line-height: 1.2; }
.cart-line__unit { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-500); margin-top: 2px; }
.qty { display: inline-flex; align-items: center; gap: 0.15rem; border: 1px solid var(--steel-250); border-radius: 100px; margin-top: 0.4rem; }
.qty button { width: 24px; height: 24px; display: grid; place-items: center; font-family: var(--mono); font-size: 0.8rem; line-height: 1; border-radius: 50%; }
.qty button:hover { background: var(--steel-250); }
.qty span { font-family: var(--mono); font-size: 0.7rem; min-width: 16px; text-align: center; }
.cart__foot { padding: 1.25rem var(--gutter) 1.5rem; border-top: 1px solid var(--steel-250); display: grid; gap: 0.9rem; }
.cart__row { display: flex; justify-content: space-between; align-items: baseline; }
.cart__row--total { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.cart__meter { height: 4px; background: var(--steel-250); border-radius: 4px; overflow: hidden; }
.cart__meter i { display: block; height: 100%; width: 0; background: var(--elakkai); transition: width 0.6s var(--ease-out); }
.cart__note { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-500); }
.cart .btn { justify-content: center; }

/* ---------- 16b. Account ---------- */
.account-btn { position: relative; }
.account-btn__mark {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 0.82rem;
  color: var(--steel-050); background: var(--elakkai); border-radius: 50%;
  width: 26px; height: 26px; margin: auto;
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
}
.account-btn.is-in .account-btn__mark { opacity: 1; transform: scale(1); }
.account-btn.is-in .account-btn__icon { opacity: 0; }
.account-btn__icon { transition: opacity 0.25s; }

.auth {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 96;
  width: min(400px, 100%); background: var(--steel-050);
  display: grid; grid-template-rows: auto 1fr;
  transform: translateX(102%);
  transition: transform 0.55s var(--ease-out);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.5);
}
body.auth-open .auth { transform: none; }
body.auth-open .scrim { opacity: 1; visibility: visible; }
.auth__body {
  overflow-y: auto; padding: 1.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
/* everything from the note down sits at the foot of the panel, so a short
   form doesn't leave a hole under it on a tall phone */
.auth__note { margin-top: auto; }

.auth__tabs { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--steel-250); }
.auth__tab {
  padding: 0 0 0.75rem; font-family: var(--mono); font-size: var(--t-label);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-500);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.25s, border-color 0.25s;
}
.auth__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--manjal); }

.auth__form { gap: 1rem; }
.auth__form .btn { justify-content: center; }
.auth__error:empty { display: none; }
.auth__error {
  font-size: 0.85rem; color: var(--milagai);
  border-left: 2px solid var(--milagai); padding-left: 0.75rem;
}
.auth__note {
  font-size: 0.8rem; line-height: 1.55; color: var(--steel-500);
  border-top: 1px solid var(--steel-250); padding-top: 1rem;
}
.auth__note b { color: var(--milagai); }
.auth__staff { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.14em; text-transform: uppercase; }
/* underline the text, not the 40px tap box — a border sits detached from it */
.auth__staff a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--steel-250); }
.auth__staff a:hover { text-decoration-color: var(--ink); }

.auth__who { display: flex; gap: 0.9rem; align-items: center; }
.auth__avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--elakkai); color: var(--steel-050);
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
}
.auth__email { font-family: var(--mono); font-size: 0.68rem; color: var(--steel-500); }
.auth__links { border-top: 1px solid var(--steel-250); }
.auth__links li { border-bottom: 1px solid var(--steel-250); }
.auth__links a { display: block; padding: 0.85rem 0; font-size: 0.95rem; transition: padding-left 0.3s var(--ease-out); }
.auth__links a:hover { padding-left: 0.5rem; }
.auth__out { justify-content: center; }

.pcard__initial { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--steel-250); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 120;
  transform: translate(-50%, 130%);
  background: var(--ink); color: var(--steel-050);
  padding: 0.85em 1.4em; border-radius: 100px;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
  max-width: calc(100vw - 2rem);
  /* 130% of its OWN height only clears ~23px, which isn't enough to get past
     bottom:1.5rem while the toast is empty — so hide it properly, don't rely
     on the slide to take it off screen. */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out), opacity 0.3s, visibility 0.3s;
}
.toast:empty { display: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- 17. Shop page ---------- */
.page-head { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: 0.94; letter-spacing: -0.042em; }
.page-head__lede { margin-top: 1.1rem; max-width: 52ch; color: var(--steel-700); }

/* the shop opens straight onto the category filters — give them the breathing room
   the page head used to provide */
.shop-top { padding-top: clamp(1.75rem, 4vw, 3rem); }

.filters { display: flex; gap: 0.4rem; overflow-x: auto; padding-block: 1rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; display: inline-flex; align-items: center; gap: 0.5em;
  border: 1px solid var(--steel-250); border-radius: 100px; padding: 0.55em 1em;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steel-700); white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filter i { width: 8px; height: 8px; border-radius: 50%; background: var(--wellcolor, var(--steel-400)); }
.filter:hover { border-color: var(--steel-500); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--steel-050); border-color: var(--ink); }

.shop-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-block: 0.75rem 1.5rem; }
.shop-count { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-500); }

.grid-products {
  display: grid; gap: 1px; background: var(--steel-250);
  border: 1px solid var(--steel-250);
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
@media (min-width: 700px) { .grid-products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

.pcard {
  background: var(--steel-050); display: grid; grid-template-rows: auto 1fr auto;
  min-width: 0;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), background-color 0.3s;
}
.pcard.in { opacity: 1; transform: none; }
.pcard:hover { background: var(--white); }
.pcard__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--white); display: grid; place-items: center; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 12%; transition: transform 0.6s var(--ease-out); }
.pcard:hover .pcard__media img { transform: scale(1.07); }
/* shelf-edge label for packaged goods — the brand mark stands in for the pack shot */
.pcard__label {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  padding: 12%;
  background: color-mix(in srgb, var(--wellcolor) 8%, #ffffff);
}
.pcard__label::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: repeating-linear-gradient(90deg, var(--wellcolor) 0 5px, transparent 5px 10px);
  opacity: 0.9;
}
.pcard__logo {
  width: 100%; max-width: 148px; aspect-ratio: 1; object-fit: contain;
  mix-blend-mode: multiply; transition: transform 0.6s var(--ease-out);
}
.pcard:hover .pcard__logo { transform: scale(1.05); }
.pcard__flag {
  position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--milagai); color: #fff; padding: 0.4em 0.75em;
}
.pcard__flag--new { background: var(--elakkai); }
.pcard__body { padding: 0.95rem 1rem 0.3rem; display: grid; gap: 0.1rem; align-content: start; }
.pcard__category { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wellcolor); }
.pcard__name { font-family: var(--display); font-weight: 700; font-size: 0.98rem; letter-spacing: -0.022em; line-height: 1.2; margin-top: 0.3rem; overflow-wrap: anywhere; }
.pcard__unit { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-500); margin-top: 0.25rem; }
.pcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.7rem 1rem 1rem; }
.pcard__was { font-family: var(--mono); font-size: 0.62rem; color: var(--steel-400); text-decoration: line-through; margin-right: 0.35rem; }
.pcard .price { color: var(--ink); }
.pcard.is-sale .price { color: var(--milagai); }

.empty-state { padding: clamp(3rem, 8vw, 6rem) 0; display: grid; gap: 1rem; justify-items: start; }
.empty-state__title { font-family: var(--display); font-weight: 700; font-size: var(--t-h3); letter-spacing: -0.03em; }
.empty-state p { color: var(--steel-500); max-width: 44ch; }

/* ---------- 18. Editorial (about / delivery / contact) ---------- */
.lead-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .lead-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.prose { max-width: 62ch; display: grid; gap: 1.15rem; align-content: start; }
.prose p { color: var(--steel-700); }
.band--dark .prose p { color: var(--steel-400); }
.prose strong { color: var(--ink); font-weight: 600; }
.band--dark .prose strong { color: var(--steel-050); }
.prose .lede { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.32; letter-spacing: -0.025em; color: var(--ink); }
.band--dark .prose .lede { color: var(--steel-050); }

.timeline { display: grid; gap: 0; }
.tl {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem;
  padding-block: clamp(1.3rem, 2.5vw, 1.9rem); border-top: 1px solid var(--steel-250);
  align-items: start;
}
.tl:last-child { border-bottom: 1px solid var(--steel-250); }
.tl__year { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; color: var(--milagai); padding-top: 0.28rem; }
.tl__title { font-family: var(--display); font-weight: 700; font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1.2; }
.tl__note { color: var(--steel-500); margin-top: 0.35rem; max-width: 54ch; }

.facts { display: grid; gap: 1px; background: var(--steel-250); border-block: 1px solid var(--steel-250); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.fact { background: var(--steel-150); padding: clamp(1.25rem, 2.5vw, 1.9rem); display: grid; gap: 0.3rem; align-content: start; }
.fact__k { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.04em; line-height: 1; }
.fact__v { color: var(--steel-500); font-size: 0.9rem; }

.info-card { background: var(--steel-050); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 0.85rem; align-content: start; border-top: 3px solid var(--wellcolor, var(--ink)); }
.info-card h3 { font-family: var(--display); font-weight: 700; font-size: var(--t-h3); letter-spacing: -0.03em; }
.info-card p, .info-card address { color: var(--steel-700); font-style: normal; font-size: 0.95rem; line-height: 1.65; }
.info-card a { border-bottom: 1px solid var(--steel-250); transition: border-color 0.25s; }
.info-card a:hover { border-color: var(--ink); }
.cards-3 { display: grid; gap: 1px; background: var(--steel-250); }
@media (min-width: 820px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.hours { display: grid; gap: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--steel-250); font-size: 0.92rem; }
.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--steel-500); }
.hours dd { margin: 0; font-family: var(--mono); font-size: 0.78rem; }
.hours .is-today dt, .hours .is-today dd { color: var(--ink); font-weight: 600; }
.band--dark .hours div { border-bottom-color: var(--steel-800); }
.band--dark .hours dt { color: var(--steel-500); }
.band--dark .hours .is-today dt, .band--dark .hours .is-today dd { color: var(--manjal); }

/* contact form */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field > span { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-500); }
.field input, .field select, .field textarea {
  background: var(--steel-050); border: 1px solid var(--steel-250); border-radius: var(--radius);
  padding: 0.85em 1em; font-size: 0.98rem; transition: border-color 0.25s, background-color 0.25s;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: var(--white); outline: none; }
.field--row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .field--row { grid-template-columns: 1fr 1fr; } }
.form__done { font-size: 0.92rem; color: var(--elakkai); }

/* map-ish block */
/* width first, then aspect-ratio derives the height. A min-height here would
   make aspect-ratio back-compute the *width* and push the page sideways. */
.locator {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--steel-900);
  display: grid; place-items: center;
}
@media (max-width: 620px) { .locator { aspect-ratio: 5 / 4; } }
.locator__rings { position: absolute; inset: 0; display: grid; place-items: center; }
.locator__ring {
  position: absolute; border: 1px solid var(--steel-700); border-radius: 50%;
  width: var(--s); aspect-ratio: 1;
  animation: ripple 5s var(--ease-out) infinite;
  animation-delay: var(--dl);
  opacity: 0;
}
@keyframes ripple {
  0% { transform: scale(0.35); opacity: 0; }
  18% { opacity: 0.9; }
  100% { transform: scale(1); opacity: 0; }
}
.locator__pin { position: relative; z-index: 2; display: grid; gap: 0.4rem; justify-items: center; text-align: center; padding: 1.5rem; }
.locator__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--manjal); box-shadow: 0 0 0 6px rgba(227,160,18,0.2); }
.locator__label { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel-400); }
.locator__place { font-family: var(--display); font-weight: 700; font-size: var(--t-h3); color: var(--steel-050); letter-spacing: -0.03em; }

/* ===========================================================
   18b. The stockroom (admin)
   Same tokens, different job: dense, tabular, no romance.
   =========================================================== */
.sr-body { background: var(--steel-080); }

.sr-top {
  position: sticky; top: 0; z-index: 60;
  background: var(--steel-900); color: var(--steel-150);
  border-bottom: 1px solid var(--steel-800);
}
.sr-top__in { display: flex; align-items: center; gap: 1rem; min-height: 62px; flex-wrap: wrap; }
.sr-top .brand__name, .sr-top .brand__sub { color: inherit; }
.sr-top .brand__sub { color: var(--manjal); }
.sr-top__spacer { margin-left: auto; }
.sr-top__who { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-400); }
.sr-top .btn { padding: 0.7em 1.1em; }
.sr-top .btn--line { color: var(--steel-150); }
.sr-top .btn--line:hover { background: var(--steel-150); color: var(--ink); }

.sr-warn {
  background: var(--milagai); color: #fff;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  padding: 0.65rem 0; line-height: 1.5;
}
.sr-warn b { letter-spacing: 0.16em; }

/* sign-in gate */
.sr-gate { display: grid; place-items: center; padding: clamp(2.5rem, 9vh, 6rem) 0; }
.sr-gate__card {
  width: min(420px, 100%); background: var(--steel-050);
  padding: clamp(1.75rem, 4vw, 2.5rem); display: grid; gap: 1.15rem;
  border-top: 3px solid var(--manjal);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.55);
}
.sr-gate__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.1rem); letter-spacing: -0.035em; line-height: 1.05; }
.sr-gate__lede { color: var(--steel-500); font-size: 0.94rem; }
.sr-gate .btn { justify-content: center; }
.sr-demo {
  font-family: var(--mono); font-size: 0.68rem; line-height: 1.9;
  background: var(--steel-150); padding: 0.9rem 1rem; border-left: 2px solid var(--manjal);
}
.sr-demo b { display: block; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.6rem; color: var(--steel-500); margin-bottom: 0.35rem; }

/* console */
.sr-console[hidden] { display: none; }
.sr-tabs { display: flex; gap: 0.4rem; padding-block: 1.5rem 0; flex-wrap: wrap; }
.sr-tab {
  padding: 0.6em 1.1em; border: 1px solid var(--steel-250); border-radius: 100px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel-700); transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.sr-tab[aria-selected="true"] { background: var(--ink); color: var(--steel-050); border-color: var(--ink); }
.sr-panel[hidden] { display: none; }

.sr-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); padding-block: 1.75rem 3rem; align-items: start; }
@media (min-width: 1020px) { .sr-grid { grid-template-columns: minmax(0, 1fr) 320px; } }

.sr-head { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.sr-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -0.03em; }
.sr-head .label { margin-left: auto; }

/* table */
.sr-table { background: var(--steel-050); border: 1px solid var(--steel-250); }
.sr-row {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 0.9rem; align-items: center;
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--steel-250);
}
.sr-row:last-child { border-bottom: 0; }
.sr-row:hover { background: var(--white); }
.sr-row__swatch { width: 26px; height: 26px; border-radius: 50%; background: var(--wellcolor, var(--steel-250)); box-shadow: inset 0 2px 5px rgba(0,0,0,0.3); }
.sr-row__thumb { width: 34px; height: 34px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px var(--steel-250); overflow: hidden; display: grid; place-items: center; }
.sr-row__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.sr-row__name { font-family: var(--display); font-weight: 700; font-size: 0.98rem; letter-spacing: -0.02em; line-height: 1.25; }
.sr-row__meta { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-500); margin-top: 2px; }
.sr-pill {
  display: inline-block; margin-left: 0.6rem; vertical-align: 1px;
  font-family: var(--mono); font-size: 0.52rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-500);
  border: 1px solid var(--steel-250); border-radius: 100px; padding: 0.25em 0.6em;
}
.sr-row__meta i { font-style: normal; color: var(--wellcolor, var(--steel-500)); }
.sr-row__acts { display: flex; gap: 0.25rem; align-items: center; }
.sr-mini {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  color: var(--steel-500); font-family: var(--mono); font-size: 0.7rem; line-height: 1;
  transition: background-color 0.2s, color 0.2s;
}
.sr-mini:hover { background: var(--steel-250); color: var(--ink); }
.sr-mini--danger:hover { background: var(--milagai); color: #fff; }
.sr-mini[disabled] { opacity: 0.3; cursor: not-allowed; }
.sr-mini[disabled]:hover { background: none; color: var(--steel-500); }

.sr-empty { padding: 2.5rem 1rem; text-align: center; color: var(--steel-500); font-size: 0.92rem; }

/* filter row */
.sr-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; align-items: center; }
.sr-search {
  flex: 1 1 200px; min-width: 0;
  background: var(--steel-050); border: 1px solid var(--steel-250); border-radius: 100px;
  padding: 0.6em 1.1em; font-size: 0.9rem;
}
.sr-search:focus { border-color: var(--ink); outline: none; background: var(--white); }
.sr-select {
  background: var(--steel-050); border: 1px solid var(--steel-250); border-radius: 100px;
  padding: 0.6em 1.1em; font-size: 0.85rem; max-width: 100%;
}

/* aside */
.sr-aside { display: grid; gap: 1.25rem; position: sticky; top: 86px; }
.sr-card { background: var(--steel-050); border: 1px solid var(--steel-250); padding: 1.25rem; display: grid; gap: 0.85rem; }
.sr-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.025em; }
.sr-card p { font-size: 0.86rem; color: var(--steel-500); line-height: 1.6; }
.sr-card .btn { justify-content: center; width: 100%; }
.sr-preview { display: grid; gap: 0.75rem; justify-items: center; }
.sr-preview .dabba { width: min(100%, 240px); }
.sr-preview .dabba .well__face { transform: none; }
.sr-preview__cap { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-500); text-align: center; }

/* edit sheet */
.sr-sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 97;
  width: min(460px, 100%); background: var(--steel-050);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(102%);
  transition: transform 0.5s var(--ease-out);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.5);
}
body.sheet-open .sr-sheet { transform: none; }
body.sheet-open .scrim { opacity: 1; visibility: visible; }
.sr-sheet__body { overflow-y: auto; padding: 1.4rem var(--gutter); display: grid; gap: 1.05rem; align-content: start; }
.sr-sheet__foot { padding: 1.1rem var(--gutter) 1.4rem; border-top: 1px solid var(--steel-250); display: flex; gap: 0.6rem; flex-wrap: wrap; }
.sr-sheet__foot .btn { flex: 1; justify-content: center; }

.sr-swatches { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sr-swatch {
  width: 34px; height: 34px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.3), 0 0 0 1px var(--steel-250);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.sr-swatch:hover { transform: scale(1.08); }
.sr-swatch[aria-pressed="true"] {
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.3), 0 0 0 2px var(--steel-050), 0 0 0 4px var(--ink);
}
.sr-hint { font-size: 0.78rem; color: var(--steel-500); line-height: 1.55; }
.sr-danger { color: var(--milagai); }

.sr-imgpick { display: grid; grid-template-columns: 58px 1fr; gap: 0.75rem; align-items: center; }
.sr-imgpick__prev { width: 58px; height: 58px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px var(--steel-250); overflow: hidden; display: grid; place-items: center; }
.sr-imgpick__prev img { width: 100%; height: 100%; object-fit: cover; }
.sr-imgpick--contain .sr-imgpick__prev img { object-fit: contain; padding: 7px; }

.sr-bar {
  position: sticky; bottom: 0; z-index: 50;
  background: var(--steel-900); color: var(--steel-400);
  padding-block: 0.85rem;
}
.sr-bar__in { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; }
.sr-bar .label { color: var(--steel-500); margin-right: auto; }
.sr-bar .btn { padding: 0.65em 1em; }
.sr-bar .btn--line { color: var(--steel-150); }
.sr-bar .btn--line:hover { background: var(--steel-150); color: var(--ink); }

@media (max-width: 700px) {
  .sr-top__who { display: none; }
  .sr-top .btn { font-size: 0.62rem; padding: 0.6em 0.9em; }
  .sr-bar { position: static; }
  .sr-bar .label { flex-basis: 100%; margin-right: 0; }
  .sr-row { grid-template-columns: 34px 1fr; row-gap: 0.5rem; }
  .sr-row__acts { grid-column: 1 / -1; justify-content: flex-end; }
  .sr-aside { position: static; }
}

/* ===========================================================
   18c. Stock states
   A line that has run out still shows — the shop would rather you
   knew it stocks the thing and hasn't got it today.
   =========================================================== */
.pcard.is-out .pcard__media img,
.pcard.is-out .pcard__logo,
.fresh-card.is-out .fresh-card__img img { filter: grayscale(1); opacity: 0.55; }
.pcard__flag--out { background: var(--steel-700); }
.fresh-card.is-out .fresh-card__tag { background: var(--steel-700); }
.add-btn--out {
  display: inline-flex; align-items: center;
  border: 1px dashed var(--steel-250); border-radius: 100px; padding: 0.5em 0.9em;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel-400); cursor: not-allowed;
}
.qty button[disabled] { opacity: 0.3; cursor: not-allowed; }
.qty button[disabled]:hover { background: none; }
.btn.is-busy { opacity: 0.6; pointer-events: none; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.form__done.is-bad { color: var(--milagai); }

/* ===========================================================
   21. Cards — sign in, register, checkout, the order, the account
   One surface: steel-050 on a hairline, a spice rule across the top.
   The same object as .info-card, with a form in it.
   =========================================================== */
.card {
  background: var(--steel-050);
  border: 1px solid var(--steel-250);
  border-top: 3px solid var(--wellcolor, var(--ink));
  padding: clamp(1.4rem, 3vw, 2.1rem);
  display: grid; gap: 1.05rem; align-content: start;
}
.card--gold { border-top-color: var(--manjal); }
.card__title { font-family: var(--display); font-weight: 700; font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1.15; }
.card__note, .card__alt { font-size: 0.9rem; color: var(--steel-500); line-height: 1.6; }
.card__alt { border-top: 1px solid var(--steel-250); padding-top: 1rem; }
.card__alt a { border-bottom: 1px solid var(--steel-250); transition: border-color 0.25s; }
.card__alt a:hover { border-color: var(--ink); }
.card .btn { justify-content: center; }
@media (min-width: 1020px) {
  .card--sticky { position: sticky; top: 96px; }
}

/* optional / hint text inside a field label */
.field > span em { font-style: normal; text-transform: none; letter-spacing: 0.04em; color: var(--steel-400); }
.field__hint { display: block; font-size: 0.78rem; font-style: normal; color: var(--steel-500); }

.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--steel-700); }
.check input { width: 18px; height: 18px; margin-top: 0.2rem; accent-color: var(--manjal); flex: none; }

/* sign in / register */
.form-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
@media (min-width: 900px) { .form-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.auth__alt { font-size: 0.85rem; color: var(--steel-500); }
.auth__alt a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--steel-250); }
.auth__alt a:hover { text-decoration-color: var(--ink); }

/* ---------- 22. Checkout ---------- */
.checkout { display: grid; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
@media (min-width: 1020px) { .checkout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
.checkout__form { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.checkout__side { display: grid; gap: 1rem; }

.addr-choices { display: grid; gap: 1px; background: var(--steel-250); border: 1px solid var(--steel-250); }
.addr {
  display: grid; grid-template-columns: 20px 1fr; gap: 0.75rem; align-items: start;
  background: var(--steel-050); padding: 0.9rem 1rem; cursor: pointer;
  transition: background-color 0.25s;
}
.addr:hover { background: var(--white); }
.addr input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--manjal); }
.addr__body { display: grid; gap: 0.15rem; min-width: 0; }
.addr__body b { font-family: var(--display); font-weight: 700; font-size: 0.98rem; letter-spacing: -0.02em; }
.addr__body span { font-size: 0.88rem; color: var(--steel-500); }
.addr:has(input:checked) { background: var(--white); box-shadow: inset 3px 0 0 var(--manjal); }
.addr-new { display: grid; gap: 1.05rem; }

.co-lines { display: grid; }
.co-line {
  display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 0.75rem; align-items: baseline;
  padding: 0.7rem 0; border-bottom: 1px solid var(--steel-250);
}
.co-line__q { font-family: var(--mono); font-size: 0.72rem; color: var(--steel-500); }
.co-line__n { font-size: 0.94rem; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.co-line__n em {
  display: block; font-style: normal;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel-500); margin-top: 2px;
}
.co-sums { display: grid; gap: 0.55rem; padding-top: 0.35rem; }
.co-note { font-size: 0.8rem; color: var(--steel-500); line-height: 1.6; }
.co-empty { color: var(--steel-500); font-size: 0.92rem; }
.co-empty a { border-bottom: 1px solid var(--steel-250); }

/* ---------- 23. The order ---------- */
.order { display: grid; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
@media (min-width: 1020px) { .order { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
.order__side { display: grid; gap: 0.5rem; align-content: start; }
.order__head {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1rem;
  align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--steel-250); padding-bottom: 1rem;
}
.order__no { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.order__meta { display: grid; gap: 0.9rem; padding-bottom: 0.4rem; }
@media (min-width: 620px) { .order__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.order__meta p:not(.label) { font-size: 0.94rem; line-height: 1.5; overflow-wrap: anywhere; }

/* the van's day, in one word */
.status {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.45em 0.85em; border-radius: 100px; white-space: nowrap;
  background: var(--steel-250); color: var(--steel-700);
}
.status--placed { background: var(--manjal); color: var(--ink); }
.status--confirmed, .status--packed { background: var(--perungayam); color: var(--ink); }
.status--out_for_delivery { background: var(--kothamalli); color: var(--white); }
.status--delivered { background: var(--elakkai); color: var(--white); }
.status--cancelled { background: var(--milagai); color: var(--white); }

.receipt { border-top: 1px solid var(--steel-250); padding-top: 0.9rem; }
.receipt summary {
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--steel-500); cursor: pointer;
}
.receipt summary:hover { color: var(--ink); }
.receipt pre {
  margin: 0.9rem 0 0; padding: 1rem; background: var(--steel-900); color: var(--steel-150);
  font-family: var(--mono); font-size: 0.68rem; line-height: 1.7;
  white-space: pre-wrap; overflow-wrap: anywhere; border-radius: var(--radius);
  max-height: 340px; overflow-y: auto;
}

/* ---------- 24. The account ---------- */
.acct { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 1020px) { .acct { grid-template-columns: minmax(0, 1fr) 340px; } }
.acct__side { display: grid; gap: 1rem; }
.acct__h { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -0.03em; }

.orders { display: grid; gap: 1px; background: var(--steel-250); border: 1px solid var(--steel-250); }
/* the hairline grid shows through an empty state as a grey slab — fill it */
.orders .empty-state { background: var(--steel-050); padding: clamp(2rem, 6vw, 3rem) clamp(1.1rem, 3vw, 2rem); }
.order-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.75rem 1rem;
  align-items: center; background: var(--steel-050); padding: 1rem 1.1rem;
  transition: background-color 0.25s, padding-left 0.3s var(--ease-out);
}
.order-row:hover { background: var(--white); padding-left: 1.4rem; }
.order-row__no { font-family: var(--mono); font-weight: 600; font-size: 0.9rem; }
.order-row__meta {
  font-size: 0.85rem; color: var(--steel-500); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 620px) {
  .order-row { grid-template-columns: minmax(0, 1fr) auto; }
  .order-row .status { grid-row: 2; justify-self: start; }
}

.addr-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem;
  align-items: start; padding: 0.85rem 0; border-bottom: 1px solid var(--steel-250);
}
.addr-row:last-of-type { border-bottom: 0; }
.addr-row__label { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.02em; }
.addr-row__body { font-size: 0.86rem; color: var(--steel-500); line-height: 1.5; margin-top: 2px; }
.addr-row.is-default .addr-row__label { color: var(--ink); }

/* ---------- 25. Stockroom: orders, inbox, uploads ---------- */
.sr-warn--live { background: var(--steel-800); color: var(--steel-150); }
.sr-warn--live b { color: var(--manjal); }

.sr-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 0.45em; border-radius: 100px;
  background: var(--milagai); color: #fff;
  font-family: var(--mono); font-size: 0.55rem; font-weight: 600; line-height: 1;
}
.sr-tab[aria-selected="true"] .sr-badge { background: var(--manjal); color: var(--ink); }

.sr-order { border-bottom: 1px solid var(--steel-250); padding: 0.9rem 1rem; }
.sr-order:last-child { border-bottom: 0; }
.sr-order:hover { background: var(--white); }
.sr-order__top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 0.6rem 0.9rem; align-items: center;
}
.sr-order__top .price { white-space: nowrap; }
.sr-order__top a { border-bottom: 1px solid var(--steel-250); }
.sr-order__top a:hover { border-color: var(--ink); }
.sr-status { padding: 0.45em 0.9em; font-size: 0.72rem; }
.sr-order__body {
  display: grid; gap: 0.9rem; margin-top: 0.85rem; padding-top: 0.85rem;
  border-top: 1px dashed var(--steel-250);
}
@media (min-width: 760px) { .sr-order__body { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sr-order__body p:not(.label) { font-size: 0.85rem; line-height: 1.55; overflow-wrap: anywhere; }

/* whether the WhatsApp went out. Four states, three spices and a grey — the shop
   should be able to read a whole column of these at a glance without stopping. */
.sr-wa-row { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.sr-wa {
  display: inline-block;
  font-family: var(--mono); font-size: 0.52rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--steel-250); border-radius: 100px; padding: 0.3em 0.7em;
  color: var(--steel-500); white-space: nowrap;
}
.sr-wa--ok { border-color: var(--elakkai); color: var(--elakkai); }
.sr-wa--wait { border-color: var(--manjal); color: var(--kirambu); }
.sr-wa--bad { border-color: var(--milagai); color: var(--milagai); }
.sr-wa--off, .sr-wa--none { border-style: dashed; }
.sr-wa-why {
  margin-top: 0.4rem; font-size: 0.76rem !important;
  line-height: 1.5; color: var(--steel-500);
}
.sr-wa-acts { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.sr-mini--wide {
  width: auto; height: 26px; padding: 0 0.75rem; border-radius: 100px;
  font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--steel-250);
}
@media (max-width: 700px) {
  .sr-order__top { grid-template-columns: minmax(0, 1fr) auto; }
  .sr-order__top .sr-select { grid-column: 1 / -1; }
}

.sr-stats { display: grid; gap: 0.85rem; }
.sr-stat__k, .sr-stats p:first-child { font-family: var(--mono); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--ink); }
.sr-stat__v { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-500); }
.sr-stats div { border-bottom: 1px solid var(--steel-250); padding-bottom: 0.7rem; }
.sr-stats div:last-child { border-bottom: 0; padding-bottom: 0; }

.sr-row--msg { align-items: start; }
.sr-row--msg.is-read { opacity: 0.6; }
.sr-row__thumb--kind { font-size: 0.9rem; color: var(--steel-500); }
.sr-msg__body {
  font-size: 0.88rem; line-height: 1.6; color: var(--steel-700); margin-top: 0.5rem;
  border-left: 2px solid var(--steel-250); padding-left: 0.75rem; overflow-wrap: anywhere;
}

.sr-upload { display: grid; gap: 0.6rem; }
.sr-upload input[type="file"] {
  font-family: var(--mono); font-size: 0.72rem;
  background: var(--steel-050); border: 1px dashed var(--steel-250);
  border-radius: var(--radius); padding: 0.8rem;
}

/* ---------- 19. Responsive tuning ---------- */
@media (max-width: 979px) {
  .dabba { width: min(100%, 420px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__lede { margin-top: 0; }
}
/* Phones get two columns of stock, the way every grocery app does it —
   auto-fill would drop to one below 480px and turn 54 lines into a marathon. */
@media (max-width: 520px) {
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard__body { padding: 0.8rem 0.7rem 0.25rem; }
  .pcard__foot { padding: 0.55rem 0.7rem 0.8rem; }
  .pcard__name { font-size: 0.9rem; }
  .pcard__media img { padding: 9%; }
  .pcard__label { padding: 10%; }
  .add-btn { padding: 0.5em 0.75em; }
}

@media (max-width: 620px) {
  /* the wordmark must never wrap — it doubles the header height when it does */
  .header__in { gap: 0.5rem; }
  .brand { gap: 0.55rem; }
  .brand__mark { width: 26px; height: 26px; }
  .brand__name { font-size: 0.86rem; }
  .brand__sub { letter-spacing: 0.2em; margin-top: 2px; }
  .brand__name { line-height: 0.82; }
  .icon-btn { width: 40px; height: 40px; }
  .header__actions { gap: 0.1rem; }
  .brand-chip { width: 82px; height: 82px; padding: 13px; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 0.76rem; }
  .brand__mark { width: 23px; height: 23px; }
  .icon-btn { width: 37px; height: 37px; }
}

/* Thumbs, not cursors. Tablets are touch devices too, so this is keyed to the
   pointer as well as the width — a mouse keeps the tighter desktop rhythm. */
@media (max-width: 1024px), (pointer: coarse) {
  .brand { min-height: 44px; }
  .add-btn, .filter { min-height: 40px; }
  .qty button { width: 32px; height: 32px; }
  .sr-mini { width: 36px; height: 36px; }
  .sr-top .btn, .sr-bar .btn { padding: 0.8em 1.05em; }
  .footer li a, .footer__addr a { display: inline-block; padding-block: 0.3rem; }
  .auth__links a { padding-block: 1rem; }
  .auth__tab { padding: 0.4rem 0 1rem; }
  .skip-link { padding: 0.95em 1.3em; }
  /* ringing the shop is the main action on a phone — make it a real target */
  .info-card a, .auth__staff a { display: inline-flex; align-items: center; min-height: 40px; }

  /* micro-labels stop being legible much below 9.5px on a handheld */
  .pcard__category, .pcard__flag, .fresh-card__tag { font-size: 0.6rem; }
  .pcard__unit, .fresh-card__unit, .cart-line__unit { font-size: 0.64rem; }
}

@media (max-width: 560px) {
  :root { --t-label: 0.62rem; }
  .cart, .auth { width: 100%; }
  .tl { grid-template-columns: 1fr; gap: 0.3rem; }
  .tl__year { padding-top: 0; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rv, .pcard { opacity: 1 !important; transform: none !important; }
  .line-mask > span { transform: none !important; }
  .marquee__track { animation: none; }
  .locator__ring { opacity: 0.35; animation: none; }
  .dabba__ring { transform: none !important; }
  .well__face { transform: none !important; }
}

/* the stockroom's delivery calculator — what a given basket would be charged */
.sr-trial {
  font-family: var(--mono); font-size: 0.66rem; line-height: 1.5;
  letter-spacing: 0.04em; color: var(--steel-600);
  background: var(--steel-050); border: 1px solid var(--steel-250);
  padding: 0.6rem 0.7rem; margin-top: 0.2rem;
}

/* what delivery costs, drawn from the bands the stockroom set */
.delivery-bands { list-style: none; margin: 0.9rem 0 0.2rem; display: grid; gap: 1px; background: var(--steel-250); border: 1px solid var(--steel-250); }
.delivery-bands li { display: flex; align-items: baseline; gap: 0.8rem; background: var(--white); padding: 0.6rem 0.85rem; }
.delivery-bands b { font-family: var(--display); font-size: 1.02rem; letter-spacing: -0.02em; min-width: 4.5em; }
.delivery-bands span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-500); }

/* delivery bands that leave baskets uncovered — those ship free, so say so */
.sr-gapwarn {
  background: #fdf3e3; border: 1px solid #e6c893; border-left: 3px solid var(--manjal);
  padding: 0.75rem 0.9rem; margin-bottom: 0.9rem; font-size: 0.86rem; line-height: 1.5;
}
.sr-gapwarn b { font-family: var(--display); letter-spacing: -0.01em; }
.sr-gapwarn ul { list-style: none; margin: 0.45rem 0; }
.sr-gapwarn li { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.12rem 0; }
.sr-gapwarn p { margin-top: 0.4rem; color: var(--steel-600); }

/* one optional picture, browsed for — categories and products both use this */
.sr-pic { display: flex; gap: 0.9rem; align-items: flex-start; }
.sr-pic__prev {
  width: 74px; height: 74px; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--white); border: 1px solid var(--steel-250);
}
.sr-pic__prev img { width: 100%; height: 100%; object-fit: cover; }
.sr-pic__prev i {
  font-style: normal; font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-400);
}
.sr-pic__act { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.sr-pic__act input[type=file] { font-size: 0.8rem; max-width: 100%; }
.sr-pic__act .sr-mini { width: auto; padding: 0 0.7rem; border-radius: 100px; }

/* the receipt actions on the order confirmation */
.order-acts { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.4rem; }
.order-acts__note {
  width: 100%; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  color: var(--steel-500); min-height: 1em;
}

/* the hint under an optional checkout field */
.field__hint { display: block; margin-top: 0.35rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; line-height: 1.5; color: var(--steel-500); }
