/* =====================================================================
   QMadar | المنيو العام (يراه الزبون النهائي)
   الألوان تُحقن ديناميكيًا من إعدادات البزنس عبر متغيرات CSS.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&family=Cairo:wght@700;900&family=Inter:wght@400;500;700;800&family=Sora:wght@700;800&display=swap');

/* الوضع الليلي (افتراضي) — القيم القابلة للتخصيص من البزنس محفوظة */
:root, [data-theme="dark"] {
  --brand:      #C9A24B;
  --brand-soft: rgba(201,162,75,.14);
  --page-bg:    #0F0F12;
  --card:       #17171C;
  --line:       #2A2A31;
  --text:       #F0EEE8;
  --text-dim:   #A8A49B;
}
/* الوضع النهاري */
[data-theme="light"] {
  --page-bg:    #F7F5F0;
  --card:       #FFFFFF;
  --line:       #E4DFD4;
  --text:       #23201A;
  --text-dim:   #6E6960;
}

.theme-transition, .theme-transition * {
  transition: background-color .5s ease, color .45s ease, border-color .5s ease !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--page-bg); color: var(--text);
  font-family: 'Tajawal', system-ui, sans-serif;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow:hidden; overscroll-behavior:none; }
html[lang="en"] body { font-family: 'Inter', system-ui, sans-serif; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: 'Sora', sans-serif; }
h1,h2,h3 { font-family: 'Cairo', sans-serif; }

/* أزرار التحكم العلوية العائمة */
.menu-controls { position: fixed; top: 14px; inset-inline-start: 14px; z-index: 60; display: flex; gap: 4px; padding:4px; border:1px solid var(--line); border-radius:14px; background:color-mix(in srgb,var(--card) 92%,transparent); backdrop-filter:blur(16px); box-shadow:0 8px 24px rgba(0,0,0,.18); }
.menu-controls button {
  width: 38px; height: 38px; border-radius:10px; border:0;
  background:transparent; color:var(--text); cursor:pointer; font-weight:800;
  font-size:14px; display:grid; place-items:center; transition:background-color .2s ease,color .2s ease,transform .2s ease;
}
.menu-controls button:hover { background:var(--brand-soft); color:var(--brand); transform:translateY(-1px); }
.menu-controls .menu-account { width:auto; min-width:92px; padding:0 12px; display:flex; gap:7px; border-inline-end:1px solid var(--line); border-radius:10px 4px 4px 10px; }
[dir="rtl"] .menu-controls .menu-account { border-radius:4px 10px 10px 4px; }
.menu-control-icon, .menu-controls svg { width:19px; height:19px; display:block; }
.menu-control-icon svg, .menu-theme-svg { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.menu-theme-svg path:first-child { fill:currentColor; stroke:currentColor; }
.menu-account.is-signed-in { color:var(--brand); background:var(--brand-soft); }

.wrap { max-width: 760px; margin: 0 auto; padding-bottom: 120px; }

/* الهيدر — واجهة مطعم فاخرة */
.hero {
  padding: 56px 22px 34px; text-align: center; position: relative;
  background:
    radial-gradient(760px 420px at 50% -30%, var(--brand-soft), transparent 72%);
}
.hero::after {
  content: ''; position: absolute; bottom: 0; inset-inline: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero .logo {
  width: 112px; height: 112px; border-radius: 34px; margin: 0 auto 20px;
  object-fit: cover; border: 2px solid var(--brand);
  background: var(--card); display: grid; place-items: center;
  font-family: 'Cairo'; font-weight: 900; font-size: 46px; color: var(--brand);
  box-shadow: 0 22px 55px -12px rgba(0,0,0,.6), 0 0 0 8px rgba(201,162,75,.05);
}
.hero h1 { font-size: 33px; margin-bottom: 8px; letter-spacing: .3px; font-weight: 900; }
.hero p { color: var(--text-dim); font-size: 15px; max-width: 480px; margin: 0 auto; line-height: 1.65; }
.hero .hero-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(201,162,75,.25);
}

/* شريط الأقسام (تبويبات ثابتة فوق — زي المطاعم) */
.cats { position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--page-bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line); padding: 14px 16px;
  display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; }
.cats::-webkit-scrollbar { display: none; }
.cat-chip { white-space: nowrap; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text-dim);
  font-weight: 700; font-size: 14px; cursor: pointer; transition: .22s cubic-bezier(.4,0,.2,1); flex-shrink: 0; }
.cat-chip:hover { border-color: var(--brand); color: var(--text); }
.cat-chip.active { background: var(--brand); color: #17130A; border-color: var(--brand);
  box-shadow: 0 10px 24px -6px rgba(201,162,75,.5); transform: translateY(-1px); }

/* الأقسام */
.section { padding: 30px 16px 6px; scroll-margin-top: 74px; }
.section h2 { font-size: 22px; margin-bottom: 18px; padding-inline-start: 0; font-weight: 900;
  line-height: 1.2; }

/* بطاقة الصنف (قائمة أنيقة زي Talabat) */
.item {
  display: flex; gap: 16px; padding: 15px; background: var(--card);
  border: 1px solid var(--line); border-radius: 22px; margin-bottom: 14px; align-items: stretch;
  transition: border-color .2s cubic-bezier(.4,0,.2,1), transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
}
.item:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 18px 42px -18px rgba(0,0,0,.6); }
.item img, .item .item-img img { width: 100px; height: 100px; border-radius: 18px; object-fit: cover; flex-shrink: 0; background: var(--card); }
.item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item h3 { font-size: 17px; font-family: 'Tajawal'; font-weight: 800; line-height: 1.3; margin-bottom: 3px; }
.item > .add-btn, .item > .book-btn, .item > [id^="ctl-"] { align-self: center; flex-shrink: 0; }
.item p { color: var(--text-dim); font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .price { color: var(--brand); font-weight: 900; white-space: nowrap; font-size: 16.5px; margin-top: auto; padding-top: 6px; }
.add-btn {
  width: 40px; height: 40px; border-radius: 13px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000));
  color: #17130A; font-size: 22px; font-weight: 700; flex-shrink: 0;
  transition: .15s; box-shadow: 0 6px 16px -6px rgba(201,162,75,.5);
}
.add-btn:hover { filter: brightness(1.06); }
.add-btn:active { transform: scale(.9); }

.qty-ctl { display: flex; align-items: center; gap: 10px; }
.qty-ctl button { width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--brand);
  background: transparent; color: var(--brand); font-size: 18px; font-weight: 700; cursor: pointer; transition: .15s; }
.qty-ctl button:hover { background: var(--brand-soft); }
.qty-ctl span { min-width: 22px; text-align: center; font-weight: 700; }

/* سلة عائمة */
.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 14px 18px; display: none; align-items: center; justify-content: space-between;
  box-shadow: 0 -12px 44px -10px rgba(0,0,0,.5);
}
.cart-bar.show { display: flex; animation: slideUp .3s cubic-bezier(.4,0,.2,1); }
.cart-bar .total { font-weight: 800; font-size: 17px; }
.cart-bar .total small { color: var(--text-dim); font-weight: 500; font-size: 13px; }
.btn-primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 120%, #fff) , var(--brand) 55%, color-mix(in srgb, var(--brand) 75%, #000));
  color: #17130A; border: none; padding: 14px 28px;
  border-radius: 13px; font-family: 'Tajawal'; font-weight: 800; font-size: 15px; cursor: pointer;
  box-shadow: 0 8px 22px -6px rgba(201,162,75,.45); transition: .18s; position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%; inset-inline-start: -70%;
  transform: skewX(-20deg); background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
  transition: inset-inline-start .6s cubic-bezier(.4,0,.2,1);
}
.btn-primary:hover:not(:disabled)::after { inset-inline-start: 130%; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.btn-primary:disabled { opacity: .5; }

/* نافذة السلة / الدفع */
.sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 50;
  display: none; align-items: flex-end; justify-content: center; }
