@font-face {
  font-family: 'Shabnam';
  src: url('../fonts/Shabnam.woff2') format('woff2'),
       url('../fonts/Shabnam.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Shabnam';
  src: url('../fonts/Shabnam-Bold.woff2') format('woff2'),
       url('../fonts/Shabnam-Bold.woff') format('woff');
  font-weight: bold;
  font-display: swap;
}

/* ════════════════════════════════════════
   کافه عربیکا · CSS v6
   سفید + سبز تیره · فونت Shabnam
   ════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --green:     #530010;
  --green-mid: #78001F;
  --green-soft:#8B0025;
  --green-pale:#ffdce5;

  --white:     #ffffff;
  --off-white: #f7faf8;
  --gray-100:  #eef2ef;
  --gray-200:  #d8e2db;
  --gray-400:  #ffdce5;
  --gray-600:  #c7a0aa;

  --text-main: #530010;
  --text-sub:  #4A000F;
  --text-faint:#dc2626;

  --r-xl:   22px;
  --r-lg:   16px;
  --r-md:   12px;
  --r-sm:   8px;
  --r-pill: 999px;

  --ease:   cubic-bezier(.22,1,.36,1);
  --spring: cubic-bezier(.34,1.56,.64,1);

  /* ارتفاع هدر برای sticky cats */
  --header-h: 66px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

/* ── فونت Shabnam برای همه چیز بدون استثنا ── */
body, input, button, select, textarea, h1, h2, h3, h4, h5, h6, p, span, div, a {
  font-family: 'Shabnam', Tahoma, sans-serif !important;
}
body {
  background: var(--off-white);
  color: var(--text-main);
  direction: rtl;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}
button { cursor: pointer; border: none; background: none; color: inherit; }
svg { display: block; flex-shrink: 0; }

/* ════════════════════
   LOADER
   ════════════════════ */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--green);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transition: opacity .5s var(--ease), visibility .5s;
}
.loader.out { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__center { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.loader__icon { position: relative; width: 108px; height: 108px; display: flex; align-items: center; justify-content: center; }
.loader__icon img { width: 76px; height: 76px; object-fit: contain; position: relative; z-index: 1; }
.loader__icon svg { position: absolute; inset: 11px; }
.loader__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.15);
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader__text { text-align: center; }
.loader__en {
  display: block;
  font-size: 18px; font-weight: 800; letter-spacing: .45em;
  color: #fff; margin-bottom: 6px;
}
.loader__fa { display: block; font-size: 13px; color: rgba(255,255,255,.55); font-weight: 400; }

.loader__progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,.1);
}
.loader__fill {
  height: 100%; width: 0;
  background: #fff;
  transition: width .06s linear;
}

/* ════════════════════
   APP
   ════════════════════ */
.app {
  min-height: 100dvh;
  padding-bottom: 110px;
  opacity: 0;
  animation: fadeIn .45s .1s var(--ease) forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ════════════════════
   HEADER — نوار بالا
   ════════════════════ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 0 16px;
  box-shadow: 0 1px 10px rgba(15,61,26,.07);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.header__brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.header__mark {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.header__name { font-size: 16px; font-weight: 800; color: var(--text-main); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header__tag  { font-size: 11px; color: var(--green-soft); margin-top: 2px; font-weight: 500; white-space: nowrap; }

.header__right {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

.header__clock {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: var(--green-pale);
  border: 1.5px solid rgba(15,61,26,.12);
  border-radius: var(--r-pill);
  color: var(--green);
}
.header__clock svg { flex-shrink: 0; opacity: .7; }
#clockTime {
  font-size: 14px; font-weight: 900;
  letter-spacing: .04em; color: var(--green);
  font-variant-numeric: tabular-nums;
}
.header__clock-day { display: none; }

.header__search {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--gray-100); color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
  transition: background 120ms;
}
.header__search:active { background: var(--gray-200); }

.header__insta {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--gray-100); color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
  transition: background 120ms, color 120ms;
  text-decoration: none;
  flex-shrink: 0;
}
.header__insta:active,
.header__insta:hover { background: #fce4ec; color: #c2185b; }

/* Search bar */
.search { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .26s var(--ease), opacity .22s; }
.search.open { max-height: 66px; opacity: 1; }
.search__wrap { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; }
.search__ico { color: var(--text-faint); }
.search__input {
  flex: 1; padding: 11px 16px;
  background: var(--gray-100);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  color: var(--text-main); font-size: 14px;
  outline: none; direction: rtl;
  transition: border-color 150ms, box-shadow 150ms;
}
.search__input:focus { border-color: var(--green-soft); box-shadow: 0 0 0 3px rgba(45,128,64,.1); }
.search__input::placeholder { color: var(--text-faint); }
.search__x {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gray-100); color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
}

/* ════════════════════
   HERO — عکس کافه
   ════════════════════ */
.hero {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.app.loaded .hero__img { transform: scale(1); }

/* overlay تیره در پایین برای خوانایی متن */
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,30,14,.25) 0%,
    rgba(10,30,14,.55) 100%
  );
}

