/* ═══════════════════════════════════════════════════════════════════════
   متجر المحل — تصميمٌ حديث.

   **ولماذا لا تدرّجٌ أزرقُ عريضٌ في الصدر:** هذا شكلُ مواقع 2015، ويقول
   للزائر إن الموقع قديم قبل أن يقرأ سطراً. والمتاجر التي تبيع اليوم تبدو
   على العكس: أرضيةٌ هادئة، وخطٌّ كبيرٌ واثق، وصورُ المنتجات هي اللون.

   **ثلاث قواعد يقوم عليها كل ما تحت:**
   ١. **اللون من البضاعة لا من الخلفية.** الخلفية شبه بيضاء، والصور تلوّنها.
   ٢. **الخطّ يحمل الهرم لا الحدود.** أحجامٌ متباعدة وتتبّعٌ ضيّق، وحدودٌ
      رفيعةٌ جداً أو معدومة — فالبطاقة تُعرف بمسافتها لا بإطارها.
   ٣. **المسافة أوسع ممّا يبدو لازماً.** ازدحامُ العناصر هو ما يجعل الصفحة
      تُقرأ رخيصةً مهما حسُنت ألوانها.

   ولون العلامة يُحقن متغيّراً واحداً (`--accent`) ويُستعمل في الأفعال فقط.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --accent: #111827;
  --accent-ink: #fff;

  --ink: #0A0F1A;
  --ink-2: #3D4757;
  --ink-3: #6B7688;
  --line: #ECEEF2;
  --line-2: #E2E5EB;
  --bg: #FBFBFD;
  --surface: #FFFFFF;
  --tint: #F4F5F8;
  --ok: #0B8457;
  --off: #A3AAB7;
  --sale: #D91C1C;

  --r-xs: 10px;
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;

  --sh-1: 0 1px 2px rgba(10, 15, 26, .04);
  --sh-2: 0 4px 14px rgba(10, 15, 26, .06);
  --sh-3: 0 12px 40px rgba(10, 15, 26, .12);

  --pad: 20px;
  --wrap: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-ink: #0A0F1A;
    --ink: #F2F4F8;
    --ink-2: #B9C1CE;
    --ink-3: #808B9C;
    --line: #1E242E;
    --line-2: #29313D;
    --bg: #0A0D12;
    --surface: #12161D;
    --tint: #171C24;
    --ok: #35C48D;
    --off: #5B6574;
    --sale: #FF6B6B;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .5);
    --sh-2: 0 4px 14px rgba(0, 0, 0, .45);
    --sh-3: 0 12px 40px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: Tajawal, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
body { padding-bottom: 100px; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.6px; line-height: 1.22; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ── الحالات ─────────────────────────────────────────────────────────── */

.loading, .state {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px; padding: 24px; text-align: center; color: var(--ink-3);
}
.spinner {
  width: 30px; height: 30px;
  border: 2px solid var(--line-2); border-top-color: var(--ink);
  border-radius: 50%; animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.state-mark {
  width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: 50%; background: var(--tint);
  font-size: 26px; font-weight: 800; color: var(--ink-3);
}
.state h1 { font-size: 24px; color: var(--ink); }
.state p { font-size: 15px; line-height: 1.9; max-width: 34ch; }
.ghost {
  margin-top: 6px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14px; font-weight: 700;
}

/* ── الشريط العلوي ───────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.topbar.stuck { border-bottom-color: var(--line); }
.topbar-in {
  max-width: var(--wrap); margin-inline: auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; gap: 12px;
}
.topbar img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.topbar b { font-size: 15px; font-weight: 800; letter-spacing: -.3px; }
.topbar-cart {
  position: relative; margin-inline-start: auto;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-2);
}
.topbar-cart i {
  position: absolute; top: -4px; inset-inline-start: -4px;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 10px; font-weight: 800; font-style: normal;
}

/* ── الصدر — تحريريٌّ لا تدرّج ───────────────────────────────────────── */

.hero {
  position: relative;
  max-width: var(--wrap); margin-inline: auto;
  padding: 52px var(--pad) 36px;
  text-align: center;
}

/* **غلافٌ حقيقي للمحل.** يُقصّ من مركزه، فارتفاعُه يتغيّر بالمقاس ولا
   يُقطع منه ما يهمّ: على الهاتف شريطٌ عريض، وعلى الحاسوب أوسع. */
.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  background: var(--tint) center / cover no-repeat;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  overflow: hidden;
}
@media (min-width: 700px) { .cover { aspect-ratio: 32 / 9; max-height: 340px; } }
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,10,18,.05) 40%,
    color-mix(in srgb, var(--bg) 92%, transparent) 100%);
}

