/* ============================================================
   ثيم ريزوفا — أسود فاخر · ذهبي · أخضر زمردي
   الألوان من دليل هوية REZOVA:
   #121212 أسود · #D4AF37 ذهبي · #0F5C4D زمردي · #F7F4ED عاجي
   ============================================================ */

:root {
  --brand-900: #06110D;   /* أسود مخضرّ — أعمق درجة */
  --brand-800: #0C3A2D;   /* زمردي داكن — لون الهيدر */
  --brand-700: #12513E;   /* زمردي */
  --brand-600: #17654E;   /* زمردي فاتح — الأزرار */
  --brand-500: #2E8F70;   /* زمردي ناعم */
  --gold-500: #D4AF37;    /* ذهبي ريزوفا — لون التمييز */
  --gold-400: #E8C86A;    /* ذهبي فاتح */
  --gold-glow: #F5E3A8;   /* توهّج ذهبي */

  --cream: #0A0A0B;       /* خلفية الصفحة (كانت فاتحة — صارت سوداء) */
  --paper: #141518;       /* خلفية البطاقات */
  --paper-2: #1C1D21;     /* طبقة أعلى قليلاً (حقول · أقسام داخلية) */
  --ink: #F7F4ED;         /* لون النص */
  --muted: #9C9486;       /* نص ثانوي */
  --line: rgba(212, 175, 55, .18);  /* حدود ذهبية خافتة */
  --line-2: rgba(255, 255, 255, .07);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .45);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, .55);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .65);
  --glow-gold: 0 0 24px rgba(212, 175, 55, .28);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 900px;

  --font: "Cairo", "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font-display: "Cinzel", "El Messiri", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.intro-open { overflow: hidden; height: 100vh; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(212,175,55,.09), transparent 60%),
    radial-gradient(1000px 500px at -10% 110%, rgba(23,101,78,.14), transparent 55%),
    var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ============================================================
   الهيدر
   ============================================================ */
.hero {
  position: relative;
  background: var(--brand-800);   /* لون واحد ثابت — بدون فيديو أو تدرّج أو أنيميشن */
  color: #fff;
  padding: 34px 0 74px;
  overflow: hidden;
  border-bottom: 4px solid var(--gold-500);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.brand-badge {
  width: 78px; height: 78px; flex: none;
  border-radius: 20px;
  background: var(--paper);
  border: 2px solid rgba(212,175,55,.55);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.45), var(--glow-gold);
}
.brand-badge img { width: 100%; height: 100%; object-fit: cover; }
.brand-text h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.15;
}
.brand-text .tagline {
  color: var(--gold-glow);
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 600;
  margin-top: 4px;
}
.hero-actions { margin-inline-start: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.38);
  color: #fff;
  padding: 9px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: .2s;
}
.chip:hover { background: rgba(212,175,55,.22); transform: translateY(-1px); }
.chip.solid { background: var(--gold-500); color: var(--brand-900); border-color: transparent; }
.chip.solid:hover { background: var(--gold-400); }

/* ============================================================
   شريط البحث + الفئات
   ============================================================ */
.toolbar {
  position: sticky; top: 0; z-index: 30;
  margin-top: -44px;
}
.toolbar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 14px;
}
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.search input {
  border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: 16px; width: 100%;
  color: var(--ink);
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search .ico { color: var(--gold-500); font-size: 18px; }

.cats {
  display: flex; gap: 8px; overflow-x: auto;
  margin-top: 12px; padding-bottom: 4px;
  scrollbar-width: thin;
}
.cats::-webkit-scrollbar { height: 6px; }
.cats::-webkit-scrollbar-thumb { background: rgba(212,175,55,.35); border-radius: 999px; }
.cat-pill {
  flex: none;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: .18s; white-space: nowrap;
}
.cat-pill:hover { border-color: var(--gold-500); }
.cat-pill.active {
  background: var(--gold-500); color: var(--brand-900); border-color: var(--gold-500);
  box-shadow: 0 6px 16px rgba(212,175,55,.35);
}

/* ============================================================
   الأصناف
   ============================================================ */
main { padding: 26px 0 60px; }

.section { margin-bottom: 34px; scroll-margin-top: 130px; }
.section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.section-head .ico {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: var(--gold-glow); border-radius: 14px; font-size: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.section-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--gold-400); }
.section-head .note { font-size: 13px; color: var(--muted); font-weight: 500; }
.section-head .count {
  margin-inline-start: auto;
  background: var(--paper-2); color: var(--muted);
  font-size: 13px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
}