.hero__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 20px 30px;
  z-index: 1;
}
.hero__greeting-wrap {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  padding: 6px 14px 6px 10px;
  margin-bottom: 14px;
}
.hero__greeting {
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.95);
  letter-spacing: .03em;
}

.hero__slogan {
  font-size: 20px; font-weight: 800;
  color: #fff; line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -.01em;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
  white-space: nowrap;
}

.hero__label { display: none; }
.hero__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.hero__desc {
  font-size: 13px; color: rgba(255,255,255,.7);
  font-weight: 400; letter-spacing: .03em;
}

/* ════════════════════
   SPECIAL BANNER
   ════════════════════ */
.special {
  background: var(--white);
  margin: 0 14px;
  margin-top: -20px;
  border-radius: var(--r-xl);
  padding: 16px 18px;
  border: 1.5px solid var(--gray-100);
  box-shadow: 0 4px 20px rgba(15,61,26,.1);
  position: relative; z-index: 2;
  margin-bottom: 6px;
  animation: slideUp .5s .25s var(--ease) both;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.special__tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-soft);
  background: var(--green-pale);
  border-radius: var(--r-pill); padding: 4px 11px;
  margin-bottom: 10px;
}
.special__live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-soft);
  animation: pulse 1.8s ease-out infinite;
}
.special__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.special__name { font-size: 15px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; line-height: 1.3; }
.special__sub  { font-size: 12px; color: var(--text-sub); font-weight: 600; }
.special__pricing { text-align: center; flex-shrink: 0; }
.special__old  { display: block; font-size: 11px; color: var(--text-faint); margin-bottom: 2px; }
.special__now  { display: block; font-size: 24px; font-weight: 900; color: var(--green); line-height: 1; }
.special__cur  { font-size: 10px; color: var(--green-soft); font-weight: 600; }

/* ════════════════════
   CATEGORIES — sticky
   ════════════════════ */
.cats {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 11px 0;
  overflow-x: auto; overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 8px rgba(15,61,26,.05);
  cursor: grab;
}
.cats.is-dragging { cursor: grabbing; user-select: none; }
.cats::-webkit-scrollbar { display: none; height: 0; }
.cats__scroll {
  display: flex; gap: 7px;
  padding: 0 14px;
  width: max-content;
  flex-wrap: nowrap;
}

.cat {
  padding: 9px 18px; border-radius: var(--r-pill);
  background: var(--gray-100);
  border: 1.5px solid transparent;
  color: var(--text-sub); font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: all 130ms var(--ease);
}
.cat:active { transform: scale(.94); }
.cat.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 3px 12px rgba(15,61,26,.22);
}

/* ════════════════════
   GRID
   ════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 14px 0;
}

/* ════════════════════
   CARD
   ════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--gray-100);
  overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 10px rgba(15,61,26,.07);
  transition: transform .22s var(--ease), box-shadow .22s, border-color .15s;
  animation: riseUp .45s var(--ease) both;
  position: relative;
}
.card:nth-child(1){animation-delay:.04s} .card:nth-child(2){animation-delay:.08s}
.card:nth-child(3){animation-delay:.12s} .card:nth-child(4){animation-delay:.16s}
.card:nth-child(5){animation-delay:.20s} .card:nth-child(6){animation-delay:.24s}
.card:nth-child(7){animation-delay:.28s} .card:nth-child(8){animation-delay:.32s}
@keyframes riseUp { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@media(hover:hover) {
  .card:hover { transform: translateY(-4px); border-color: var(--gray-200); box-shadow: 0 10px 28px rgba(15,61,26,.12); }
}
.card:active { transform: scale(.96); }

/* خط اکسنت بالای کارت */
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: var(--green); opacity: 0;
  transition: opacity .2s;
}
.card:hover::before { opacity: 1; }