/* الشعار يجلس على حدّ الغلاف — علامةٌ يعرفها الزبون قبل أن يقرأ. */
.hero.with-cover { padding-top: 0; }
.hero.with-cover .hero-inner { margin-top: -48px; }
.hero.with-cover h1 { font-size: clamp(26px, 6.6vw, 42px); }

.hero-inner { position: relative; z-index: 2; max-width: 680px; margin-inline: auto; }

.logo {
  width: 92px; height: 92px; object-fit: cover; margin-inline: auto;
  border-radius: 26px; margin-bottom: 20px;
  border: 4px solid var(--bg);
  background: var(--surface);
  box-shadow: var(--sh-2);
}
.hero:not(.with-cover) .logo { width: 66px; height: 66px; border-radius: 20px; border: 0; }
.hero h1 {
  font-size: clamp(30px, 8.4vw, 52px);
  font-weight: 800; letter-spacing: -1.4px; line-height: 1.12;
}
.hero-sub {
  margin-top: 14px; font-size: clamp(15px, 4vw, 18px); line-height: 1.75;
  color: var(--ink-2); max-width: 32ch; margin-inline: auto;
}
.hero-sub:empty { display: none; }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 32px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 15.5px; font-weight: 800; letter-spacing: -.2px;
  transition: transform .12s ease, opacity .12s ease;
}
.cta:active { transform: scale(.985); }
.cta.wide { width: 100%; }
.cta[disabled] { opacity: .35; }
.hero .cta { margin-top: 26px; }

.hero-links {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.hlink {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2);
  font-size: 13px; font-weight: 700;
}
.hlink svg { color: var(--ink-3); }

/* ── شريط الثقة — سطرٌ لا بطاقات ─────────────────────────────────────── */

.reasons {
  max-width: var(--wrap); margin: 34px auto 0; padding-inline: var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-block: 1px solid var(--line);
}
.reason { padding: 22px 10px; text-align: center; }

/* **دائرةٌ تحمل الأيقونة.** لونُها من التاجر، وبلا اختيارٍ تأخذ لون
   الموقع — فلا تصير الصفحة سبعة ألوانٍ بلا قصد. */
.disc {
  --disc: var(--accent);
  display: inline-grid; place-items: center;
  margin-inline: auto; border-radius: 50%;
  color: var(--disc);
  background: color-mix(in srgb, var(--disc) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--disc) 22%, transparent);
}

/* **اللون يُفتَّح على الأسود.** فبنّيٌّ غامق على خلفيةٍ سوداء لا يُرى،
   والتاجر اختاره وهو ينظر إلى شاشةٍ فاتحة في التطبيق. */
