/* =====================================================================
   Pure Desi In-Store Menu — base.css
   Reset + the shared "Wine List" components every output reuses.
   Tokens come from tokens.css (brand single source of truth).
   ===================================================================== */

@import url("tokens.css");

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pd-bg);
  color: var(--pd-fg);
  font-family: var(--pd-font-sans);
  font-size: var(--pd-fs-16);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

/* ---------------------------------------------------------------------
   Section header — eyebrow (Staatliches, cherry) + title with cherry dot
   --------------------------------------------------------------------- */
.sec {
  margin: 0 0 var(--pd-sp-16);
}
.eyebrow {
  font-family: var(--pd-font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: var(--pd-fs-12);
  color: var(--pd-cherry);
  margin-bottom: var(--pd-sp-8);
}
.sec-title {
  font-family: var(--pd-font-display);
  text-transform: uppercase;
  line-height: 0.95;
  font-size: var(--pd-fs-36);
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--pd-fg);
}
.dot { color: var(--pd-cherry); }
.sec-note {
  font-family: var(--pd-font-serif);
  font-style: italic;
  font-size: var(--pd-fs-18);
  color: var(--pd-fg-muted);
  margin: var(--pd-sp-8) 0 0;
  max-width: 54ch;
}

/* ---------------------------------------------------------------------
   Item row — the heart of the wine-list look:
   name … dotted leader … price
   --------------------------------------------------------------------- */
/* .item wraps the name/price row plus an optional description line.
   No divider rules — rows are separated by whitespace (Abhi 2026-06-07). */
.item {
  padding: 8px 0;
  break-inside: avoid;
}

.row {
  display: flex;
  align-items: baseline;
  gap: var(--pd-sp-8);
}

/* Italic tasting line under the item name (from the name-card design) */
.desc {
  font-family: var(--pd-font-serif);
  font-style: italic;
  font-size: var(--pd-fs-14);
  line-height: 1.25;
  color: var(--pd-fg-muted);
  margin: 1px 0 0;
  max-width: 46ch;
}

.nm {
  font-weight: 600;
  font-size: var(--pd-fs-16);
  color: var(--pd-fg);
  /* name may wrap on very long entries; leader still tracks the last line */
}
.star {
  color: var(--pd-cherry);
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 4px;
}
/* Invisible flex spacer — keeps the price right-aligned without a dotted leader. */
.lead {
  flex: 1 1 auto;
  min-width: 16px;
}
.pr {
  font-family: var(--pd-font-serif);
  font-size: var(--pd-fs-18);
  white-space: nowrap;
  color: var(--pd-fg);
  letter-spacing: -0.01em;
}
.pr small {
  font-size: 0.62em;
  font-family: var(--pd-font-sans);
  color: var(--pd-fg-subtle);
  letter-spacing: 0;
}

/* Generic badge — quiet pill after the name */
.badge {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--pd-font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-fg-subtle);
  border: 1px solid var(--pd-border-strong);
  border-radius: var(--pd-radius-2);
  padding: 1px 4px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Dietary chips (ported from the Pure Desi name-card design)
   GF = gluten free (pistachio outline) · VG = vegan (pistachio fill)
   --------------------------------------------------------------------- */
.diet {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--pd-font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--pd-radius-2);
  padding: 1px 4px;
  vertical-align: middle;
  white-space: nowrap;
}
/* Dietary mark colours (from the name-card design):
   GF = cherry red · veg/vegan = fresh leaf green */
:root { --diet-veg: #4E9F3D; }

.diet--gf {
  color: var(--pd-cherry);
  border: 1px solid color-mix(in srgb, var(--pd-cherry) 55%, transparent);
}
.diet--gf .diet__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pd-cherry);
  margin-right: 3px;
  vertical-align: middle;
}
.diet--vg {
  color: var(--diet-veg);
  border: 1px solid color-mix(in srgb, var(--diet-veg) 55%, transparent);
}

/* The Indian "pure veg" mark — green square with a filled dot */
.vegmark {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--diet-veg);
  border-radius: 2px;
  flex-shrink: 0;
  vertical-align: middle;
}
.vegmark::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--diet-veg);
}

/* Cover dietary legend / key */
.dietkey {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--pd-sp-8) var(--pd-sp-24);
  margin-top: var(--pd-sp-16);
  font-family: var(--pd-font-sans);
  font-size: var(--pd-fs-12);
  letter-spacing: 0.04em;
  color: var(--pd-fg-subtle);
}
.dietkey > span { display: inline-flex; align-items: center; gap: 6px; }
.dietkey .diet { margin-left: 0; }

/* [CONFIRM] tag — small amber pill so nothing unverified reads as final */
.confirm {
  display: inline-block;
  margin-left: 6px;
  background: #f6e4c4;
  color: #9a5b13;
  font-family: var(--pd-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: var(--pd-radius-2);
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Two-column density for the long by-the-kg lists
   --------------------------------------------------------------------- */
.cols-2 {
  column-count: 2;
  column-gap: var(--pd-sp-32);
}
.cols-2 .item { break-inside: avoid; }

/* A flat-price banner used by sections priced as one ("all $7.50") */
.flat-banner {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--pd-font-serif);
  font-size: var(--pd-fs-22);
  color: var(--pd-fg);
  margin: 0 0 var(--pd-sp-8);
}
.flat-banner .pr { font-size: var(--pd-fs-22); }
.flat-banner .lbl {
  font-family: var(--pd-font-sans);
  font-size: var(--pd-fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pd-fg-subtle);
}

/* Inline addon note under an item (e.g. "Add Rabdi +$2") */
.addon {
  font-family: var(--pd-font-serif);
  font-style: italic;
  font-size: var(--pd-fs-14);
  color: var(--pd-fg-subtle);
  padding: 2px 0 8px;
}