.sheet-overlay.open { display: flex; }
.sheet {
  background: var(--page-bg); width: 100%; max-width: 720px; border-radius: 22px 22px 0 0;
  padding: 22px; max-height: 88vh; overflow-y: auto; border: 1px solid var(--line);
  animation: slideUp .28s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet h2 { margin-bottom: 16px; }
.cart-line { display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line); color: var(--text);
  padding: 12px; border-radius: 10px; font-family: 'Tajawal'; font-size: 15px;
}
.pay-opt { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.pay-opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt input { accent-color: var(--brand); width: 18px; height: 18px; }

.state { text-align: center; padding: 80px 20px; }
.state .ic { font-size: 54px; margin-bottom: 14px; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-min { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100;
  background: var(--card); border: 1px solid var(--brand); color: var(--text);
  padding: 12px 20px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }

/* شريط العروض في المنيو العام */
.offers-strip { padding: 8px 16px 0; }
.offers-strip h2 { font-size: 18px; margin-bottom: 12px; padding-inline-start: 0; }
.offer-slide { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.offer-slide::-webkit-scrollbar { display: none; }
.offer-tile { min-width: 240px; scroll-snap-align: start; background: linear-gradient(135deg, var(--brand-soft), transparent);
  border: 1px solid var(--brand); border-radius: 16px; padding: 16px; }
.offer-tile .tag { display: inline-block; background: var(--brand); color: #17130A; font-weight: 800;
  padding: 3px 12px; border-radius: 999px; font-size: 13px; margin-bottom: 8px; }
.offer-tile h3 { font-size: 16px; margin-bottom: 4px; }
.offer-tile p { color: var(--text-dim); font-size: 13px; }

/* صورة الصنف مع مؤشر المعرض */
.item-img { position: relative; width: 92px; height: 92px; flex-shrink: 0; cursor: pointer; }
.item-img img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; background: #222; }
.img-count { position: absolute; bottom: 4px; inset-inline-end: 4px; background: rgba(0,0,0,.7);
  color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 6px; }

/* زر الحجز */
.book-btn { background: transparent; border: 1.5px solid var(--brand); color: var(--brand);
  padding: 10px 16px; border-radius: 12px; font-family: inherit; font-weight: 700; font-size: 13px;
  cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: .15s; }
.book-btn:active { transform: scale(.95); }
.book-btn:hover { background: var(--brand); color: #17130A; }

/* =====================================================================
   لمسات نهائية متناسقة مع لوحات مدار
   ===================================================================== */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--brand); }
::selection { background: var(--brand-soft); color: var(--text); }

/* أزرار التحكم العلوية (لغة/ثيم) أوضح مع ظل */
.menu-controls button { box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: .18s cubic-bezier(.4,0,.2,1); }
.menu-controls button:hover { border-color: var(--brand); transform: translateY(-1px); }

/* خيار الدفع أنعم عند الاختيار */
.pay-opt { transition: .18s cubic-bezier(.4,0,.2,1); }
.pay-opt.sel { box-shadow: 0 0 0 1px var(--brand), 0 6px 18px -6px rgba(201,162,75,.35); }

/* =====================================================================
   خلفية متحركة بلمعة ذهبية (المنيو العام)
   ===================================================================== */
body { position: relative; }
/* نخفي الأورورا الافتراضية عند اختيار خلفية مخصّصة */
body[data-bg="gradient"]::before, body[data-bg="animated"]::before, body[data-bg="bubbles"]::before { display: none; }
body::before {
  content: ''; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(closest-side at 22% 20%, var(--brand-soft), transparent),
    radial-gradient(closest-side at 80% 12%, var(--brand-soft), transparent),
    radial-gradient(closest-side at 68% 88%, var(--brand-soft), transparent);
  background-size: 55% 55%, 45% 45%, 50% 50%;
  background-repeat: no-repeat; opacity: .5;
  animation: auroraDrift 28s ease-in-out infinite alternate;
  will-change: transform, background-position;
}
@keyframes auroraDrift {
  0%   { background-position: 22% 20%, 80% 12%, 68% 88%; transform: scale(1); }
  50%  { background-position: 30% 30%, 70% 22%, 60% 78%; transform: scale(1.08); }
  100% { background-position: 16% 16%, 86% 8%, 76% 92%; transform: scale(1); }
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, var(--brand-soft) 50%, transparent 58%);
  background-size: 300% 300%; opacity: .4;
  animation: sheenSweep 16s ease-in-out infinite;
}
@keyframes sheenSweep {
  0%, 100% { background-position: 120% 0%; }
  50%      { background-position: -20% 0%; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

/* =====================================================================
   حجز التموين (catering): نطاق وقت + مؤشر توفر
   ===================================================================== */
.time-range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.avail-box {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px;
  font-weight: 700; font-size: 14px; margin: 6px 0;
}
.avail-box.good { background: rgba(79,169,104,.14); color: #4FA968; border: 1px solid rgba(79,169,104,.3); }
.avail-box.bad { background: rgba(216,86,74,.14); color: #D8564A; border: 1px solid rgba(216,86,74,.3); }
.booked-head { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 700; }
.booked-chip {
  display: inline-block; background: rgba(216,86,74,.1); color: #D8564A;
  border: 1px solid rgba(216,86,74,.25); border-radius: 8px; padding: 5px 11px;
  font-size: 13px; font-weight: 700; margin: 0 6px 6px 0;
}
.day-free {
  background: rgba(79,169,104,.1); color: #4FA968; border: 1px solid rgba(79,169,104,.25);
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 700; text-align: center;
}

/* =====================================================================
   نفد المخزون (Sold Out) + متغيرات التخصيص
   ===================================================================== */
body { font-family: var(--menu-font, 'Tajawal', system-ui, sans-serif); }
.item { border-radius: var(--card-radius, 22px); }
.item h3 { font-size: var(--title-size, 17px); }
.section h2 { color: var(--heading-color, inherit); }
.item .price { color: var(--price-color, var(--brand)); }

.item.is-soldout { opacity: .6; }
.item.is-soldout .item-img img { filter: grayscale(.8); }
.soldout-tag {
  align-self: center; flex-shrink: 0; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 13px;
  background: rgba(216,86,74,.15); color: #E06A5E; border: 1px solid rgba(216,86,74,.35);
}

/* تخطيط البطاقات الكبيرة (صورة عريضة فوق) */
body[data-layout="cards"] .item { flex-direction: column; align-items: stretch; text-align: start; }
body[data-layout="cards"] .item .item-img,
body[data-layout="cards"] .item img { width: 100%; height: 180px; }
body[data-layout="cards"] .item > .add-btn,
body[data-layout="cards"] .item > .book-btn,
body[data-layout="cards"] .item > [id^="ctl-"] { align-self: stretch; width: 100%; margin-top: 8px; }
body[data-layout="cards"] .add-btn { width: 100%; }

/* =====================================================================
   صفحة الدفع (Checkout) — تصميم فاخر ومرتّب
   ===================================================================== */
.co-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.co-head h2 { font-size: 22px; font-weight: 900; }
.co-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--text-dim); font-size: 22px; cursor: pointer; line-height: 1;
  display: grid; place-items: center; transition: .15s; }
.co-close:hover { color: var(--text); border-color: var(--brand); }

.co-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.co-line { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); }
.co-thumb { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.co-thumb-ph { display: grid; place-items: center; font-size: 22px; background: var(--page-bg); }
.co-line-info { flex: 1; min-width: 0; }
.co-line-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-line-price { color: var(--brand); font-weight: 800; font-size: 13.5px; margin-top: 2px; }
.co-qty { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.co-qty button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--page-bg); color: var(--brand); font-size: 17px; font-weight: 800; cursor: pointer; transition: .15s; }
.co-qty button:hover { border-color: var(--brand); }
.co-qty span { min-width: 20px; text-align: center; font-weight: 800; }

.co-coupon { display: flex; gap: 8px; margin-bottom: 16px; }
.co-coupon input { flex: 1; text-transform: uppercase; letter-spacing: 1px; }
.co-coupon-btn { padding: 0 22px; border-radius: 14px; border: 1px solid var(--brand);
  background: var(--brand-soft); color: var(--brand); font-weight: 800; cursor: pointer; white-space: nowrap; transition: .15s; }
.co-coupon-btn:hover { background: var(--brand); color: #17130A; }

.co-summary { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; margin-bottom: 18px; }
.co-sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; padding: 5px 0; color: var(--text-dim); }
.co-discount { color: var(--brand); }
.co-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px;
  font-size: 20px; font-weight: 900; color: var(--text); }
.co-total span:last-child { color: var(--brand); }

.co-section-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-dim); margin: 20px 0 12px; }
.co-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.co-pays { display: flex; flex-direction: column; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer; transition: .18s cubic-bezier(.4,0,.2,1); }
.pay-opt:hover { border-color: var(--brand); }
.pay-opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.pay-ico { font-size: 20px; }
.pay-name { flex: 1; font-weight: 700; font-size: 14.5px; }
.pay-check { color: var(--brand); font-weight: 900; font-size: 16px; }
.co-nopay { color: var(--text-dim); font-size: 14px; text-align: center; padding: 14px; }

.co-place { width: 100%; margin-top: 20px; padding: 17px 20px; border: none; border-radius: 16px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 72%, #000));
  color: #17130A; font-weight: 900; font-size: 16px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--brand) 55%, transparent); transition: .18s; }
.co-place:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.co-place:disabled { opacity: .5; cursor: not-allowed; }
.co-place-total { background: rgba(0,0,0,.18); padding: 5px 14px; border-radius: 999px; font-size: 15px; }

/* شبكة أوقات الحجز */
.bk-item { display: flex; justify-content: space-between; align-items: center; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 18px; }
.bk-item-name { font-weight: 800; font-size: 16px; }
.bk-item-price { color: var(--brand); font-weight: 800; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.slot-btn { padding: 13px 8px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--card);
  color: var(--text); font-weight: 800; font-size: 15px; cursor: pointer; transition: .16s cubic-bezier(.4,0,.2,1); }
.slot-btn:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-2px); }
.slot-btn.sel { background: var(--brand); color: #17130A; border-color: var(--brand);
  box-shadow: 0 10px 22px -6px color-mix(in srgb, var(--brand) 55%, transparent); }
.slot-btn.taken, .slot-btn:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slot-loading, .slot-none { grid-column: 1/-1; text-align: center; color: var(--text-dim); padding: 24px; font-size: 14px; }

/* =====================================================================
   الغلاف (cover) + زر الأقسام + الصنف المميّز + سلة عائمة
   ===================================================================== */
/* غلاف علوي زي المطاعم */
.hero.has-cover { padding-top: 0; }
.hero-cover { height: 190px; background-size: cover; background-position: center; position: relative; }
.hero-cover::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--page-bg)); }
.hero.has-cover .hero-inner { margin-top: -54px; position: relative; z-index: 2; }
.hero-inner { text-align: center; }
.hero.has-cover .logo { border-width: 3px; }

/* زر الأقسام (يفتح/يقفل القائمة) */
.cats-wrap { position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--page-bg) 92%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line); }
.cats-toggle { display: none; width: 100%; align-items: center; justify-content: space-between;
  padding: 15px 18px; background: none; border: none; color: var(--text); font-weight: 800; font-size: 16px; cursor: pointer; }
.cats-toggle svg { transition: transform .25s; color: var(--brand); }
.cats-wrap.open .cats-toggle svg { transform: rotate(180deg); }
.cats { border-bottom: none; }

/* على الجوال: القائمة مخفية، تظهر بالضغط على الزر */
@media (max-width: 560px) {
  .cats-toggle { display: flex; }
  .cats-wrap .cats { display: none; flex-direction: column; padding: 6px 12px 14px; }
  .cats-wrap.open .cats { display: flex; }
  .cats-wrap .cat-chip { width: 100%; text-align: center; }
}