/* ===== شبكة كروت الأطباق (المنيو الاحترافي) ===== */
.items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 620px) { .items { gap: 16px; } }

.dish {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s;
}
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(212,175,55,.45); }
.dish.out { opacity: .62; }
.dish-media {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  overflow: hidden;
}
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dish:hover .dish-media img { transform: scale(1.07); }
.dish-out {
  position: absolute; top: 8px; inset-inline-start: 8px;
  background: #c0392b; color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(192,57,43,.35);
}
.dish-info { padding: 11px 13px 4px; flex: 1; }
.dish-name { font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.dish-desc {
  font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 13px 13px; margin-top: auto; flex-wrap: wrap;
}
.dish-price { font-weight: 800; font-size: 16px; color: var(--gold-500); white-space: nowrap; }
.dish-price span { font-size: 11px; color: var(--muted); font-weight: 600; }
.dish-price.free { font-size: 12.5px; color: var(--gold-400); }
/* الخصومات — شارة وسعر مشطوب */
.dish-disc-badge {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2;
  background: #e5484d; color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(229,72,77,.35);
}
.dish-price.discounted { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; white-space: normal; }
.dp-old { text-decoration: line-through; color: var(--muted); font-size: 13px; font-weight: 700; }
.dp-new { color: var(--gold-500); font-weight: 800; font-size: 16px; }
.dp-new span { font-size: 11px; color: var(--muted); font-weight: 600; }
.dish-add {
  border: 0; border-radius: 11px; padding: 8px 13px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff; font-family: inherit; font-weight: 800; font-size: 13px; white-space: nowrap;
  box-shadow: 0 6px 15px rgba(0,0,0,.45); transition: transform .15s, box-shadow .15s;
}
.dish-add:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.6); }
.dish-add:active { transform: scale(.94); }
.dish-add.pulse { animation: addPulse .4s ease; }

.item {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.item::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--brand-500), var(--gold-500));
  opacity: 0; transition: opacity .2s;
}
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(212,175,55,.45); }
.item:hover::before { opacity: 1; }
.item.out { opacity: .55; }
.item-thumb {
  width: 90px; height: 90px; flex: none;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px rgba(212,175,55,.10), var(--shadow-sm);
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.item:hover .item-thumb img { transform: scale(1.07); }
.item-body { flex: 1; min-width: 0; }
.item-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.item-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.item-badge {
  display: inline-block; margin-inline-start: 8px;
  font-size: 11px; font-weight: 700; color: #ff9d9d;
  background: rgba(229,72,77,.16); border-radius: 6px; padding: 1px 7px;
}
.item-right { flex: none; display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 96px; }
.price {
  flex: none; text-align: center;
  min-width: 92px;
  background: rgba(212,175,55,.10);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}
.add-btn {
  border: 0; border-radius: 10px; padding: 8px 10px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff; font-family: inherit; font-weight: 800; font-size: 13px;
  box-shadow: 0 6px 16px rgba(0,0,0,.45); transition: .15s;
}
.add-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.6); }
.add-btn:active { transform: scale(.96); }
.add-btn.pulse { animation: addPulse .4s ease; }
@keyframes addPulse { 0%{transform:scale(1)} 40%{transform:scale(.9)} 100%{transform:scale(1)} }
.price .num { font-weight: 800; font-size: 18px; color: var(--gold-500); line-height: 1; }
.price .cur { font-size: 11px; color: var(--muted); font-weight: 600; }
.price.free { background: rgba(212,175,55,.16); border-color: rgba(212,175,55,.32); }
.price.free .num { font-size: 13px; color: var(--gold-400); }

.empty {
  text-align: center; color: var(--muted); padding: 50px 20px;
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius);
}

/* زر لوحة التحكم أسفل المنيو */
.admin-cta { text-align: center; margin: 40px 0 8px; }
.admin-cta a {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  color: #fff; font-weight: 800; font-size: 16px;
  padding: 14px 28px; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.5), var(--glow-gold);
  border: 2px solid var(--gold-500);
  transition: .2s;
}
.admin-cta a:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.62), var(--glow-gold); }
.admin-cta .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; font-weight: 500; }

