/* =====================================================================
   style.css — تصميم لينجويني: "كارت السعر"
   كل الألوان والخطوط والأنصاف والمسافات في الكتلة دي بس.
   لتغيير ألوان المطعم أو عمل نسخة داكنة: عدّل القيم هنا فقط.
   (شرح كل متغير في DESIGN-NOTES.md)
   ===================================================================== */
:root {
  /* --- الألوان الأساسية --- */
  --blue: #0A3F8F;          /* أزرق لينجويني: الغلاف والأزرار والإطارات */
  --navy: #06265C;          /* كحلي: النصوص الأساسية */
  --orange: #E8590C;        /* برتقالي كارت السعر وأشرطة الأقسام */
  --orange-deep: #C8460A;   /* برتقالي غامق: للإعلان وأي نص برتقالي على الورق */
  --paper: #F4F7FB;         /* خلفية الصفحة */
  --sky: #BFD9F2;           /* سماوي: الفواصل والخلفيات الخفيفة */
  --sky-soft: #E3EEF9;      /* سماوي فاتح جدًا: خلفية الأزرار الثانوية */
  --white: #FFFFFF;
  --muted: #4A5F86;         /* نص ثانوي (وصف، أحجام) */
  --ok: #2E9E62;            /* نقطة "مفتوح" */
  --danger: #B3261E;        /* رسائل الخطأ */

  /* --- ألوان بوظيفة --- */
  --on-blue: var(--white);
  --on-orange: var(--white);
  --focus: var(--orange-deep);          /* حلقة التركيز بالكيبورد */
  --focus-on-blue: var(--white);
  --overlay: rgba(6, 38, 92, 0.6);      /* ستارة خلف النوافذ */
  --sheet-shadow: 0 -8px 32px rgba(6, 38, 92, 0.25);
  --toast-bg: var(--navy);
  --mask-solid: #000;                   /* يستخدم فقط لعمل خرم كارت السعر */
  --paper-texture: none;           /* ملمس الورق: اختياري (none = بدون). ممكن تحط url(...) لصورة ملمس */

  /* --- الخطوط --- */
  --font-display: "Baloo Bhaijaan 2", "Segoe UI", Tahoma, Arial, sans-serif;  /* العناوين والأسعار */
  --font-body: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;             /* النصوص */

  /* --- الأنصاف (شكل الحواف) --- */
  --r-sm: 8px;
  --r-md: 16px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* --- المسافات --- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;

  /* --- أخرى --- */
  --touch: 44px;                        /* أقل حجم لمس */
  --frame: 2px solid var(--blue);       /* إطار الأقسام (زي إطار المنيو الورقي) */
  --dots: 2px dotted var(--sky);        /* خط النقط بين الأصناف */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 220ms;
  --maxw: 720px;
}

/* ============================== أساسيات ============================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--paper-texture);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hero :focus-visible, .cart-bar :focus-visible { outline-color: var(--focus-on-blue); }
.skip { position: absolute; inset-inline-start: var(--s-3); top: -100px; background: var(--navy); color: var(--white); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: var(--s-3); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================== شاشات الحالة (تحميل / خطأ) ============================== */
.state-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-4); padding: var(--s-5); text-align: center; background: var(--blue); color: var(--white); }
.state-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.2; }
.state-text { max-width: 36ch; font-size: 17px; }
.state-tag { width: 56px; height: 72px; background: var(--orange); clip-path: polygon(0 12px, 12px 0, 100% 0, 100% 100%, 0 100%); transform-origin: top center; animation: sway 1.6s var(--ease) infinite alternate; }
.state-tag--error { background: var(--sky); animation: none; transform: rotate(14deg); }
@keyframes sway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }

/* ============================== الأزرار ============================== */
.btn { min-height: var(--touch); padding: var(--s-2) var(--s-5); border: 2px solid var(--blue); background: var(--blue); color: var(--on-blue); border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); text-decoration: none; }
.state-screen .btn { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--sky); border-color: var(--sky); color: var(--muted); cursor: not-allowed; }
.icon-btn { width: var(--touch); height: var(--touch); border-radius: var(--r-pill); border: 2px solid var(--sky); background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; position: relative; flex: none; }
.icon-btn svg { width: 22px; height: 22px; }

/* ============================== الغلاف (Hero) ============================== */
.hero { position: relative; background: var(--blue); color: var(--on-blue); padding: var(--s-4) var(--s-4) var(--s-6); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.hero__top { display: flex; align-items: center; gap: var(--s-3); }
.logo { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--blue); border: 2px solid var(--sky); }
.status { margin-inline-start: auto; display: inline-flex; align-items: center; gap: var(--s-2); background: var(--navy); color: var(--white); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); min-height: 36px; font-size: 14px; font-weight: 500; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.status[data-open="false"]::before { background: var(--orange); }
.cart-btn .count { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: var(--r-pill); background: var(--white); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 22px; text-align: center; }
.cart-btn.is-bump { animation: bump 0.7s var(--ease); transform-origin: top center; }
@keyframes bump { 0% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } 100% { transform: rotate(0); } }
.hero__body { margin-top: var(--s-5); }
.hero__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(52px, 17vw, 84px); line-height: 0.95; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.hero__ribbon { display: inline-block; margin-top: var(--s-3); padding: 2px var(--s-4); background: var(--orange); color: var(--on-orange); font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.5; transform: rotate(-3deg); }
.hero__slogan { margin-top: var(--s-4); font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.25; max-width: calc(100% - 112px); }
.hero__about { margin-top: var(--s-3); font-size: 15px; color: var(--sky); max-width: min(46ch, calc(100% - 112px)); }