/* Refined storefront opening */
.wrap > .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(68px, 7vw, 92px) clamp(24px, 5vw, 64px) 34px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 4%, color-mix(in srgb, var(--brand) 16%, transparent) 0, transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--card) 94%, var(--brand-soft)), var(--card));
}
.wrap > .hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 14px;
  pointer-events: none;
}
.hero .hero-inner { width: min(100%, 820px); margin-inline: auto; }
.hero .logo {
  width: clamp(78px, 8vw, 96px);
  height: clamp(78px, 8vw, 96px);
  margin-bottom: 18px;
  border-width: 1px;
  border-radius: 16px;
  box-shadow: 0 16px 38px color-mix(in srgb, var(--brand) 16%, transparent);
}
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.hero p { max-width: 560px; margin: 12px auto 0; line-height: 1.65; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
}
.hero-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62c98b;
  box-shadow: 0 0 0 4px color-mix(in srgb, #62c98b 14%, transparent);
}
.hero-service-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 760px);
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--page-bg) 40%, var(--card));
}
.hero-service {
  min-width: 0;
  min-height: 76px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-inline-end: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.hero-service:last-child { border-inline-end: 0; }
.hero-service:hover { background: var(--brand-soft); color: var(--brand); }
.hero-service-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.hero-service-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-service strong, .hero-service small { display: block; }
.hero-service strong { font-size: 13px; line-height: 1.3; }
.hero-service small { margin-top: 4px; color: var(--text-dim); font-size: 10px; line-height: 1.35; }
.hero-service-whatsapp .hero-service-icon { background: color-mix(in srgb, #25d366 15%, transparent); color: #45c878; }
.menu-controls { border-radius: 13px; box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.menu-controls .menu-account { min-width: 0; }
.menu-controls .menu-account.is-signed-in { background: var(--brand-soft); color: var(--brand); }
.offers-strip { padding-top: 34px; }

@media (max-width: 720px) {
  .wrap > .hero { padding: 76px 16px 18px; border-radius: 16px; }
  .wrap > .hero::after { inset: 8px; border-radius: 11px; }
  .hero h1 { font-size: clamp(34px, 11vw, 44px); }
  .hero-service-bar { grid-template-columns: 1fr; margin-top: 22px; }
  .hero-service { min-height: 64px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .hero-service:last-child { border-bottom: 0; }
  .hero-service-icon { width: 36px; height: 36px; }
  .offers-strip { padding-top: 26px; }
}

/* Premium checkout shell */
.checkout-identity{display:flex;align-items:center;gap:13px;margin:0 0 14px;padding:15px 17px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--card) 94%,var(--brand)),var(--card));box-shadow:0 18px 45px rgba(0,0,0,.08)}
.checkout-identity>img,.checkout-identity>span{width:48px;height:48px;flex:0 0 auto;border-radius:14px;object-fit:cover;display:grid;place-items:center;background:var(--brand);color:#111;font-size:19px;font-weight:900}.checkout-identity>div{min-width:0;flex:1}.checkout-identity strong,.checkout-identity small{display:block}.checkout-identity strong{font-size:16px}.checkout-identity small{margin-top:3px;color:var(--text-dim);font-size:11px}.checkout-identity>b{color:var(--brand)}
.checkout-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:18px}.checkout-steps span{padding:10px;border:1px solid var(--line);border-radius:999px;color:var(--text-dim);text-align:center;font-size:11px;font-weight:800}.checkout-steps .done{color:#4bb477;border-color:color-mix(in srgb,#4bb477 45%,var(--line));background:color-mix(in srgb,#4bb477 10%,transparent)}.checkout-steps .active{color:var(--text);border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.checkout-summary-card{position:sticky;top:22px;align-self:start}.checkout-assurance{display:flex;align-items:center;gap:10px;margin:14px 0;padding:12px;border-radius:12px;background:color-mix(in srgb,#4bb477 9%,var(--card));border:1px solid color-mix(in srgb,#4bb477 28%,var(--line));color:#4bb477}.checkout-assurance>span{font-weight:900}.checkout-assurance strong,.checkout-assurance small{display:block}.checkout-assurance strong{font-size:12px;color:var(--text)}.checkout-assurance small{margin-top:2px;font-size:10px;color:var(--text-dim)}
@media(max-width:760px){.checkout-summary-card{position:static}.checkout-steps span{font-size:10px;padding:9px 5px}}
@media (prefers-reduced-motion: reduce) {
  .hero-service { transition: none; }
}

/* Customer auth appears as a focused bottom sheet without covering the menu. */
#optSheet.auth-panel-open {
  align-items:flex-end;
  justify-content:center;
  padding:0 18px;
  overflow:hidden;
  background:color-mix(in srgb,#05060a 66%,transparent);
  backdrop-filter:blur(8px);
}
#optSheet.auth-panel-open .sheet {
  position:relative;
  width:min(720px,100%);
  max-width:none;
  max-height:min(90dvh,820px);
  padding:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  border:1px solid color-mix(in srgb,var(--brand) 24%,var(--line));
  border-bottom:0;
  border-radius:18px 18px 0 0;
  background:linear-gradient(155deg,color-mix(in srgb,var(--card) 97%,#07080d),var(--page-bg));
  box-shadow:0 -12px 36px rgba(0,0,0,.3);
  animation:authRise .48s cubic-bezier(.16,1,.3,1);
}
@keyframes authRise { from { transform:translateY(100%); opacity:.75; } to { transform:none; opacity:1; } }
#optSheet.auth-panel-open.closing { animation:authBackdropOut .32s ease forwards; }
#optSheet.auth-panel-open.closing .sheet { animation:authDrop .32s cubic-bezier(.4,0,1,1) forwards; }
@keyframes authDrop { to { transform:translateY(100%); opacity:.7; } }
@keyframes authBackdropOut { to { background:transparent; backdrop-filter:blur(0); } }

.auth-panel-open .auth-scene {
  position:absolute;
  top:22px;
  inset-inline-end:76px;
  width:94px;
  height:94px;
  display:grid;
  place-items:center;
  perspective:700px;
  pointer-events:none;
}
.auth-panel-open .auth-scene::before {
  content: '';
  position: absolute;
  width:130px;
  height:130px;
  border-radius: 50%;
  background:radial-gradient(circle,color-mix(in srgb,var(--brand) 23%,transparent),transparent 68%);
}
.auth-core {
  position:relative; z-index:2; width:50px; height:50px; display:grid; place-items:center;
  border-radius:13px; background:var(--brand); color:#111218;
  font:900 25px 'Cairo',sans-serif; transform:rotateX(12deg) rotateY(-18deg);
  animation:authCoreFloat 5s ease-in-out infinite;
}
.auth-core img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.auth-core svg { width:30px; height:30px; fill:none; stroke:#111218; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.auth-orbit {
  position: absolute;
  width:82px;
  height:34px;
  border: 1px solid color-mix(in srgb, var(--brand) 52%, transparent);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.orbit-a { transform: rotateX(68deg) rotateZ(18deg); animation: authOrbitA 9s linear infinite; }
.orbit-b { transform: rotateX(70deg) rotateZ(104deg); animation: authOrbitB 12s linear infinite reverse; }
@keyframes authCoreFloat { 0%,100% { transform:translateY(0) rotateX(12deg) rotateY(-18deg); } 50% { transform:translateY(-9px) rotateX(8deg) rotateY(14deg); } }
@keyframes authOrbitA { to { transform:rotateX(68deg) rotateZ(378deg); } }
@keyframes authOrbitB { to { transform:rotateX(70deg) rotateZ(464deg); } }

#optSheet.auth-panel-open .auth-sheet {
  max-width:none;
  padding:clamp(28px,5vw,42px) clamp(22px,6vw,54px) max(32px,env(safe-area-inset-bottom));
  animation:authContentIn .36s cubic-bezier(.22,1,.36,1);
}
@keyframes authContentIn { from { transform:translateY(14px); opacity:0; } to { transform:none; opacity:1; } }
.auth-flow-forward .auth-sheet { animation:authFlowForward .38s cubic-bezier(.16,1,.3,1); }
.auth-flow-back .auth-sheet { animation:authFlowBack .38s cubic-bezier(.16,1,.3,1); }
@keyframes authFlowForward { from { transform:translateX(34px); opacity:0; filter:blur(4px); } to { transform:none; opacity:1; filter:none; } }
@keyframes authFlowBack { from { transform:translateX(-34px); opacity:0; filter:blur(4px); } to { transform:none; opacity:1; filter:none; } }
[dir="rtl"] .auth-flow-forward .auth-sheet { animation-name:authFlowBack; }
[dir="rtl"] .auth-flow-back .auth-sheet { animation-name:authFlowForward; }
.auth-panel-open .sheet-title-row { margin-bottom:26px; padding-inline-end:120px; }
.auth-panel-open .sheet-title-row h2 { font-size:clamp(27px,5vw,36px); }
.auth-name-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.password-strength { margin: -7px 0 10px; }
.strength-track { height: 6px; overflow:hidden; border-radius:99px; background:var(--line); }
.strength-track span { display:block; width:100%; height:100%; background:#dc6262; transform:scaleX(0); transform-origin:left center; transition:transform .28s ease, background-color .28s ease; }
[dir="rtl"] .strength-track span { transform-origin:right center; }
.password-strength[data-score="1"] .strength-track span { transform:scaleX(.25); }
.password-strength[data-score="2"] .strength-track span { transform:scaleX(.5); background:#d99a48; }
.password-strength[data-score="3"] .strength-track span { transform:scaleX(.75); background:#6b93e5; }
.password-strength[data-score="4"] .strength-track span { transform:scaleX(1); background:#54b87a; }
.strength-copy { display:flex; justify-content:space-between; gap:12px; margin-top:7px; color:var(--text-dim); font-size:12px; }
.password-rules { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 17px; }
.password-rules span { padding:5px 8px; border-radius:7px; background:var(--card); color:var(--text-dim); font-size:11px; border:1px solid var(--line); }
.password-rules span.valid { color:#67c88b; border-color:color-mix(in srgb, #67c88b 45%, var(--line)); }
.auth-panel-open .opt-close svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }

@media (max-width: 560px) {
  #optSheet.auth-panel-open { padding:0; }
  #optSheet.auth-panel-open .sheet { width:100%; max-height:92dvh; border-inline:0; border-radius:16px 16px 0 0; }
  .auth-panel-open .auth-scene { top:18px; inset-inline-end:62px; width:62px; height:62px; }
  .auth-panel-open .auth-scene::before { width:92px; height:92px; }
  .auth-core { width:38px; height:38px; border-radius:10px; font-size:20px; }
  .auth-orbit { width:62px; height:26px; }
  #optSheet.auth-panel-open .auth-sheet { padding:26px 18px max(26px,env(safe-area-inset-bottom)); }
  .auth-panel-open .sheet-title-row { padding-inline-end:82px; }
  .auth-name-grid { grid-template-columns:1fr; gap:0; }
}
@media (prefers-reduced-motion: reduce) {
  #optSheet.auth-panel-open .sheet, #optSheet.auth-panel-open .auth-sheet,
  .auth-core, .auth-orbit { animation:none !important; }
}

.store-actions { display:flex; justify-content:center; gap:9px; flex-wrap:wrap; margin-top:12px; }
.store-action { appearance:none; border:1px solid var(--line); background:var(--card); color:var(--text); padding:10px 15px; border-radius:12px; font:700 13px inherit; text-decoration:none; cursor:pointer; transition:.2s; }
.store-action:hover { transform:translateY(-2px); border-color:var(--brand); color:var(--brand); }
.store-action.whatsapp { background:#1f9d61; border-color:#1f9d61; color:white; }
.store-section-head { display:flex; align-items:end; justify-content:space-between; margin-bottom:14px; }
.store-section-head h2 { color:var(--heading-color); font-size:clamp(22px,3vw,30px); }
.store-section-head span { color:var(--text-dim); font-size:13px; }
.recommended { padding:30px 0 8px; }
.recommended-row { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(290px, 42%); gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px; }
.recommended-row .item { scroll-snap-align:start; margin:0; }
.review-link { align-self:flex-start; border:0; background:transparent; color:var(--brand); padding:5px 0 0; font:700 12px inherit; cursor:pointer; }
.offer-countdown { margin-top:12px; padding-top:10px; border-top:1px solid color-mix(in srgb,var(--brand) 25%,transparent); color:var(--brand); font-size:12px; font-weight:800; font-variant-numeric:tabular-nums; }
.growth-sheet { max-width:520px; margin:auto; }
.growth-sheet h2 { font-size:26px; color:var(--heading-color); }
.growth-sub { color:var(--text-dim); margin:-6px 0 20px; }
.loyalty-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:18px; }
.loyalty-cards div { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px 8px; text-align:center; }
.loyalty-cards strong,.loyalty-cards span { display:block; }
.loyalty-cards strong { color:var(--brand); font-size:20px; }
.loyalty-cards span { color:var(--text-dim); font-size:11px; margin-top:5px; }
body[data-store-template="shop"] .section, body[data-store-template="salon"] .section { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
body[data-store-template="shop"] .section h2, body[data-store-template="salon"] .section h2 { grid-column:1/-1; }
body[data-store-template="shop"] .item, body[data-store-template="salon"] .item { margin:0; }
body[data-store-template="services"] .hero { min-height:300px; }
@media(max-width:650px){.recommended-row{grid-auto-columns:86%;}.loyalty-cards{grid-template-columns:1fr 1fr}.loyalty-cards div:last-child{grid-column:1/-1}body[data-store-template="shop"] .section,body[data-store-template="salon"] .section{grid-template-columns:1fr}}

/* شارة الصنف المميّز */
.feat-tag { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000));
  color: #17130A; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3); white-space: nowrap; }
.item-img-nobg { background: none !important; width: auto !important; height: auto !important; position: relative; }

/* زر السلة العائم الأوضح */
#cartBar {
  position: fixed; bottom: 18px; inset-inline: 16px; z-index: 40;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 72%, #000));
  color: #17130A; border-radius: 18px; padding: 15px 20px;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 14px 40px -8px color-mix(in srgb, var(--brand) 60%, transparent);
  cursor: pointer; max-width: 620px; margin: 0 auto; animation: cartPop .3s cubic-bezier(.22,1,.36,1); }
#cartBar.show { display: flex; }
@keyframes cartPop { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#cartBar .cb-count { background: rgba(0,0,0,.22); width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; }
#cartBar .cb-label { flex: 1; font-weight: 800; font-size: 15.5px; }
#cartBar .cb-total { background: rgba(0,0,0,.16); padding: 6px 14px; border-radius: 999px; font-weight: 900; }

/* =====================================================================
   خلفيات المنيو (متدرجة / متحركة / فقاعات)
   ===================================================================== */
#bgLayer { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
/* عند تفعيل خلفية مخصّصة، نجعل خلفية الصفحة شفافة حتى تظهر الطبقة */
body[data-bg="gradient"], body[data-bg="animated"], body[data-bg="bubbles"] { background: transparent !important; }
body[data-bg="animated"] #bgLayer { animation: bgShift 16s ease infinite; }
@keyframes bgShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.bg-bubble { position: absolute; border-radius: 50%; background: var(--bc); opacity: .14;
  filter: blur(30px); width: 240px; height: 240px;
  animation: bubbleFloat calc(18s + var(--i) * 3s) ease-in-out infinite; }
.bg-bubble:nth-child(1) { top: -60px; inset-inline-start: -40px; }
.bg-bubble:nth-child(2) { top: 30%; inset-inline-end: -60px; width: 300px; height: 300px; }
.bg-bubble:nth-child(3) { bottom: 10%; inset-inline-start: 10%; }
.bg-bubble:nth-child(4) { top: 50%; inset-inline-start: 40%; width: 180px; height: 180px; }
.bg-bubble:nth-child(5) { bottom: -40px; inset-inline-end: 20%; }
.bg-bubble:nth-child(6) { top: 15%; inset-inline-start: 30%; width: 200px; height: 200px; }
@keyframes bubbleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(.95); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-bg="animated"] #bgLayer, .bg-bubble { animation: none; }
}

/* =====================================================================
   صفحات Cart + Checkout الحقيقية
   ===================================================================== */
.checkout-page { padding-bottom: 44px; }
.checkout-top { display: flex; align-items: center; gap: 14px; margin: 18px 0 18px; }
.checkout-top h1 { margin: 0; font-size: clamp(28px, 6vw, 44px); color: var(--heading-color, var(--text)); }
.back-btn { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 14px; padding: 11px 14px; font-weight: 800; cursor: pointer; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 18px; align-items: start; }
.checkout-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.checkout-card + .checkout-card { margin-top: 16px; }
.co-card-providers { margin-top: 10px; display: grid; gap: 8px; }
.co-card-providers .muted { color: var(--text-dim); font-size: 12px; }
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-top { align-items: flex-start; flex-direction: column; }
}

/* ملاحظة الدفع في صفحة نجاح الطلب */
.pay-note { display: inline-block; margin-top: 16px; padding: 10px 20px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }

/* =====================================================================
   لمسات فخامة إضافية (Premium polish)
   ===================================================================== */
/* بطاقات الأصناف: ظل أنعم وحركة لطيفة */
.item {
  box-shadow: 0 2px 10px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s;
}
.item:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -14px rgba(0,0,0,.25); }

/* عنوان القسم: خط ذهبي أنيق تحت الاسم */
.section h2 {
  position: relative; display: inline-block;
  padding-bottom: 6px;
}
.section h2::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 13px; width: 42px; height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent); border-radius: 3px;
}

/* السعر: أوضح وأفخم */
.item .price { font-size: 16px; letter-spacing: .3px; }

/* شرائح الأقسام: ظل خفيف */
.cat-chip { box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.cat-chip.active { box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--brand) 50%, transparent); }

/* بطاقات السلة والدفع: زوايا أنعم وظل أعمق */
.checkout-card, .cart-card {
  border-radius: 24px !important;
  box-shadow: 0 10px 40px -16px rgba(0,0,0,.35);
}

/* زر التأكيد/الدفع: تدرّج فخم + لمعان */
.co-place {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)) !important;
  color: #fff !important;
  letter-spacing: .3px; font-size: 16.5px;
  box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--brand) 60%, transparent) !important;
}