/* ============================================================
   الفوتر / التواصل
   ============================================================ */
.footer {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  color: #fff; padding: 40px 0 30px;
  border-top: 4px solid var(--gold-500);
}
.footer h3 { font-size: 20px; margin-bottom: 4px; }
.footer .addr { color: var(--gold-glow); font-size: 14px; }

/* أعلى الفوتر: الهوية + أيقونات التواصل */
.foot-top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-logo {
  width: 58px; height: 58px; border-radius: 16px; object-fit: cover;
  border: 2px solid rgba(212,175,55,.45); box-shadow: 0 8px 20px rgba(0,0,0,.45);
}
.foot-brand-txt h3 { margin-bottom: 4px; }

/* أيقونات التواصل الاحترافية */
.foot-social { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-soc {
  position: relative; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; transition: .2s; box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.foot-soc svg { width: 24px; height: 24px; }
.foot-soc:hover { transform: translateY(-3px) scale(1.06); }
.foot-soc.whatsapp { background: #25d366; }
.foot-soc.instagram { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf); }
.foot-soc.facebook { background: #1877f2; }
.foot-soc.tiktok { background: #111; }
.fs-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.82); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .18s;
}
.foot-soc:hover .fs-tip { opacity: 1; }

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.contact-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(212,175,55,.08);
  border: 1px solid rgba(212,175,55,.24);
  border-radius: 14px; padding: 14px;
  transition: .2s;
}
.contact-card:hover { background: rgba(212,175,55,.16); transform: translateY(-2px); }
.contact-card .ci {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(212,175,55,.22);
}
.contact-card .cl { font-size: 12px; color: var(--gold-glow); }
.contact-card .cv { font-weight: 700; font-size: 15px; direction: ltr; text-align: right; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(212,175,55,.22);
}
.copyright { color: rgba(255,255,255,.75); font-size: 13px; }
.foot-links { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-links a {
  color: #fff; font-weight: 700; font-size: 13px; background: rgba(212,175,55,.10);
  border: 1px solid rgba(212,175,55,.30); padding: 8px 14px; border-radius: 999px; transition: .18s;
}
.foot-links a:hover { background: rgba(212,175,55,.22); transform: translateY(-1px); }

/* زر واتساب عائم */
.fab {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; border: 0;
  display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: .2s;
}
.fab:hover { transform: scale(1.08); }

/* ============================================================
   شاشة تحميل
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--cream); transition: opacity .4s;
}
.loader.hide { opacity: 0; pointer-events: none; }
.spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 5px solid rgba(212,175,55,.16); border-top-color: var(--gold-500);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* حالة الاتصال */
.sync-note {
  text-align: center; font-size: 12px; color: var(--muted);
  padding: 8px; margin-top: 8px;
}
.sync-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-inline-end: 5px; }
.sync-dot.on { background: #23a24d; }
.sync-dot.off { background: #d19a1b; }

@media (max-width: 560px) {
  .hero-actions { width: 100%; }
  .price { min-width: 78px; }
}

/* ============================================================
   شاشة الافتتاح — انتقلت بالكامل إلى rezova.css (افتتاحية سينمائية بالكود).
   يبقى هنا فقط ما يعتمد عليه JS مباشرةً: فقاعات الضوء وحركتها.
   ============================================================ */
.intro-bokeh span {
  position: absolute; bottom: -60px; border-radius: 50%;
  filter: blur(1px); animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  15%  { opacity: .8; }
  85%  { opacity: .5; }
  100% { transform: translateY(-108vh) scale(1.1); opacity: 0; }
}


/* ============================================================
   نظام ظهور العناصر عند التمرير (Reveal)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* موجة أسفل الهيدر */
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; z-index: 1;
  background: var(--cream);
  -webkit-mask: radial-gradient(22px at 50% 0, transparent 98%, #000) repeat-x;
  mask: radial-gradient(22px at 50% 0, transparent 98%, #000) repeat-x;
  -webkit-mask-size: 44px 26px; mask-size: 44px 26px;
  display: none;
}

/* حركة دخول المنيو بعد شاشة الافتتاح */
.site { opacity: 1; }
body.entering .site { animation: siteIn .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes siteIn { from { opacity: 0; transform: translateY(14px) scale(.995); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .intro-video { animation: none; }
  .intro-logo, .intro-kicker, .intro-title, .intro-tag, .intro-btn, .intro-hint, .intro-corner { animation-duration: .01ms !important; opacity: 1 !important; }
  .intro-btn { animation: none; opacity: 1; }
  .reveal { transition: none; }
  .intro-bokeh { display: none; }
}

/* ============================================================
   السلة العائمة + لوحة إتمام الطلب
   ============================================================ */
.cart-fab {
  position: fixed; inset-inline-start: 18px; bottom: 84px; z-index: 45;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--brand-900); border: 0; border-radius: 999px;
  padding: 12px 18px; font-weight: 800; font-size: 15px;
  box-shadow: 0 14px 34px rgba(212,175,55,.42);
  animation: fabIn .35s cubic-bezier(.2,.8,.2,1.1);
}
.cart-fab:hover { transform: translateY(-2px); }
.cart-fab .cf-count {
  background: var(--brand-800); color: #fff; min-width: 22px; height: 22px;
  border-radius: 999px; display: grid; place-items: center; font-size: 13px; padding: 0 5px;
}
@keyframes fabIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.drawer-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.68); backdrop-filter: blur(3px);
  display: none; opacity: 0; transition: opacity .25s;
}
.drawer-overlay.show { display: block; opacity: 1; }
.drawer {
  position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 100%; max-width: 420px;
  background: var(--paper); display: flex; flex-direction: column;
  border-inline-end: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(0,0,0,.7);
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer-overlay.show .drawer { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; color: #fff;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
}
.drawer-head h3 { font-size: 18px; }
.drawer-head .x { background: rgba(212,175,55,.20); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 9px; font-size: 18px; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 20px; line-height: 2; }
.cart-empty small { font-size: 13px; }

.cart-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cr-thumb {
  flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden;
  background: var(--paper-2); display: grid; place-items: center; font-size: 24px;
  border: 1px solid var(--line);
}
.cr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cr-main { flex: 1; min-width: 0; }
.cr-name { font-weight: 700; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.cr-price { font-size: 13px; color: var(--gold-500); font-weight: 700; margin: 3px 0 9px; }
.cr-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qty { display: flex; align-items: center; gap: 6px; flex: none; }
.qty button {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--paper-2); font-size: 18px; font-weight: 800; color: var(--gold-400);
  display: grid; place-items: center; cursor: pointer;
}
.qty button:hover { border-color: var(--gold-500); }
.qty .q-num { min-width: 26px; text-align: center; font-weight: 800; }
.cr-del {
  flex: none; height: 32px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  background: rgba(229,72,77,.14); color: #ff8f8f; border: 1px solid rgba(229,72,77,.32);
  font-family: inherit; font-size: 13px; font-weight: 700;
  display: grid; place-items: center; transition: .15s;
}
.cr-del:hover { background: rgba(229,72,77,.26); }
/* خصم داخل صف السلة */
.cr-old { text-decoration: line-through; color: var(--muted); font-size: 12px; font-weight: 700; }
.cr-new { color: var(--gold-500); font-weight: 800; }
.cr-badge { background: rgba(229,72,77,.16); color: #ff8f8f; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }

/* تتبّع الطلب داخل السلة */
.order-track { padding: 14px 16px 0; }
.track-title { font-size: 13px; font-weight: 800; color: var(--gold-400); margin-bottom: 8px; }
.track-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; margin-bottom: 10px; }
.track-card.cancelled { background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.30); }
.track-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink); }
.track-dismiss { background: transparent; border: 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.track-now { display: flex; align-items: center; gap: 9px; margin: 11px 0 12px; }
.tn-ico { font-size: 24px; }
.tn-label { font-size: 16px; font-weight: 800; color: var(--gold-400); }
.track-progress { display: flex; align-items: center; }
.tp-node { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.14); flex: none; }
.tp-node.done { background: var(--brand-500); }
.tp-node.active { background: var(--gold-500); box-shadow: 0 0 0 4px rgba(212,175,55,.25); animation: trackPulse 1.5s ease-in-out infinite; }
.tp-line { flex: 1; height: 3px; background: rgba(255,255,255,.14); }
.tp-line.done { background: var(--brand-500); }
@keyframes trackPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(212,175,55,.25); } 50% { box-shadow: 0 0 0 7px rgba(212,175,55,.07); } }
.track-cancelled { margin-top: 8px; font-size: 14px; font-weight: 800; color: #ff8f8f; }
.track-driver { margin-top: 10px; font-size: 12.5px; color: var(--ink); }

/* على الهاتف: تُمرَّر السلة كلها معاً لتظهر كل الأصناف والحقول بوضوح */
@media (max-width: 640px) {
  .drawer { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .drawer-head { position: sticky; top: 0; z-index: 3; }
  .drawer-body { flex: 0 0 auto; overflow: visible; }
}

.checkout { border-top: 1px solid var(--line); padding: 14px 16px; background: var(--paper); }

.co-total { margin-bottom: 12px; }
.co-line { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; padding: 3px 0; color: var(--ink); }
.co-line small { font-size: 11px; color: var(--muted); font-weight: 600; }
.co-line b { font-size: 15px; color: var(--gold-500); font-weight: 800; }
.co-line.dep b { color: var(--brand-500); }
.co-line.save, .co-line.save b { color: #ff8f8f; }
.co-line.loyal, .co-line.loyal b { color: var(--gold-400); }
.co-line.del b { color: var(--gold-500); }
.loyal-banner {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(212,175,55,.14), rgba(212,175,55,.04));
  border: 1px solid rgba(212,175,55,.30); border-inline-start: 5px solid var(--gold-500);
  border-radius: 14px; padding: 11px 14px; margin-bottom: 12px;
  font-size: 14px; font-weight: 700; color: var(--gold-400);
}
.loyal-banner b { color: var(--gold-glow); }
.co-line.grand { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.co-line.grand b { font-size: 20px; }

/* ملاحظة تأمين الصواني في السلة */
.dep-note {
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink);
  font-size: 11.5px; font-weight: 600; line-height: 1.6; border-radius: 10px;
  padding: 9px 11px; margin-bottom: 12px;
}

/* تنبيه أقل مبلغ للطلب */
.min-note {
  background: rgba(212,175,55,.10); border: 1px solid rgba(212,175,55,.28); color: var(--gold-400);
  font-size: 12px; font-weight: 700; line-height: 1.6; border-radius: 10px;
  padding: 9px 11px; margin-bottom: 12px;
}
.co-submit:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.35); }

