/* =====================================================================
   نان آفرینان — Nan Afrinan
   Mobile-first café & bakery PWA — design system
   ===================================================================== */

/* ---------- Estedad variable — modern Persian font (self-hosted, works offline / in Iran) ---------- */
@font-face {
  font-family: "Estedad";
  src: url("../fonts/estedad.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Vazirmatn fallback for latin + extended ranges ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0898-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- design tokens — Warm Amber & Cream palette ---------- */
:root {
  /* surfaces */
  --cream:        #f4e8d4;
  --cream-2:      #faf3e8;
  --sand:         #e4d4bc;
  --sand-deep:    #ceb898;
  --paper:        #ffffff;

  /* dark tones */
  --espresso:     #160c04;
  --espresso-2:   #20120a;
  --charcoal:     #0e0702;
  --brown:        #7c4e24;
  --brown-soft:   #9a6a40;

  /* accent — richer amber, clearly distinct */
  --gold:         #d08a20;
  --gold-light:   #eba03c;
  --gold-deep:    #b87018;
  --orange:       #cc7a20;
  --svc:          #c07020;

  /* text — high contrast */
  --ink:          #180c04;
  --ink-soft:     #664830;
  --ink-faint:    #906848;

  --line:         #dccaae;
  --ok:           #2e7244;
  --danger:       #bf3828;

  /* backgrounds */
  --bg:           #ede4d2;
  --card:         #ffffff;

  /* shape & depth */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --shadow-sm: 0 4px 16px rgba(22, 12, 4, .09);
  --shadow:    0 12px 32px rgba(22, 12, 4, .13);
  --shadow-lg: 0 22px 52px rgba(14, 7, 2, .24);
  --ring: 0 0 0 4px rgba(208, 138, 32, .26);

  /* layout */
  --maxw: 480px;
  --tabbar-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  font-family: "Estedad", "Vazirmatn", "Tahoma", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: inherit;
  color: var(--ink);
  background: #120804;
  min-height: 100svh;
  overscroll-behavior-y: none;
  line-height: 1.65;
}

/* device column on larger screens (phone mock) */
.app {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100svh;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 540px) {
  body {
    background: linear-gradient(160deg, #170d05, #0e0703);
  }
  .app {
    box-shadow: 0 0 80px rgba(0, 0, 0, .35);
  }
}

.sprite { position: absolute; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
.icon--sm { width: 18px; height: 18px; }

/* scroll area */
.views {
  height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
/* views always full height — no phone-mock override needed */
.views::-webkit-scrollbar { display: none; }

.view { display: none; min-height: 100%; }
.view--active { display: block; animation: viewIn .4s var(--ease); }
/* slide only (no opacity) so there is never a flash of faint content */
@keyframes viewIn { from { transform: translateY(10px); } to { transform: none; } }

.wrap { padding-inline: 18px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--safe-top) + 6px);
  padding-bottom: 34px;
  color: #fff;
  overflow: hidden;
  border-bottom-left-radius: 38px;
  border-bottom-right-radius: 38px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 30% 0%, #5a3c25, #2c1c11 70%);
  background-size: cover; background-position: center 38%;
  transform: scale(1.05);
  transition: transform .6s var(--ease);
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6,3,1,.74) 0%,
    rgba(6,3,1,.42) 28%,
    rgba(6,3,1,.36) 54%,
    rgba(6,3,1,.68) 78%,
    rgba(6,3,1,.94) 100%
  );
}
.hero__fade { display: none; }
.hero > * { position: relative; z-index: 2; }

/* status bar hidden — not a phone mock */
.statusbar { display: none; }

/* top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 6px 16px 0;
}
.topbar__cluster { display: flex; align-items: center; gap: 6px; }
.iconbtn {
  position: relative;
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16);
  transition: transform .15s var(--ease), background .2s;
}
.iconbtn:active { transform: scale(.92); }
.badge {
  position: absolute; top: -3px; inset-inline-start: -3px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; line-height: 1;
  color: #fff; background: var(--gold-deep);
  border: 2px solid #2a1b11; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.brand__mark { width: 26px; height: 26px; fill: none; stroke: var(--gold-light); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
.brand__name { font-size: 19px; font-weight: 800; letter-spacing: -.2px;
  text-shadow: 0 1px 8px rgba(0,0,0,.45); }

/* hero copy */
.hero__content { text-align: center; padding: 26px 24px 12px; }
.hero__title {
  font-size: clamp(36px, 10.5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0,0,0,.80),
    0 8px 40px rgba(0,0,0,.60);
}
.hero__tagline {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 700;
  color: #FFD060;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,.70);
}
.hero__tagline i {
  color: #FFE48A;
  font-style: normal;
  margin: 0 6px;
}
.hero__desc {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 242, 210, 0.96);
  line-height: 2.2;
  text-shadow: 0 1px 10px rgba(0,0,0,.70);
}