/* عنوان الصفحات (Your Cart / Checkout): أنيق */
.checkout-top h1, .cart-top h1 { letter-spacing: -.5px; }

/* حقول الإدخال: أنعم */
.field input, .field textarea {
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--brand); outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}

/* الحقول الإجبارية: نجمة ذهبية */
.field span { font-weight: 700; }

/* إخفاء عنوان القسم في وضع "All" */
.section.hide-heading > h2 { display: none; }
.section.hide-heading { padding-top: 8px; }

/* =====================================================================
   تحسين صفحة السلة (coupon + count)
   ===================================================================== */
.co-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--brand); color: #17130A; border-radius: 999px; font-size: 12px; font-weight: 800;
  margin-inline-start: 6px; vertical-align: middle; }
.co-coupon { display: flex; gap: 10px; margin-bottom: 16px; }
.co-coupon input {
  flex: 1; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--card-bg, #17171C) 60%, transparent);
  border: 1.5px solid var(--line); color: var(--text); font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
}
.co-coupon input::placeholder { color: var(--text-faint); letter-spacing: .5px; }
.co-coupon input:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.co-coupon-btn {
  padding: 0 22px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--brand); color: #17130A; font-weight: 800; font-size: 14px;
  transition: transform .15s, filter .15s;
}
.co-coupon-btn:hover { filter: brightness(1.08); }
.co-coupon-btn:active { transform: scale(.96); }

/* =====================================================================
   نافذة خيارات الصنف (Modifiers)
   ===================================================================== */
.opt-sheet-head { display: flex; align-items: center; gap: 14px; padding: 4px 4px 16px; border-bottom: 1px solid var(--line); }
.opt-sheet-head h2 { font-size: 20px; font-weight: 900; flex: 1; }
.opt-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font-size: 16px; cursor: pointer; }
.opt-scroll { max-height: 52vh; overflow-y: auto; padding: 14px 0; }
.opt-group { margin-bottom: 22px; }
.opt-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.opt-group-name { font-size: 16px; font-weight: 800; }
.opt-req { font-size: 11px; font-weight: 800; color: #E0654B; background: rgba(224,101,75,.14);
  padding: 3px 10px; border-radius: 999px; }
.opt-optional { font-size: 11px; color: var(--text-faint); }
.opt-list { display: flex; flex-direction: column; gap: 9px; }
.opt-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--card-bg, #17171C) 55%, transparent);
  border: 1.5px solid var(--line); cursor: pointer; transition: .15s; }
.opt-row.sel { border-color: var(--brand); background: var(--brand-soft); }
.opt-row:active { transform: scale(.99); }
.opt-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #17130A; flex-shrink: 0; }
.opt-check.sq { border-radius: 7px; }
.opt-row.sel .opt-check { background: var(--brand); border-color: var(--brand); }
.opt-name { flex: 1; font-weight: 600; font-size: 15px; }
.opt-price { font-weight: 800; color: var(--brand); font-size: 14px; }
.opt-foot { padding-top: 14px; border-top: 1px solid var(--line); }
.co-line-opts { font-size: 12px; color: var(--text-dim); margin: 3px 0; line-height: 1.4; }

/* ملاحظة الصنف في نافذة الخيارات + السلة */
.opt-note { width: 100%; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--card-bg,#17171C) 55%, transparent);
  border: 1.5px solid var(--line); color: var(--text); font-size: 14px; resize: vertical; font-family: inherit; }
.opt-note:focus { outline: none; border-color: var(--brand); }
.co-line-note { font-size: 12px; color: var(--text-dim); margin-top: 3px; font-style: italic; }

/* تلميح حدود الاختيار في المجموعة المتعددة */
.opt-limit { font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft);
  padding: 2px 8px; border-radius: 999px; margin-inline-start: 6px; }

/* =====================================================================
   تتبّع الطلب المباشر (Order Tracker)
   ===================================================================== */