/* تذكير تأمين الصينية في نافذة النجاح */
.ok-tray {
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink);
  font-size: 12.5px; font-weight: 600; line-height: 1.65; border-radius: 12px;
  padding: 10px 12px; margin: 4px 0 14px;
}

.co-fields .field { margin-bottom: 10px; }
.co-fields label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.co-fields input, .co-fields textarea, .co-fields select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 15px; background: var(--paper-2); color: var(--ink); outline: none; transition: .15s;
}
.co-fields input::placeholder, .co-fields textarea::placeholder { color: var(--muted); opacity: 1; }
.co-fields input:focus, .co-fields textarea:focus, .co-fields select:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.co-fields textarea { min-height: 54px; resize: vertical; }
.co-submit {
  width: 100%; border: 0; border-radius: 12px; padding: 14px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--brand-900); font-family: inherit; font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 24px rgba(212,175,55,.30); transition: .15s;
}
.co-submit:hover:not(:disabled) { transform: translateY(-2px); }
.co-submit:disabled { opacity: .7; }

/* نافذة نجاح الطلب */
.ok-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  display: none; place-items: center; padding: 20px;
}
.ok-overlay.show { display: grid; }
.ok-card {
  width: 100%; max-width: 380px; background: var(--paper); border-radius: 22px;
  border: 1px solid var(--line);
  padding: 32px 26px; text-align: center; box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ok-badge {
  width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: grid; place-items: center; font-size: 38px;
  box-shadow: 0 10px 26px rgba(0,0,0,.5);
}
.ok-card h3 { font-size: 22px; color: var(--gold-400); }
.ok-card p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.ok-num {
  font-size: 24px; font-weight: 900; letter-spacing: 1px; color: var(--gold-500);
  background: var(--paper-2); border: 1px dashed var(--gold-500);
  border-radius: 12px; padding: 10px; margin: 8px 0; direction: ltr;
}
.ok-sub { font-size: 13px; }
.ok-wa {
  display: block; margin-top: 16px; padding: 13px; border-radius: 12px;
  background: #25d366; color: #fff; font-weight: 800; text-align: center;
}
.ok-close {
  width: 100%; margin-top: 10px; padding: 12px; border: 1px solid var(--line);
  background: var(--paper-2); border-radius: 12px; font-family: inherit; font-weight: 700; color: var(--ink);
}

@media (max-width: 560px) {
  .hero-actions { width: 100%; }
  .item-right { min-width: 82px; }
  .item-thumb { width: 74px; height: 74px; }
  .item { gap: 12px; }
  .cart-fab { inset-inline-start: 12px; bottom: 78px; }
  /* كروت مضغوطة لعرض العمودين بوضوح على الهاتف */
  .dish-info { padding: 8px 9px 2px; }
  .dish-name { font-size: 12.5px; line-height: 1.35; }
  .dish-desc { font-size: 10.5px; -webkit-line-clamp: 2; }
  .dish-foot { padding: 6px 9px 10px; gap: 6px; }
  .dish-price { font-size: 13px; }
  .dish-price span { font-size: 10px; }
  .dish-add { padding: 6px 9px; font-size: 12px; border-radius: 9px; }
}

/* ============================================================
   لمسات حركية احترافية (Premium motion)
   ============================================================ */

/* شريط تقدّم التمرير أعلى الصفحة */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; height: 4px; width: 0%;
  z-index: 300; transform-origin: right center;
  background: linear-gradient(90deg, var(--gold-500), var(--brand-500), var(--gold-400));
  box-shadow: 0 1px 8px rgba(212,175,55,.5);
  transition: width .12s linear;
}

