/* ==========================================================================
   يمام النيل — التصميم
   لتغيير الألوان عدّل القيم داخل :root فقط
   ========================================================================== */
:root {
  /* ألوان شعار يمام النيل: وردي بدرجاته + أبيض */
  --bg: #FFF8FA;          /* خلفية الصفحة */
  --paper: #FFFFFF;       /* البطاقات */
  --blush: #FFEAF1;       /* خلفيات وردية فاتحة */
  --blush-2: #FDD9E5;
  --line: #F8D3E0;        /* الحدود */
  --pink: #E8578A;        /* الوردي الأساسي */
  --pink-2: #F27BA3;
  --pink-3: #F9A8C4;
  --rasp: #C2185B;        /* وردي غامق — الأسعار والعناوين */
  --rasp-2: #A3123F;
  --ink: #3F1A2B;         /* النصوص */
  --muted: #8E5B71;
  --grad: linear-gradient(135deg, #D63966 0%, #E8578A 50%, #F27BA3 100%);
  --btn: linear-gradient(135deg, #B8154F 0%, #D42F68 100%);
  --shadow: 0 1px 2px rgba(163, 18, 63, .06), 0 10px 26px -12px rgba(194, 24, 91, .28);
  --shadow-lg: 0 26px 60px -22px rgba(163, 18, 63, .45);
  --r: 22px;
  --font: "Tajawal", system-ui, sans-serif;
  --display: "Marhey", "Tajawal", system-ui, sans-serif;
  --script: "Dancing Script", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 110% 30%, #FFE3EC 0%, transparent 60%),
    radial-gradient(800px 480px at -10% 70%, #FFEFF4 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--pink-2); outline-offset: 2px; }
#app { max-width: 1180px; margin: 0 auto; }

/* ---------- شاشة البداية ---------- */
#splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #FFF3F7 0%, #FBCFDE 100%);
  transition: opacity .5s ease, visibility .5s;
}
#splash img { width: 150px; border-radius: 50%; box-shadow: 0 0 0 6px #fff, var(--shadow-lg); animation: pulse 1.4s ease-in-out infinite; }
#splash.hide { opacity: 0; visibility: hidden; }
@keyframes pulse { 50% { transform: scale(1.05); } }

/* ---------- زخرفة (خط — قلب — خط مثل الشعار) ---------- */
.orn { display: inline-flex; align-items: center; gap: 10px; color: var(--rasp); }
.orn i { width: 52px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--pink)); }
.orn i:last-child { background: linear-gradient(270deg, transparent, var(--pink)); }
.orn svg { width: 16px; height: 16px; }

/* ---------- الرأس ---------- */
.hero { position: relative; text-align: center; padding: 74px 16px 24px; isolation: isolate; }
.hero-band { position: absolute; inset: 0 0 auto 0; height: 210px; z-index: -1; overflow: hidden; }
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 720px) {
  .hero { padding-top: 90px; }
  .hero-band { height: 250px; margin: 0 16px; border-radius: 0 0 40px 40px; }
}
.spk {
  position: absolute; width: 14px; height: 14px; background: #fff; opacity: .9;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 3.2s ease-in-out infinite;
}
.spk.s1 { top: 26px; right: 12%; }
.spk.s2 { top: 70px; right: 26%; width: 9px; height: 9px; animation-delay: .8s; }
.spk.s3 { top: 34px; left: 14%; width: 18px; height: 18px; animation-delay: 1.4s; }
.spk.s4 { top: 96px; left: 28%; width: 8px; height: 8px; animation-delay: 2s; }
.spk.s5 { top: 16px; left: 44%; width: 10px; height: 10px; animation-delay: 2.6s; }
@keyframes twinkle { 50% { transform: scale(.55) rotate(45deg); opacity: .5; } }

.hero .logo {
  width: 176px; height: 176px; margin: 0 auto; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--pink-3), var(--shadow-lg);
  animation: rise .8s var(--ease) both;
}
.shop-name {
  margin: 16px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 8vw, 42px);
  line-height: 1.25; color: var(--rasp);
}
.tagline { margin: 4px 0 16px; font-weight: 700; font-size: 15.5px; color: var(--muted); }

