/* ═══════════════════════════════════════════════════════════════════════
   بقالة الواحة · Al Waha Market — بقالة أونلاين، دبي
   معمار «شبكة المتجر»: بلا غلاف إعلاني — شريط خدمة، ترويسة بحث وسلة،
   ثم شبكة بينتو هي الواجهة، شريط أقسام لاصق، سكة عروض، شبكة منتجات حية.

   أخضر طازج #2E8B57 · أصفر شمسي #FFC531 · أبيض · رمادي #F5F7F5 · حبر #18261D
   ملف واحد يخدم RTL و LTR — خصائص منطقية فقط، بلا left/right.
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800&display=swap');

/* ─────────── ١ · المتغيّرات ─────────── */
:root {
  --green:       #2E8B57;
  --green-ink:   #1F6B43;
  --green-deep:  #133F27;
  --green-tint:  #E9F4EE;
  --green-tint2: #D2E8DA;

  --yellow:      #FFC531;
  --yellow-soft: #FFF4D2;
  --yellow-line: #F0B41A;
  --yellow-ink:  #7A5200;

  --sale:        #C42C2C;
  --sale-soft:   #FDECEC;

  --ink:         #18261D;
  --ink-2:       #2E4136;
  --muted:       #5A6E61;

  --white:       #FFFFFF;
  --grey:        #F5F7F5;
  --grey-2:      #EDF1EE;
  --line:        #E0E7E2;
  --line-2:      #C7D4CB;

  --font: 'Rubik', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;

  --wrap: 1240px;
  --gut:  clamp(16px, 4vw, 32px);

  --r-xs:   8px;
  --r-sm:   12px;
  --r:      14px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(24,38,29,.05), 0 4px 12px rgba(24,38,29,.05);
  --sh-2: 0 6px 20px rgba(24,38,29,.10);
  --sh-3: 0 18px 44px rgba(24,38,29,.16);

  /* ارتفاع الترويسة المثبّتة — يستعمله شريط الأقسام اللاصق */
  --ubar-h: 36px;
  --hdr-h:  60px;

  /* سلّم z-index */
  --z-raised: 10;
  --z-header: 20;
  --z-menu:   30;
  --z-scrim:  40;
  --z-modal:  50;
  --z-toast:  60;

  --ease: cubic-bezier(.2,.7,.3,1);
  --t:    220ms;

  /* شارة نموذج Pyramedia X */
  --px-badge-bg:     #FFFFFF;
  --px-badge-fg:     #18261D;
  --px-badge-accent: #2E8B57;
}

@media (min-width: 880px) { :root { --hdr-h: 110px; } }

/* ─────────── ٢ · أساسيات ─────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--hdr-h) + 64px);
}

body {
  margin: 0;
  background: var(--grey);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  /* clip وليس hidden — hidden يصنع حاوية تمرير فتتعطّل عناصر position:sticky */
  overflow-x: clip;
}

img, svg { max-inline-size: 100%; display: block; }
img { block-size: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.25; }
h2 { font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.25rem); line-height: 1.28; }
h3 { font-size: clamp(1.05rem, .96rem + .35vw, 1.25rem); }

p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* أرقام بعرض ثابت — بدون direction هنا إطلاقاً (فخ العناصر المطلقة) */
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* عزل الأرقام التي تحمل رمزاً — على عناصر ساكنة فقط */
.iso,
.card__price, .card__old, .line__total, .zone__fee, .slot__t,
.ubar__tel, .foot__tel, .sumrow b, .fact b, .freebar__txt b,
.tbl td.num, .banner__code .num, .card__off > span, .live__eta > .num {
  direction: ltr;
  unicode-bidi: isolate;
}

.wrap {
  max-inline-size: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sr-only {
  position: absolute; inline-size: 1px; block-size: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-block-start: -100px; inset-inline-start: 16px;
  z-index: var(--z-toast);
  background: var(--green); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--r) var(--r);
  font-weight: 600;
}
.skip-link:focus { inset-block-start: 0; }