/* زر لوحة التحكم في الهيدر */
.chip.admin-chip {
  background: rgba(212,175,55,.10);
  border-color: rgba(212,175,55,.45);
}
.chip.admin-chip:hover { background: rgba(212,175,55,.22); }

/* صورة الطبق — إشارة أنها قابلة للتكبير */
.dish-media img.zoomable { cursor: zoom-in; }

/* عارض الصورة الكامل (Lightbox) */
.img-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.93); display: none;
  place-items: center; padding: 20px;
  animation: lbFade .2s ease;
}
.img-lightbox.show { display: grid; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.img-lightbox .lb-img {
  max-width: 94vw; max-height: 84vh; object-fit: contain;
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: pop .25s ease;
}
.lb-back {
  position: fixed; top: 16px; inset-inline-start: 16px; z-index: 210;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,175,55,.16); border: 1px solid rgba(212,175,55,.42);
  color: #fff; font-family: inherit; font-weight: 800; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(6px); transition: .18s;
}
.lb-back:hover { background: rgba(212,175,55,.28); }
.lb-back span { font-size: 18px; }

/* ظل الهيدر اللاصق عند التمرير */
.toolbar { transition: filter .25s; }
.toolbar.scrolled .toolbar-card { box-shadow: 0 12px 34px rgba(0,0,0,.6); border-color: rgba(212,175,55,.32); }

