  body { background: var(--bg); }
  .order-wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 60px; }
  .order-header { text-align:center; padding: 20px 16px 6px; }
  .order-header h1 { color: var(--primary); font-size: 24px; }
  /* زر "كل المطابخ" الثابت (أعلى يمين الصفحة) — يرجّع العميل لدليل المطابخ العام */
  .directory-fab {
      position: fixed; top: 16px; right: 16px; z-index: 60;
      display: flex; align-items: center; gap: 7px;
      background: #fff; color: var(--primary); border: 1px solid var(--primary);
      border-radius: 999px; padding: 10px 16px; font-size: 13.5px; font-weight: 700;
      box-shadow: 0 6px 18px rgba(0,0,0,.18); text-decoration: none;
      transition: transform .15s, background .15s, color .15s;
  }
  .directory-fab:hover { background: var(--primary); color: #fff; transform: scale(1.03); }
  @media (max-width: 640px) { .directory-fab { top: 12px; right: 12px; padding: 8px 13px; font-size: 12px; } }

  /* أيقونة السلة الثابتة (أعلى يسار الصفحة) مع عدّاد العناصر */
  .cart-fab {
      position: fixed; top: 16px; left: 16px; z-index: 60;
      width: 58px; height: 58px; border-radius: 50%;
      background: var(--primary); color: #fff; text-decoration: none;
      display: flex; align-items: center; justify-content: center; font-size: 27px;
      box-shadow: 0 6px 18px rgba(0,0,0,.28);
      transition: transform .15s;
  }
  .cart-fab:hover { transform: scale(1.06); color:#fff; }
  .cart-fab.bump { animation: cartBump .4s ease; }
  @keyframes cartBump { 0%{transform:scale(1)} 30%{transform:scale(1.3)} 60%{transform:scale(.92)} 100%{transform:scale(1)} }
  .cart-badge {
      position: absolute; top: -5px; left: -5px;
      background: #DC2626; color: #fff; font-size: 13px; font-weight: 800;
      min-width: 23px; height: 23px; border-radius: 12px; padding: 0 5px;
      display: none; align-items: center; justify-content: center;
      box-shadow: 0 0 0 2px #fff;
  }
  @media (max-width: 640px) { .cart-fab { width: 52px; height: 52px; font-size: 24px; top: 12px; left: 12px; } }

  /* زر "تثبيت التطبيق" (PWA) — أسفل يسار الصفحة لتفادي تداخله مع أيقونة السلة (أعلى يسار) */
  .pwa-install-btn {
      position: fixed; bottom: 16px; left: 16px; z-index: 60;
      display: none; align-items: center; gap: 7px;
      background: #fff; color: var(--primary); border: 1px solid var(--primary);
      border-radius: 999px; padding: 10px 16px; font-size: 13.5px; font-weight: 700;
      box-shadow: 0 6px 18px rgba(0,0,0,.18); cursor: pointer;
  }
  .pwa-install-btn:hover { background: var(--primary); color: #fff; }
  @media (max-width: 640px) { .pwa-install-btn { bottom: 12px; left: 12px; padding: 9px 14px; font-size: 12.5px; } }

  /* بانر متحرك بتأثير الانزلاق الأفقي (Horizontal Slide) */
  .banner { position: relative; width: 100%; height: 380px; overflow: hidden; border-radius: var(--radius); margin: 16px 0; background: #f8f9fa; }
  @media (max-width: 1024px) { .banner { height: 300px; } }
  @media (max-width: 640px) { .banner { height: 200px; border-radius: 0; margin: 0 0 16px; } }
  .banner-track { direction: ltr; display: flex; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.4,0,.2,1); }
  .banner-slide {
      flex: 0 0 100%; width: 100%; height: 100%;
      background: #f8f9fa;
  }
  .banner-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
  .banner-arrow {
      position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
      width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
      background: rgba(30,41,59,.28); color: #fff; font-size: 18px;
      display: flex; align-items: center; justify-content: center;
      transition: background .2s, opacity .2s; opacity: .55;
  }
  .banner:hover .banner-arrow { opacity: 1; }
  .banner-arrow:hover { background: rgba(30,41,59,.55); }
  .banner-arrow.prev { right: 12px; }
  .banner-arrow.next { left: 12px; }
  .banner-dots { position:absolute; bottom:2px; left:0; right:0; display:flex; justify-content:center; gap:2px; z-index:5; }
  .banner-dot { width:24px; height:24px; background:transparent; cursor:pointer; border:0; padding:0; display:flex; align-items:center; justify-content:center; }
  .banner-dot::before { content:''; display:block; width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.75); transition: width .15s; }
  .banner-dot.active::before { background:#fff; width:18px; border-radius:4px; }

  /* الشريط المتحرك أعلى الصفحة: يتحرك دائماً من اليمين إلى اليسار بصرياً (direction:ltr على
     الحاوية) بصرف النظر عن كون النص عربياً أو إنجليزياً أو مزيجاً منهما (dir="auto" على كل نسخة). */
  .marquee-bar { background: linear-gradient(90deg, var(--primary, #16a34a), var(--secondary, #15803d));
                 color:#fff; overflow:hidden; white-space:nowrap; padding:9px 0; direction:ltr; }
  .marquee-bar .marquee-row + .marquee-row { margin-top:6px; padding-top:6px; border-top:1px solid rgba(255,255,255,.22); }
  .marquee-row { overflow:hidden; }
  .marquee-row.reverse .marquee-track { animation-direction: reverse; }
  .marquee-track { display:inline-flex; white-space:nowrap; will-change:transform;
                    animation: marquee-move linear infinite; animation-duration: var(--marquee-duration, 20s); }
  .marquee-item { padding-inline-end:70px; font-weight:700; font-size:14px; }
  .marquee-bar:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

  /* تذييل صفحة الطلب العامة */
  .storefront-footer { background: #1a1a1a; color: #d4d4d8; margin-top: 40px; padding: 36px 16px 20px; }
  .storefront-footer-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
  .storefront-footer h3 { color: #fff; margin: 0 0 8px; font-size: 17px; }
  .storefront-footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
  .storefront-footer-about-text { font-size: 13.5px; line-height: 1.9; color: #a1a1aa; margin: 0; }
  .storefront-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .storefront-footer a { color: #d4d4d8; font-size: 13.5px; }
  .storefront-footer a:hover { color: #fff; }
  .storefront-footer-payments { max-width: 1000px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid #333; display: flex; gap: 8px; flex-wrap: wrap; }
  .storefront-pay-badge { background: #262626; border: 1px solid #3a3a3a; color: #e4e4e7; font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 6px; }
  .storefront-pay-badge-img { height: 30px; width: auto; max-width: 72px; object-fit: contain; background: #fff; border-radius: 5px; padding: 3px 6px; }
  .storefront-footer-payments { gap: 10px; align-items: center; }
  @media (min-width: 768px) {
    .storefront-footer-payments { gap: 12px; }
    .storefront-pay-badge-img { height: 38px; max-width: 96px; padding: 4px 9px; border-radius: 6px; }
  }
  .storefront-footer-bottom { max-width: 1000px; margin: 18px auto 0; padding-top: 16px; border-top: 1px solid #333; font-size: 12px; color: #a1a1aa; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
  .storefront-footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
  .storefront-footer-bottom p { margin: 0; }
  .storefront-footer-platform a { color: #a1a1aa; text-decoration: underline; }

  /* نمط "قائمة المنيو" الاحترافي — بديل اختياري لشبكة البطاقات (مرتبط بالباقة).
     تصميم مستوحى من منيو المطاعم: ورقة أنيقة، عناوين تصنيف مزخرفة بخطين جانبيين،
     وخط منقّط بين اسم الطبق وسعره (leader dots)، مع صورة مصغّرة لكل طبق. */
  /* تمتد لتملأ حواف البطاقة الأب (.card) بخلفية ورقية دافئة، بدل تكرار حدود/ظل جديد داخل حدود البطاقة نفسها */
  .menu-sheet { background: linear-gradient(180deg, #FFFDF8, #FFFFFF); border-radius: 0 0 var(--radius) var(--radius); margin: 16px -20px -20px; padding: 24px 22px; }
  @media (max-width: 640px) { .menu-sheet { padding: 20px 14px; margin: 14px -20px -20px; } }
  .menu-category-group { margin-bottom: 30px; }
  .menu-category-group:last-child { margin-bottom: 0; }
  .menu-category-title {
      display: flex; align-items: center; gap: 14px;
      color: var(--primary); font-family: 'Cairo', sans-serif; font-size: 18px; font-weight: 800;
      margin: 0 0 16px; letter-spacing: .3px;
  }
  .menu-category-title::before, .menu-category-title::after { content: ''; flex: 1; height: 1px; background: var(--primary); opacity: .28; }
  /* ملاحظة: نفس عنصر الصف يحمل أيضاً class="dish-card-mini" (لإعادة استخدام JS الحالي دون
     تعديل)، وهي فئة مصمّمة أصلاً لبطاقة شبكية عمودية (flex-direction:column, padding, حدود,
     خلفية بيضاء...). نُصفّر كل خصائصها المتعارضة صراحة هنا بدل الاعتماد على ترتيب التحميل. */
  .dish-menu-row.dish-card-mini {
      display: flex !important; flex-direction: row !important; align-items: center !important;
      height: auto !important; gap: 14px; padding: 14px 2px; margin: 0;
      border: none !important; border-bottom: 1px solid #F1EBE0 !important; border-radius: 0 !important;
      background: transparent !important; box-shadow: none !important;
      position: relative; cursor: pointer; transition: background .15s;
  }
  .dish-menu-row.dish-card-mini:hover { background: #FBF8F1 !important; border-color: #F1EBE0 !important; }
  .dish-menu-row:last-child { border-bottom: none !important; }
  .dish-menu-row-img { flex-shrink: 0; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
  .dish-menu-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .dish-menu-row-img .no-image { font-size: 24px; opacity: .5; }
  .dish-menu-row-info { flex: 1; min-width: 0; }
  .dish-menu-row-top { display: flex; align-items: flex-end; gap: 8px; }
  .dish-menu-row-name { font-weight: 700; font-size: 15.5px; white-space: nowrap; color: var(--text, #1f2937); }
  .dish-menu-row-leader { flex: 1; border-bottom: 2px dotted #D9D0BE; margin-bottom: 5px; min-width: 16px; }
  .dish-menu-row-price { color: var(--primary); font-weight: 800; font-size: 15px; white-space: nowrap; }
  .dish-menu-row-desc { color: var(--muted, #6b7280); font-size: 12.5px; margin-top: 4px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  .dish-menu-view-btn { flex-shrink: 0; background: none; border: none; font-size: 16px; cursor: pointer; padding: 4px; opacity: .55; }
  .dish-menu-view-btn:hover { opacity: 1; }
  .dish-menu-add-btn { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--primary); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 3px 8px rgba(0,0,0,.18); transition: transform .12s; }
  .dish-menu-add-btn:hover { transform: scale(1.08); }

  /* ===== نمط "متجر عصري" (على غرار elia-sa.com): شريط عنوان لكل قسم + بطاقات عمودية ملمومة ===== */
  .store-sections { display: flex; flex-direction: column; gap: 14px; margin: 0 -4px; }
  .store-section-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0 12px; height: 50px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #000)); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 25%, transparent); }
  .store-section-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; }
  .store-section-head h3::before, .store-section-head h3::after { content: ''; width: clamp(14px, 9vw, 70px); height: 1px; background: rgba(255,255,255,.55); }
  .store-section-head .store-count { display: none; }
  .ssh-side { display: flex; align-items: center; min-width: 0; }
  .ssh-side.ssh-end { justify-content: flex-end; }
  .store-section-head .store-viewall { font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 999px; }
  .store-rail-nav { display: none; gap: 6px; }
  @media (hover: hover) and (min-width: 700px) { .store-rail-nav { display: flex; } }
  .store-rail-nav button { width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(255,255,255,.22); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
  .store-rail-nav button:hover { background: #fff; color: var(--primary); }

  /* الشبكة (الافتراضي): عمودان على الجوال، وتتوسع في الشاشات الأكبر */
  .store-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  @media (min-width: 600px) { .store-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (min-width: 900px) { .store-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  /* شريط أفقي قابل للسحب */
  .store-section.layout-rail .store-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 2px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .store-section.layout-rail .store-rail::-webkit-scrollbar { display: none; }
  .store-section.layout-rail .store-rail.auto-run { scroll-snap-type: none; scroll-behavior: auto; }
  .store-section.layout-rail .store-rail > .store-card { flex: 0 0 46%; max-width: 220px; scroll-snap-align: start; }
  @media (min-width: 600px) { .store-section.layout-rail .store-rail > .store-card { flex-basis: 31%; } }
  /* قائمة */
  .store-section.layout-list .store-rail { display: flex; flex-direction: column; gap: 8px; }
  .store-section.layout-list .store-rail .dish-card-mini.store-card { flex-direction: row; align-items: center; }
  .store-section.layout-list .store-rail .store-card .store-img { width: 92px; flex-shrink: 0; }
  .store-section.layout-list .store-rail .store-card .store-info { padding: 8px 12px; align-self: stretch; justify-content: center; }
  .store-section.layout-list .store-rail .store-card .store-name { min-height: 0; }
  .store-section.layout-list .store-rail .store-card .store-view-btn { display: none; }

  .store-rail .dish-card-mini.store-card { padding: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--border); background: #fff; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,.05); height: auto; display: flex; flex-direction: column; }
  .store-card .store-img { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--bg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
  .store-card .store-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .store-card .store-img .no-image { font-size: 40px; opacity: .45; }
  .store-card .store-off { position: absolute; top: 8px; right: 8px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
  .store-card .store-view-btn { position: absolute; top: 6px; left: 6px; z-index: 2; width: 28px; height: 28px; border: none; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.18); cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
  .store-card .store-info { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .store-card .store-name { font-weight: 800; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; color: var(--text, #1f2937); cursor: pointer; }
  .store-card .store-buy { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
  .store-card .store-price { color: var(--primary); font-weight: 800; font-size: 14.5px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; line-height: 1.3; cursor: pointer; }
  .store-card .store-price .old-price { font-size: 11px; margin: 0; }
  .store-card .store-add-btn { position: relative; flex-shrink: 0; width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: transform .1s, filter .15s; }
  .store-card .store-add-btn:hover { filter: brightness(1.12); }
  .store-card .store-add-btn:active { transform: scale(.92); }
  /* علامة «له إضافات»: نقطة صغيرة بعلامة + على زر السلة (بدون كلمة) */
  .store-card .store-add-btn .addon-dot { position: absolute; top: -4px; left: -4px; width: 17px; height: 17px; border-radius: 50%; background: #fff; color: var(--primary); box-shadow: 0 0 0 1.5px var(--primary); font-size: 14px; font-weight: 800; line-height: 15px; text-align: center; }
  .old-price { color: #9ca3af; font-weight: 500; font-size: .82em; text-decoration: line-through; margin-inline-end: 6px; }

  /* ===== نافذة اختيار إضافات الطبق ===== */
  .addon-opt { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 52px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
  .addon-opt:hover { border-color: var(--primary); }
  .addon-opt.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, #fff); }
  .addon-opt input { width: 26px; height: 26px; flex-shrink: 0; accent-color: var(--primary); }
  .addon-opt .addon-name { flex: 1; font-weight: 700; }
  .addon-opt .addon-price { color: var(--primary); font-weight: 800; white-space: nowrap; }
  .addon-group { margin-bottom: 14px; }
  .addon-group-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--bg); }
  .addon-group-hint { font-size: 12px; color: var(--muted, #6b7280); }
  .addon-group-hint.req { color: #dc2626; font-weight: 700; }
  #addonsModal .modal-box { max-height: 88vh; overflow-y: auto; }
  .addons-total { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 12px; font-weight: 800; font-size: 16px; }