/* visual — سبز تیره */
.card__visual {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
  background: var(--green);
}
.card__art {
  position: absolute; inset: 0;
  width: 62px; height: 62px;
  margin: auto; top: 0; bottom: 0; left: 0; right: 0;
  transition: transform .4s var(--ease);
}
.card:hover .card__art { transform: scale(1.1) rotate(-3deg); }

.card__visual::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(to top, var(--green), transparent);
  pointer-events: none; z-index: 1;
}

/* badge */
.card__badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  backdrop-filter: blur(8px);
}
.b--pop { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.b--new { background: rgba(255,255,255,.2);  color: #fff; border: 1px solid rgba(255,255,255,.3); }
.b--sea { background: rgba(255,255,255,.14); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.2); }

/* body — سفید */
.card__body { padding: 13px 13px 14px; background: var(--white); }
.card__name   { font-size: 15.5px; font-weight: 900; color: var(--text-main); margin-bottom: 5px; letter-spacing: -.01em; line-height: 1.25; }
.card__recipe { font-size: 12px; line-height: 1.75; color: var(--text-sub); margin-bottom: 12px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot   { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.card__price strong { display: block; font-size: 17px; font-weight: 900; color: var(--green); line-height: 1; }
.card__price small  { display: block; font-size: 11px; color: var(--text-sub); margin-top: 2px; font-weight: 700; }

.card__add {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(15,61,26,.28);
  transition: transform 130ms var(--spring), background 130ms;
  flex-shrink: 0;
}
.card__add:active { transform: scale(.82); }
.card__add.done   { background: var(--green-soft); animation: addPop .32s var(--spring); }
@keyframes addPop { 0%{transform:scale(1)} 50%{transform:scale(1.25)} 100%{transform:scale(1)} }

/* empty */
.empty { grid-column: 1/-1; text-align: center; padding: 60px 0; color: var(--text-faint); }
.empty__icon { font-size: 44px; margin-bottom: 12px; opacity: .2; animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.07)} }

/* ════════════════════
   FAB
   ════════════════════ */
.fab { position: fixed; bottom: 24px; left: 14px; right: 14px; z-index: 80; animation: fabIn .4s .4s var(--spring) both; }
@keyframes fabIn { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }

.fab__btn {
  width: 100%; padding: 15px 22px;
  background: var(--green); border-radius: var(--r-pill);
  color: #fff; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 26px rgba(15,61,26,.35);
  transition: transform 130ms var(--spring), box-shadow 130ms;
  letter-spacing: .02em;
}
.fab__btn:active { transform: scale(.97); box-shadow: 0 4px 12px rgba(15,61,26,.25); }
.fab__text  { flex: 1; text-align: center; }
.fab__count { min-width: 26px; height: 26px; background: #fff; color: var(--green); border-radius: var(--r-pill); padding: 0 7px; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; }

/* ════════════════════
   VEIL
   ════════════════════ */
.veil { position: fixed; inset: 0; z-index: 190; background: rgba(8,22,10,.72); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .24s, visibility .24s; }
.veil.on { opacity: 1; visibility: visible; }

/* ════════════════════
   CART DRAWER
   ════════════════════ */
.drawer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--white);
  border-radius: 26px 26px 0 0;
  border-top: 1.5px solid var(--gray-100);
  max-height: 84dvh; display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .4s var(--ease);
  box-shadow: 0 -10px 44px rgba(15,61,26,.14);
}
.drawer.on { transform: none; }
.drawer__handle { width: 44px; height: 4px; border-radius: 2px; background: var(--gray-200); margin: 13px auto 0; }
.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px; border-bottom: 1px solid var(--gray-100);
}
.drawer__title { font-size: 17px; font-weight: 800; color: var(--text-main); }
.drawer__close {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--gray-100); color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
}
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px 12px; scrollbar-width: none; }
.drawer__body::-webkit-scrollbar { display: none; }
.cart-empty { text-align: center; padding: 44px 0; color: var(--text-faint); }
.cart-empty span { font-size: 36px; display: block; margin-bottom: 10px; opacity: .22; }