/* =====================================================================
   QR CARD
   ===================================================================== */
.qrcard {
  width: 100%;
  margin-top: -26px;
  display: flex; align-items: center; gap: 15px;
  padding: 15px 16px; text-align: start;
  background: var(--card);
  border: 1px solid rgba(199,146,72,.28);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 34px rgba(40,25,14,.16), inset 0 1px 0 rgba(255,255,255,.7);
  cursor: pointer; position: relative; z-index: 3;
  transition: transform .18s var(--ease), box-shadow .2s;
}
.qrcard:active { transform: scale(.985); }
.qrcard__qr {
  width: 62px; height: 62px; flex: 0 0 auto; border-radius: 14px;
  padding: 7px; background: #fff;
  box-shadow: 0 4px 12px rgba(58,38,22,.12), inset 0 0 0 1px var(--line);
  display: block;
}
.qrcard__qr svg { width: 100%; height: 100%; display: block; }
.qrcard__text { flex: 1 1 auto; }
.qrcard__title { display: block; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.qrcard__sub { display: block; font-size: 12.5px; font-weight: 500; color: var(--gold-deep); margin-top: 3px; }
.qrcard__sub b { font-weight: 800; }
.qrcard__chev {
  flex: 0 0 auto; display: grid; place-items: center;
  color: #b9a890; padding-inline: 2px;
}
.qrcard__chev .icon { width: 22px; height: 22px; stroke-width: 2.2; }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { margin-top: 32px; }
.section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; justify-content: center; }
.section__deco { color: var(--gold-deep); display: grid; place-items: center; }
.section__deco .icon { width: 22px; height: 22px; }
.section__title { font-size: 18px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.section__dash { flex: 0 0 26px; height: 2px; border-radius: 2px; background: var(--gold-deep); opacity: .55; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.svc {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 9px; padding: 20px 8px 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-sm);
  cursor: pointer; color: var(--ink);
  transition: transform .18s var(--ease), box-shadow .2s, border-color .2s;
}
.svc:active { transform: translateY(2px) scale(.98); }
.svc:hover { box-shadow: var(--shadow); border-color: var(--sand-deep); }
.svc__icon { color: var(--svc); display: grid; place-items: center; margin-bottom: 2px; }
.svc__icon .icon { width: 44px; height: 44px; }
.svc__title { font-size: 13.5px; font-weight: 800; line-height: 1.35; }
.svc__desc { font-size: 11px; font-weight: 400; color: var(--ink-soft); line-height: 1.7; }

/* =====================================================================
   FEATURE BANNER
   ===================================================================== */
.feature {
  position: relative; display: flex; align-items: stretch; gap: 0;
  min-height: 150px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, #2f2118, #1d130c);
  box-shadow: var(--shadow); cursor: pointer; color: #fff;
  border: 1px solid rgba(199,146,72,.2);
}
.feature:active { transform: scale(.99); }
.feature__media {
  order: 2;                       /* photo on the LEFT (end side in RTL), like the reference */
  flex: 0 0 44%;
  background-size: cover; background-position: center;
  position: relative;
}
.feature__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(29,19,12,0) 35%, rgba(29,19,12,.92));
}
.feature__body { order: 1; flex: 1 1 auto; padding: 18px 18px; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 6px; }
.feature__title { font-size: 21px; font-weight: 800; }
.feature__sub { font-size: 13px; color: rgba(247,239,226,.78); }
.feature__btn { margin-top: 10px; }
.feature__btn .icon { margin-inline-start: 2px; }