/* شعار متحرك في الهيدر */
.brand-badge { animation: badgeFloat 5s ease-in-out infinite; }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-3deg); }
}
.hero:hover .brand-badge { animation-play-state: paused; transform: scale(1.06) rotate(4deg); }

/* أزرار الفئات — نبض عند التفعيل */
.cat-pill { position: relative; }
.cat-pill.active { animation: pillPop .35s cubic-bezier(.2,.8,.2,1.2); }
@keyframes pillPop { 0% { transform: scale(.9); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* دخول كروت الأطباق بحركة أنيقة (Stagger عبر transition-delay من JS) */
.dish.reveal { opacity: 0; transform: translateY(34px) scale(.94); }
.dish.reveal.in { opacity: 1; transform: none; }

/* لمعان يمرّ على صورة الطبق عند المرور */
.dish-media::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(245,227,168,.30), transparent);
  transform: translateX(-160%) skewX(-18deg); pointer-events: none;
}
.dish:hover .dish-media::after { animation: shineSweep .8s ease; }
@keyframes shineSweep { to { transform: translateX(260%) skewX(-18deg); } }

/* السعر — لمعة خفيفة */
.dish-price { position: relative; }

/* زر السلة العائم — طفو خفيف + قفزة عند الإضافة */
.cart-fab { animation: fabIn .35s cubic-bezier(.2,.8,.2,1.1), fabBob 3.4s ease-in-out .5s infinite; }
@keyframes fabBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.cart-fab.bump { animation: fabBump .5s cubic-bezier(.2,.8,.2,1.4); }
@keyframes fabBump {
  0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-6deg); }
  70% { transform: scale(.94); } 100% { transform: scale(1); }
}
.cart-fab .cf-count { transition: transform .25s; }
.cart-fab.bump .cf-count { transform: scale(1.5); }