/* كارت السعر المعلّق (اللحظة المميزة: بينزل ويتأرجح مرة واحدة) */
.hang { position: absolute; bottom: -58px; inset-inline-end: 22px; display: flex; flex-direction: column; align-items: center; transform-origin: top center; animation: drop 1.3s 0.2s var(--ease) both; pointer-events: none; }
.hang__string { width: 2px; height: 56px; background: var(--sky); }
.hang__tag { width: 88px; background: var(--orange); color: var(--on-orange); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px); -webkit-mask: radial-gradient(circle at 50% 14px, transparent 5px, var(--mask-solid) 5.5px); mask: radial-gradient(circle at 50% 14px, transparent 5px, var(--mask-solid) 5.5px); padding: 28px var(--s-2) 0; text-align: center; }
.hang__label { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.05; padding-bottom: var(--s-2); }
.hang__bars { height: 22px; margin: 0 calc(var(--s-2) * -1); background: var(--white) repeating-linear-gradient(90deg, var(--navy) 0 2px, var(--white) 2px 5px); background-clip: padding-box; border-top: 4px solid var(--white); }
@keyframes drop {
  0%   { transform: translateY(-190px) rotate(0); }
  45%  { transform: translateY(8px) rotate(0); }
  60%  { transform: rotate(9deg); }
  75%  { transform: rotate(-6deg); }
  88%  { transform: rotate(3deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* ============================== المحتوى الرئيسي ============================== */
.main { max-width: var(--maxw); margin: 0 auto; padding: 72px var(--s-4) 120px; }
.main > * + * { margin-top: var(--s-4); }
.banner { border-radius: var(--r-md); padding: var(--s-3) var(--s-4); font-size: 16px; display: flex; gap: var(--s-3); align-items: flex-start; }
.banner p { flex: 1; }
.banner--closed { background: var(--white); border: 2px solid var(--orange-deep); }
.banner--closed strong { font-family: var(--font-display); font-size: 19px; display: block; line-height: 1.3; }
.banner--ad { background: var(--orange-deep); color: var(--white); font-weight: 700; }
.banner--notice { background: var(--white); border: var(--frame); }
.banner__x { width: var(--touch); height: var(--touch); margin: calc(var(--s-3) * -1) calc(var(--s-4) * -1) calc(var(--s-3) * -1) 0; border: 0; background: transparent; font-size: 26px; line-height: 1; }

/* البحث */
.search { position: relative; }
.search input { width: 100%; height: 52px; padding: 0 var(--s-5) 0 52px; border: var(--frame); border-radius: var(--r-pill); background: var(--white); font-size: 17px; }
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; inset-inline-end: var(--s-4); top: 15px; width: 22px; height: 22px; color: var(--blue); pointer-events: none; }
.search input { padding-inline: 52px var(--s-5); }
.search-empty { text-align: center; padding: var(--s-6) var(--s-4); color: var(--muted); }

/* ============================== الأقسام (أكورديون) ============================== */
.cats { display: grid; gap: var(--s-4); }
.cat { border: var(--frame); border-radius: var(--r-md); background: var(--white); overflow: hidden; }
.cat__btn { width: 100%; min-height: 60px; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-4); background: var(--orange); color: var(--on-orange); border: 0; text-align: start; }
.cat__name { flex: 1; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.cat__count { min-width: 30px; padding: 0 var(--s-2); text-align: center; background: var(--blue); color: var(--white); border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 28px; }
.cat__chev { width: 26px; height: 26px; transition: transform var(--dur) var(--ease); flex: none; }
.cat__btn[aria-expanded="true"] .cat__chev { transform: rotate(180deg); }
.cat__note { padding: var(--s-3) var(--s-4) var(--s-1); color: var(--blue); font-weight: 700; font-size: 16px; }
.cat__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.cat__panel[data-open="true"] { grid-template-rows: 1fr; }
.cat__inner { overflow: hidden; min-height: 0; }
.rows { list-style: none; margin: 0; padding: var(--s-1) var(--s-4) var(--s-2); }

/* صف الصنف */
.row { display: flex; align-items: center; gap: var(--s-2); border-bottom: var(--dots); }
.rows .row:last-child { border-bottom: 0; }
.row__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; background: none; border: 0; text-align: start; min-height: 64px; }
.row__main[disabled] { cursor: default; }
.row.is-off { opacity: 0.6; }
.row__thumb { width: 72px; height: 72px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--sky-soft); }
.row__text { flex: 1; min-width: 0; }
.row__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.row__desc { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }
.row__sizes { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-1); }
.badge { padding: 0 var(--s-2); border-radius: var(--r-pill); background: var(--sky); color: var(--navy); font-size: 13px; font-weight: 700; line-height: 22px; }
.badge--offer { background: var(--navy); color: var(--white); }
.row__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.row__from { font-size: 13px; color: var(--muted); line-height: 1; }
.row__old { font-size: 14px; color: var(--muted); line-height: 1; }
.row__off { font-size: 14px; font-weight: 700; color: var(--muted); }