@media (prefers-color-scheme: dark) {
  .disc {
    color: color-mix(in srgb, var(--disc) 55%, #ffffff);
    background: color-mix(in srgb, var(--disc) 20%, transparent);
  }
}
.reason + .reason { border-inline-start: 1px solid var(--line); }
.reason .disc { margin-bottom: 4px; }
.reason b { display: block; margin-top: 8px; font-size: 13px; font-weight: 800; letter-spacing: -.2px; }
.reason span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.reasons.flat { margin-top: 32px; }

/* ── البنرات ─────────────────────────────────────────────────────────── */

.banners { max-width: var(--wrap); margin: 40px auto 0; padding-inline: var(--pad); }
.banner-rail {
  display: flex; gap: 14px; overflow-x: auto;
  padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.banner-rail::-webkit-scrollbar { display: none; }

.banner {
  position: relative; overflow: hidden; isolation: isolate;
  flex: 0 0 min(88%, 460px); scroll-snap-align: start;
  min-height: 208px; padding: 24px;
  border-radius: var(--r);
  display: flex; flex-direction: column; justify-content: flex-end;
  text-align: right; color: #fff;
  /* **ضوءٌ لا لونٌ مسطّح.** لمعةٌ من زاوية وظلٌّ من المقابلة — فاللافتة
     تبدو مطبوعةً لا مربّعاً ملوّناً. */
  background:
    radial-gradient(120% 105% at 88% -10%,
      color-mix(in srgb, #fff 26%, var(--banner-color)) 0%, transparent 62%),
    radial-gradient(100% 100% at 6% 115%,
      color-mix(in srgb, #000 34%, var(--banner-color)) 0%, transparent 72%),
    var(--banner-color);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), var(--sh-2);
  transition: transform .16s ease;
}
.banner:active { transform: scale(.99); }

/* حلقاتٌ باهتة — عمقٌ بلا صورة. */
.banner:not(.has-image)::before {
  content: ""; position: absolute; z-index: -1;
  inset-block-start: -78px; inset-inline-start: -58px;
  width: 240px; height: 240px; border-radius: 50%;
  border: 44px solid rgba(255, 255, 255, .07);
}
.banner.has-image::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--banner-image); background-size: cover; background-position: center;
  opacity: .55;
}
.banner.has-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.15), rgba(0,0,0,.62));
}
.banner > * { position: relative; z-index: 1; }
.banner .cut {
  align-self: flex-start; margin-bottom: auto;
  padding: 8px 15px; border-radius: 999px;
  background: #fff; color: #0A0F1A;
  font-size: 12.5px; font-weight: 900; letter-spacing: -.2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.banner h3 { font-size: clamp(22px, 6vw, 30px); letter-spacing: -.9px; }
.banner p { margin-top: 7px; font-size: 14px; color: rgba(255,255,255,.88); line-height: 1.7; }
.banner .go {
  margin-top: 16px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  font-size: 13px; font-weight: 800;
}

.hours {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid; gap: 2px;
}
.hours-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0; font-size: 13.5px;
}
.hours-row b { font-weight: 700; color: var(--ink-2); }
.hours-row span { margin-inline-start: auto; font-weight: 700; color: var(--ink); }
.hours-row .shut { color: var(--off); font-weight: 600; }

/* ── صفحة العرض ──────────────────────────────────────────────────────── */

.offer-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 240px; padding: 30px var(--pad) 32px;
  display: flex; align-items: flex-end;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  color: #fff;
  background:
    radial-gradient(110% 100% at 88% -12%,
      color-mix(in srgb, #fff 26%, var(--banner-color)) 0%, transparent 62%),
    radial-gradient(100% 100% at 6% 118%,
      color-mix(in srgb, #000 36%, var(--banner-color)) 0%, transparent 74%),
    var(--banner-color);
}
@media (min-width: 700px) { .offer-hero { min-height: 320px; } }
.offer-hero.has-image::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--banner-image) center / cover no-repeat;
  opacity: .5;
}
.offer-hero.has-image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(165deg, rgba(0,0,0,.18), rgba(0,0,0,.66));
}
.offer-hero-in { position: relative; z-index: 1; max-width: var(--wrap); margin-inline: auto; width: 100%; }
.offer-hero .cut {
  display: inline-block; margin-bottom: 14px;
  padding: 8px 16px; border-radius: 999px;
  background: #fff; color: #0A0F1A;
  font-size: 13px; font-weight: 900;
  box-shadow: 0 6px 18px rgba(0,0,0,.24);
}
.offer-hero h1 { font-size: clamp(28px, 7.6vw, 46px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.12; }
.offer-hero p { margin-top: 10px; font-size: clamp(14px, 3.8vw, 17px); color: rgba(255,255,255,.9); line-height: 1.7; max-width: 46ch; }
.offer-hero p:empty { display: none; }

.offer-wrap { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--pad) 90px; }
.offer-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 24px 0 6px;
}
.offer-meta b { font-size: 15px; font-weight: 800; }
.offer-urgent {
  margin-bottom: 22px; font-size: 13px; font-weight: 700; color: var(--sale);
}
.offer-all {
  display: block; margin-top: 34px; padding: 15px;
  border: 1px solid var(--line-2); border-radius: 999px;
  text-align: center; font-size: 14px; font-weight: 800; color: var(--ink);
}