/* طبقة الطيران إلى السلة */
.fly-layer { position: fixed; inset: 0; z-index: 950; pointer-events: none; overflow: hidden; }
.fly-item {
  position: fixed; width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.55); border: 2px solid var(--gold-500);
  will-change: transform, opacity; transition: transform .75s cubic-bezier(.5,-.2,.3,1), opacity .75s ease;
}
.fly-item img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .brand-badge, .cart-fab { animation: none !important; }
  .dish.reveal { opacity: 1; transform: none; }
  .dish-media::after { display: none; }
  .scroll-progress { transition: none; }
  .srl { animation: none !important; }
}

/* ============================================================
   لافتة المتجر المغلق + حالة التعطيل
   ============================================================ */
.store-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(192,57,43,.18), rgba(192,57,43,.06));
  border: 1px solid rgba(192,57,43,.38); border-inline-start: 5px solid #c0392b;
  border-radius: 16px; padding: 14px 16px; margin-top: 18px;
  box-shadow: var(--shadow-sm); animation: bannerIn .4s ease;
}
.store-banner .sb-ico { font-size: 30px; }
.store-banner .sb-text { display: grid; }
.store-banner .sb-text b { color: #ff8f8f; font-size: 16px; }
.store-banner .sb-text span { color: var(--muted); font-size: 13px; }
@keyframes bannerIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
body.store-closed .dish-add { opacity: .82; }

/* رسالة تنبيه عائمة (المتجر مغلق) */
.note-toast {
  position: fixed; bottom: 92px; left: 50%; transform: translate(-50%, 20px);
  z-index: 95; max-width: 92%;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  color: #fff; padding: 13px 20px; border-radius: 14px;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg);
  display: inline-flex; align-items: center; gap: 8px; text-align: center;
  border: 1px solid rgba(212,175,55,.45);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.note-toast.show { opacity: 1; transform: translate(-50%, 0); }
.note-toast .nt-ico { font-size: 17px; }
.note-toast.add-toast { background: linear-gradient(135deg, var(--brand-700), var(--brand-600)); border-color: rgba(232,200,106,.6); }
@media (max-width: 560px) { .note-toast { font-size: 13px; max-width: 88%; } }

/* ============================================================
   الشريط الجانبي للتواصل (متحرك)
   ============================================================ */
.social-rail {
  position: fixed; inset-inline-end: 16px; bottom: 22px; z-index: 46;
  display: flex; flex-direction: column; gap: 12px;
}
body.intro-open .social-rail { display: none; }
.srl {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  animation: railIn .5s cubic-bezier(.2,.8,.2,1.2) both;
  transition: transform .2s;
}
.srl:hover { transform: scale(1.12) translateY(-2px); }
.srl.whatsapp { background: #25d366; animation: railIn .5s both, waPulse 2.4s ease-in-out 1.2s infinite; }
.srl.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.srl.facebook { background: #1877f2; }
.srl.tiktok { background: #111; border: 1px solid rgba(212,175,55,.35); }
.srl.phone { background: var(--brand-600); }
.srl-ico { line-height: 1; display: grid; place-items: center; }
.srl-ico svg { width: 25px; height: 25px; display: block; }
.srl-tip {
  position: absolute; inset-inline-end: 58px; top: 50%;
  transform: translateY(-50%) scale(.85);
  background: var(--brand-900); color: var(--gold-glow); font-size: 12px; font-weight: 700;
  border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: .18s;
}
.srl:hover .srl-tip { opacity: 1; transform: translateY(-50%) scale(1); }
@keyframes railIn { from { opacity: 0; transform: translateX(30px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes waPulse { 0%, 100% { box-shadow: 0 8px 22px rgba(37,211,102,.4); } 50% { box-shadow: 0 8px 32px rgba(37,211,102,.85); } }

@media (max-width: 560px) {
  .srl { width: 44px; height: 44px; }
  .srl-ico svg { width: 22px; height: 22px; }
  .social-rail { gap: 10px; bottom: 16px; }
}