.crow { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--gray-100); animation: slideIn .2s var(--ease); }
@keyframes slideIn { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:none} }
.crow__name  { flex: 1; font-size: 14px; font-weight: 600; color: var(--text-main); }
.crow__ctrl  { display: flex; align-items: center; gap: 8px; }
.crow__btn {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--gray-100); color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 300; line-height: 1;
  transition: all 120ms;
}
.crow__btn:active { background: var(--green); color: #fff; transform: scale(.88); }
.crow__qty   { font-size: 14px; font-weight: 800; min-width: 22px; text-align: center; color: var(--text-main); }
.crow__price { font-size: 13px; font-weight: 700; color: var(--green); white-space: nowrap; }

.drawer__foot { padding: 16px 20px 32px; border-top: 1px solid var(--gray-100); }
.drawer__total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer__total > span { font-size: 13px; color: var(--text-sub); font-weight: 500; }
.drawer__sum  { font-size: 20px; font-weight: 900; color: var(--green); }
.drawer__cta {
  width: 100%; padding: 16px;
  background: var(--green); border-radius: var(--r-pill);
  color: #fff; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 22px rgba(15,61,26,.28);
  transition: transform 130ms var(--spring);
  letter-spacing: .02em;
}
.drawer__cta:active { transform: scale(.97); }
.drawer__cta svg { transform: rotate(180deg); }

/* ════════════════════
   ITEM MODAL
   ════════════════════ */
.modal {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 290;
  background: var(--white);
  border-radius: 26px 26px 0 0;
  border-top: 1.5px solid var(--gray-100);
  max-height: 90dvh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform .4s var(--ease);
  scrollbar-width: none;
  box-shadow: 0 -10px 44px rgba(15,61,26,.14);
}
.modal::-webkit-scrollbar { display: none; }
.modal.on { transform: none; }

.modal__close {
  position: absolute; top: 16px; left: 18px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--text-main);
  border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.modal__visual {
  width: 100%; padding-top: 50%;
  position: relative; overflow: hidden;
  background: var(--green);
  border-radius: 26px 26px 0 0;
}
.modal__visual > * { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.modal__visual::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(to top, var(--green), transparent);
  pointer-events: none; z-index: 1;
}

.modal__body  { padding: 20px 20px 8px; }
.modal__name  { font-size: 24px; font-weight: 900; color: var(--text-main); margin-bottom: 10px; letter-spacing: -.02em; }
.modal__desc  { font-size: 14px; line-height: 1.9; color: var(--text-sub); margin-bottom: 18px; font-weight: 400; }
.modal__tags  { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.modal__tag   { font-size: 11px; padding: 5px 13px; border-radius: var(--r-pill); background: var(--green-pale); color: var(--green-mid); border: 1px solid rgba(15,61,26,.12); font-weight: 600; }
.modal__foot  { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0 26px; border-top: 1px solid var(--gray-100); }
.modal__price { font-size: 22px; font-weight: 900; color: var(--green); }
.modal__add {
  flex: 1; padding: 14px;
  background: var(--green); border-radius: var(--r-pill);
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(15,61,26,.26);
  transition: transform 130ms var(--spring);
  letter-spacing: .02em;
}
.modal__add:active { transform: scale(.97); }
.modal__add.done   { background: var(--green-soft); }

/* ════════════════════
   TOAST
   ════════════════════ */
.toast {
  position: fixed; bottom: 110px; left: 50%; z-index: 400;
  transform: translateX(-50%) translateY(16px);
  background: var(--green); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 11px 22px; border-radius: var(--r-pill);
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 28px rgba(15,61,26,.32);
  opacity: 0;
  transition: opacity .2s, transform .25s var(--spring);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Desktop ── */
@media(min-width: 600px) {
  .app { max-width: 480px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ════════════════════
   FAB ROW
   ════════════════════ */
.fab-row {
  position: fixed; bottom: 24px; left: 14px; right: 14px; z-index: 80;
  display: flex; align-items: center; gap: 10px;
}
.fab { position: static; animation: none; flex: 1; }

.waiter-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 0 18px 0 14px;
  height: 54px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--green);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(15,61,26,.18), 0 1px 4px rgba(0,0,0,.08);
  border: 2px solid var(--gray-100);
  transition: transform 130ms var(--spring), box-shadow 130ms;
  position: relative;
  overflow: hidden;
}
.waiter-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--green-pale);
  opacity: 0; transition: opacity 150ms;
}
.waiter-btn:active { transform: scale(.95); }
.waiter-btn:active::before { opacity: 1; }

.waiter-btn__label {
  font-size: 13px; font-weight: 800;
  color: var(--green);
  white-space: nowrap;
  position: relative;
}

/* نقطه چشمک‌زن روی آیکن */
.waiter-btn::after {
  content: '';
  position: absolute; top: 9px; right: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 0 rgba(229,57,53,.6);
  animation: waiterPulse 2s ease-out infinite;
}
@keyframes waiterPulse {
  0%   { box-shadow: 0 0 0 0 rgba(229,57,53,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(229,57,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); }
}

/* ════════════════════
   WAITER POPUP
   ════════════════════ */
.wpopup {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--white);
  border-radius: 26px 26px 0 0;
  border-top: 1.5px solid var(--gray-100);
  padding: 20px 20px 36px;
  box-shadow: 0 -10px 44px rgba(15,61,26,.14);
  transform: translateY(100%);
  transition: transform .38s var(--ease);
}
.wpopup.on { transform: none; }

.wpopup__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.wpopup__title { font-size: 17px; font-weight: 800; color: var(--text-main); }
.wpopup__close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gray-100); color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
}
.wpopup__sub { font-size: 13px; color: var(--text-faint); font-weight: 500; margin-bottom: 18px; }