.pills { list-style: none; margin: 0 auto 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 560px; }
.pills li {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px 6px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--paper); border: 1px solid var(--line); color: var(--rasp); font-weight: 800; font-size: 12.5px;
  box-shadow: var(--shadow);
}
.pills svg { width: 17px; height: 17px; color: var(--pink); flex: none; }

.search {
  display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 18px; height: 52px; box-shadow: var(--shadow);
}
.search svg { width: 20px; color: var(--pink); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: #B98A9D; }
.search:focus-within { border-color: var(--pink-2); box-shadow: 0 0 0 4px rgba(232, 87, 138, .15), var(--shadow); }

/* ---------- تبويبات المجموعات (تختفي عند وجود مجموعة واحدة) ---------- */
.tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; justify-content: center; padding: 12px 16px; transition: background .3s, box-shadow .3s; }
.tabs[data-single] { display: none; }
.tabs.stuck { background: rgba(255, 248, 250, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: all .25s; }
.tabs button.on { background: var(--btn); color: #fff; border-color: transparent; }

/* ---------- المجموعة ---------- */
.group { padding: 22px 16px 8px; scroll-margin-top: 70px; }
.group-head { text-align: center; margin-bottom: 20px; }
.group-head h2 { margin: 8px 0 4px; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 6.4vw, 34px); color: var(--rasp); line-height: 1.3; }
.group-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- بطاقات الأقسام ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .sec-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.sec-card {
  position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: rise .6s var(--ease) both; animation-delay: var(--d, 0ms);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.sec-card .sec-media { aspect-ratio: 1 / 1; margin: 7px 7px 0; border-radius: 20px; }
.sec-card .media img { transition: transform .8s var(--ease), opacity .5s; }
.sec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sec-card:hover .media img { transform: scale(1.05); }
.sec-card:active { transform: scale(.98); }
.sec-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px 13px 10px; }
.sec-info h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(15px, 4.1vw, 19px); line-height: 1.4; color: var(--ink); text-wrap: balance; }
.sec-info span { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--pink); }
.sec-go {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blush); color: var(--rasp); transition: background .25s, color .25s, transform .25s;
}
.sec-go svg { width: 18px; }
@media (max-width: 719px) {
  .sec-go { display: none; }
  .sec-info { justify-content: center; text-align: center; padding: 10px 8px 13px; }
}
.sec-card:hover .sec-go { background: var(--btn); color: #fff; transform: translateX(-3px); }

/* ---------- الصورة والبديل ---------- */
.media { position: relative; overflow: hidden; background: var(--blush); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.media img.ok { opacity: 1; }
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--pink);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(circle, rgba(232, 87, 138, .12) 1.4px, transparent 1.6px) 0 0 / 16px 16px,
    linear-gradient(160deg, #FFF0F5, #FBD0DF);
}
.ph svg { width: 44%; max-width: 120px; filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .9)); }
.media .ph-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }

/* ---------- قسم التوصيل والحجز ---------- */
.info { padding: 34px 16px 8px; }
.info-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .info-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; } }
.info-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; box-shadow: var(--shadow); }
.info-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--rasp); }
.info-box h3:not(:first-child) { margin-top: 16px; }
.info-box h3 svg { width: 22px; height: 22px; color: var(--pink); flex: none; }
.info-box p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 14.5px; }
.zones { display: grid; gap: 8px; margin-top: 10px; }
.zone { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--blush); font-weight: 800; }
.zone b { color: var(--rasp); font-size: 17px; }
.zone small { font-size: .72em; color: var(--pink); }
.steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; }
.steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: #fff; font-size: 14px; }