/* ── الأقسام ─────────────────────────────────────────────────────────── */

.sec {
  max-width: var(--wrap); margin: 52px auto 0; padding-inline: var(--pad);
}
.sec-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px;
}
.sec-head h2 { font-size: clamp(21px, 5.6vw, 27px); letter-spacing: -.8px; }
.sec-head span { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }

.rail {
  display: flex; gap: 14px; overflow-x: auto;
  padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: 0 0 168px; scroll-snap-align: start; }
@media (min-width: 620px) { .rail .card { flex-basis: 210px; } }

.search {
  margin-inline-start: auto;
  display: flex; align-items: center; gap: 9px;
  padding: 0 16px; height: 44px; min-width: 200px; flex: 0 1 260px;
  background: var(--tint); border-radius: 999px; color: var(--ink-3);
}
.search input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font-family: inherit; font-size: 15px; color: var(--ink);
}

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2);
  font-size: 13.5px; font-weight: 700;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.chip[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--bg);
}

/* ── البطاقة — بلا إطار، الصورة هي البطاقة ───────────────────────────── */

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card { display: flex; flex-direction: column; text-align: right; padding: 0; }

.card-img {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: var(--r-sm); overflow: hidden;
  background: var(--tint) center / cover no-repeat;
  display: grid; place-items: center;
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.card:active .card-img { transform: scale(.98); }
@media (hover: hover) { .card:hover .card-img { transform: scale(1.015); } }
.card-img .ph { font-size: 13px; color: var(--off); font-weight: 700; }

.tag {
  position: absolute; top: 10px; inset-inline-start: 10px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--sale); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: -.2px;
}
.tag.out { background: color-mix(in srgb, var(--ink) 62%, transparent); }
.tag.mark { background: var(--ink); }