.wpopup__options { display: flex; flex-direction: column; gap: 10px; }
.woption {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--off-white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-lg);
  text-align: right;
  transition: all 130ms var(--ease);
}
.woption:active { background: var(--green-pale); border-color: var(--green-soft); transform: scale(.98); }
.woption__ico { font-size: 22px; flex-shrink: 0; }
.woption__txt { flex: 1; font-size: 14px; font-weight: 700; color: var(--text-main); line-height: 1.4; }
.woption svg  { flex-shrink: 0; color: var(--text-faint); transform: rotate(180deg); }

/* ════════════════════
   WAITER TABLE PICKER
   ════════════════════ */
.wtable {
  position: fixed; inset: 0; z-index: 310;
  background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .38s var(--ease);
  overflow-y: auto;
}
.wtable.on { transform: none; }

.wtable__head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--gray-100);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.wtable__back {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--gray-100); color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wtable__back svg { transform: rotate(180deg); }
.wtable__title { flex: 1; font-size: 17px; font-weight: 800; color: var(--text-main); text-align: center; }
.wtable__close {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--gray-100); color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.wtable__req {
  margin: 14px 16px 6px;
  font-size: 13px; font-weight: 700;
  color: var(--white);
  background: var(--green);
  padding: 10px 16px; border-radius: var(--r-md);
  text-align: center;
}

.wtable__section { padding: 16px 16px 4px; }
.wtable__label   { font-size: 13px; font-weight: 800; color: var(--text-sub); margin-bottom: 12px; letter-spacing: .02em; }
.wtable__grid    { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }

.wtable__num {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: var(--off-white);
  border: 2px solid var(--gray-200);
  font-size: 17px; font-weight: 800;
  color: var(--text-main);
  display: flex; align-items: center; justify-content: center;
  transition: all 130ms var(--spring);
}
.wtable__num:active  { transform: scale(.9); }
.wtable__num.picked  {
  background: var(--green); color: #fff;
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(15,61,26,.3);
  transform: scale(1.06);
}

.wtable__confirm {
  position: sticky; bottom: 0;
  background: var(--white);
  padding: 14px 16px 32px;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}
.wtable__selected {
  font-size: 13px; font-weight: 700; color: var(--green);
  text-align: center; margin-bottom: 12px;
}
.wtable__cta {
  width: 100%; padding: 15px;
  background: var(--green); border-radius: var(--r-pill);
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 6px 22px rgba(15,61,26,.28);
  transition: transform 130ms var(--spring);
  letter-spacing: .02em;
}
.wtable__cta:active { transform: scale(.97); }

/* ════════════════════
   WAITER SUCCESS
   ════════════════════ */
.wsuccess {
  position: fixed; inset: 0; z-index: 320;
  background: var(--white);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 40px 30px;
  animation: fadeIn .35s var(--ease);
}
.wsuccess__ico   { font-size: 64px; animation: popIn .4s var(--spring); }
@keyframes popIn { from{transform:scale(0)} to{transform:scale(1)} }
.wsuccess__title { font-size: 22px; font-weight: 900; color: var(--green); }
.wsuccess__msg   { font-size: 15px; font-weight: 600; color: var(--text-sub); text-align: center; line-height: 1.7; }
.wsuccess__close {
  margin-top: 10px;
  padding: 14px 48px;
  background: var(--green); border-radius: var(--r-pill);
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 6px 22px rgba(15,61,26,.28);
  transition: transform 130ms var(--spring);
}
.wsuccess__close:active { transform: scale(.97); }