/* ---------- صفحة القسم ---------- */
.sec-hero { position: relative; height: 310px; overflow: hidden; border-radius: 0 0 34px 34px; }
@media (min-width: 720px) { .sec-hero { height: 380px; margin: 0 16px; border-radius: 0 0 40px 40px; } }
.sec-hero .hero-media { position: absolute; inset: 0; }
.sec-hero .media img { object-position: center 40%; }
.sec-hero .ph svg { width: 120px; margin-bottom: 70px; }
.sec-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(122, 12, 50, .86) 0%, rgba(163, 18, 63, .4) 45%, rgba(163, 18, 63, 0) 75%); }
.back, .mini-logo { position: absolute; top: 16px; z-index: 3; }
.back {
  right: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .94); color: var(--rasp); box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.back svg { width: 22px; }
.mini-logo { left: 16px; width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, var(--shadow); }
.sec-hero-text { position: absolute; inset: auto 0 0 0; padding: 0 22px 26px; color: #fff; z-index: 2; animation: rise .6s var(--ease) both; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--script); font-size: 19px; color: #FFD3E2; }
.sec-hero-text h1 { margin: 2px 0 4px; font-family: var(--display); font-size: clamp(30px, 8vw, 42px); font-weight: 700; line-height: 1.25; }
.sec-hero-text p { margin: 0; opacity: .92; font-size: 15px; line-height: 1.7; max-width: 560px; }

.chips {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 14px 16px; margin-top: 4px; transition: background .3s, box-shadow .3s;
}
.chips::-webkit-scrollbar { display: none; }
.chips.stuck { background: rgba(255, 248, 250, .93); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.chips a {
  flex: none; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted); transition: all .25s;
}
.chips a.on { background: var(--btn); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -8px rgba(194, 24, 91, .7); }

.items-wrap { padding: 6px 16px 10px; }

/* ---------- بطاقات الأصناف ---------- */
.item-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .item-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1020px) { .item-grid { grid-template-columns: repeat(4, 1fr); } }

.item {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
  cursor: pointer; animation: rise .5s var(--ease) both;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.item:hover, .item:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.item:active { transform: scale(.985); }
.item .media { aspect-ratio: 1 / 1; }
.item.off { filter: grayscale(.7); opacity: .7; }
.badge {
  position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 11.5px; font-weight: 800;
  padding: 5px 10px; border-radius: 99px; color: #fff; background: var(--btn);
  box-shadow: 0 6px 14px -6px rgba(163, 18, 63, .7);
}
.badge.na { right: auto; left: 10px; background: #9C7C89; box-shadow: none; }
.badge.inline { position: static; display: inline-block; margin-bottom: 4px; }
.item-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 12px 12px 14px; }
.item-sec { font-size: 11.5px; font-weight: 700; color: var(--pink); margin-bottom: 2px; }
.item h3 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.4; }
.item p {
  margin: 5px 0 10px; font-size: 13px; line-height: 1.6; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price { margin-top: auto; font-weight: 800; font-size: 17px; color: var(--rasp); }
.price small, .opts small, .pick small { font-size: .72em; font-weight: 700; color: var(--pink); }
.price-text { font-size: 14px; color: var(--rasp); }
.price.big { font-size: 26px; margin: 16px 0 6px; }
.item-add {
  position: absolute; left: 10px; top: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--btn); color: #fff; font-size: 22px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 3px #fff, 0 8px 16px -6px rgba(163, 18, 63, .7);
}