.track-card { background: var(--card-bg, #17171C); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px 22px; text-align: center; max-width: 460px; margin: 20px auto;
  box-shadow: 0 12px 40px -16px rgba(0,0,0,.4); }
.track-num { font-size: 20px; font-weight: 900; color: var(--brand); margin-bottom: 12px; }
.pay-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800; padding: 7px 16px;
  border-radius: 999px; margin-bottom: 22px; border: 1.5px solid transparent;
}
.pay-badge-paid    { background: rgba(79,169,104,.15); color: #4FA968; border-color: rgba(79,169,104,.35); }
.pay-badge-pending { background: rgba(224,171,75,.14); color: #E0AB4B; border-color: rgba(224,171,75,.32); }
.pay-badge-failed  { background: rgba(224,101,75,.15); color: #E0654B; border-color: rgba(224,101,75,.35); }
.track-steps { display: flex; justify-content: space-between; position: relative; margin-bottom: 24px; }
.track-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; z-index: 2; }
.track-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; background: var(--bg, #0F0F12); border: 2px solid var(--line); transition: .3s;
  color: var(--text-dim); }
.track-step.done .track-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.track-step.active .track-dot { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft);
  animation: trackPulse 1.6s infinite; }
@keyframes trackPulse { 0%,100% { box-shadow: 0 0 0 5px var(--brand-soft); } 50% { box-shadow: 0 0 0 9px transparent; } }
.track-label { font-size: 12px; font-weight: 700; margin-top: 8px; color: var(--text-dim); }
.track-step.done .track-label, .track-step.active .track-label { color: var(--text); }
.track-line { position: absolute; top: 23px; height: 3px; background: var(--line);
  inset-inline-start: 50%; width: 100%; z-index: -1; transition: .3s; }
.track-line.done { background: var(--brand); }
.track-msg { font-size: 16px; font-weight: 700; margin: 8px 0 14px; }
.track-total { color: var(--text-dim); font-size: 15px; }
.track-total strong { color: var(--text); }
.track-live { color: var(--text-faint); font-size: 12.5px; margin-top: 14px; }

/* زر تتبّع الطلب في الهيرو */
.track-order-btn { margin-top: 14px; padding: 10px 22px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--brand); color: var(--brand);
  font-weight: 700; font-size: 14px; transition: .18s; }
.track-order-btn:hover { background: var(--brand-soft); }