:focus-visible {
  outline: 2px solid var(--green-ink);
  outline-offset: 2px;
  border-radius: 4px;
}
.bn--live :focus-visible,
.slotband :focus-visible,
.cta :focus-visible,
.banner :focus-visible,
.foot :focus-visible { outline-color: #FFE79A; }

::selection { background: var(--yellow); color: var(--ink); }

[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* ظهور مع التمرير */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* شريط تمرير رفيع للسكك الأفقية */
.scroller {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.scroller::-webkit-scrollbar { block-size: 8px; }
.scroller::-webkit-scrollbar-track { background: transparent; }
.scroller::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: var(--r-pill);
}
.scroller::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ─────────── ٣ · الأزرار ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  min-block-size: 46px;
  padding: 11px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; line-height: 1.3;
  text-align: center;
  transition: background-color var(--t) var(--ease),
              color var(--t) var(--ease),
              border-color var(--t) var(--ease),
              transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.btn svg { inline-size: 19px; block-size: 19px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--green-ink); color: #fff; box-shadow: 0 4px 14px rgba(31,107,67,.28); }
.btn--primary:hover { background: #17593A; box-shadow: 0 6px 18px rgba(31,107,67,.38); }

.btn--yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow-line); }
.btn--yellow:hover { background: #FFD766; }

.btn--ghost { background: var(--white); color: var(--green-ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--green-tint); border-color: var(--green); }

.btn--sm { min-block-size: 44px; padding: 9px 16px; font-size: 14px; }
.btn--block { display: flex; inline-size: 100%; }

/* رابط نصّي بسهم */
.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  min-block-size: 44px;
  font-weight: 600; font-size: 15px; color: var(--green-ink);
  border-block-end: 2px solid transparent;
  transition: border-color var(--t) var(--ease), gap var(--t) var(--ease);
}
.link-more svg { inline-size: 18px; block-size: 18px; }
.link-more:hover { border-block-end-color: var(--green); gap: 12px; }

/* ═══════════════════════════════════════════════
   ٤ · الترويسة: شريط خدمة + بحث + سلة + تنقّل
   ═══════════════════════════════════════════════ */
.hdr {
  position: sticky;
  inset-block-start: calc(var(--ubar-h) * -1);
  z-index: var(--z-header);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

/* شريط الخدمة العلوي */
.ubar {
  block-size: var(--ubar-h);
  background: var(--green-deep);
  color: #DCEFE3;
  font-size: 13px;
}
.ubar__in {
  block-size: var(--ubar-h);
  display: flex; align-items: center; gap: 20px;
  white-space: nowrap; overflow: hidden;
}
.ubar__in > * { display: inline-flex; align-items: center; gap: 7px; }
.ubar svg { inline-size: 15px; block-size: 15px; flex: none; opacity: .85; }
.ubar__tel { font-weight: 600; color: #fff; }
.ubar__tel:hover { color: var(--yellow); }
.ubar__hours { margin-inline-start: auto; }
@media (max-width: 780px) {
  .ubar__hours { display: none; }
  .ubar__in > :last-child { margin-inline-start: auto; }
}

/* الصف الرئيسي */
.hdr__main { position: relative; }
.hdr__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo search act";
  align-items: center;
  gap: 10px;
  block-size: var(--hdr-h);
}

.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  inline-size: 40px; block-size: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--green-ink); color: var(--yellow);
  box-shadow: 0 3px 10px rgba(31,107,67,.3);
}
.logo__mark svg { inline-size: 22px; block-size: 22px; }
.logo__txt { display: none; line-height: 1.15; }
.logo__txt b { display: block; font-size: 17px; font-weight: 700; }
.logo__txt i { display: none; font-style: normal; font-size: 11.5px; color: var(--muted); }
@media (min-width: 560px) { .logo__txt { display: block; } }
@media (min-width: 880px) { .logo__txt i { display: block; } }

/* حقل البحث البارز */
.hsearch {
  grid-area: search;
  display: flex; align-items: center; gap: 6px;
  min-inline-size: 0;
  background: var(--grey);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding-inline: 4px;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.hsearch:focus-within { background: var(--white); border-color: var(--green); }
.hsearch__ico {
  inline-size: 38px; block-size: 38px; flex: none;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--muted);
  border-radius: var(--r-pill);
}
button.hsearch__ico { min-inline-size: 44px; min-block-size: 44px; color: var(--green-ink); }
button.hsearch__ico:hover { background: var(--green-tint); }
.hsearch__ico svg { inline-size: 19px; block-size: 19px; }
.hsearch input {
  flex: 1 1 auto; min-inline-size: 0;
  border: 0; background: transparent; outline: none;
  block-size: 42px;
  font-size: 16px;
  padding-inline: 2px;
}
.hsearch input::placeholder { color: var(--muted); opacity: 1; }
.hsearch input::-webkit-search-cancel-button { cursor: pointer; }

/* أدوات الترويسة */
.hdr__act { grid-area: act; display: inline-flex; align-items: center; gap: 6px; }

.cartbtn {
  position: relative;
  inline-size: 46px; block-size: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--green-tint); color: var(--green-ink);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.cartbtn:hover { background: var(--green-ink); color: #fff; }
.cartbtn svg { inline-size: 22px; block-size: 22px; }
.cartbtn__n {
  position: absolute;
  inset-block-start: -5px; inset-inline-end: -5px;
  min-inline-size: 22px; block-size: 22px;
  padding-inline: 5px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--sale); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1;
  border: 2px solid var(--white);
  animation: pop 260ms var(--ease);
}
@keyframes pop { from { transform: scale(.5); } to { transform: scale(1); } }
.cartbtn__n.is-bump { animation: bump 420ms var(--ease); }
@keyframes bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.42); }
  100% { transform: scale(1); }
}

.navtoggle {
  inline-size: 46px; block-size: 46px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--white); color: var(--ink);
}
.navtoggle:hover { background: var(--grey); }
.navtoggle svg { inline-size: 22px; block-size: 22px; }
.navtoggle .ic-x { display: none; }
.navtoggle[aria-expanded="true"] .ic-x { display: block; }
.navtoggle[aria-expanded="true"] .ic-menu { display: none; }

/* التنقّل */
.nav { display: none; }
.nav[data-open="true"] {
  display: block;
  position: absolute;
  inset-block-start: 100%; inset-inline: 0;
  z-index: var(--z-menu);
  background: var(--white);
  border-block-start: 1px solid var(--line);
  box-shadow: var(--sh-2);
  padding: 10px var(--gut) 16px;
}
.nav a, .btn-lang {
  display: flex; align-items: center;
  min-block-size: 48px;
  font-size: 16px; font-weight: 500;
  color: var(--ink-2);
  border-block-end: 1px solid var(--line);
}
.nav a:hover { color: var(--green-ink); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
.btn-lang {
  inline-size: 100%;
  border: 0; border-block-end: 0;
  background: none; text-align: start;
  color: var(--green-ink); font-weight: 600;
  margin-block-start: 6px;
}

@media (min-width: 880px) {
  .hdr__row { block-size: 64px; gap: 18px; }
  .hsearch { max-inline-size: 520px; margin-inline: auto; inline-size: 100%; }
  .navtoggle { display: none; }
  .hdr__act { gap: 10px; }

  .nav, .nav[data-open="true"] {
    display: block;
    position: static;
    padding: 0;
    box-shadow: none;
    border-block-start: 1px solid var(--line);
  }
  .nav__in {
    display: flex; align-items: center; gap: 26px;
    block-size: 45px;
    max-inline-size: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gut);
  }
  .nav a, .btn-lang {
    min-block-size: 45px;
    border-block-end: 2px solid transparent;
    font-size: 15px;
  }
  .nav a:hover { border-block-end-color: var(--green-tint2); }
  .nav a[aria-current="page"] { border-block-end-color: var(--green); }
  .btn-lang {
    inline-size: auto; margin-block-start: 0;
    margin-inline-start: auto;
    padding-inline: 14px;
    min-block-size: 34px;
    border-radius: var(--r-pill);
    background: var(--green-tint);
  }
  .btn-lang:hover { background: var(--green-tint2); }
}