/* ════════════════════
   INACTIVE CARD STATE
   ════════════════════ */
.card--inactive {
  opacity: .55;
  filter: grayscale(85%);
  pointer-events: auto;
}
.card--inactive .card__visual {
  filter: grayscale(1);
}
.card--inactive .card__name {
  color: var(--gray-400);
}
.card--inactive .card__price strong {
  color: var(--gray-400);
}

.badge--off {
  background: rgba(0,0,0,.55) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  backdrop-filter: blur(8px);
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
}

.card__add--off {
  background: var(--gray-200) !important;
  color: var(--gray-400) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

.badge--feat {
  background: rgba(234,179,8,.22);
  color: #fde047;
  border: 1px solid rgba(234,179,8,.35);
  backdrop-filter: blur(8px);
  top: 10px !important;
  right: 10px !important;
}

/* ════════════════════
   ORDER SUCCESS SCREEN
   ════════════════════ */
.order-success {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 30px 24px;
  animation: osFadeIn .4s var(--ease);
}
@keyframes osFadeIn { from{opacity:0} to{opacity:1} }

.order-success__bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-mid) 60%, #0a2e12 100%);
}

.order-success__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 16px;
  max-width: 340px; width: 100%;
  animation: osSlideUp .5s .1s var(--ease) both;
}
@keyframes osSlideUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:none; }
}

.order-success__check {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  animation: checkPop .5s .25s var(--spring) both;
  box-shadow: 0 0 0 16px rgba(255,255,255,.06);
}
@keyframes checkPop {
  from { transform: scale(0); opacity:0; }
  to   { transform: scale(1); opacity:1; }
}

.order-success__title {
  font-size: 24px; font-weight: 900; color: #fff;
  letter-spacing: -.02em; line-height: 1.2;
}
.order-success__table {
  font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-pill);
  padding: 7px 20px;
}
.order-success__divider {
  width: 48px; height: 2px; border-radius: 1px;
  background: rgba(255,255,255,.25);
}
.order-success__msg {
  font-size: 16px; font-weight: 700; color: #fff;
  line-height: 1.6;
}
.order-success__sub {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.65); line-height: 1.7;
}
.order-success__btn {
  margin-top: 8px;
  padding: 15px 48px;
  background: #fff; color: var(--green);
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 900;
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
  transition: transform .13s var(--spring), opacity .13s;
  letter-spacing: .02em;
}
.order-success__btn:active { transform: scale(.96); opacity:.9; }

/* ════════════════════
   ORDER SUCCESS PAGE
   ════════════════════ */
.os-page {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(160deg, #0a2e12 0%, var(--green) 55%, #1a5c28 100%);
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 28px;
  overflow-y: auto;
}
.os-page.show {
  display: flex;
  animation: osFade .35s var(--ease);
}
@keyframes osFade { from{opacity:0} to{opacity:1} }

.os-page__inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
  width: 100%; max-width: 360px;
  animation: osUp .45s .1s var(--ease) both;
}
@keyframes osUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:none} }

/* انیمیشن تیک */
.os-page__anim {
  position: relative; width: 110px; height: 110px;
  display: flex; align-items: center; justify-content: center;
}
.os-page__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  animation: ringScale 1.5s ease-out infinite;
}
.os-ring2 { animation-delay: .5s; }
@keyframes ringScale {
  0%   { transform: scale(.7); opacity: .7; }
  100% { transform: scale(1.4); opacity: 0; }
}
.os-page__check {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2.5px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  animation: checkPop .5s .2s var(--spring) both;
  position: relative; z-index: 1;
}
@keyframes checkPop { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }

/* متون */
.os-page__texts { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.os-page__title {
  font-size: 28px; font-weight: 900; color: #fff;
  letter-spacing: -.02em;
}
.os-page__table-chip {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-pill);
  padding: 8px 22px;
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,.95);
}
.os-page__thanks {
  font-size: 18px; font-weight: 700; color: #fff;
}
.os-page__desc {
  font-size: 13px; color: rgba(255,255,255,.7);
  line-height: 1.85; font-weight: 400;
}
.os-page__desc strong { color: #fff; font-weight: 800; }

/* تایمر */
.os-page__timer {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-xl);
  padding: 12px 22px;
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,.85);
}
#osCountdown {
  font-size: 18px; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* دکمه برگشت */