.card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name {
  font-size: 14px; font-weight: 700; line-height: 1.55; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card { cursor: pointer; }
.card-foot {
  margin-top: auto; display: flex; align-items: flex-end; gap: 8px;
}
.card-price { flex: 1; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-add {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--ink);
  background: var(--surface);
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.card-add:active { transform: scale(.92); }
@media (hover: hover) {
  .card-add:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
}
.card-price b { font-size: 15.5px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.card-price s { font-size: 12.5px; color: var(--off); }

.no-hits { padding: 60px 0; text-align: center; color: var(--ink-3); font-size: 15px; }

/* ── عن المحل والتواصل ───────────────────────────────────────────────── */

.about { max-width: var(--wrap); margin: 56px auto 0; padding-inline: var(--pad); }
.about h2 { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; font-weight: 700; letter-spacing: 0; }
.about p {
  font-size: clamp(16px, 4.2vw, 19px); line-height: 1.95; color: var(--ink-2);
  white-space: pre-wrap; max-width: 60ch;
}

.band {
  max-width: var(--wrap); margin: 40px auto 0; padding-inline: var(--pad);
  display: grid; gap: 0; border-block: 1px solid var(--line);
}
@media (min-width: 620px) { .band { grid-template-columns: repeat(3, 1fr); } }
.band-cell { display: flex; gap: 13px; align-items: flex-start; padding: 20px 0; }
@media (min-width: 620px) {
  .band-cell { padding: 24px 18px; }
  .band-cell + .band-cell { border-inline-start: 1px solid var(--line); }
}
@media (max-width: 619px) { .band-cell + .band-cell { border-top: 1px solid var(--line); } }
.band-cell svg { color: var(--ink-3); flex: none; margin-top: 3px; }
.band-cell b { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.band-cell span { font-size: 15px; font-weight: 700; line-height: 1.7; letter-spacing: -.2px; }

.foot {
  max-width: var(--wrap); margin: 48px auto 0;
  padding: 30px var(--pad) 12px; text-align: center;
}
.foot-contact { font-size: 14px; line-height: 2; color: var(--ink-3); }
.foot-contact a { color: var(--ink-2); font-weight: 700; }
.powered { display: inline-block; margin-top: 18px; font-size: 12px; color: var(--ink-3); }
.powered strong { color: var(--ink); }

/* ── الأوراق المنبثقة ────────────────────────────────────────────────── */

.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; }
.sheet-back { position: absolute; inset: 0; background: rgba(6,10,18,.5); backdrop-filter: blur(3px); }
.sheet-body {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; margin-inline: auto;
  max-height: 92dvh; overflow-y: auto;
  background: var(--bg);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--sh-3);
  animation: rise .26s cubic-bezier(.2,.9,.2,1);
}
@keyframes rise { from { transform: translateY(30px); opacity: .4; } }
.sheet-body.center { padding: 40px 26px calc(28px + env(safe-area-inset-bottom)); text-align: center; }

.sheet-x {
  position: absolute; top: 14px; inset-inline-end: 16px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--tint); color: var(--ink-3); font-size: 14px; line-height: 1;
}

.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery > div {
  flex: 0 0 100%; aspect-ratio: 1 / 1;
  background: var(--tint) center / cover no-repeat; scroll-snap-align: center;
  display: grid; place-items: center; font-size: 13px; color: var(--off); font-weight: 700;
}

.sheet-text { padding: 22px 24px 16px; }
.sheet-text h3 { font-size: 21px; line-height: 1.45; }
.sheet-text h4 { font-size: 12.5px; color: var(--ink-3); margin: 24px 0 12px; font-weight: 700; }

.price-row { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-row b { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.8px; }
.price-row s { font-size: 15px; color: var(--off); }
.price-row .off {
  padding: 4px 10px; border-radius: 999px;
  background: var(--sale); color: #fff; font-size: 11.5px; font-weight: 800;
}
.desc { margin-top: 12px; font-size: 15.5px; line-height: 2.05; color: var(--ink-2); white-space: pre-wrap; }

.qty { margin-top: 22px; display: flex; align-items: center; gap: 16px; }
.qty span { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.qty button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: 18px; font-weight: 700;
}
.qty b { font-size: 18px; min-width: 30px; text-align: center; }

.sheet-bar {
  position: sticky; bottom: 0;
  padding: 16px 24px calc(18px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
}

/* ── السلّة ──────────────────────────────────────────────────────────── */

.cart-lines { display: grid; gap: 14px; margin-top: 18px; }
.cart-line { display: flex; align-items: center; gap: 14px; }
.cart-line .thumb {
  width: 62px; height: 74px; flex: none; border-radius: var(--r-xs);
  background: var(--tint) center / cover no-repeat;
}
.cart-line .name { flex: 1; min-width: 0; }
.cart-line .name > div:first-child { font-size: 14px; font-weight: 700; line-height: 1.5; }
.cart-line .name > div:last-child { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.cart-line .line-price { font-size: 14px; font-weight: 800; white-space: nowrap; }
.cart-line .rm { color: var(--ink-3); font-size: 15px; padding: 8px; }

.totals { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; color: var(--ink-2); }
.totals div.sum {
  margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.4px;
}
.totals .free { color: var(--ok); font-weight: 700; }
.totals .warn { color: var(--sale); font-weight: 700; }
.totals .hint { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }

.fld { display: block; margin-bottom: 14px; }
.fld span { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; font-weight: 700; }
.fld input, .fld textarea, .fld select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-xs);
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 15.5px; outline: 0;
  transition: border-color .12s ease;
}
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--ink); }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err {
  margin-top: 10px; padding: 12px 14px; border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--sale) 9%, transparent);
  color: var(--sale); font-size: 13.5px; font-weight: 700;
}

.done-mark {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 28px; font-weight: 800;
}
.done-num { margin-top: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.done-text { margin: 14px 0 26px; font-size: 14.5px; line-height: 1.9; color: var(--ink-3); }

/* ── زرّ السلّة الطافي ───────────────────────────────────────────────── */

.cart-fab {
  position: fixed; z-index: 45;
  inset-inline: 12px;
  inset-block-end: calc(12px + env(safe-area-inset-bottom));
  max-width: calc(var(--wrap) - 24px); margin-inline: auto;
  display: flex; align-items: center; gap: 11px;
  padding: 14px 18px; border-radius: 18px;
  background: var(--ink); color: var(--bg);
  font-size: 15.5px; font-weight: 800; letter-spacing: -.3px;
  box-shadow: var(--sh-3);
  animation: cart-rise .2s cubic-bezier(.2,.8,.2,1);
}
@keyframes cart-rise { from { opacity: 0; transform: translateY(14px); } }
.cart-fab:active { transform: scale(.99); }
.cart-fab-icon {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 18%, transparent);
}
.cart-fab .cart-sum {
  margin-inline-start: auto; font-weight: 700; font-size: 14px; opacity: .82;
}
#single:not([hidden]) ~ .cart-fab { display: none; }