/* ═══════════════════════════════════════════════
   ٥ · شبكة البينتو — هي الواجهة، لا غلاف إعلاني
   ═══════════════════════════════════════════════ */
.shopgrid { padding-block: 20px 26px; background: var(--grey); }

/* سطر عنوان المتجر — سطر واحد، ليس غلافاً */
.shoptop {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-block-end: 16px;
}
.shoptop h1 {
  font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.95rem);
  line-height: 1.32;
  max-inline-size: 30ch;
}
.shoptop__open {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--green-ink);
}
.shoptop__open .live__dot { background: var(--green); }
.shoptop__open .live__dot::after { border-color: var(--green); }

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.bento > * { border-radius: var(--r-lg); overflow: hidden; position: relative; }

/* البلاطة الترويجية */
.bn--promo {
  grid-column: span 2;
  min-block-size: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  background: var(--green-deep);
}
.bn--promo img {
  position: absolute; inset: 0;
  inline-size: 100%; block-size: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
/* تدرّج أسفل الصورة فقط — أعلى الصورة يبقى مضيئاً */
.bn--promo::after {
  content: ''; position: absolute; inset-inline: 0; inset-block-end: 0;
  block-size: 74%;
  background: linear-gradient(to top,
    rgba(11,32,20,.94) 0%, rgba(11,32,20,.86) 32%,
    rgba(11,32,20,.55) 62%, rgba(11,32,20,0) 100%);
}
.bn--promo__in {
  position: relative; z-index: 1;
  padding: 20px;
  display: grid; gap: 10px; justify-items: start;
}
.bn--promo h2 { color: #fff; font-size: clamp(1.35rem,1.05rem+1.2vw,2rem); max-inline-size: 16ch; }
.bn--promo p  { color: #D6EADE; font-size: 15px; max-inline-size: 46ch; }
.bn--promo:hover img { transform: scale(1.04); }

.pill-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--yellow); color: var(--ink);
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
}
.pill-tag svg { inline-size: 15px; block-size: 15px; }

/* بلاطات الأقسام */
.bn--cat {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  min-block-size: 150px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
              transform var(--t) var(--ease);
}
.bn--cat:hover { border-color: var(--green); box-shadow: var(--sh-2); transform: translateY(-2px); }
.bn--cat__img {
  position: relative; flex: 1 1 auto; overflow: hidden; min-block-size: 84px;
}
.bn--cat__img img {
  position: absolute; inset: 0;
  inline-size: 100%; block-size: 100%; object-fit: cover;
  transition: transform 500ms var(--ease);
}
.bn--cat:hover .bn--cat__img img { transform: scale(1.06); }
.bn--cat__body {
  padding: 10px 13px 12px;
  display: grid; gap: 2px;
  background: var(--white);
}
.bn--cat__body b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.bn--cat__body span { font-size: 12.5px; color: var(--muted); }

/* البلاطة الحيّة */
.bn--live {
  grid-column: span 2;
  padding: 18px 20px;
  display: grid; gap: 6px; align-content: center;
  background: linear-gradient(135deg, #2A7A4E 0%, var(--green-ink) 55%, #16593A 100%);
  color: #fff;
}
.live__top { display: inline-flex; align-items: center; gap: 10px; }
.live__dot {
  position: relative;
  inline-size: 10px; block-size: 10px; flex: none;
  border-radius: 50%; background: var(--yellow);
}
.live__dot::after {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid var(--yellow);
  opacity: .75;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(.55); opacity: .85; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.live__top span { font-size: 12.5px; font-weight: 600; color: #DFF3E8; letter-spacing: .01em; }
.bn--live h2 { color: #fff; font-size: clamp(1.2rem,1rem+.8vw,1.6rem); }
.live__eta {
  display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 14.5px; color: #DFF3E8;
}
.live__eta > .num {
  font-size: 22px; font-weight: 700; color: var(--yellow);
  letter-spacing: .01em;
}

/* بلاطة التوصيل المجاني */
.bn--free {
  grid-column: span 2;
  padding: 18px 20px;
  display: grid; gap: 6px; align-content: center;
  background: var(--yellow);
  color: var(--ink);
  border: 1px solid var(--yellow-line);
}
.bn--free svg { inline-size: 26px; block-size: 26px; }
.bn--free h2 { font-size: clamp(1.15rem,1rem+.7vw,1.5rem); }
.bn--free p { font-size: 14.5px; color: #574000; }
.bn--free .link-more { color: var(--ink); }
.bn--free .link-more:hover { border-block-end-color: var(--ink); }

@media (min-width: 700px) {
  .bento { gap: 14px; grid-template-columns: repeat(3, 1fr); }
  .bn--promo { grid-column: span 3; min-block-size: 320px; }
  .bn--promo__in { padding: 26px; }
  .bn--live { grid-column: span 2; }
  .bn--free { grid-column: span 1; }
}

@media (min-width: 1020px) {
  .shopgrid { padding-block: 28px 34px; }
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(162px, auto);
    gap: 16px;
  }
  .bn--promo { grid-column: span 2; grid-row: span 2; min-block-size: 0; }
  .bn--promo__in { padding: 30px; }
  .bn--cat { min-block-size: 0; }
  .bn--live { grid-column: span 2; grid-row: span 1; }
  .bn--free { grid-column: span 2; grid-row: span 1; }
}

/* ═══════════════════════════════════════════════
   ٦ · شريط الأقسام اللاصق
   ═══════════════════════════════════════════════ */
.crail {
  position: sticky;
  inset-block-start: calc(var(--hdr-h) - 1px);
  z-index: var(--z-raised);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-block: 1px solid var(--line);
}
.crail__in {
  display: flex; align-items: center; gap: 12px;
  block-size: 64px;
}
.crail__lbl {
  display: none; flex: none;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
}
@media (min-width: 780px) { .crail__lbl { display: block; } }

.chips {
  display: flex; align-items: stretch; gap: 8px;
  overflow-x: auto;
  padding-block: 10px;
  scroll-padding-inline-start: 8px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex; align-items: center;
  min-block-size: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink-2);
  font-size: 14.5px; font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.chip:hover { border-color: var(--green); background: var(--green-tint); color: var(--green-ink); }
.chip[aria-pressed="true"] {
  background: var(--green-ink); border-color: var(--green-ink); color: #fff; font-weight: 600;
}

/* ═══════════════════════════════════════════════
   ٧ · الأقسام العامة والعناوين
   ═══════════════════════════════════════════════ */
.sec { padding-block: clamp(38px, 6vw, 66px); background: var(--white); }
.sec--grey { background: var(--grey); }
.sec--tint { background: var(--green-tint); }

.sec-head { display: grid; gap: 10px; max-inline-size: 62ch; }
.sec-head p { color: var(--muted); font-size: 16px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-block-end: 26px;
}

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--green-tint); color: var(--green-ink);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .02em;
  inline-size: fit-content;
}
.tag--green { background: var(--green-ink); color: #fff; }
.tag svg { inline-size: 15px; block-size: 15px; }

/* ═══════════════════════════════════════════════
   ٨ · سكة عروض اليوم (تمرير أفقي بالتقاط)
   ═══════════════════════════════════════════════ */
.dealsec { background: var(--white); padding-block: clamp(34px, 5vw, 54px); }

.drail {
  display: flex;
  gap: 14px;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: 2px;
  padding-block-end: 14px;
  padding-inline-start: 2px;
}
.drail > .card {
  flex: 0 0 clamp(206px, 46vw, 244px);
  scroll-snap-align: start;
}
@media (hover: hover) and (pointer: fine) {
  .drail { cursor: grab; }
  .drail.is-drag { cursor: grabbing; user-select: none; scroll-snap-type: none; }
  .drail.is-drag .card { pointer-events: none; }
  .drail.is-drag .card:hover { transform: none; box-shadow: none; }
}
.drail__hint {
  display: flex; align-items: center; gap: 8px;
  margin-block-start: 4px;
  font-size: 13.5px; color: var(--muted);
}
.drail__hint svg { inline-size: 17px; block-size: 17px; }

/* ═══════════════════════════════════════════════
   ٩ · بطاقة المنتج + الشبكة
   ═══════════════════════════════════════════════ */
.grid-prod {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .grid-prod { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid-prod { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
              transform var(--t) var(--ease);
}
.card:hover { border-color: var(--green-tint2); box-shadow: var(--sh-2); transform: translateY(-3px); }

.card__img { position: relative; background: var(--grey-2); aspect-ratio: 4 / 3; }
.card__img img { inline-size: 100%; block-size: 100%; object-fit: cover; }

.card__off {
  position: absolute;
  inset-block-start: 10px; inset-inline-start: 10px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--sale); color: #fff;
  font-size: 12.5px; font-weight: 700; line-height: 1.4;
  box-shadow: 0 3px 10px rgba(196,44,44,.35);
}
.card__cat {
  position: absolute;
  inset-block-end: 10px; inset-inline-end: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.94); color: var(--green-ink);
  font-size: 11.5px; font-weight: 600;
}

.card__body {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 13px 13px;
  flex: 1 1 auto;
}
.card__name {
  font-size: 16px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-block-size: 2.8em;
}
.card__unit { font-size: 13px; color: var(--muted); }

.card__prices {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  margin-block-start: auto;
  padding-block-start: 4px;
}
.card__price { font-size: 18px; font-weight: 700; color: var(--green-ink); }
.card__price .cur { font-size: 12.5px; font-weight: 600; }
.card__old {
  font-size: 13.5px; color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--sale);
}
.card__old .cur { font-size: 11px; }

.addbtn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  inline-size: 100%; min-block-size: 44px;
  margin-block-start: 6px;
  border: 1.5px solid var(--green); border-radius: var(--r-pill);
  background: var(--green-tint); color: var(--green-ink);
  font-size: 14.5px; font-weight: 600;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.addbtn svg { inline-size: 18px; block-size: 18px; }
.addbtn:hover { background: var(--green-ink); color: #fff; }

.qty {
  display: grid; grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-block-size: 44px;
  margin-block-start: 6px;
  border: 1.5px solid var(--green-ink); border-radius: var(--r-pill);
  background: var(--green-ink); color: #fff;
  overflow: hidden;
}
.qty button {
  inline-size: 44px; block-size: 44px;
  display: grid; place-items: center;
  border: 0; background: transparent; color: inherit;
}
.qty button:hover { background: rgba(255,255,255,.18); }
.qty button svg { inline-size: 18px; block-size: 18px; }
.qty__n { text-align: center; font-weight: 700; font-size: 16px; }

.qty--plain {
  background: var(--white); color: var(--green-ink);
  border-color: var(--line-2);
  margin-block-start: 0;
}
.qty--plain button:hover { background: var(--green-tint); }

/* ═══════════════════════════════════════════════
   ١٠ · قسم البحث/الشبكة الحيّة
   ═══════════════════════════════════════════════ */
.shopsec { background: var(--grey); padding-block: clamp(34px, 5vw, 60px); }

.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-block-end: 16px;
}
.count { font-size: 15px; color: var(--muted); }
.count b { color: var(--ink); font-weight: 700; }

.results-bar__end { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sortbox { display: flex; align-items: center; gap: 10px; }
.sortbox label { font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.sortbox .sel {
  min-block-size: 44px; padding-block: 8px; font-size: 15px;
  inline-size: auto; min-inline-size: 180px;
}

.empty {
  display: grid; gap: 12px; justify-items: center; text-align: center;
  padding: 46px 22px;
  background: var(--white);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-xl);
}
.empty__ico {
  inline-size: 60px; block-size: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-tint); color: var(--green-ink);
}
.empty__ico svg { inline-size: 27px; block-size: 27px; }
.empty p { color: var(--muted); max-inline-size: 44ch; }

/* ═══════════════════════════════════════════════
   ١١ · كيف تطلب — ثلاث بطاقات عريضة
   ═══════════════════════════════════════════════ */
.how { display: grid; gap: 14px; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.howc {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.howc:hover { border-color: var(--green-tint2); box-shadow: var(--sh-1); }
.howc__ico {
  inline-size: 58px; block-size: 58px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--green-tint); color: var(--green-ink);
}
.howc__ico svg { inline-size: 30px; block-size: 30px; }
.howc h3 { margin-block-end: 6px; }
.howc p { color: var(--muted); font-size: 15px; }
.howc__n {
  position: absolute;
  inset-block-start: 10px; inset-inline-end: 16px;
  font-size: 54px; font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--green-tint2);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   ١٢ · شريط فترات التوصيل
   ═══════════════════════════════════════════════ */
.slotband { background: var(--green-deep); color: #fff; padding-block: clamp(34px,5vw,54px); }
.slotband h2 { color: #fff; }
.slotband .tag { background: rgba(255,255,255,.14); color: #D9EFE3; }
.slotband > .wrap > p { color: #B9D6C6; max-inline-size: 60ch; margin-block-start: 10px; }

.slotpills {
  position: relative;
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-block-start: 22px;
  border: 0; padding: 0;
}
.slotpills legend { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }

.spill { position: relative; flex: 1 1 190px; }
.spill input {
  position: absolute; opacity: 0;
  inline-size: 100%; block-size: 100%;
  margin: 0; cursor: pointer;
}
.spill__box {
  display: grid; gap: 3px;
  min-block-size: 68px;
  padding: 12px 16px;
  border: 1.5px solid rgba(255,255,255,.26);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.spill__box b { font-size: 13px; font-weight: 600; color: #B9D6C6; }
.spill__box > span { font-size: 17px; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.spill:hover .spill__box { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.spill input:focus-visible + .spill__box { outline: 2px solid var(--yellow); outline-offset: 2px; }
.spill input:checked + .spill__box {
  background: var(--yellow); border-color: var(--yellow); color: var(--ink);
}
.spill input:checked + .spill__box b { color: #6B4A00; }
.spill input:disabled + .spill__box { opacity: .45; }
.spill input:disabled { cursor: not-allowed; }
.spill__full {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.18);
  font-size: 11.5px; font-weight: 600; color: #fff;
}

.slotpick {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-block-start: 20px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.08);
  border: 1px dashed rgba(255,255,255,.3);
  font-size: 15px; color: #DCEFE3;
}
.slotpick b { color: var(--yellow); font-weight: 700; }
.slotpick .iso { font-weight: 700; }

/* ═══════════════════════════════════════════════
   ١٣ · شريط الثقة — خطوط شعرية
   ═══════════════════════════════════════════════ */
.trust { background: var(--white); border-block-start: 1px solid var(--line); }
.trust__in {
  display: grid;
  grid-template-columns: 1fr;
  padding-block: 8px;
}
.trust__i {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding-block: 18px;
  border-block-end: 1px solid var(--line);
}
.trust__i:last-child { border-block-end: 0; }
.trust__i svg { inline-size: 26px; block-size: 26px; color: var(--green); }
.trust__i b { display: block; font-size: 15.5px; font-weight: 600; }
.trust__i span { font-size: 14px; color: var(--muted); }

@media (min-width: 820px) {
  .trust__in { grid-template-columns: repeat(3, 1fr); padding-block: 0; }
  .trust__i {
    padding: 26px 24px;
    border-block-end: 0;
    border-inline-end: 1px solid var(--line);
  }
  .trust__i:last-child { border-inline-end: 0; }
  .trust__i:first-child { padding-inline-start: 0; }
}

/* ═══════════════════════════════════════════════
   ١٤ · صفحات داخلية: ترويسة الصفحة والمسار
   ═══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(180deg, var(--green-tint) 0%, var(--white) 100%);
  padding-block: clamp(26px, 4vw, 46px) clamp(26px, 4vw, 44px);
  border-block-end: 1px solid var(--line);
}
.page-hero h1 { margin-block: 12px 10px; }
.page-hero p { color: var(--muted); max-inline-size: 66ch; font-size: 16.5px; }

.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--muted);
}
.crumbs a { color: var(--green-ink); font-weight: 600; min-block-size: 32px; display: inline-flex; align-items: center; }
.crumbs a:hover { text-decoration: underline; }
.crumbs svg { inline-size: 15px; block-size: 15px; opacity: .6; }

/* ═══════════════════════════════════════════════
   ١٥ · شبكات الأقسام (صفحة الأقسام + الرئيسية)
   ═══════════════════════════════════════════════ */
.cats {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .cats { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1020px) { .cats { grid-template-columns: repeat(6, 1fr); } }

.cats--big { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cats--big { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1020px) { .cats--big { grid-template-columns: repeat(3, 1fr); } }

.catbig {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
              transform var(--t) var(--ease);
}
.catbig:hover { border-color: var(--green); box-shadow: var(--sh-2); transform: translateY(-3px); }
.catbig__img { position: relative; aspect-ratio: 8 / 5; overflow: hidden; background: var(--grey-2); }
.catbig__img img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.catbig:hover .catbig__img img { transform: scale(1.05); }
.catbig__pill {
  position: absolute;
  inset-block-start: 12px; inset-inline-start: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.95); color: var(--green-ink);
  font-size: 12.5px; font-weight: 600;
}
.catbig__pill svg { inline-size: 15px; block-size: 15px; }
.catbig__body { display: grid; gap: 8px; padding: 18px; flex: 1 1 auto; }
.catbig__body p { color: var(--muted); font-size: 15px; }
.catbig__go {
  display: inline-flex; align-items: center; gap: 8px;
  margin-block-start: auto; padding-block-start: 6px;
  color: var(--green-ink); font-weight: 600; font-size: 14.5px;
}
.catbig__go svg { inline-size: 17px; block-size: 17px; }
.catbig:hover .catbig__go { gap: 12px; }

/* ═══════════════════════════════════════════════
   ١٦ · مميزات وخطوات وآراء ودعوة
   ═══════════════════════════════════════════════ */
.voices { display: grid; gap: 14px; grid-template-columns: 1fr; margin-block-start: 26px; }
@media (min-width: 820px) { .voices { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.voice {
  display: grid; gap: 12px; align-content: start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.voice__stars { display: inline-flex; gap: 3px; color: var(--yellow); }
.voice__stars svg {
  inline-size: 18px; block-size: 18px;
  fill: currentColor; stroke: var(--yellow-line); stroke-width: 1.2;
}
.voice p { font-size: 15.5px; color: var(--ink-2); }
.voice__who { display: flex; align-items: center; gap: 12px; padding-block-start: 4px; border-block-start: 1px solid var(--line); }
.voice__who > span { display: grid; }
.voice__who b { font-size: 15px; }
.voice__who span span { font-size: 13px; color: var(--muted); }
.voice__av {
  inline-size: 42px; block-size: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-tint); color: var(--green-ink);
  font-weight: 700; font-size: 17px;
}

.cta {
  display: grid; gap: 14px; justify-items: center; text-align: center;
  padding: clamp(30px, 5vw, 52px) clamp(20px, 4vw, 44px);
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--r-xl);
}
.cta h2 { color: #fff; max-inline-size: 22ch; }
.cta p { color: #BEDCCC; max-inline-size: 58ch; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-block-start: 6px; }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.cta .btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ═══════════════════════════════════════════════
   ١٧ · صفحة العروض
   ═══════════════════════════════════════════════ */
.banner {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.banner__body { display: grid; gap: 12px; align-content: center; padding: clamp(24px,4vw,44px); }
.banner__body h2 { color: #fff; }
.banner__body p { color: #BEDCCC; max-inline-size: 52ch; }
.banner .tag { background: var(--yellow); color: var(--ink); }
.banner__code {
  display: inline-flex; align-items: center; gap: 10px;
  inline-size: fit-content;
  padding: 10px 18px;
  border: 1.5px dashed var(--yellow);
  border-radius: var(--r);
  color: var(--yellow);
  font-weight: 700; letter-spacing: .08em;
}
.banner__code svg { inline-size: 19px; block-size: 19px; }
.banner__img { min-block-size: 220px; }
.banner__img img { inline-size: 100%; block-size: 100%; object-fit: cover; }
@media (min-width: 860px) {
  .banner { grid-template-columns: 1.15fr .85fr; }
  .banner__img { min-block-size: 320px; }
}

.deals3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .deals3 { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.deal {
  display: grid; gap: 8px; align-content: start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  border-block-start: 4px solid var(--yellow);
}
.deal__n { font-size: 40px; font-weight: 800; line-height: 1; color: var(--green); }
.deal p { color: var(--muted); font-size: 15px; }

.split { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, 1fr); gap: 44px; } }
.split img { inline-size: 100%; border-radius: var(--r-xl); object-fit: cover; }
.split h2 { margin-block: 12px 14px; }
.split > div > p { color: var(--muted); }
.split ul { display: grid; gap: 12px; margin-block-start: 16px; }
.split li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 15.5px; }
.split li svg { inline-size: 21px; block-size: 21px; color: var(--green); margin-block-start: 3px; }

/* ═══════════════════════════════════════════════
   ١٨ · صفحة التوصيل
   ═══════════════════════════════════════════════ */
.zones { display: grid; gap: 14px; grid-template-columns: 1fr; margin-block-start: 26px; }
@media (min-width: 820px) { .zones { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.zone {
  display: grid; gap: 10px; align-content: start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.zone--hot { border-color: var(--green); box-shadow: var(--sh-1); }
.zone__top { display: flex; align-items: center; gap: 12px; }
.zone__ico {
  inline-size: 42px; block-size: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--green-tint); color: var(--green-ink);
}
.zone__ico svg { inline-size: 21px; block-size: 21px; }
.zone > p { color: var(--muted); font-size: 14.5px; }
.zone__fee { font-size: 26px; font-weight: 800; color: var(--green-ink); }
.zone__fee span { font-size: 13px; font-weight: 600; }
.zone ul { display: grid; gap: 9px; padding-block-start: 12px; border-block-start: 1px solid var(--line); }
.zone li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-size: 14.5px; }
.zone li svg { inline-size: 18px; block-size: 18px; color: var(--green); }

.tbl-wrap { overflow-x: auto; margin-block-start: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); }
.tbl { inline-size: 100%; border-collapse: collapse; min-inline-size: 620px; }
.tbl th, .tbl td { padding: 14px 16px; text-align: start; font-size: 14.5px; border-block-end: 1px solid var(--line); }
.tbl thead th { background: var(--green-tint); color: var(--green-deep); font-weight: 700; font-size: 13.5px; }
.tbl tbody th { font-weight: 700; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-block-end: 0; }
.tbl tbody tr:hover { background: var(--grey); }

.faq { display: grid; gap: 10px; margin-block-start: 26px; max-inline-size: 900px; margin-inline: auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq details[open] { border-color: var(--green-tint2); box-shadow: var(--sh-1); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-block-size: 56px;
  padding: 14px 18px;
  font-weight: 600; font-size: 15.5px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none;
  inline-size: 12px; block-size: 12px;
  border-inline-end: 2px solid var(--green); border-block-end: 2px solid var(--green);
  transform: rotate(45deg); margin-block-end: 4px;
  transition: transform var(--t) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-block: 4px 0; }
.faq__a { padding: 0 18px 18px; color: var(--muted); font-size: 15px; }

/* ═══════════════════════════════════════════════
   ١٩ · السلة والنموذج
   ═══════════════════════════════════════════════ */
.cartlay { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) {
  .cartlay { grid-template-columns: 1.5fr 1fr; gap: 22px; }
  .cart-items { grid-column: 1; grid-row: 1; }
  .cart-sum   { grid-column: 2; grid-row: 1 / span 2; position: sticky; inset-block-start: calc(var(--hdr-h) + 16px); }
  .cart-form  { grid-column: 1; grid-row: 2; }
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(18px, 3vw, 26px);
}
.panel > h2 { font-size: 1.25rem; margin-block-end: 14px; }

.line {
  display: grid; grid-template-columns: 76px 1fr; gap: 14px;
  padding-block: 16px;
  border-block-end: 1px solid var(--line);
}
.line:last-child { border-block-end: 0; padding-block-end: 0; }
.line:first-child { padding-block-start: 0; }
.line__img { inline-size: 76px; block-size: 76px; border-radius: var(--r); overflow: hidden; background: var(--grey-2); }
.line__img img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.line__main { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.line__txt { display: grid; gap: 3px; min-inline-size: 130px; }
.line__txt b { font-size: 15.5px; font-weight: 600; }
.line__txt > span { font-size: 13.5px; color: var(--muted); }
.line__end { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.line__total { font-weight: 700; font-size: 15.5px; min-inline-size: 90px; }
.line__rm {
  inline-size: 44px; block-size: 44px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--muted);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.line__rm:hover { color: var(--sale); border-color: var(--sale); background: var(--sale-soft); }
.line__rm svg { inline-size: 18px; block-size: 18px; }

.sumrow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-block: 11px;
  border-block-end: 1px solid var(--line);
  font-size: 15px;
}
.sumrow span { color: var(--muted); }
.sumrow b { font-weight: 600; }
.sumrow--total {
  border-block-end: 0;
  margin-block-start: 4px; padding-block-start: 14px;
  border-block-start: 2px solid var(--ink);
  font-size: 17px;
}
.sumrow--total b { font-size: 21px; font-weight: 800; color: var(--green-ink); }
.free-tag { color: var(--green-ink); font-weight: 700; }

.freebar { margin-block: 16px 6px; }
.freebar__txt { font-size: 14px; color: var(--muted); margin-block-end: 8px; }
.freebar__txt b { color: var(--ink); }
.freebar__track { block-size: 8px; border-radius: var(--r-pill); background: var(--grey-2); overflow: hidden; }
.freebar__fill {
  block-size: 100%; inline-size: 0;
  background: linear-gradient(90deg, var(--green) 0%, #4FB57C 100%);
  border-radius: var(--r-pill);
  transition: width 400ms var(--ease);
}
.freebar--done .freebar__fill { background: var(--yellow); }
.freebar--done .freebar__txt { color: var(--green-ink); font-weight: 600; }

.hint { font-size: 13.5px; color: var(--muted); margin-block: 10px; display: block; }

.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 660px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.span2 { grid-column: 1 / -1; }

.field { display: grid; gap: 7px; }
.field > label {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.req { color: var(--sale); }

.inp, .sel, .txa {
  inline-size: 100%;
  min-block-size: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r);
  background: var(--white);
  font-size: 16px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.txa { min-block-size: 96px; resize: vertical; line-height: 1.6; }
.inp:hover, .sel:hover, .txa:hover { border-color: var(--line-2); }
.inp:focus, .sel:focus, .txa:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,139,87,.16);
}
.inp:focus-visible, .sel:focus-visible, .txa:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 1px; }
.inp[aria-invalid="true"], .sel[aria-invalid="true"], .txa[aria-invalid="true"] { border-color: var(--sale); }
.sel {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-position: right 18px center, right 24px center;
  padding-inline-end: 40px;
}
/* السهم يُرسم على الجهة المنطقية inline-end — لا مقابل منطقي لـbackground-position */
[dir="rtl"] .sel { background-position: left 24px center, left 18px center; }

.err {
  display: none;
  align-items: flex-start; gap: 8px;
  font-size: 13.5px; color: var(--sale); font-weight: 500;
}
.err.show { display: flex; }
.err svg { inline-size: 17px; block-size: 17px; flex: none; margin-block-start: 2px; }
.news-ok { display: none; font-size: 13.5px; color: var(--green-ink); font-weight: 600; margin-block-start: 8px; }
.news-ok.show { display: block; }

.fieldset { border: 0; padding: 0; margin-block-start: 22px; }
.fieldset legend { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-block-end: 10px; padding: 0; }

.slots { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .slots { grid-template-columns: repeat(4, 1fr); } }

.slot, .payopt {
  position: relative;
  display: grid; gap: 3px;
  min-block-size: 62px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.slot input, .payopt input { position: absolute; opacity: 0; inline-size: 100%; block-size: 100%; margin: 0; cursor: pointer; }
.slot:hover, .payopt:hover { border-color: var(--green); background: var(--green-tint); }
.slot:has(input:checked), .payopt:has(input:checked) {
  border-color: var(--green); background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--green);
}
.slot:has(input:focus-visible), .payopt:has(input:focus-visible) { outline: 2px solid var(--green-ink); outline-offset: 2px; }
.slot__d { font-size: 13px; color: var(--muted); font-weight: 600; }
.slot__t { font-size: 15px; font-weight: 700; }

.payopt { grid-template-columns: auto 1fr; gap: 12px; align-items: center; grid-column: span 2; }
.payopt__ico {
  inline-size: 42px; block-size: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--green-tint); color: var(--green-ink);
}
.payopt__ico svg { inline-size: 21px; block-size: 21px; }
.payopt__txt { display: grid; gap: 2px; }
.payopt__txt b { font-size: 15px; }
.payopt__txt span { font-size: 13px; color: var(--muted); }

.done { display: grid; gap: 12px; justify-items: center; text-align: center; padding: clamp(26px,4vw,44px); }
.done__ico {
  inline-size: 62px; block-size: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green); color: #fff;
}
.done__ico svg { inline-size: 30px; block-size: 30px; }
.done p { color: var(--muted); max-inline-size: 54ch; }
.done__facts {
  display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr);
  inline-size: 100%; max-inline-size: 620px;
  margin-block: 12px;
}
@media (min-width: 720px) { .done__facts { grid-template-columns: repeat(4, 1fr); } }
.fact {
  display: grid; gap: 4px;
  padding: 14px;
  background: var(--grey);
  border-radius: var(--r);
  text-align: center;
}
.fact span { font-size: 12.5px; color: var(--muted); }
.fact b { font-size: 15.5px; font-weight: 700; }

/* تنبيه عائم */
.toast {
  position: fixed;
  inset-block-end: 20px; inset-inline-end: 20px;
  z-index: var(--z-toast);
  display: flex; align-items: center; gap: 10px;
  max-inline-size: min(360px, calc(100vw - 40px));
  padding: 13px 18px;
  border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-size: 14.5px; font-weight: 500;
  box-shadow: var(--sh-3);
  opacity: 0; transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast svg { inline-size: 19px; block-size: 19px; flex: none; color: #7FD9A6; }

/* ═══════════════════════════════════════════════
   ٢٠ · التذييل
   ═══════════════════════════════════════════════ */
.foot {
  background: var(--green-deep);
  color: #C6DFD1;
  padding-block: clamp(38px, 5vw, 60px) 22px;
  margin-block-start: 0;
}
.foot__grid {
  display: grid; gap: 30px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .foot__grid { grid-template-columns: repeat(2, 1fr); gap: 34px; } }
@media (min-width: 1020px) { .foot__grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 38px; } }

.foot h3 { color: #fff; font-size: 15.5px; margin-block-end: 14px; }
.foot p { font-size: 14.5px; line-height: 1.75; }
.foot .logo { margin-block-end: 14px; }
.foot .logo__txt, .foot .logo__txt i { display: block; }
.foot .logo__txt b { color: #fff; }
.foot .logo__txt i { color: #9FC6B1; }
.foot .logo__mark { background: var(--yellow); color: var(--green-deep); box-shadow: none; }
.foot ul { display: grid; gap: 9px; }
.foot ul a { font-size: 14.5px; display: inline-flex; align-items: center; min-block-size: 30px; }
.foot ul a:hover { color: var(--yellow); }
.foot__contact { margin-block-start: 16px; }
.foot__contact li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-size: 14px; }
.foot__contact svg { inline-size: 17px; block-size: 17px; color: var(--yellow); }
.foot__tel { font-weight: 600; color: #fff; }

.newsf { display: flex; gap: 8px; margin-block-start: 12px; }
.newsf .inp {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.newsf .inp::placeholder { color: #8FB6A0; }
.newsf .inp:focus { background: rgba(255,255,255,.14); border-color: var(--yellow); box-shadow: none; }
.foot .err { color: #FFB4B4; margin-block-start: 8px; }
.foot .news-ok { color: var(--yellow); }

.foot__bar {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  justify-content: space-between;
  margin-block-start: 34px; padding-block-start: 18px;
  border-block-start: 1px solid rgba(255,255,255,.15);
  font-size: 13px; color: #9FC6B1;
}

/* ═══════════════════════════════════════════════
   ٢١ · شارة النموذج لا تغطي المحتوى على الجوال
   ═══════════════════════════════════════════════ */
@media (max-width: 520px) {
  .foot__bar { padding-block-end: 52px; }
}

/* ═══════════════════════════════════════════════
   ٢٢ · حركة مخفّضة — إجباري
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══ تصفير هوامش المتصفح الافتراضية ═══
   المتصفح يطبّق margin: 1em 40px على figure و blockquote تلقائيًا،
   فتظهر فجوة 40 بكسل غير مقصودة حول الصور والاقتباسات. */
figure, blockquote, dl, dd { margin: 0; }