/* Storefront refresh — hierarchy, contrast and responsive commerce layout */
:root { --content: 1120px; --heading-color: var(--text); --price-color: var(--brand); }
body { background-color: var(--page-bg); background-image: radial-gradient(circle at 50% -8%, var(--brand-soft), transparent 34rem); }
.wrap { max-width: var(--content); padding: 24px clamp(16px, 4vw, 44px) 132px; }
.menu-controls { top: 20px; inset-inline-start: max(20px, calc((100vw - var(--content))/2 + 28px)); padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(18px); }
.menu-controls button { width: 38px; height: 38px; border: 0; box-shadow: none; background: transparent; }
.menu-controls button:hover { background: var(--brand-soft); color: var(--brand); }
.hero { min-height: 360px; margin-top: 0; padding: 72px clamp(24px, 5vw, 64px) 46px; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, color-mix(in srgb, var(--card) 92%, transparent), color-mix(in srgb, var(--brand) 8%, var(--page-bg))); }
.hero::after { display:none; }
.hero-inner { width:100%; }
.hero .logo { width: 104px; height: 104px; border-radius: 26px; margin-bottom: 18px; box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--brand) 55%, #000); }
.hero h1 { color: var(--heading-color); font-size: clamp(34px, 6vw, 58px); letter-spacing: -.045em; line-height: 1.05; text-wrap: balance; }
.hero p { max-width: 580px; font-size: 16px; line-height: 1.8; }
.hero .hero-badge { display:none; }
.track-order-btn { margin-top: 20px; border-color: var(--line); background: var(--card); color: var(--text); border-radius: 13px; padding: 11px 18px; }
.track-order-btn:hover { border-color:var(--brand); color:var(--brand); }
.hero-cover { position:absolute; inset:0; height:auto; opacity:.38; filter:saturate(.8); }
.hero-cover::after { background:linear-gradient(90deg, var(--page-bg), transparent 50%, var(--page-bg)); }
.hero.has-cover .hero-inner { margin:0; }
.offers-strip { padding: 42px 0 12px; }
.offers-strip h2 { border:0; padding:0; font-size: clamp(22px, 3vw, 30px); color:var(--heading-color); }
.offer-slide { gap:16px; }
.offer-tile { min-width:min(390px, 84vw); border-color:color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius:20px; padding:20px; background:linear-gradient(120deg, var(--brand-soft), color-mix(in srgb, var(--card) 90%, transparent)); }
.offer-tile .tag { border-radius:8px; }
.cats-wrap { top:12px; margin:22px 0 14px; border:1px solid var(--line); border-radius:18px; overflow:hidden; background:color-mix(in srgb, var(--page-bg) 78%, transparent); }
.cats { padding:10px; background:transparent; }
.cat-chip { box-shadow:none; border-color:transparent; background:transparent; border-radius:12px; }
.cat-chip.active { box-shadow:none; }
.section { padding: 28px 0 4px; }
.section h2 { border:0; padding:0 0 12px; font-size:28px; }
.section h2::after { inset-inline-start:0; }
.item { min-height: 142px; gap:18px; padding:16px; margin-bottom:12px; border-radius:var(--card-radius, 20px); box-shadow:none; align-items:center; }
.item:hover { transform:translateY(-2px); border-color:color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow:0 22px 50px -34px color-mix(in srgb, var(--brand) 30%, #000); }
.item-img, .item img, .item .item-img img { width:110px; height:110px; border-radius:14px; }
.item h3 { color:var(--heading-color); font-size:var(--title-size, 18px); margin-bottom:7px; }
.item p { max-width:58ch; font-size:14px; }
.item .price { color:var(--price-color); display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.item .price .old-price { color:var(--text-dim); font-size:13px; font-weight:500; text-decoration:line-through; }
.item .price small { padding:3px 7px; border-radius:7px; color:var(--brand); background:var(--brand-soft); font-size:10px; font-weight:800; }
.add-btn { border-radius:12px; box-shadow:none; }
.book-btn { border-radius:12px; }
button:focus-visible, .cat-chip:focus-visible { outline:3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset:3px; }
@media (min-width: 780px) {
  body[data-layout="cards"] .section { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  body[data-layout="cards"] .section h2 { grid-column:1/-1; }
  body[data-layout="cards"] .item { margin:0; }
}
@media (max-width: 560px) {
  .wrap { padding:10px 12px 112px; }
  .menu-controls { top:18px; inset-inline-start:18px; }
  .hero { min-height:320px; border-radius:24px; padding:68px 20px 34px; }
  .hero .logo { width:86px; height:86px; border-radius:22px; }
  .offers-strip { padding-top:32px; }
  .cats-wrap { top:8px; border-radius:16px; }
  .cats-toggle { padding:14px 16px; }
  .item { min-height:122px; padding:12px; gap:12px; }
  .item-img, .item img, .item .item-img img { width:86px; height:96px; }
  .item h3 { font-size:16px; }
  .item p { font-size:12.5px; }
  .book-btn { padding:9px 11px; font-size:12px; }
}

/* Commerce form system: shared by checkout, cart and loyalty */
.checkout-page {
  --commerce-gap: clamp(16px, 2.2vw, 24px);
  max-width: 1180px;
  margin-inline: auto;
}
.checkout-top {
  margin: clamp(22px, 4vw, 48px) 0 clamp(20px, 3vw, 32px);
}
.checkout-top h1 { font-size: clamp(30px, 4.5vw, 52px); line-height: 1.08; }
.checkout-grid { gap: var(--commerce-gap); }
.checkout-card {
  border-radius: 16px !important;
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow: none;
}
.checkout-card + .checkout-card { margin-top: var(--commerce-gap); }
.co-section-title {
  margin: 28px 0 14px;
  letter-spacing: .04em;
}
.checkout-card > .co-section-title:first-child { margin-top: 0; }
.field { margin-bottom: 18px; }
.field > span { margin-bottom: 8px; font-size: 14px; }
.field input, .field select, .field textarea {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 16px;
}
.phone-control {
  display: grid;
  grid-template-columns: minmax(145px, 42%) minmax(0, 1fr);
  gap: 10px;
}
.phone-control .phone-country,
.phone-control input {
  min-width: 0;
  margin: 0;
}
.phone-country { cursor: pointer; }
.phone-hint {
  display: block;
  margin-top: 7px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
}
.sheet-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.sheet-title-row h2 { margin: 0 0 8px; }
.sheet-title-row .growth-sub { margin: 0; max-width: 44ch; line-height: 1.6; }
.loyalty-sheet { max-width: 640px; }
.loyalty-submit { justify-content: center; min-height: 52px; margin-top: 8px; }
.loyalty-cards { gap: 12px; margin-top: 24px; }
.loyalty-cards div { padding: 20px 12px; }
.loyalty-cards strong { font-size: 24px; }
.co-place { min-height: 52px; }
.back-btn, .opt-close, .co-qty button { min-width: 44px; min-height: 44px; }

@media (max-width: 860px) {
  .checkout-top { flex-direction: row; align-items: center; }
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .checkout-page { padding-inline: 12px; }
  .checkout-top { gap: 12px; margin-top: 72px; }
  .checkout-top h1 { font-size: 30px; }
  .checkout-card { padding: 18px 14px; }
  .phone-control { grid-template-columns: 132px minmax(0, 1fr); gap: 8px; }
  .phone-control .phone-country { padding-inline: 10px; }
  .co-coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .co-coupon-btn { min-height: 48px; padding-inline: 16px; }
  .co-line { align-items: flex-start; flex-wrap: wrap; }
  .co-line-info { min-width: calc(100% - 78px); }
  .co-qty { margin-inline-start: auto; }
  .sheet { padding: 20px 14px max(22px, env(safe-area-inset-bottom)); }
  .sheet-title-row { gap: 12px; }
  .growth-sheet h2 { font-size: 24px; }
  .loyalty-cards { grid-template-columns: 1fr 1fr; }
  .loyalty-cards div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .phone-control { grid-template-columns: 1fr; }
  .phone-country { width: 100%; }
  .co-place { padding-inline: 14px; }
}

/* Customer identity and a tighter, commerce-first storefront header */
.hero {
  min-height: 0;
  padding: clamp(58px, 7vw, 82px) clamp(20px, 5vw, 56px) clamp(32px, 5vw, 48px);
}
.hero .logo {
  width: clamp(82px, 9vw, 104px);
  height: clamp(82px, 9vw, 104px);
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); }
.hero p { margin-top: 4px; }
.store-actions {
  margin: 22px auto 0;
  gap: 10px;
  max-width: 680px;
}
.store-action {
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 12px;
}
.account-action {
  background: var(--brand);
  border-color: var(--brand);
  color: #17130a;
  font-weight: 800;
}
.account-action:hover { color: #17130a; filter: brightness(1.06); }

.auth-sheet { max-width: 600px; padding: 4px; }
.auth-brand {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  margin-bottom: 8px;
}
.auth-sheet .field { margin-bottom: 16px; }
.auth-primary { justify-content: center; margin-top: 12px; }
.auth-switch {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: 700 14px inherit;
  cursor: pointer;
}
.auth-switch:hover { text-decoration: underline; }
.auth-switch.danger { color: #e27676; }
.otp-input {
  text-align: center;
  direction: ltr;
  font-size: 24px !important;
  font-weight: 800;
  letter-spacing: .35em;
  font-variant-numeric: tabular-nums;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--brand);
  color: #17130a;
  font-size: 22px;
  font-weight: 900;
}
.account-profile strong, .account-profile span { display: block; }
.account-profile span { color: var(--text-dim); margin-top: 3px; font-size: 13px; }
.account-actions { display:grid; gap:8px; margin:14px 0 24px; }
.account-actions > button { width:100%; display:flex; align-items:center; gap:13px; padding:13px 14px; border:0; border-radius:12px; background:color-mix(in srgb,var(--card) 76%,var(--page-bg)); color:var(--text); text-align:start; cursor:pointer; transition:background-color .2s ease,transform .2s ease; }
.account-actions > button:hover { background:var(--brand-soft); transform:translateY(-1px); }
.account-actions > button > span { width:34px; height:34px; flex:0 0 auto; display:grid; place-items:center; border-radius:9px; background:var(--brand-soft); color:var(--brand); font-size:18px; font-weight:800; }
.account-actions strong,.account-actions small { display:block; }
.account-actions strong { font-size:14px; }
.account-actions small { color:var(--text-dim); margin-top:3px; font-size:11px; }
.account-section-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.account-section-head span { min-width:25px; height:25px; display:grid; place-items:center; border-radius:99px; background:var(--brand-soft); color:var(--brand); font-size:12px; font-weight:800; }
.account-loyalty-list{display:grid;gap:10px;margin-bottom:18px}.account-loyalty-card{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:12px;padding:13px;border-radius:14px;background:var(--card);box-shadow:inset 3px 0 var(--loyalty-color)}.account-loyalty-card img{width:46px;height:46px;border-radius:11px;object-fit:cover}.account-loyalty-card strong,.account-loyalty-card span{display:block}.account-loyalty-card span{color:var(--text-dim);font-size:12px}.account-loyalty-card button{border:0;border-radius:9px;background:#050505;color:#fff;padding:9px 11px;font-weight:800;cursor:pointer}
.customer-loyalty-pass{position:relative;overflow:hidden;border-radius:24px;padding:20px;color:var(--loyalty-text,#fff);background:linear-gradient(135deg,var(--loyalty-color,#b99345),#10141c);box-shadow:0 22px 48px rgba(0,0,0,.22)}
.customer-loyalty-pass::before{content:"";position:absolute;inset:0;background:var(--loyalty-art) center/cover no-repeat;opacity:.42}.customer-loyalty-pass>*{position:relative}
.customer-loyalty-pass-head,.customer-loyalty-pass-head>div,.customer-loyalty-progress{display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-loyalty-pass-head>div{justify-content:flex-start}.customer-loyalty-pass-head img{width:54px;height:54px;border-radius:15px;object-fit:cover;background:#fff}.customer-loyalty-pass-head strong,.customer-loyalty-pass-head span{display:block}.customer-loyalty-pass-head span{font-size:12px;opacity:.76;margin-top:3px}
.customer-loyalty-grid{display:grid;grid-template-columns:repeat(4,52px);gap:12px;justify-content:center;margin:26px 0}.customer-loyalty-stamp{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;background:rgba(5,12,28,.24);border:1px solid rgba(255,255,255,.18);font-size:24px;opacity:.6}.customer-loyalty-stamp.is-filled{background:#d8a834;border-color:#f5d77e;opacity:1;box-shadow:0 8px 22px rgba(216,168,52,.3)}.customer-loyalty-stamp img{width:70%;height:70%;object-fit:contain}.customer-loyalty-progress{font-size:13px}.customer-loyalty-qr{width:230px;height:230px;background:#fff;padding:14px;border-radius:20px;margin:18px auto;box-shadow:0 14px 36px rgba(0,0,0,.12)}
.wallet-add-actions{display:grid;gap:10px;margin-top:16px}.wallet-add-button{width:100%;min-height:58px;border:0;border-radius:16px;padding:10px 18px;display:flex;align-items:center;justify-content:center;gap:11px;background:#050505;color:#fff;box-shadow:0 10px 24px rgba(0,0,0,.16);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}.wallet-add-button:active{transform:scale(.975);box-shadow:0 5px 12px rgba(0,0,0,.16)}.wallet-add-button b{font-size:25px}.wallet-add-button span{font-size:17px;font-weight:800;line-height:1.05;text-align:start}.wallet-add-button small{display:block;font-size:9px;font-weight:600;letter-spacing:.02em;opacity:.76}.wallet-google{background:#fff;color:#171717;border:1px solid #d8d8d8}.wallet-google b{color:#4285f4}.wallet-samsung{background:#1428a0}.wallet-more-button{border:0;background:transparent;color:var(--text-dim);font-weight:750;padding:7px;cursor:pointer}.wallet-other-actions{display:none;gap:9px}.wallet-other-actions.show{display:grid;animation:walletReveal .22s ease both}@keyframes walletReveal{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.wallet-add-button,.wallet-other-actions.show{transition:none;animation:none}}
.loyalty-entry-actions{display:grid;gap:12px;margin-top:18px}.loyalty-entry-card{width:100%;min-height:78px;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--text);display:flex;align-items:center;gap:14px;text-align:start;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.loyalty-entry-card:active{transform:scale(.98)}.loyalty-entry-card>b{width:46px;height:46px;border-radius:14px;background:color-mix(in srgb,var(--brand) 14%,var(--card));color:var(--brand);display:grid;place-items:center;font-size:22px}.loyalty-entry-card span,.loyalty-entry-card strong,.loyalty-entry-card small{display:block}.loyalty-entry-card strong{font-size:15px}.loyalty-entry-card small{margin-top:4px;color:var(--text-dim);font-size:11px}
@media(max-width:420px){.customer-loyalty-grid{grid-template-columns:repeat(4,46px);gap:9px}.customer-loyalty-stamp{width:46px;height:46px}}
.saved-addresses { display:grid; gap:8px; }
.saved-address { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px; padding:13px; border:1px solid var(--line); border-radius:12px; }
.saved-address-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:10px; background:var(--brand-soft); color:var(--brand); font-size:20px; }
.saved-address strong,.saved-address span,.saved-address small { display:block; }
.saved-address strong { font-size:14px; }
.saved-address span { color:var(--text-dim); font-size:12px; line-height:1.5; margin-top:2px; }
.saved-address small { color:var(--brand); font-size:10px; margin-top:4px; }
.address-map-link{display:inline-block;margin-top:5px;color:var(--brand);font-size:11px;font-weight:700;text-decoration:none}
.saved-address > button { min-height:36px; padding:0 11px; border:0; border-radius:9px; background:var(--card); color:var(--text); cursor:pointer; font:700 12px inherit; }
.account-empty { padding:22px; border:1px dashed var(--line); border-radius:12px; color:var(--text-dim); text-align:center; font-size:13px; }
.address-type { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-bottom:18px; }
.address-type button { min-height:44px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--text-dim); cursor:pointer; font:700 13px inherit; }
.address-type button.active { border-color:var(--brand); background:var(--brand-soft); color:var(--brand); }
.address-unit.hidden { visibility:hidden; pointer-events:none; }
.location-pick { width:100%; display:flex; align-items:center; gap:12px; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--card); color:var(--text); text-align:start; cursor:pointer; }
.location-pick > span { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; background:var(--brand-soft); color:var(--brand); font-size:22px; }
.location-pick strong,.location-pick small { display:block; }
.location-pick small { color:var(--text-dim); margin-top:3px; }
.location-pick.has-location { border-color:#4c9b6a; }
.location-pick.has-location > span { background:color-mix(in srgb,#4c9b6a 18%,transparent); color:#67c88b; }
.default-address { display:flex; align-items:center; gap:9px; margin:14px 2px 4px; color:var(--text-dim); font-size:13px; cursor:pointer; }
.default-address input { width:18px; height:18px; accent-color:var(--brand); }
.email-change-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:0 0 24px; }
.email-change-steps > div { position:relative; display:grid; justify-items:center; gap:6px; color:var(--text-dim); text-align:center; }
.email-change-steps > div:not(:last-child)::after { content:''; position:absolute; top:14px; inset-inline-start:calc(50% + 18px); width:calc(100% - 28px); height:1px; background:var(--line); }
.email-change-steps span { position:relative; z-index:1; width:29px; height:29px; display:grid; place-items:center; border-radius:50%; background:var(--card); color:var(--text-dim); font-size:12px; font-weight:800; }
.email-change-steps small { font-size:10px; line-height:1.3; }
.email-change-steps .active span { background:var(--brand); color:#17130a; }
.email-change-steps .active small,.email-change-steps .done small { color:var(--text); }
.email-change-steps .done span { background:color-mix(in srgb,#4c9b6a 20%,var(--card)); color:#67c88b; }
.email-change-steps .done::after { background:#4c9b6a !important; }
.security-options,.security-events { display:grid; gap:8px; margin-bottom:22px; }
.security-options button,.security-options label { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--card); color:var(--text); text-align:start; cursor:pointer; }
.security-options strong,.security-options span { display:block; }.security-options span { color:var(--text-dim); font-size:11px; margin-top:3px; }
.security-options input { width:20px;height:20px;accent-color:var(--brand); }
.security-event { display:grid; grid-template-columns:1fr auto; gap:3px 10px; padding:11px 2px; border-bottom:1px solid var(--line); }
.security-event strong{font-size:13px}.security-event span,.security-event small{color:var(--text-dim);font-size:10px}.security-event small{grid-column:1/-1}
.danger-zone { padding:15px; border:1px solid color-mix(in srgb,#d76b6b 40%,var(--line)); border-radius:12px; margin-top:18px; }
.danger-zone p{color:var(--text-dim);font-size:12px;line-height:1.5;margin:5px 0 12px}.danger-zone button{border:0;background:transparent;color:#e27676;font-weight:800;cursor:pointer}
.mfa-qr { display:grid; justify-items:center; gap:10px; margin:0 0 18px; }.mfa-qr img{width:190px;max-width:100%;background:#fff;padding:10px;border-radius:10px}.mfa-qr code{max-width:100%;overflow-wrap:anywhere;color:var(--text-dim);font-size:11px}

@media (min-width: 900px) {
  .sheet-overlay { align-items: center; padding: 32px; }
  .sheet { border-radius: 16px; max-height: min(88vh, 760px); }
}
@media (max-width: 560px) {
  .hero { padding: 70px 18px 30px; border-radius: 18px; }
  .hero h1 { font-size: 34px; }
  .store-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .store-action { width: 100%; }
  .account-action { grid-column: 1 / -1; }
  .auth-sheet { padding: 0; }
  .auth-sheet .sheet-title-row { margin-bottom: 20px; }
  .saved-address { grid-template-columns:auto minmax(0,1fr); }
  .saved-address > button { grid-column:2; justify-self:start; }
}

/* Keep the refined opening authoritative over legacy storefront rules. */
.wrap > .hero .logo { width: clamp(78px, 8vw, 96px); height: clamp(78px, 8vw, 96px); }
.wrap > .hero h1 { font-size: clamp(38px, 5vw, 56px); letter-spacing: -.03em; }
.wrap > .offers-strip { padding-top: 34px; }
@media (max-width: 720px) {
  .wrap > .hero { padding: 76px 16px 18px; border-radius: 16px; }
  .wrap > .hero h1 { font-size: clamp(34px, 11vw, 44px); }
  .wrap > .offers-strip { padding-top: 26px; }
}


/* iPad / kiosk menu-only mode */
body.is-kiosk .menu-controls,body.is-kiosk #cartBar,body.is-kiosk .hero-service-bar,body.is-kiosk .review-link,body.is-kiosk .add-btn,body.is-kiosk .book-btn,body.is-kiosk .qty-ctl{display:none!important}body.is-kiosk{padding-bottom:24px}body.is-kiosk .hero{min-height:240px}body.is-kiosk .hero-inner{padding-top:36px}body.is-kiosk .item{cursor:default}body.is-kiosk .wrap{max-width:1120px}.kiosk-mode body{overscroll-behavior:none}


/* ===================== Madar Live Table context ===================== */
.table-order-banner{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;
  margin:0 0 16px;padding:14px 16px;border:1px solid color-mix(in srgb,var(--brand) 24%,transparent);
  border-radius:20px;background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 12%,var(--card)),var(--card));
  box-shadow:0 12px 28px rgba(0,0,0,.06)
}
.table-order-badge{
  min-width:76px;height:42px;padding:0 12px;border-radius:13px;display:grid;place-items:center;
  background:color-mix(in srgb,var(--brand) 15%,transparent);color:var(--brand);
  font-size:12px;font-weight:900;letter-spacing:.08em
}
.table-order-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.table-order-copy strong{font-size:15px}
.table-order-copy small{color:var(--text-dim);line-height:1.45}
.table-bill-btn{
  border:1px solid color-mix(in srgb,var(--brand) 25%,transparent);
  background:var(--card);color:var(--text);border-radius:14px;padding:10px 13px;
  display:flex;align-items:center;gap:7px;font:inherit;font-weight:800;cursor:pointer
}
.table-cart-label,.table-checkout-hero{
  display:flex;align-items:center;gap:13px;margin-bottom:16px;padding:15px 16px;
  border:1px solid color-mix(in srgb,var(--brand) 22%,transparent);
  border-radius:20px;background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 10%,var(--card)),var(--card))
}
.table-cart-label>span{font-size:25px}
.table-cart-label>div,.table-checkout-hero>div:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px}
.table-cart-label small,.table-checkout-hero small{color:var(--text-dim)}
.table-cart-label button,.table-checkout-hero button{
  border:0;border-radius:13px;padding:10px 12px;background:var(--brand-soft);color:var(--brand);
  font:inherit;font-weight:850;cursor:pointer
}
.table-checkout-icon{
  width:52px;height:52px;border-radius:17px;display:grid;place-items:center;font-size:24px;
  background:color-mix(in srgb,var(--brand) 15%,transparent)
}
.table-checkout-hero span{font-size:10px;font-weight:900;letter-spacing:.13em;color:var(--brand)}
.table-checkout-hero strong{font-size:19px}
.table-checkout-note{
  display:flex;gap:10px;align-items:flex-start;margin:16px 0;padding:13px 14px;border-radius:16px;
  background:color-mix(in srgb,var(--brand) 8%,transparent)
}
.table-checkout-note>span{
  width:27px;height:27px;border-radius:50%;display:grid;place-items:center;
  background:var(--brand);color:white;font-weight:900;flex:0 0 auto
}
.table-checkout-note>div{display:flex;flex-direction:column;gap:3px}
.table-checkout-note small{color:var(--text-dim);line-height:1.5}

.table-order-success-overlay{
  position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.55);
  display:grid;place-items:center;padding:18px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)
}
.table-order-success{
  width:min(440px,100%);padding:28px 22px;text-align:center;border-radius:28px;
  background:var(--card);color:var(--text);border:1px solid rgba(127,127,127,.16);
  box-shadow:0 30px 80px rgba(0,0,0,.3)
}
.table-order-success-icon{
  width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;
  background:rgba(43,196,124,.13);color:#2bc47c;font-size:31px;font-weight:900
}
.table-order-success-kicker{font-size:10px;letter-spacing:.16em;font-weight:900;color:var(--brand)}
.table-order-success h2{margin:7px 0 8px;font-size:24px}
.table-order-success p{margin:0 auto;color:var(--text-dim);line-height:1.65;max-width:360px}
.table-order-success-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:21px}
.table-order-success-actions button{
  min-height:48px;border-radius:14px;border:1px solid rgba(127,127,127,.15);
  background:transparent;color:var(--text);font:inherit;font-weight:850;cursor:pointer
}
.table-order-success-actions button.primary{background:var(--brand);color:#fff;border-color:transparent}

@media(max-width:600px){
  .table-order-banner{grid-template-columns:auto 1fr}
  .table-order-banner .table-bill-btn{grid-column:1/-1;justify-content:center}
  .table-cart-label,.table-checkout-hero{align-items:flex-start;flex-wrap:wrap}
  .table-cart-label button,.table-checkout-hero button{width:100%}
  .table-order-success-actions{grid-template-columns:1fr}
}


/* Table QR mode keeps the same storefront, without account/checkout chrome. */
body.table-order-mode .menu-account,.table-query-mode .menu-account{display:none!important}

.table-live-bill-dock{
  position:fixed;z-index:9900;left:50%;bottom:max(18px,env(safe-area-inset-bottom));
  transform:translateX(-50%);width:min(520px,calc(100% - 28px));min-height:62px;
  border:1px solid color-mix(in srgb,var(--brand) 30%,transparent);
  border-radius:20px;background:color-mix(in srgb,var(--card) 92%,transparent);
  color:var(--text);box-shadow:0 18px 54px rgba(0,0,0,.24);
  backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;
  padding:10px 14px;font:inherit;text-align:start;cursor:pointer
}
.table-live-bill-ico{
  width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
  background:color-mix(in srgb,var(--brand) 14%,transparent);font-size:20px
}
.table-live-bill-dock>span:nth-child(2){display:flex;flex-direction:column;gap:2px}
.table-live-bill-dock strong{font-size:14px}
.table-live-bill-dock small{color:var(--text-dim);font-size:11px}
.table-live-bill-arrow{font-size:28px;color:var(--brand)}
body.table-order-mode:has(.table-live-bill-dock) #cartBar.show{bottom:92px}

@media(max-width:600px){
  .table-order-banner{padding:11px 12px;border-radius:17px}
  .table-order-badge{min-width:64px;height:36px;font-size:10px}
  .table-order-copy small{font-size:11px}
  .table-live-bill-dock{bottom:max(12px,env(safe-area-inset-bottom));min-height:58px}
}
/* Premium branch switcher: one decisive control, no nested cards. */
.menu-branch-selector{max-width:1180px;margin:18px auto 4px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid color-mix(in srgb,var(--brand) 30%,var(--line));border-radius:18px;background:linear-gradient(125deg,color-mix(in srgb,var(--brand) 88%,#081735),color-mix(in srgb,var(--brand) 68%,#020611));color:#fff;box-shadow:0 16px 38px color-mix(in srgb,var(--brand) 18%,transparent)}.menu-branch-selector div{display:grid;gap:2px}.menu-branch-selector span{font-size:10px;font-weight:900;letter-spacing:.14em;color:#f1d27b}.menu-branch-selector strong{font-size:21px;letter-spacing:-.025em}.menu-branch-selector small{font-size:12px;color:#d6ddec}.menu-branch-selector select{min-width:210px;height:48px;border:1px solid #ffffff38;border-radius:12px;padding:0 42px 0 14px;background:#ffffff14;color:#fff;font:inherit;font-weight:800;cursor:pointer}.menu-branch-selector option{color:#171717;background:#fff}.menu-switching{opacity:.62;pointer-events:none;transition:opacity .15s}@media(max-width:650px){.menu-branch-selector{margin:14px 14px 2px;align-items:stretch;flex-direction:column}.menu-branch-selector select{width:100%;min-width:0}}

/* =====================================================================
   Madar mobile storefront v2
   A compact, app-like ordering surface that still inherits every brand.
   ===================================================================== */
@media (max-width: 640px) {
  html { scroll-padding-top: 118px; }
  body { background-image:none; }
  body::before { opacity:.28; animation:none; }
  .wrap { width:100%; padding:0 0 calc(112px + env(safe-area-inset-bottom)); overflow:clip; }

  .menu-controls {
    top:max(10px,env(safe-area-inset-top)); inset-inline:12px auto;
    max-width:calc(100vw - 24px); height:46px; padding:4px;
    border-radius:13px; background:color-mix(in srgb,var(--card) 94%,transparent);
    box-shadow:0 4px 8px rgba(0,0,0,.14);
  }
  .menu-controls button { width:36px; height:36px; border-radius:9px; }
  .menu-controls .menu-account { max-width:138px; padding-inline:9px; }
  .menu-controls .menu-account span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  .wrap > .hero {
    min-height:0; margin:0; padding:calc(76px + env(safe-area-inset-top)) 18px 22px;
    border:0; border-radius:0 0 16px 16px;
    background:color-mix(in srgb,var(--card) 90%,var(--brand-soft));
  }
  .wrap > .hero::after { display:none; }
  .hero.has-cover { padding-top:calc(76px + env(safe-area-inset-top)); }
  .hero-cover { position:absolute; inset:0; height:auto; opacity:.42; filter:saturate(.9) contrast(1.04); }
  .hero-cover::after { background:linear-gradient(to bottom,color-mix(in srgb,var(--page-bg) 5%,transparent),var(--page-bg) 94%); }
  .hero.has-cover .hero-inner { margin:0; }
  .hero .logo {
    width:68px; height:68px; margin:0 auto 12px; border-radius:15px;
    border:1px solid color-mix(in srgb,var(--brand) 64%,#fff);
    box-shadow:0 8px 20px rgba(0,0,0,.22);
  }
  .hero h1 { font-size:clamp(28px,8vw,36px); line-height:1.12; letter-spacing:-.025em; }
  .hero p { max-width:32rem; margin-top:7px; font-size:13px; line-height:1.55; }
  .hero-status { margin-top:11px; font-size:11px; }
  .hero-status>span { width:6px; height:6px; }

  .hero-service-bar {
    grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; width:100%;
    margin-top:17px; border-radius:12px; background:color-mix(in srgb,var(--card) 88%,transparent);
  }
  .hero-service { min-height:72px; padding:10px 5px; gap:5px; flex-direction:column; justify-content:center; text-align:center; border:0; border-inline-end:1px solid var(--line); }
  .hero-service:last-child { border:0; }
  .hero-service-icon { width:30px; height:30px; border-radius:8px; }
  .hero-service-icon svg { width:17px; height:17px; }
  .hero-service strong { font-size:10.5px; line-height:1.2; }
  .hero-service small { display:none; }

  .menu-branch-selector {
    margin:12px 12px 0; padding:14px; gap:12px; border-radius:14px;
    background:color-mix(in srgb,var(--brand) 72%,#111827); box-shadow:none;
  }
  .menu-branch-selector span { font-size:9px; letter-spacing:.1em; }
  .menu-branch-selector strong { font-size:18px; letter-spacing:-.02em; }
  .menu-branch-selector small { font-size:10.5px; }
  .menu-branch-selector select { height:44px; border-radius:10px; font-size:14px; }

  .offers-strip,.recommended { padding:24px 12px 0; }
  .offers-strip h2,.store-section-head h2 { font-size:20px; }
  .store-section-head { margin-bottom:10px; }
  .store-section-head span { font-size:11px; }
  .offer-slide { gap:10px; }
  .offer-tile { min-width:82vw; padding:15px; border-radius:14px; }
  .recommended-row { grid-auto-columns:88%; gap:10px; }

  .cats-wrap {
    position:sticky; top:calc(62px + env(safe-area-inset-top)); z-index:24;
    margin:14px 0 5px; border:0; border-block:1px solid var(--line); border-radius:0;
    overflow:visible; background:color-mix(in srgb,var(--page-bg) 96%,transparent);
    backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  }
  .cats-toggle { display:none!important; }
  .cats-wrap .cats,.cats-wrap.open .cats {
    display:flex!important; flex-direction:row; gap:7px; overflow-x:auto;
    padding:9px 12px; border:0; scroll-padding-inline:12px;
  }
  .cats-wrap .cat-chip {
    width:auto; min-height:36px; padding:8px 14px; text-align:center;
    border:1px solid var(--line); border-radius:10px; background:var(--card);
    font-size:12px; box-shadow:none;
  }
  .cats-wrap .cat-chip.active { color:#17130a; border-color:var(--brand); background:var(--brand); transform:none; }

  .section,.section.hide-heading { padding:18px 12px 0; scroll-margin-top:116px; }
  .section.hide-heading>h2 { display:block; margin:0 2px 11px; padding:0; font-size:19px; letter-spacing:-.015em; }
  .section.hide-heading>h2::after { display:none; }
  .item {
    position:relative; min-height:116px; margin-bottom:9px; padding:11px; gap:11px;
    align-items:center; border-radius:14px; background:var(--card); box-shadow:none;
  }
  .item:hover { transform:none; box-shadow:none; }
  .item-img,.item img,.item .item-img img { width:88px; height:94px; border-radius:11px; }
  .item .body { align-self:stretch; justify-content:center; padding-inline-end:42px; }
  .item h3 { margin:0 0 4px; font-size:15.5px; line-height:1.35; }
  .item p { font-size:11.5px; line-height:1.45; -webkit-line-clamp:2; }
  .item .price { margin-top:5px; padding:0; gap:5px; font-size:14.5px; line-height:1.3; }
  .item .price .old-price { font-size:10.5px; }
  .item .price small { font-size:8px; padding:2px 5px; }
  .item .review-link { margin-top:3px; font-size:9.5px; }
  .item>.add-btn,.item>[id^="ctl-"],.item>.book-btn,.item>.soldout-tag {
    position:absolute; inset-inline-end:11px; bottom:11px; align-self:auto;
  }
  .add-btn { width:38px; height:38px; border-radius:11px; font-size:20px; }
  .qty-ctl { gap:4px; padding:2px; border:1px solid var(--line); border-radius:11px; background:var(--page-bg); }
  .qty-ctl button { width:30px; height:30px; border:0; border-radius:8px; }
  .qty-ctl span { min-width:20px; font-size:12px; }
  .book-btn { min-height:36px; padding:7px 9px; border-radius:10px; font-size:10px; }
  .feat-tag { top:5px; inset-inline-start:5px; padding:3px 6px; font-size:8px; }
  .img-count { font-size:8px; }

  #cartBar {
    bottom:max(10px,env(safe-area-inset-bottom)); inset-inline:10px;
    min-height:58px; max-width:none; margin:0; padding:10px 12px;
    border:1px solid color-mix(in srgb,var(--brand) 60%,#fff); border-radius:14px;
    box-shadow:0 7px 14px rgba(0,0,0,.22);
  }
  #cartBar .cb-count { width:34px; height:34px; border-radius:9px; }
  #cartBar .cb-label { font-size:13px; }
  #cartBar .cb-total { padding:5px 9px; font-size:13px; }
  .sheet { max-height:92dvh; padding:18px 14px max(18px,env(safe-area-inset-bottom)); border-radius:16px 16px 0 0; }
}

@media (max-width: 360px) {
  .hero-service strong { font-size:9.5px; }
  .item-img,.item img,.item .item-img img { width:78px; height:88px; }
  .item .body { padding-inline-end:36px; }
  #cartBar .cb-label { font-size:12px; }
}

@media (prefers-reduced-motion: reduce) {
  #cartBar.show,.menu-switching { animation:none; transition:none; }
}

/* Madar app install prompt */
.madar-app-banner{display:none;position:fixed;z-index:38;top:max(72px,calc(58px + env(safe-area-inset-top)));inset-inline:12px;align-items:center;gap:11px;padding:10px 36px 10px 10px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--text);box-shadow:0 6px 14px rgba(0,0,0,.16)}
.madar-app-banner.show{display:flex}
.madar-app-banner img{width:42px;height:42px;border-radius:11px;object-fit:cover;flex:0 0 42px}
.madar-app-banner>div:nth-of-type(1){min-width:0;flex:1}
.madar-app-banner strong,.madar-app-banner span{display:block}
.madar-app-banner strong{font-size:12.5px;line-height:1.25}
.madar-app-banner span{margin-top:2px;color:var(--text-dim);font-size:9.5px;line-height:1.35}
.madar-app-actions{display:flex;gap:6px;flex:0 0 auto}
.madar-app-actions a{display:grid;place-items:center;min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:9px;color:var(--text);font-size:10px;font-weight:800;text-decoration:none}
.madar-app-actions a:last-child{border-color:var(--brand);background:var(--brand);color:#17130a}
.madar-app-dismiss{position:absolute;top:4px;inset-inline-end:5px;width:27px;height:27px;border:0;background:transparent;color:var(--text-dim);font-size:19px;cursor:pointer}
@media(min-width:760px){.madar-app-banner{inset-inline:auto 20px;width:430px}}
@media(max-width:390px){.madar-app-banner{gap:8px}.madar-app-banner img{width:36px;height:36px;flex-basis:36px}.madar-app-banner span{display:none}.madar-app-actions a{padding:0 8px}}
@media(prefers-reduced-motion:reduce){.madar-app-banner{transition:none}}

/* Photo menu and product customization */
.item-img-button{display:block;padding:0;border:0;background:transparent;cursor:pointer;font:inherit;color:inherit;text-align:inherit}
body[data-store-template="photo_menu"] .section{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:16px}
body[data-store-template="photo_menu"] .section{scroll-margin-top:115px}
body[data-store-template="photo_menu"] .section>h2{display:block;grid-column:1/-1;margin-block-end:0}
body[data-store-template="photo_menu"] .section>.item{display:grid;align-content:start;position:relative;min-width:0;margin:0;padding:0 0 48px;overflow:hidden}
body[data-store-template="photo_menu"] .item-img{width:100%;height:auto;aspect-ratio:4/3;border-radius:0}
body[data-store-template="photo_menu"] .item-img img{width:100%;height:100%;object-fit:cover}
body[data-store-template="photo_menu"] .item>.body{padding:12px 14px 0}
body[data-store-template="photo_menu"] .item>.add-btn,body[data-store-template="photo_menu"] .item>.soldout-tag,body[data-store-template="photo_menu"] .item>.book-btn{position:absolute;inset-inline-end:12px;inset-block-end:10px}
.opt-product-gallery{overflow:hidden;margin-block-end:12px}
.opt-product-gallery>img{display:block;width:100%;max-height:min(42vh,340px);object-fit:contain;border-radius:14px;background:var(--surface,transparent)}
.opt-image-list{display:flex;gap:8px;overflow:auto;padding-block:8px 3px}
.opt-image-list button{flex:0 0 54px;width:54px;height:54px;padding:2px;border:2px solid transparent;border-radius:9px;background:none;cursor:pointer}
.opt-image-list button[aria-pressed=true]{border-color:var(--brand)}
.opt-image-list img{width:100%;height:100%;border-radius:5px;object-fit:cover}
.opt-product-summary{margin-block:4px 16px}
.opt-product-summary p{margin-block:5px;color:var(--text-dim)}
.opt-product-summary strong{font-variant-numeric:tabular-nums}
#optSheet .opt-group{min-width:0;border:0}
#optSheet button.opt-row{width:100%;text-align:start;color:inherit;font:inherit}
.opt-order-controls{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center}
.opt-order-controls small{grid-column:1/-1;color:var(--text-dim)}
.opt-quantity{display:flex;align-items:center;gap:8px;white-space:nowrap}
.opt-quantity button{min-width:38px;min-height:38px;padding:0;background:transparent;border:1px solid var(--line);border-radius:9px;color:inherit;font:inherit;cursor:pointer}
#optSubmit:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:570px){
  body[data-store-template="photo_menu"] .section{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body[data-store-template="photo_menu"] .item>.body{padding:9px 10px 0}
}