/* الشريط يغطّي آخر الصفحة، فيُفسح له مكانٌ تحتها. */
body.with-cart-bar { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
.cart-fab:active { transform: scale(.98); }

/* ── صفحة المنتج الواحدة ─────────────────────────────────────────────── */

.single-wrap { max-width: 760px; margin-inline: auto; padding-bottom: 110px; }
.stage { position: relative; }

.shop-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 9px var(--pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  font-size: 15px; font-weight: 800; letter-spacing: -.3px;
}
.shop-bar-in {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 11px; padding-block: 5px;
}
.shop-bar-in span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-bar-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.shop-bar em {
  margin-inline-start: auto; font-style: normal; flex: none; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: var(--ink-3);
}

.pin-badge {
  position: absolute; top: 16px; inset-inline-start: 16px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 12px; font-weight: 800;
}
.dots { position: absolute; bottom: 16px; inset-inline: 0; display: flex; gap: 6px; justify-content: center; }
.dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.55); transition: width .2s ease;
}
.dots i.on { background: #fff; width: 20px; border-radius: 999px; }

.single-body { padding: 30px var(--pad) 10px; }
.single-body h1 { font-size: clamp(24px, 6.4vw, 34px); line-height: 1.28; letter-spacing: -1px; }

.price-block { margin-top: 20px; }
.price-row.big b { font-size: clamp(28px, 8vw, 38px); letter-spacing: -1.2px; }
.save { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ok); }

/* **الإلحاح سطرٌ واحد لا لافتة.** فصفحةٌ تصرخ تُقرأ إعلاناً لا متجراً. */
.urgent {
  margin-top: 18px; padding: 14px 16px;
  display: flex; align-items: center; gap: 11px;
  border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--sale) 7%, transparent);
  color: var(--sale); font-size: 14px; line-height: 1.7;
}
.urgent b { font-weight: 800; }
.pulse {
  width: 8px; height: 8px; flex: none; border-radius: 50%;
  background: var(--sale); animation: pulse 1.9s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sale) 45%, transparent); }
  70% { box-shadow: 0 0 0 11px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.stock { margin-top: 14px; font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--off); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.assure { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 0;
          border-block: 1px solid var(--line); }
.assure li {
  display: flex; align-items: center; gap: 14px; padding: 16px 2px;
  font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.assure li + li { border-top: 1px solid var(--line); }
.assure .disc { flex: none; }
.assure span { display: block; color: var(--ink-3); font-weight: 500; font-size: 12.5px; margin-top: 2px; }

.buy-row { margin-top: 26px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.big-cta { padding: 18px; font-size: 16.5px; }
.ghost-cta {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); padding: 18px; font-size: 15.5px;
}

.bar-add {
  position: relative; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--line-2); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.bar-add i {
  position: absolute; top: -2px; inset-inline-start: -2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 10px; font-weight: 800; font-style: normal;
}
.wa-line { display: block; margin-top: 16px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-3); }

.sec-title { margin: 34px 0 12px; font-size: 13px; color: var(--ink-3); font-weight: 700; letter-spacing: 0; }
.more { max-width: 760px; margin: 44px auto 0; padding-inline: var(--pad); }

.order-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; gap: 16px;
  padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--line);
}
.bar-add-tip { order: 2; font-size: 9.5px; font-weight: 800; opacity: .62; margin-top: 1px; }