.os-page__btn {
  width: 100%; padding: 16px;
  background: #fff; color: var(--green);
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  transition: transform .13s var(--spring), opacity .13s;
  letter-spacing: .025em;
}
.os-page__btn:active { transform: scale(.97); opacity: .9; }

/* ── Cart Note ── */
.cart-note { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.cart-note__label {
  font-size: 12px; font-weight: 800;
  color: var(--text-sub);
  display: flex; align-items: center; gap: 6px;
}
.cart-note__input {
  width: 100%; padding: 12px 14px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-lg);
  color: var(--text-main);
  font-family: 'Shabnam', Tahoma, sans-serif !important;
  font-size: 13px; font-weight: 500;
  resize: none; outline: none;
  direction: rtl; line-height: 1.7;
  transition: border-color .15s, box-shadow .15s;
}
.cart-note__input:focus {
  border-color: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(45,128,64,.1);
}
.cart-note__input::placeholder { color: var(--text-faint); font-weight: 400; }

/* ── Status Bar ── */
.status-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 16px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .02em;
  transition: background .4s, color .4s;
}
.status-bar--open {
  background: #f0faf2;
  color: var(--green-soft);
  border-bottom: 1px solid rgba(45,128,64,.12);
}
.status-bar--closed {
  background: #fff5f5;
  color: #dc2626;
  border-bottom: 1px solid rgba(220,38,38,.1);
}
.status-bar__dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
}
.status-bar--open  .status-bar__dot { background: #22c55e; animation: pulse 2s ease-out infinite; }
.status-bar--closed .status-bar__dot { background: #dc2626; }

/* ── Cart Delete Button ── */
.crow__del {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 130ms;
}
.crow__del:active { background: #dc2626; color: #fff; transform: scale(.88); }

/* ════ ADDON PICKER ════ */
.addon-picker-veil {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 3000; display: none; align-items: flex-end; justify-content: center;
}
.addon-picker-veil.on { display: flex; }
.addon-picker {
  background: #fff; border-radius: 24px 24px 0 0;
  width: 100%; max-width: 480px; padding: 0 0 32px;
  max-height: 80vh; overflow-y: auto;
  font-family: 'Shabnam', Tahoma, sans-serif; direction: rtl;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.addon-picker__handle {
  width: 36px; height: 4px; background: #e5e7eb;
  border-radius: 2px; margin: 12px auto 0;
}
.addon-picker__head {
  padding: 16px 20px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.addon-picker__title { font-size: 16px; font-weight: 900; color: #111; }
.addon-picker__close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #f3f4f6; font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.addon-picker__sub { padding: 0 20px 12px; font-size: 12px; color: #6b7280; font-weight: 700; }
.addon-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; border-top: 1px solid #f3f4f6;
  cursor: pointer; transition: background .12s;
}
.addon-item:active { background: #f9fafb; }
.addon-item__info { display: flex; flex-direction: column; gap: 3px; }
.addon-item__name { font-size: 14px; font-weight: 800; color: #111; }
.addon-item__price { font-size: 12px; font-weight: 700; color: #6b7280; }
.addon-item__check {
  width: 24px; height: 24px; border-radius: 8px;
  border: 2px solid #d1d5db;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all .15s; flex-shrink: 0;
}
.addon-item.selected .addon-item__check { background: #16a34a; border-color: #16a34a; color: #fff; }
.addon-picker__foot { padding: 16px 20px 0; }
.addon-picker__cta {
  width: 100%; padding: 14px; border-radius: 14px;
  border: none; background: #16a34a; color: #fff;
  font-family: 'Shabnam', Tahoma, sans-serif;
  font-size: 15px; font-weight: 900; cursor: pointer;
}
/* ── addon tag in cart ── */
.crow__addons { font-size: 11px; color: #6b7280; font-weight: 700; margin-top: 2px; }

/* ── addon button inside cart row ── */
.crow__addon-btn {
  display: inline-block;
  margin-top: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--green-soft, #16a34a);
  background: transparent;
  color: var(--green-soft, #16a34a);
  font-family: 'Shabnam', Tahoma, sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background .13s, color .13s;
}
.crow__addon-btn:active { background: #16a34a; color: #fff; }