.opts { list-style: none; margin: auto 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line); }
.opts li { display: flex; align-items: baseline; gap: 6px; font-size: 13px; padding: 3px 0; }
.opt-l { color: var(--ink); font-weight: 500; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dots { flex: 1; border-bottom: 1px dotted var(--pink-3); transform: translateY(-3px); min-width: 4px; }
.opts b { flex: none; font-weight: 800; color: var(--rasp); white-space: nowrap; }

.results-head { padding: 18px 16px 10px; text-align: center; color: var(--muted); font-weight: 700; }
#results .item-grid { padding: 0 16px 20px; }

/* ---------- نافذة الصنف ---------- */
#sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(90, 14, 44, .45); backdrop-filter: blur(4px); opacity: 0; transition: opacity .28s; }
.sheet-panel {
  position: absolute; inset: auto 0 0 0; max-height: 92vh; overflow-y: auto; background: var(--paper);
  border-radius: 28px 28px 0 0; transform: translateY(100%); transition: transform .32s var(--ease);
  box-shadow: var(--shadow-lg); padding-bottom: env(safe-area-inset-bottom);
}
#sheet.open .sheet-backdrop { opacity: 1; }
#sheet.open .sheet-panel { transform: translateY(0); }
@media (min-width: 720px) {
  .sheet-panel { inset: 50% auto auto 50%; width: 520px; max-height: 90vh; border-radius: 28px; transform: translate(-50%, -45%) scale(.96); opacity: 0; transition: transform .3s, opacity .3s; }
  #sheet.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
}
.sheet-media { aspect-ratio: 16 / 11; }
.sheet-media .ph svg { width: 110px; }
.sheet-x {
  position: absolute; top: 14px; left: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .94); color: var(--rasp); box-shadow: var(--shadow); cursor: pointer; font-size: 16px;
}
.sheet-body { padding: 20px 22px 24px; }
.sheet-body .eyebrow { font-family: var(--font); font-size: 13.5px; font-weight: 800; color: var(--pink); }
.sheet-body h2 { margin: 4px 0 8px; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.desc { margin: 0; color: var(--muted); line-height: 1.8; font-size: 15px; }
.pick-title { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; font-weight: 800; font-size: 14.5px; }
.pick-title .orn i { width: 18px; }
.picks { display: grid; gap: 10px; }
.pick {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: right;
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer;
  transition: all .2s;
}
.pick-l { font-weight: 800; font-size: 15.5px; }
.pick-l em { display: block; font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pick b { font-size: 17px; font-weight: 800; color: var(--rasp); white-space: nowrap; }
.pick.on { border-color: var(--pink); background: var(--blush); box-shadow: 0 0 0 4px rgba(232, 87, 138, .14); }
.na-note { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--blush); color: var(--rasp); font-weight: 700; font-size: 14px; }

/* ---------- التذييل ---------- */
.foot { text-align: center; padding: 44px 16px 48px; color: var(--muted); }
.foot-logo { width: 88px; height: 88px; margin: 16px auto 6px; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--pink-3), var(--shadow); }
.foot-name { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--rasp); }
.foot .socials { margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0 auto 14px; display: grid; gap: 8px; font-size: 14.5px; max-width: 460px; }
.foot li { display: flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.6; }
.foot li svg { width: 18px; height: 18px; color: var(--pink); flex: none; }
.foot a { color: var(--rasp); font-weight: 800; }
.foot small { font-size: 12px; opacity: .85; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- روابط التواصل ---------- */
.socials { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-socials { margin: 0 0 18px; }
.soc {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--rasp);
  box-shadow: var(--shadow); transition: transform .25s, background .25s, color .25s;
}
.soc svg { width: 21px; height: 21px; }
.soc:hover, .soc:active { transform: translateY(-2px); background: var(--btn); color: #fff; border-color: transparent; }

/* ==========================================================================
   الإضافة إلى السلة (داخل نافذة الصنف)
   ========================================================================== */
.note-field { display: block; margin-top: 18px; }
.note-field span { display: block; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.note-field em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.note-field input, .c-form input:not([type="radio"]), .c-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.note-field input:focus, .c-form input:focus, .c-form textarea:focus { border-color: var(--pink-2); box-shadow: 0 0 0 4px rgba(232, 87, 138, .14); }
.add-row { display: flex; gap: 10px; margin-top: 16px; position: sticky; bottom: 0; padding: 10px 0 4px; background: linear-gradient(to top, var(--paper) 70%, transparent); }
.stepper { display: flex; align-items: center; background: var(--bg); border: 1.5px solid var(--line); border-radius: 16px; flex: none; }
.stepper button { width: 44px; height: 52px; border: 0; background: none; font-size: 22px; font-weight: 700; color: var(--rasp); cursor: pointer; display: grid; place-items: center; }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; font-size: 17px; }
.stepper.sm { border-radius: 12px; }
.stepper.sm button { width: 36px; height: 36px; font-size: 18px; }
.stepper.sm output { min-width: 20px; font-size: 15px; }
.add-btn {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 18px; height: 56px;
  border: 0; border-radius: 16px; cursor: pointer; color: #fff; font-weight: 800; font-size: 16px;
  background: var(--btn); box-shadow: 0 12px 24px -10px rgba(163, 18, 63, .75);
}
.add-btn span { white-space: nowrap; }
.add-btn b { font-size: 15px; white-space: nowrap; }
.add-btn b small { color: #FFD3E2; }
.add-btn:active { transform: scale(.98); }

/* ==========================================================================
   شريط السلة العائم
   ========================================================================== */
#cart-bar {
  position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translate(-50%, 140%); width: min(520px, calc(100% - 32px)); height: 62px;
  display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; border: 0; border-radius: 20px; cursor: pointer;
  background: var(--btn); color: #fff; box-shadow: 0 18px 40px -12px rgba(163, 18, 63, .65);
  transition: transform .4s var(--ease);
}
#cart-bar:not(.show) { visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
#cart-bar.show { transform: translate(-50%, 0); }
body.locked #cart-bar { transform: translate(-50%, 140%); }
#cart-bar.bump .cb-icon { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.25); } 60% { transform: scale(.92); } }
.cb-icon { position: relative; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #fff; color: var(--rasp); flex: none; }
.cb-icon svg { width: 22px; }
.cb-icon i { position: absolute; top: -7px; left: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: var(--rasp-2); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.cb-label { flex: 1; text-align: right; font-weight: 800; font-size: 16px; }
#cart-bar b { font-weight: 800; white-space: nowrap; }
body.has-cart .foot { padding-bottom: 116px; }

/* ==========================================================================
   نافذة السلة والطلب
   ========================================================================== */
#cart { position: fixed; inset: 0; z-index: 60; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(90, 14, 44, .45); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.cart-panel {
  position: absolute; inset: auto 0 0 0; max-height: 94vh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 28px 28px 0 0; transform: translateY(100%);
  transition: transform .34s var(--ease); box-shadow: var(--shadow-lg); padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 720px) {
  .cart-panel { inset: 0 auto 0 0; width: 480px; max-height: none; border-radius: 0 28px 28px 0; transform: translateX(-100%); }
}
#cart.open .cart-backdrop { opacity: 1; }
#cart.open .cart-panel { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); flex: none; }
.cart-head h2 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--rasp); }
.c-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--rasp); display: grid; place-items: center; cursor: pointer; font-size: 15px; }
.c-icon svg { width: 20px; }
.c-icon.ghost { visibility: hidden; }
.cart-list { overflow-y: auto; padding: 8px 16px; flex: 1; }
.c-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.c-thumb { width: 78px; height: 78px; border-radius: 14px; flex: none; }
.c-thumb .ph svg { width: 55%; }
.c-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.c-info h4 { margin: 0; font-size: 15.5px; font-weight: 800; }
.c-opt { font-size: 13px; color: var(--rasp); font-weight: 700; }
.c-note { font-size: 12.5px; color: var(--muted); }
.c-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.c-row b { font-weight: 800; color: var(--rasp); font-size: 15px; }
.cart-foot { padding: 14px 16px 18px; border-top: 1px solid var(--line); flex: none; background: var(--paper); }
.c-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.c-total b { font-size: 21px; color: var(--rasp); }
.c-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.c-sum b { color: var(--ink); font-weight: 800; }
.c-sum em { font-style: normal; font-weight: 700; color: var(--pink); font-size: 13px; }
.c-totals { padding: 14px 16px 8px; border-radius: 18px; background: var(--blush); }
.c-totals .c-total { margin: 8px 0 4px; padding-top: 8px; border-top: 1px dashed var(--pink-3); }
.c-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.c-hint svg { width: 17px; height: 17px; color: var(--pink); flex: none; }
.c-hint.center { justify-content: center; text-align: center; margin-top: -2px; }
.primary {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; margin-top: 10px;
  border: 0; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 800; font-size: 16.5px; color: #fff !important;
  background: var(--btn); box-shadow: 0 12px 24px -10px rgba(163, 18, 63, .75);
}
.primary svg { width: 22px; }
.wa-send { background: linear-gradient(135deg, #168A43, #1FAF57); box-shadow: 0 12px 24px -10px rgba(22, 138, 67, .7); }
.ghost-btn { margin-top: 12px; padding: 12px 22px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--rasp); font-weight: 800; cursor: pointer; }
.c-empty { padding: 50px 20px 60px; text-align: center; color: var(--muted); }
.c-empty svg { width: 64px; color: var(--pink); }
.c-empty p { font-weight: 700; font-size: 16px; }

.c-form { overflow-y: auto; padding: 14px 16px 22px; display: grid; gap: 16px; }
.c-form label > span { display: block; font-weight: 800; font-size: 14px; margin-bottom: 7px; }
.c-form i { color: #C62828; font-style: normal; }
.c-form textarea { resize: vertical; min-height: 52px; }
.c-form label.err input, .c-form label.err textarea { border-color: #C62828; box-shadow: 0 0 0 4px rgba(198, 40, 40, .12); }

.fs { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.fs legend { display: flex; align-items: center; gap: 6px; padding: 0; margin-bottom: 10px; font-weight: 800; font-size: 14.5px; }
.fs legend svg { width: 20px; height: 20px; color: var(--pink); }
.fs.err .seg span, .fs.err .day span, .fs.err .slots span { border-color: #C62828; }
.fs.err legend { color: #C62828; }
.city-note { margin: -2px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--blush); border: 1.5px dashed var(--pink-3); color: var(--rasp); font-size: 13px; line-height: 1.6; }

.seg, .slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 420px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.seg label, .slots label, .day { position: relative; }
.seg input, .slots input, .day input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .slots span, .day span {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 1px; margin: 0 !important;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; transition: all .2s; text-align: center;
}
.seg span { min-height: 58px; }
.seg span b { font-size: 15px; font-weight: 800; }
.seg span small { font-size: 12.5px; font-weight: 700; color: var(--rasp); }
.slots span { height: 46px; font-size: 14px; font-weight: 700; }
.seg input:checked + span, .slots input:checked + span, .day input:checked + span {
  border-color: var(--pink); background: var(--blush); color: var(--rasp); box-shadow: 0 0 0 3px rgba(232, 87, 138, .16);
}
.seg input:focus-visible + span, .slots input:focus-visible + span, .day input:focus-visible + span { outline: 3px solid var(--pink-2); outline-offset: 2px; }

.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; scroll-snap-align: start; }
.day span { width: 78px; height: 62px; }
.day span b { font-size: 14px; font-weight: 800; }
.day span small { font-size: 12px; color: var(--muted); font-weight: 700; }
.day input:checked + span small { color: var(--rasp); }
.day.other span { border-style: dashed; }
.other-date[hidden] { display: none; }
/* بالماوس: الأيام تلتف بصفوف بدل التمرير الأفقي */
@media (hover: hover) and (pointer: fine) {
  .days { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 4px; }
}

.geo-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 14px; border: 1.5px dashed var(--pink-2); background: var(--bg); color: var(--rasp); font-weight: 800; cursor: pointer; }
.geo-btn svg { width: 19px; height: 19px; }
.geo-btn.ok { border-style: solid; background: #F1FAF3; border-color: #3BB26A; color: #1E7A43; }

.c-done { padding: 26px 20px 30px; text-align: center; overflow-y: auto; }
.c-done img { width: 110px; height: 110px; border-radius: 50%; margin: 16px auto 8px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--pink-3), var(--shadow); }
.c-done h3 { font-family: var(--display); font-size: 25px; margin: 6px 0; color: var(--rasp); }
.c-done p { color: var(--muted); line-height: 1.9; margin: 0 0 8px; }

/* إشعار صغير */
#toast {
  position: fixed; z-index: 90; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translate(-50%, -150%);
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 14px; background: var(--rasp-2); color: #fff;
  font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-lg); text-align: center;
  opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .3s, visibility .35s;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