/* لقمةُ تأكيد — تظهر ثانيتين ثم تذهب. */
.toast {
  position: fixed; z-index: 60; inset-inline: 0;
  bottom: calc(96px + env(safe-area-inset-bottom));
  margin-inline: auto; width: max-content; max-width: 86vw;
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 800;
  box-shadow: var(--sh-3);
  animation: toast-in .18s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.order-bar-price { display: flex; flex-direction: column; line-height: 1.2; }
.order-bar-price b { font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.order-bar-price s { font-size: 12px; color: var(--off); }
.order-bar .cta { margin: 0; flex: 1; padding: 16px 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.foot-note {
  margin-bottom: 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7;
}


/* ── المقاسات والألوان ───────────────────────────────────────────────── */

.options { margin-top: 20px; display: grid; gap: 16px; }
.opt-head {
  display: flex; gap: 8px; align-items: baseline; margin-bottom: 9px;
  font-size: 13px; font-weight: 700; color: var(--ink-3);
}
.opt-head b { font-size: 14px; color: var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-width: 52px; padding: 10px 15px; border-radius: var(--r-xs);
  border: 1.5px solid var(--line-2); background: var(--surface);
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  transition: border-color .15s, box-shadow .15s;
}
.opt[aria-pressed="true"] {
  border-color: var(--accent); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--accent);
}
/* النافدُ يُرى مشطوباً ولا يُخفى — فالزبون يعرف أنّه يُباع هنا ونفد. */
.opt.out { color: var(--off); text-decoration: line-through; border-style: dashed; }

/* ── الترتيب ─────────────────────────────────────────────────────────── */

.tools {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin: -6px 0 18px; font-size: 13px; font-weight: 700; color: var(--ink-3);
}
.tools select {
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
}

/* ── كود الخصم ───────────────────────────────────────────────────────── */

.coupon { display: flex; gap: 8px; margin-top: 18px; }
.coupon input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink);
  padding: 11px 14px; border-radius: var(--r-xs);
  border: 1px solid var(--line-2); background: var(--surface);
}
.coupon input::placeholder { letter-spacing: 0; font-weight: 500; text-transform: none; }
.coupon button {
  padding: 0 20px; border-radius: var(--r-xs); background: var(--tint);
  font-size: 14px; font-weight: 800; color: var(--ink);
}
.coupon button:disabled { opacity: .5; }
.coupon-msg { margin-top: 8px; font-size: 13px; font-weight: 700; }
.coupon-msg.ok { color: var(--ok); }
.coupon-msg.bad { color: var(--sale); }

/* ── وصل طلبك وطلباتي ────────────────────────────────────────────────── */

.done-total { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.track-link { display: inline-flex; margin: 0 0 16px; text-decoration: none; }
.topbar-orders {
  flex: none; padding: 7px 13px; border-radius: 999px; background: var(--tint);
  font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap;
  text-decoration: none;
}

/* ── تتبّع الطلب ─────────────────────────────────────────────────────── */

.track-wrap { max-width: 640px; margin-inline: auto; padding: 28px var(--pad) 48px; }
.track-kicker { font-size: 13px; font-weight: 800; color: var(--ink-3); }
.track-wrap h1 {
  margin-top: 4px; font-size: clamp(24px, 7vw, 32px); letter-spacing: -.8px;
  text-align: right;
}
.track-when { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }

.steps { list-style: none; margin: 28px 0 0; padding: 0; }
.steps li {
  position: relative; padding: 0 34px 24px 0;
  font-size: 15px; font-weight: 700; color: var(--off);
}
.steps li::before {
  content: ''; position: absolute; right: 6px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--line-2);
}
.steps li::after {
  content: ''; position: absolute; right: 11px; top: 22px; bottom: 2px;
  width: 2px; background: var(--line-2);
}
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink-2); }
.steps li.done::before, .steps li.done::after { background: var(--ok); }
.steps li.now { color: var(--ink); font-size: 16.5px; }
.steps li.now::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent);
}

.track-courier {
  padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint);
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.track-cancel {
  margin-top: 22px; padding: 16px; border-radius: var(--r-sm); line-height: 1.8;
  background: color-mix(in srgb, var(--sale) 10%, transparent);
  font-weight: 700; color: var(--sale);
}
.track-card {
  margin-top: 26px; padding: 20px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.track-items { margin-top: 10px; }
.track-items div {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  font-size: 14.5px; border-bottom: 1px solid var(--line);
}
.track-items div:last-child { border-bottom: 0; }
.track-items span { color: var(--ink-2); }
.track-actions { margin-top: 22px; display: grid; gap: 10px; }
.track-actions .cta {
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.track-actions .ghost { margin-top: 0; }