/* كارت السعر (الصغير) */
.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 62px; height: 36px; padding: 0 var(--s-3) 0 24px; background: var(--orange); color: var(--on-orange); font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); -webkit-mask: radial-gradient(circle at 15px 50%, transparent 3px, var(--mask-solid) 3.5px); mask: radial-gradient(circle at 15px 50%, transparent 3px, var(--mask-solid) 3.5px); }
.tag--note { background: var(--sky); color: var(--navy); font-size: 15px; font-weight: 700; font-family: var(--font-body); }
.tag--lg { height: 44px; font-size: 26px; min-width: 76px; }
.add { width: var(--touch); height: var(--touch); border-radius: 50%; border: 2px solid var(--blue); background: var(--blue); color: var(--on-blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.add svg { width: 22px; height: 22px; }

/* ============================== النوافذ (تفاصيل + سلة) ============================== */
.layer { position: fixed; inset: 0; z-index: 50; display: flex; background: var(--overlay); }
.panel { background: var(--paper); background-image: var(--paper-texture); display: flex; flex-direction: column; min-height: 0; width: 100%; }
.layer--sheet { align-items: flex-end; justify-content: center; }
.layer--sheet .panel { max-height: 94dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--sheet-shadow); animation: rise var(--dur) var(--ease); }
.layer--drawer { align-items: stretch; justify-content: flex-end; }
.layer--drawer .panel { height: 100%; animation: slide var(--dur) var(--ease); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.panel__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: var(--dots); flex: none; }
.panel__title { flex: 1; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.panel__head .icon-btn { border-color: var(--blue); color: var(--blue); }
.panel__body { flex: 1; overflow-y: auto; padding: var(--s-4); display: grid; gap: var(--s-4); align-content: start; overscroll-behavior: contain; }
.panel__foot { flex: none; padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); border-top: var(--frame); background: var(--white); display: grid; gap: var(--s-2); }

/* تفاصيل الصنف */
.hero-img { width: 100%; aspect-ratio: 1 / 1; max-height: 300px; object-fit: cover; border-radius: var(--r-md); background: var(--sky-soft); }
.detail-price { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.detail-desc { color: var(--muted); font-size: 16px; }
.field-group { border: var(--frame); border-radius: var(--r-md); padding: var(--s-3) var(--s-4) var(--s-4); margin: 0; min-width: 0; background: var(--white); }
.form-grid { display: grid; gap: var(--s-3); padding-top: var(--s-4); }
.field-group legend { padding: 0 var(--s-2); font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.field-group .hint { font-size: 14px; color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.choices { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--touch); padding: var(--s-2) var(--s-4); border: 2px solid var(--sky); border-radius: var(--r-pill); background: var(--paper); font-weight: 700; font-size: 17px; }
.choice__box b { font-family: var(--font-display); font-size: 19px; }
.choice input:checked + .choice__box { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice s { opacity: 0.8; font-weight: 400; margin-inline-end: var(--s-2); }
.lbl { display: grid; gap: var(--s-1); font-weight: 700; }
.lbl > span { font-size: 15px; }
.input { width: 100%; min-height: 48px; padding: var(--s-2) var(--s-4); border: 2px solid var(--sky); border-radius: var(--r-md); background: var(--white); font-size: 17px; font-weight: 400; }
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { border-color: var(--blue); }
.input[readonly] { background: var(--sky-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 15px; font-weight: 700; min-height: 0; }
.err:empty { display: none; }
.errbox { background: var(--white); border: 2px solid var(--danger); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); color: var(--danger); font-weight: 700; }
.errbox:empty { display: none; }
.okbox { background: var(--white); border: 2px solid var(--ok); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--blue); border-radius: var(--r-pill); }
.stepper button { width: var(--touch); height: var(--touch); border: 0; background: transparent; color: var(--blue); font-size: 26px; line-height: 1; border-radius: 50%; }
.stepper button[disabled] { color: var(--sky); cursor: not-allowed; }
.stepper output { min-width: 32px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.detail-actions { display: flex; align-items: center; gap: var(--s-3); }
.detail-actions .btn { flex: 1; }

/* السلة */
.empty { text-align: center; padding: var(--s-7) var(--s-4); display: grid; gap: var(--s-4); justify-items: center; }
.empty p { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.3; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.line { background: var(--white); border: 2px solid var(--sky); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); display: grid; gap: var(--s-2); }
.line__top { display: flex; gap: var(--s-3); justify-content: space-between; align-items: flex-start; }
.line__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.line__sub { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.line__total { font-family: var(--font-display); font-weight: 800; font-size: 19px; white-space: nowrap; }
.line__total.is-note { font-family: var(--font-body); font-size: 14px; font-weight: 700; white-space: normal; text-align: end; max-width: 14ch; color: var(--muted); }
.line__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.linkbtn { min-height: var(--touch); padding: 0 var(--s-3); background: transparent; border: 0; color: var(--danger); font-weight: 700; text-decoration: underline; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s-2); }
.seg .choice__box { justify-content: center; text-align: center; border-radius: var(--r-md); font-size: 16px; padding-inline: var(--s-2); }
.totals { background: var(--white); border: var(--frame); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); display: grid; gap: var(--s-2); }
.totals div { display: flex; justify-content: space-between; gap: var(--s-3); }
.totals .grand { border-top: var(--dots); padding-top: var(--s-2); font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.2; }
.totals .small { font-size: 14px; color: var(--muted); display: block; }
.totals .warn { color: var(--danger); font-weight: 700; }
.preview { background: var(--white); border: 2px dashed var(--sky); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.preview summary { min-height: var(--touch); display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-body); font-size: 14px; margin: 0 0 var(--s-2); direction: rtl; }
.foot-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-size: 22px; }

/* شريط السلة السفلي */
.cart-bar { position: fixed; z-index: 40; bottom: calc(var(--s-3) + env(safe-area-inset-bottom)); inset-inline: var(--s-3); max-width: calc(var(--maxw) - var(--s-5)); margin-inline: auto; }
.cart-bar button { width: 100%; min-height: 58px; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-4); border: 0; border-radius: var(--r-pill); background: var(--blue); color: var(--on-blue); text-align: start; box-shadow: var(--sheet-shadow); }
.cart-bar__label { flex: 1; font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.cart-bar__count { min-width: 32px; height: 32px; padding: 0 var(--s-2); border-radius: var(--r-pill); background: var(--white); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 32px; text-align: center; }

/* ============================== معلومات المطعم ============================== */
.info { border-top: var(--frame); padding-top: var(--s-5); display: grid; gap: var(--s-3); }
.info__name { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.2; }
.info__row { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 17px; }
.info__row svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--blue); }
.info__links { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.info__links .btn { font-size: 17px; padding-inline: var(--s-4); }

/* رسالة صغيرة */
.toast { position: fixed; z-index: 60; inset-inline: var(--s-4); bottom: calc(86px + env(safe-area-inset-bottom)); margin-inline: auto; width: fit-content; max-width: min(92vw, 420px); background: var(--toast-bg); color: var(--white); border-radius: var(--r-pill); padding: var(--s-2) var(--s-5); font-weight: 700; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity var(--dur), transform var(--dur) var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

/* ============================== شاشة 768px ============================== */
@media (min-width: 768px) {
  .hero { padding: var(--s-5) var(--s-6) var(--s-7); }
  .hero__slogan, .hero__about { max-width: min(46ch, calc(100% - 140px)); }
  .hang { inset-inline-end: 48px; }
  .main { padding-top: 88px; }
  .layer--sheet { align-items: center; }
  .layer--sheet .panel { max-width: 560px; max-height: 90dvh; border-radius: var(--r-xl); }
  .layer--drawer .panel { max-width: 560px; }
}

/* ============================== الكمبيوتر (1024px وأكتر) ============================== */
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 420px minmax(0, 1fr); align-items: start; }
  .hero { position: sticky; top: 0; height: 100dvh; border-radius: var(--r-xl) 0 0 var(--r-xl); padding: var(--s-6); display: flex; flex-direction: column; }
  .hero__body { margin-top: auto; padding-bottom: var(--s-6); }
  .hero__slogan, .hero__about { max-width: none; }
  .hero__top { order: -2; }
  .hang { order: -1; position: static; align-self: flex-start; margin-top: 0; margin-inline-start: -18px; }
  .hang__string { height: 72px; }
  .main { max-width: 760px; width: 100%; padding: var(--s-6) var(--s-6) 120px; }
  .cart-bar { inset-inline: 420px 0; max-width: 700px; margin-inline: auto; }
  .layer--drawer .panel { max-width: 480px; }
}

/* ============================== الحركة المخفّضة ============================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