/* generic image fallback (when remote photo fails) */
.imgfx { position: relative; background-size: cover; background-position: center; }
.imgfx--fail { background: linear-gradient(150deg, #e9d8bd, #d8bf98) !important; }
.imgfx--fail::before {
  content: attr(data-emoji); position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 40px; opacity: .65; filter: saturate(.9);
}

/* =====================================================================
   VALUES
   ===================================================================== */
.values {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 2px;
}
.value { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center;
  padding: 4px 6px; position: relative; }
.value + .value::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 14%; height: 72%; width: 1px;
  background: #ddceb6;
}
.value__icon { color: var(--svc); }
.value__icon .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.value__title { font-size: 11.5px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.value__sub { font-size: 10.5px; color: var(--ink-faint); }

.tabbar-spacer { height: calc(var(--tabbar-h) + var(--safe-bottom) + 18px); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14.5px; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  box-shadow: 0 8px 20px rgba(168,118,47,.32);
  transition: transform .15s var(--ease), box-shadow .2s, opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--soft { background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.28); box-shadow: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 10px 18px; font-size: 13.5px; }
.btn--ghost { background: var(--card); color: var(--brown); border: 1px solid var(--sand-deep); box-shadow: none; }
.btn--dark { background: linear-gradient(135deg, #3a281b, #241710); box-shadow: 0 8px 20px rgba(20,12,7,.3); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 24px; font-size: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* =====================================================================
   BOTTOM NAV
   ===================================================================== */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex; align-items: flex-start; justify-content: space-around;
  padding-top: 8px;
  background: rgba(255,253,248,.92);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid rgba(199,146,72,.18);
  box-shadow: 0 -8px 24px rgba(58,38,22,.08);
}
.tab {
  flex: 1 1 0; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: inherit; font-size: 10.5px; font-weight: 600;
  color: var(--ink-faint); position: relative; padding: 4px 2px;
  transition: color .2s;
}
.tab .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.tab span { white-space: nowrap; }
.tab--active { color: var(--gold-deep); }
.tab--active .icon { stroke-width: 2; }
.tab__dot { position: absolute; top: 2px; inset-inline-end: 30%;
  width: 7px; height: 7px; border-radius: 50%; background: var(--danger);
  border: 1.5px solid var(--paper); display: none; }
.tab__dot--on { display: block; }

.tab--center { position: relative; }
.tab--center .tab__fab {
  width: 56px; height: 56px; margin-top: -26px; margin-bottom: 1px;
  display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: linear-gradient(150deg, #b9863c, #8a5f2c);
  box-shadow: 0 10px 22px rgba(138,95,44,.45), inset 0 1px 0 rgba(255,255,255,.3);
  border: 4px solid var(--paper);
  transition: transform .18s var(--ease);
}
.tab--center.tab--active .tab__fab { transform: translateY(-2px); }
.tab--center .icon { width: 26px; height: 26px; }
.tab--center.tab--active { color: var(--gold-deep); }

/* =====================================================================
   SCRIM / DRAWER / SHEET
   ===================================================================== */
.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(20,12,7,.5); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.scrim--on { opacity: 1; }
.scrim[hidden] { display: none; }

.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 50;
  width: min(82%, 340px);
  background: linear-gradient(180deg, #20120a, #140c06);
  color: #f4ead9; transform: translateX(100%);
  transition: transform .36s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); padding-top: var(--safe-top);
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer--on { transform: translateX(0) !important; }
.drawer__head { display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer__brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; }
.drawer__brand .brand__mark { width: 24px; height: 24px; }
.drawer__head .iconbtn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); width: 38px; height: 38px; }
.drawer__nav { padding: 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; overflow-y: auto; }
.dnav {
  display: flex; align-items: center; gap: 14px; padding: 13px 14px;
  border-radius: 14px; color: #ead9c2; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; text-align: start; width: 100%;
  transition: background .2s;
}
.dnav:active, .dnav:hover { background: rgba(255,255,255,.06); }
.dnav .icon { color: var(--gold-light); width: 22px; height: 22px; }
.dnav__badge { margin-inline-start: auto; font-size: 11px; font-weight: 700; color: #2a1b11;
  background: var(--gold-light); border-radius: 999px; padding: 1px 8px; }
.drawer__foot { padding: 14px 18px calc(20px + var(--safe-bottom)); border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 10px; }
.drawer__foot p { font-size: 12px; color: #c3ad92; display: flex; align-items: center; gap: 8px; }
.drawer__foot .icon { color: var(--gold-light); }

/* bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet--mounted { display: block; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--maxw); margin: 0 auto;
  background: var(--paper); color: var(--ink);
  border-top-left-radius: 26px; border-top-right-radius: 26px;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%); transition: transform .4s var(--ease);
  max-height: 92svh; display: flex; flex-direction: column;
  padding-bottom: var(--safe-bottom);
}
.sheet--open .sheet__panel { transform: translateY(0); }
.sheet__grip { display: block; width: 44px; height: 5px; border-radius: 99px;
  background: var(--sand-deep); border: 0; margin: 10px auto 4px; cursor: pointer; flex: 0 0 auto; }
.sheet__body { overflow-y: auto; padding: 8px 18px 22px; scrollbar-width: none; }
.sheet__body::-webkit-scrollbar { display: none; }

/* sheet building blocks */
.sheet__title { font-size: 19px; font-weight: 800; text-align: center; margin: 4px 0 4px; }
.sheet__lead { text-align: center; color: var(--ink-soft); font-size: 13px; margin-bottom: 16px; }

/* =====================================================================
   GENERIC PAGE HEADER (secondary views)
   ===================================================================== */
.pagehead {
  position: relative; z-index: 10;
  padding: calc(var(--safe-top) + 16px) 18px 14px;
  background: linear-gradient(180deg, #2a1b11, #2a1b11ee 70%, #2a1b1100);
  color: #fff;
}
.pagehead--solid { background: linear-gradient(160deg, #34241a, #20140c); border-bottom-left-radius: 26px; border-bottom-right-radius: 26px; }
.pagehead__top { display: flex; align-items: center; gap: 10px; }
.pagehead__title { font-size: 20px; font-weight: 800; }
.pagehead__sub { font-size: 12.5px; color: rgba(247,239,226,.72); margin-top: 2px; }
.pagehead .iconbtn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); }

/* table banner */
.tablebar {
  display: flex; align-items: center; gap: 10px; margin: 14px 18px 0;
  padding: 11px 14px; border-radius: 14px; font-size: 13px; font-weight: 700;
  color: #3a2a18; background: linear-gradient(135deg, #f0d9ac, #e6c587);
  box-shadow: var(--shadow-sm);
}
.tablebar .icon { color: var(--brown); }
.tablebar button { margin-inline-start: auto; background: none; border: 0; color: var(--brown);
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* =====================================================================
   MENU VIEW
   ===================================================================== */
.searchbar {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding: 11px 14px; border-radius: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.85);
}
.searchbar input { flex: 1; background: none; border: 0; outline: 0; color: #fff;
  font-family: inherit; font-size: 14px; }
.searchbar input::placeholder { color: rgba(255,255,255,.55); }
.searchbar .icon { color: var(--gold-light); }

.cats { display: flex; gap: 8px; overflow-x: auto; padding: 14px 18px 4px;
  scrollbar-width: none; position: sticky; top: 0; z-index: 9;
  background: var(--bg); }
.cats::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; white-space: nowrap;
  color: var(--ink-soft); background: var(--card); border: 1px solid var(--line);
  transition: all .2s var(--ease);
}
.chip--on { color: #fff; background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  border-color: transparent; box-shadow: 0 6px 14px rgba(168,118,47,.3); }

.menu-list { padding: 8px 18px 0; }
.menu-group__title { font-size: 16px; font-weight: 800; margin: 18px 2px 12px; display: flex; align-items: center; gap: 8px; }
.menu-group__title .icon { color: var(--gold); width: 20px; height: 20px; }

.item {
  display: flex; gap: 13px; padding: 12px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); align-items: center;
}
.item__media { flex: 0 0 86px; width: 86px; height: 86px; border-radius: 14px; overflow: hidden;
  background-size: cover; background-position: center; position: relative; }
.item__body { flex: 1 1 auto; min-width: 0; }
.item__name { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.item__tag { font-size: 9.5px; font-weight: 700; color: var(--gold-deep);
  background: #f6e9d2; padding: 1px 7px; border-radius: 999px; }
.item__desc { font-size: 11.5px; color: var(--ink-soft); line-height: 1.7; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.price { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.price small { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); margin-inline-start: 2px; }

/* qty stepper / add */
.add {
  width: 38px; height: 38px; border-radius: 12px; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  box-shadow: 0 6px 14px rgba(168,118,47,.32);
}
.add:active { transform: scale(.9); }
.stepper { display: flex; align-items: center; gap: 0; background: var(--sand);
  border-radius: 12px; padding: 3px; }
.stepper button { width: 30px; height: 30px; border: 0; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center; color: var(--brown); background: #fff; box-shadow: var(--shadow-sm); }
.stepper button:active { transform: scale(.9); }
.stepper b { min-width: 26px; text-align: center; font-size: 14px; font-weight: 800; }

/* =====================================================================
   OPTIONS (item sheet)
   ===================================================================== */
.opt-group { margin: 16px 0; }
.opt-group__title { font-size: 14px; font-weight: 800; margin-bottom: 4px; display:flex; gap:8px; align-items:center; }
.opt-group__hint { font-size: 11px; color: var(--ink-faint); font-weight: 500; }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px;
  border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--card);
  transition: border-color .15s, background .15s;
}
.opt--on { border-color: var(--gold); background: #fff7ea; }
.opt__mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sand-deep);
  display: grid; place-items: center; flex: 0 0 auto; color: #fff; }
.opt--on .opt__mark { background: var(--gold-deep); border-color: var(--gold-deep); }
.opt--on .opt__mark .icon { width: 14px; height: 14px; }
.opt__name { font-size: 14px; font-weight: 600; flex: 1; }
.opt__price { font-size: 12.5px; font-weight: 700; color: var(--gold-deep); }

/* =====================================================================
   CART
   ===================================================================== */
.cart-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line__media { width: 60px; height: 60px; border-radius: 12px; background-size: cover; background-position: center; flex: 0 0 auto; }
.cart-line__body { flex: 1; min-width: 0; }
.cart-line__name { font-size: 14px; font-weight: 700; }
.cart-line__opt { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.cart-line__price { font-size: 13px; font-weight: 800; margin-top: 4px; color: var(--brown); }

.summary { margin-top: 16px; padding: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); }
.summary__row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 9px; }
.summary__row--total { font-size: 16px; font-weight: 800; color: var(--ink); margin: 4px 0 0; padding-top: 12px; border-top: 1px dashed var(--sand-deep); }

.checkout-bar { position: sticky; bottom: 0; padding: 14px 0 4px; background: linear-gradient(180deg, transparent, var(--paper) 30%); }

.empty { text-align: center; padding: 50px 24px; color: var(--ink-soft); }
.empty__icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center;
  color: var(--gold-deep); background: linear-gradient(160deg, #fbf1df, #efdec0); }
.empty__icon .icon { width: 38px; height: 38px; }
.empty h3 { font-size: 17px; font-weight: 800; color: var(--ink); }
.empty p { font-size: 13px; margin-top: 6px; }

/* =====================================================================
   RESERVE
   ===================================================================== */
.field { margin-top: 18px; }
.field__label { font-size: 13px; font-weight: 800; margin-bottom: 10px; color: var(--ink); display:flex; align-items:center; gap:7px; }
.field__label .icon { color: var(--gold-deep); width: 18px; height: 18px; }
.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: 0 0 auto; min-width: 62px; padding: 10px 14px; border-radius: 14px; cursor: pointer;
  text-align: center; background: var(--card); border: 1.5px solid var(--line);
  font-family: inherit; transition: all .18s var(--ease);
}
.pill b { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.pill small { display: block; font-size: 10.5px; color: var(--ink-soft); margin-top: 1px; }
.pill--on { border-color: var(--gold); background: #fff7ea; box-shadow: 0 6px 14px rgba(199,146,72,.18); }
.pill--on b { color: var(--gold-deep); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.area-card { padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; text-align: start; transition: all .18s var(--ease); }
.area-card--on { border-color: var(--gold); background: #fff7ea; }
.area-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--brown); background: #f3e7d1; margin-bottom: 8px; }
.area-card b { display: block; font-size: 14px; font-weight: 800; }
.area-card small { font-size: 11px; color: var(--ink-soft); }

/* =====================================================================
   ORDERS / NOTIFICATIONS / PROFILE
   ===================================================================== */
.panel { padding: 16px 18px; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  padding: 15px; margin-bottom: 14px; }
.order-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order-card__id { font-size: 13px; font-weight: 800; }
.order-card__id span { color: var(--ink-faint); font-weight: 600; font-size: 11.5px; display:block; margin-top:2px; }
.status { font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.status--prep { color: #9a6a1e; background: #fbeccb; }
.status--ready { color: #2f6b3c; background: #d9eedd; }
.status--done { color: var(--ink-soft); background: var(--sand); }
.order-card__items { font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; }
.order-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--sand-deep); }
.steps { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
.steps__dot { flex: 1; height: 4px; border-radius: 4px; background: var(--sand-deep); }
.steps__dot--on { background: linear-gradient(90deg, var(--gold-light), var(--gold-deep)); }

.notif { display: flex; gap: 13px; padding: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 11px; box-shadow: var(--shadow-sm); }
.notif--unread { border-inline-start: 3px solid var(--gold); }
.notif__icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto;
  color: var(--brown); background: linear-gradient(160deg, #fbf1df, #efdec0); }
.notif__body b { font-size: 14px; font-weight: 800; }
.notif__body p { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.7; }
.notif__time { font-size: 10.5px; color: var(--ink-faint); margin-top: 5px; }

.profile-hero { padding: calc(var(--safe-top) + 26px) 18px 26px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #24140a, #160c04); border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
.avatar { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center;
  font-size: 30px; font-weight: 800; color: #2a1b11;
  background: linear-gradient(150deg, var(--gold-light), var(--gold-deep)); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.profile-hero h2 { font-size: 20px; font-weight: 800; }
.profile-hero p { font-size: 13px; color: rgba(247,239,226,.7); margin-top: 3px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: -20px 18px 0; position: relative; z-index: 2; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 19px; font-weight: 800; color: var(--gold-deep); }
.stat small { font-size: 11px; color: var(--ink-soft); }
.rowlink { display: flex; align-items: center; gap: 14px; padding: 15px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; cursor: pointer; width: 100%;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); text-align: start; }
.rowlink:active { background: var(--cream-2); }
.rowlink__icon { color: var(--brown); display: grid; place-items: center; }
.rowlink .chev { margin-inline-start: auto; color: var(--ink-faint); }
.rowlink .chev .icon { width: 20px; height: 20px; }

/* =====================================================================
   TOAST
   ===================================================================== */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 20px);
  transform: translate(-50%, 20px); z-index: 80;
  background: #2a1b11; color: #fbeed6; font-size: 13.5px; font-weight: 600;
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 9px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  max-width: calc(var(--maxw) - 40px); white-space: nowrap;
}
.toast--on { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: var(--gold-light); width: 20px; height: 20px; }

/* QR scanner sheet */
.scanner { position: relative; width: 220px; height: 220px; margin: 8px auto 18px; border-radius: 24px; overflow: hidden;
  background: #14100c; display: grid; place-items: center; }
.scanner__frame { position: absolute; inset: 22px; border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(220,174,102,.5); }
.scanner__frame::before, .scanner__frame::after,
.scanner__c1, .scanner__c2 { content:""; position: absolute; width: 26px; height: 26px; border: 3px solid var(--gold-light); }
.scanner__frame::before { top: -2px; inset-inline-start: -2px; border-inline-end: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.scanner__frame::after { top: -2px; inset-inline-end: -2px; border-inline-start: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.scanner__line { position: absolute; left: 22px; right: 22px; height: 2px; background: var(--gold-light);
  box-shadow: 0 0 14px 2px rgba(220,174,102,.8); top: 22px; animation: scan 2.2s var(--ease) infinite; }
@keyframes scan { 0%,100% { top: 24px; } 50% { top: calc(100% - 24px); } }
.scanner svg { width: 120px; height: 120px; opacity: .5; }
.codeinput { display: flex; gap: 10px; align-items: center; }
.codeinput input { flex: 1; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); font-family: inherit; font-size: 15px; font-weight: 700; text-align: center; color: var(--ink); outline: none; }
.codeinput input:focus { border-color: var(--gold); box-shadow: var(--ring); }

/* confirmation */
.confirm { text-align: center; padding: 10px 0 6px; }
.confirm__check { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: linear-gradient(150deg, #62b06f, #3d8a4d); box-shadow: 0 12px 28px rgba(61,138,77,.4);
  animation: pop .5s var(--ease); }
.confirm__check .icon { width: 44px; height: 44px; stroke-width: 2.4; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.confirm h3 { font-size: 20px; font-weight: 800; }
.confirm p { color: var(--ink-soft); font-size: 13.5px; margin-top: 6px; }
.confirm__card { margin: 18px 0; padding: 16px; border-radius: 16px; background: var(--cream-2); border: 1px dashed var(--sand-deep); text-align: start; }
.confirm__card .summary__row { color: var(--ink); }

/* misc */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.mt { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .05ms !important; }
  .scanner__line { display: none; }
}
