/* ─────────────────────────────────────────────────────────────
   الست ليلى — elsitlayla.com
   هوية العلبة (غطاء زيتوني، ورق كريمي، حديقة مرسومة، خيط ذهبي)
   + محرّك الطلب عبر واتساب. خط واحد مقروء: IBM Plex Sans Arabic.
   الشعار (assets/img/logo.svg) هو الخط اليدوي الوحيد في الموقع.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #F3EDE2;        /* ورق المنيو */
  --lid: #FDFCF0;          /* بيضاوي الشعار / البطاقات */
  --sage: #D9DCCB;         /* داخل العلبة */
  --sage-soft: #E7E8DA;
  --olive: #5B7243;        /* العلبة من الخارج */
  --olive-ink: #4F6339;
  --green: #2C5A32;        /* أخضر المنيو العميق */
  --green-deep: #22472A;
  --gold: #C4A052;         /* خيوط فقط */
  --gold-ink: #7F6228;     /* ذهبي مقروء على الكريمي */
  --gold-soft: #E2CB8F;    /* ذهبي مقروء على الأخضر */
  --ink: #26301F;
  --muted: #56574A;
  --line: rgba(196, 160, 82, .5);
  --line-soft: rgba(196, 160, 82, .3);
  --hair: rgba(44, 90, 50, .12);
  --tint: rgba(91, 114, 67, .1);

  --gut: 16px;
  --nav-h: 60px;
  --strip-h: 78px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.35, .45, 1);
  --shadow: 0 1px 1px rgba(38, 48, 31, .04), 0 10px 26px -18px rgba(38, 48, 31, .34);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  background: var(--paper);
}
html.has-cart { scroll-padding-bottom: calc(92px + var(--safe-b)); }
html.lock { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
bdi { unicode-bidi: isolate; }

.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; border-radius: 10px; }
/* على الأخضر فقط: حلقة ذهبية فاتحة (5:1). شريط الطلب والزر العائم وزر الإرسال على الكريمي فيبقون بالأخضر (≥ 6.9:1) */
.offer :focus-visible, .foot :focus-visible { outline-color: var(--gold-soft); }

.skip {
  position: fixed; top: 8px; right: 8px; z-index: 100;
  background: var(--green); color: var(--lid); padding: 10px 16px; border-radius: 12px;
  transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* الشعار المرسوم — قناع SVG يأخذ لون currentColor */
.logo {
  display: inline-block;
  aspect-ratio: 2175 / 620;
  background: currentColor;
  -webkit-mask: url("../assets/img/logo.svg") center / contain no-repeat;
          mask: url("../assets/img/logo.svg") center / contain no-repeat;
}

/* ───────── أزرار ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 20px; height: 20px; }
.btn-green { background: var(--green); color: var(--lid); box-shadow: 0 8px 18px -10px rgba(44, 90, 50, .85); }
.btn-green:hover { background: var(--green-deep); }
.btn-line { border-color: var(--olive); color: var(--green); background: rgba(253, 252, 240, .94); }
.btn-line:hover { background: var(--lid); }
.btn-cream { background: var(--lid); color: var(--green); }
.btn-cream:hover { background: #fff; }
.btn-wide { width: 100%; }

/* ═════════ الغطاء (الواجهة) ═════════ */
.lid { background: var(--olive); padding: 6px; }
.lid-panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 14px 0;
  background: radial-gradient(130% 70% at 50% 18%, #FFFEF7 0%, #FAF6EC 55%, #F1EADC 100%);
}
/* خط القصّ الذهبي كما في مخطط العلبة */
.lid-panel::before {
  content: ""; position: absolute; inset: 5px; z-index: 5; pointer-events: none;
  border: 1px solid var(--line);
}
.lid-canopy {
  position: absolute; top: 0; left: 50%; width: 520px; z-index: 0;
  transform: translateX(-50%); pointer-events: none;
  -webkit-mask: linear-gradient(#000 45%, transparent 98%);
          mask: linear-gradient(#000 45%, transparent 98%);
}
.lid-canopy img { width: 100%; transform: scaleY(-1); }
.lid-brand { display: contents; }
.lid-oval {
  order: 1; position: relative; z-index: 2;
  width: 204px; height: 94px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lid);
  box-shadow: 0 0 0 1px var(--line-soft), 0 10px 22px -18px rgba(60, 70, 40, .45);
  color: var(--olive);
}
.lid-oval .logo { width: 168px; }
.lid-line {
  order: 2; position: relative; z-index: 2;
  margin-top: 8px;
  font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--green); text-align: center;
}
.lid-tag { display: none; order: 3; }
.lid-photo {
  order: 3; position: relative; z-index: 2;
  width: 100%; margin-top: 10px;
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 18px; background: var(--sage);
  box-shadow: 0 0 0 1px rgba(196, 160, 82, .4), 0 18px 30px -18px rgba(30, 45, 25, .65);
}
.lid-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.hero-bar { order: 4; position: relative; z-index: 3; width: 100%; padding-top: 10px; isolation: isolate; }
.hero-facts {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px;
  font-size: 16px; line-height: 1.5; color: var(--muted);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts .is-wide { display: none; }
.hero-facts .ic { width: 18px; height: 18px; color: var(--olive); }
.hero-facts .is-key { font-weight: 600; color: var(--green); }
.hero-facts .is-key .ic { color: var(--gold-ink); }
.hero-cta { position: relative; display: flex; gap: 10px; margin-top: 10px; }
/* هالة كريمية خفيفة خلف الزرّين كي لا تظهر سعف النخيل بينهما */
.hero-cta::before {
  content: ""; position: absolute; z-index: -1; inset: -10px -14px -16px; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 50%, rgba(250, 246, 236, .95), rgba(250, 246, 236, 0));
}
.hero-cta .btn { min-height: 50px; padding: 0 14px; }
.hero-cta .btn-green { flex: 1.35 1 0; }
.hero-cta .btn-line { flex: 1 1 0; background: var(--lid); }
.hero-cta .btn-green .ic { width: 18px; height: 18px; }
.lid-ground {
  order: 5; position: relative; z-index: 1;
  width: 430px; flex: none; margin-top: -36px; pointer-events: none;
}
.lid-ground img { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .lid-canopy img { animation: canopy 1s var(--ease) both; }
  .lid-ground img { animation: rise 1s .05s var(--ease) both; }
  .lid-oval { animation: bloom .8s .1s var(--ease) both; }
}
@keyframes canopy { from { transform: scaleY(-1) translateY(18px); opacity: 0; } }
@keyframes rise { from { transform: translateY(22px); opacity: 0; } }
@keyframes bloom { from { transform: scale(.92); opacity: 0; } }

/* ═════════ شريط الأقسام ═════════ */
.catnav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center;
  height: var(--nav-h);
  background: rgba(243, 237, 226, .95);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
          backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s;
}
.catnav.is-stuck { box-shadow: 0 10px 18px -16px rgba(30, 42, 29, .5); }
.catnav-home {
  flex: none; display: grid; place-items: center;
  width: 70px; height: 44px; margin-inline-start: 6px; padding-inline-end: 8px;
  color: var(--olive);
  border-inline-end: 1px solid var(--line-soft);
}
.catnav-home .logo { width: 58px; }
.chips-scroll {
  flex: 1; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 26px), transparent);
          mask-image: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 26px), transparent);
}
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-track { position: relative; display: flex; gap: 2px; width: max-content; padding: 0 14px 0 28px; }
.chip {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  color: var(--olive-ink);
  transition: color .3s var(--ease);
}
.chip.is-active { color: var(--lid); }
/* الشريط يقصّ ما يخرج عنه: الحلقة داخل الزر، وعلى الزر النشط (الأخضر) ذهبية فاتحة */
.chip:focus-visible { outline-offset: -4px; }
.chip.is-active:focus-visible, .chip[aria-current="page"]:focus-visible { outline-color: var(--gold-soft); }
/* صفحات الأقسام: زر القسم الحالي رابط عادي بلا مؤشّر متحرك، فيأخذ الخلفية بنفسه */
.chip[aria-current="page"], .chip.is-active:not([data-sec]) { background: var(--green); color: var(--lid); }
.chips-ind {
  position: absolute; z-index: 0; top: 0; left: 0;
  width: 0; height: 44px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 6px 14px -8px rgba(44, 90, 50, .9);
  transition: transform .42s var(--ease), width .42s var(--ease);
}
.no-js .chips-ind { display: none; }

/* ═════════ المنيو ═════════ */
.menu { padding: 0 var(--gut) 8px; outline: none; }
.noscript { padding: 20px 4px 0; text-align: center; }
.noscript a { color: var(--green); font-weight: 700; text-decoration: underline; }
.sec { padding-top: 24px; scroll-margin-top: var(--nav-h); }
.menu > .sec:first-of-type { padding-top: 10px; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 12px; }
.sec-orn { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.sec-orn::before, .sec-orn::after { content: ""; width: 46px; height: 1px; background: linear-gradient(to left, rgba(196, 160, 82, 0), var(--gold)); }
.sec-orn::after { transform: scaleX(-1); }
.sec-orn .ic { width: 20px; height: 20px; }
.sec-title { margin-top: 2px; font-size: 28px; font-weight: 700; line-height: 1.35; color: var(--green); }
.sec-en { margin-top: 1px; font-size: 11px; font-weight: 400; line-height: 1.4; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }
.sec-note { margin-top: 8px; max-width: 36ch; text-wrap: balance; font-size: 16px; line-height: 1.7; color: var(--muted); }
.sec-note--pill { font-weight: 600; }

/* بطاقة الصنف: الاسم والصورة، ثم سطر لكل حجم «72 حبة ······ 252 ر.س (+)» */
.items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-areas: "media text" "buy buy";
  column-gap: 14px;
  padding: 14px;
  background: var(--lid);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: border-color .3s, box-shadow .3s;
}
.item.in-cart { border-color: rgba(44, 90, 50, .45); box-shadow: 0 0 0 1px rgba(44, 90, 50, .14), var(--shadow); }
.item-text { grid-area: text; min-width: 0; }
.item-name { font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--ink); }
/* مساحة لمس ≥ 44px لاسم الصنف دون تغيير التخطيط: حشوة عمودية تلغيها هوامش سالبة مساوية */
.item-open { display: inline; text-align: inherit; line-height: inherit; font-weight: inherit; padding-block: 9px; margin-block: -9px; }
.item-open:hover { color: var(--green); }
.item-desc { margin-top: 4px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.item-media {
  grid-area: media; position: relative; align-self: start;
  width: 96px; height: 96px; border-radius: 14px; overflow: hidden;
  background: var(--sage);
}
.item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.item-media:active img { transform: scale(1.04); }
.item[data-id="mhalabiya-berry"] .item-media img { object-position: 50% 80%; }
.item[data-id="shaatha-dates"] .item-media img { object-position: 50% 70%; }
.media-n {
  position: absolute; bottom: 6px; right: 6px;
  display: inline-flex; align-items: center; gap: 3px;
  height: 22px; padding: 0 7px 0 6px; border-radius: 999px;
  background: rgba(34, 48, 30, .6); color: #fff;
  font-size: 13px; font-weight: 600; line-height: 1;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.media-n .ic { width: 12px; height: 12px; }
.item-buy { grid-area: buy; min-width: 0; margin-top: 10px; border-top: 1px solid var(--line-soft); }
/* سعر واحد: السطر «السخان ······ 245 ر.س (+)» بجانب الصورة. حين يصير الزر عدّاداً يصعد الاسم
   سطراً فوق السعر، فلا يخرج العدّاد من البطاقة على أي عرض */
.item--solo { grid-template-areas: "media text" "media buy"; grid-template-rows: auto 1fr; }
.item--solo .item-buy { margin-top: 4px; border-top: 0; align-self: end; }
.item--solo .opt, .frow--solo .opt { gap: 6px; min-height: 46px; padding-bottom: 0; }
.item--solo .opt-dots, .frow--solo .opt-dots { min-width: 0; }
.item--solo .opt.on, .frow--solo .opt.on { flex-wrap: wrap; row-gap: 0; padding-top: 0; }
.item--solo .opt.on .opt-l, .frow--solo .opt.on .opt-l { flex-basis: 100%; }
.item--solo .opt.on .opt-dots, .frow--solo .opt.on .opt-dots { display: none; }
.item--solo .opt.on .opt-p, .frow--solo .opt.on .opt-p { margin-inline-end: auto; }
/* بلا صورة منشورة (البوكس المشكل 96): عمود واحد، فلا يبقى عمود صورة فارغ. «.item.» تغلب .item--solo وأعمدة .item في الاستعلامات */
.item.item--plain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "buy"; }

/* سطر السعر بالنقاط كما في المنيو المطبوع */
.opts { list-style: none; margin: 0; padding: 0; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 0; }
.opt + .opt { border-top: 1px solid var(--hair); }
.opt-l { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: 16px; font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.opt-l small { font-size: 14.5px; font-weight: 400; line-height: 1.4; color: var(--muted); }
.opt-dots {
  flex: 1 1 12px; min-width: 6px; height: 2px; margin-top: 10px;
  background-image: radial-gradient(circle, rgba(91, 114, 67, .6) 1px, transparent 1.4px);
  background-size: 6px 2px; background-repeat: repeat-x; background-position: right center;
}
.opt-gap { flex: 1; }
.opt-p { flex: none; white-space: nowrap; font-size: 15px; color: var(--muted); }
.opt-p b { font-size: 19px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.opt.on .opt-l { color: var(--green); font-weight: 600; }

/* زر + يتحوّل إلى عدّاد (سلة المهملات عند 1) */
.ctl {
  position: relative; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  width: 44px; height: 44px; border-radius: 999px;
  transition: width .32s var(--ease), background-color .25s, box-shadow .25s;
}
.ctl-add {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: inherit;
  border: 1.25px solid rgba(91, 114, 67, .62); background: var(--lid); color: var(--green);
  font-size: 16px; font-weight: 600;
  transition: opacity .18s, transform .25s var(--spring), background-color .2s;
}
.ctl-add .ic { width: 20px; height: 20px; }
.ctl-add:hover { background: var(--sage-soft); }
.ctl-add:active { transform: scale(.9); }
.ctl-b, .ctl-q { display: none; }
.ctl.on { width: 118px; background: var(--green); box-shadow: 0 8px 16px -10px rgba(44, 90, 50, .9); }
.ctl.on .ctl-add { opacity: 0; visibility: hidden; pointer-events: none; }
.ctl.on .ctl-b {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--lid);
  animation: fadein .22s .06s both;
}
.ctl.on .ctl-b:active { background: rgba(255, 255, 255, .14); }
/* − / + داخل العدّاد الأخضر: حلقة كريمية داخل الزر (حلقة خضراء على الأخضر لا تُرى) */
.ctl.on .ctl-b:focus-visible { outline-color: var(--lid); outline-offset: -3px; border-radius: 50%; }
.ctl-b .ic { width: 19px; height: 19px; }
.ctl.on .ctl-q {
  display: block; min-width: 22px; text-align: center;
  font-size: 17px; font-weight: 700; line-height: 1; color: var(--lid);
  font-variant-numeric: tabular-nums;
}
.ctl-q.pop { animation: pop .3s var(--spring); }
.ctl .i-trash { display: none; }
.ctl.one .i-minus { display: none; }
.ctl.one .i-trash { display: block; }
.no-js .ctl, .no-js .media-n, .no-js .basket-zoom, .no-js .basket-peek { display: none; }
/* بلا JavaScript: الصور والأسماء تبقى لكنها ليست أزراراً ميتة، والسلة تظهر مكشوفة */
.no-js .item-open, .no-js .item-media, .no-js .frow-media { pointer-events: none; cursor: default; }
.no-js .basket-media.is-covered .b-cover { opacity: 0; }
.no-js .basket-media.is-covered .b-open { transform: none; }
.ctl--wide { width: 100%; height: 50px; }
.ctl--wide.on { width: 100%; padding: 0 3px; }

/* ───────── السلال: «اكشف الغطاء» ───────── */
.baskets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.basket {
  display: flex; flex-direction: column;
  background: var(--lid); border: 1px solid var(--line-soft); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: border-color .3s, box-shadow .3s;
}
.basket.in-cart { border-color: rgba(44, 90, 50, .45); box-shadow: 0 0 0 1px rgba(44, 90, 50, .14), var(--shadow); }
.basket-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sage); }
.basket-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.basket-media .b-cover { opacity: 0; }
.basket-media.is-covered .b-cover { opacity: 1; }
.basket-media.is-covered .b-open { transform: scale(1.04); }
.basket-peek {
  position: absolute; z-index: 2; bottom: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: rgba(253, 252, 240, .95); color: var(--green);
  font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 20px -10px rgba(20, 30, 15, .6);
}
.basket-peek::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--gold); background: var(--lid);
}
/* النص المرئي يتبدّل («اكشف الغطاء» ↔ «أعد الغطاء») فهو الاسم الوحيد للزر — بلا aria-pressed كي لا يُقرأ «أعد الغطاء، مضغوط» */
.basket-peek .t-close, .basket-media:not(.is-covered) .basket-peek .t-open { display: none; }
.basket-media:not(.is-covered) .basket-peek .t-close { display: inline; }
.basket-media:not(.is-covered) .basket-peek::before { background: var(--gold); }
.basket-zoom {
  position: absolute; z-index: 2; bottom: 12px; left: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 46px; height: 46px; padding: 0 10px; border-radius: 999px;
  background: rgba(34, 48, 30, .58); color: #fff; font-size: 14px; font-weight: 600;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.basket-zoom .ic { width: 17px; height: 17px; }
.basket-body { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 4px; }
.basket .item-name { font-size: 20px; font-weight: 700; color: var(--green); }
.basket .opts { margin-top: auto; }

/* ───────── ضيافة المناسبات ───────── */
.garden-break {
  position: relative; height: 84px; overflow: hidden;
  margin: 24px calc(var(--gut) * -1) -6px;
  pointer-events: none;
}
.garden-break img { position: absolute; bottom: 0; left: 50%; width: 440px; max-width: none; transform: translateX(-50%); }
.garden-break::after { content: ""; position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 1px; background: var(--gold); opacity: .65; }
.offer {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--green); color: var(--lid);
  border-radius: 24px; padding: 24px 20px 20px;
  box-shadow: 0 24px 40px -24px rgba(34, 71, 42, .85);
}
.offer::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(226, 203, 143, .38); border-radius: 17px; pointer-events: none; }
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.offer-badge {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--gold-soft); color: var(--gold-soft);
  font-size: 14px; font-weight: 600;
}
.offer-serves { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--gold-soft); }
.offer-serves .ic { width: 19px; height: 19px; }
.offer-name { margin-top: 14px; font-size: 25px; font-weight: 700; line-height: 1.4; }
.offer-desc { margin-top: 4px; font-size: 16px; color: #DCE3D3; }
.offer-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  margin-top: 14px; padding: 12px 0;
  border-block: 1px solid rgba(226, 203, 143, .28);
}
.offer-price b { font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.offer-price .cur { font-size: 16px; color: #DCE3D3; }
.offer-was { margin-inline-start: auto; font-size: 15px; color: #CFD8C4; }
.offer-was s { text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; }
.offer-groups { display: grid; gap: 14px; margin-top: 16px; }
.offer-g h4 { margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--gold-soft); }
/* كل صنف يحمل علامته قبله، فلا تبقى فاصلة معلّقة في آخر السطر */
.offer-g ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 16px; }
.offer-g li { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; line-height: 1.8; white-space: nowrap; }
.offer-g li::before { content: ""; flex: none; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold-soft); }
.offer-cta { display: grid; gap: 10px; margin-top: 20px; }
.offer-cta .btn { min-height: 52px; }
.offer .ctl-add { border-color: rgba(253, 252, 240, .6); background: transparent; color: var(--lid); }
.offer .ctl-add:hover { background: rgba(253, 252, 240, .08); }
.offer .ctl.on { background: var(--gold-soft); }
.offer .ctl--wide.on .ctl-q { min-width: 0; }
.offer .ctl--wide.on .ctl-q::after { content: " في طلبكم"; font-size: 16px; font-weight: 600; }
.offer .ctl.on .ctl-b, .offer .ctl.on .ctl-q { color: var(--green); }
.offer .ctl.on .ctl-b:active { background: var(--tint); }
.offer .ctl.on .ctl-b:focus-visible { outline-color: var(--green); }

/* ───────── المفرزنات: جدول (سعر الحبة · العدد · سعر العبوة) ───────── */
.ledger {
  background: var(--lid); border: 1px solid var(--line-soft); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
}
.ledger-head {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 10px 16px; background: var(--green); color: var(--lid);
  font-size: 14px; font-weight: 600;
}
.ledger-head span:last-child { color: var(--gold-soft); padding-inline-end: 56px; }
.frow {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "media text" "buy buy";
  column-gap: 12px; padding: 12px 16px 2px; border-top: 1px solid var(--line-soft); transition: background-color .3s;
}
.frow--plain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "buy"; }
.frow--solo { grid-template-areas: "media text" "media buy"; grid-template-rows: auto 1fr; padding-bottom: 6px; }
.frow--solo .opts { margin-top: 0; align-self: end; }
.frow:first-child { border-top: 0; }
.frow.in-cart { background: rgba(44, 90, 50, .045); }
.frow-media { grid-area: media; align-self: start; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--sage); }
.frow-media img { width: 100%; height: 100%; object-fit: cover; }
.frow-text { grid-area: text; min-width: 0; align-self: center; }
.frow-name { font-size: 18px; font-weight: 600; line-height: 1.45; }
.frow-meta { font-size: 15px; line-height: 1.6; color: var(--muted); }
.frow-meta span { display: block; }
.frow .opts { grid-area: buy; min-width: 0; margin-top: 4px; }
.frow .opt { min-height: 52px; }

/* ═════════ صفحات الأقسام والمنتجات (body.page-inner) ═════════
   مسار التصفح ← العنوان (H1) ← الأصناف نفسها ← أقسام أخرى. نفس الورق والأخضر والخيط الذهبي */
/* عناوين أقسام الرئيسية روابط لصفحاتها: شكل العنوان نفسه تماماً، والخط الذهبي تحتها عند المرور فقط */
.h2-link { color: inherit; border-radius: 8px; text-decoration: none; }
.h2-link:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 8px; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px;
  max-width: 1120px; margin: 0 auto; padding: 2px var(--gut) 0;
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.crumbs a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--green); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.crumbs a:hover { text-decoration-color: var(--gold); }
.crumbs a:focus-visible { outline-offset: 0; border-radius: 6px; }
.crumbs > [aria-hidden="true"] { color: var(--gold-ink); }
.crumbs [aria-current="page"] { min-width: 0; padding-block: 11px; overflow-wrap: anywhere; }
/* صفحات الأقسام بلا غطاء: المسار شريط علوي كشريط الأقسام في الرئيسية، وأول رابط فيه («الست ليلى») يظهر بالشعار.
   الاسم المقروء للرابط يبقى نصّه نفسه؛ وفي وضع الألوان القسرية يعود النص */
.page-inner .page { border-top: 6px solid var(--olive); }
.page-inner .page > .crumbs:first-child {
  max-width: none; min-height: var(--nav-h); padding: 4px max(var(--gut), calc((100% - 1120px) / 2 + var(--gut)));
  border-bottom: 1px solid var(--line-soft);
}
.page-inner .crumbs > a:first-child[href="/"] { font-size: 0; text-decoration: none; padding-inline-end: 4px; color: var(--olive); }
.page-inner .crumbs > a:first-child[href="/"]::before {
  content: ""; display: block; width: 72px; aspect-ratio: 2175 / 620;
  background: currentColor;
  -webkit-mask: url("../assets/img/logo.svg") center / contain no-repeat;
          mask: url("../assets/img/logo.svg") center / contain no-repeat;
}
@media (forced-colors: active) {
  .page-inner .crumbs > a:first-child[href="/"] { font-size: 14px; }
  .page-inner .crumbs > a:first-child[href="/"]::before { display: none; }
}

.page-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 760px; margin: 0 auto; padding: 4px var(--gut) 12px;
}
/* زخرفة العنوان وأقسام أخرى: خيطان ذهبيان وحبة في الوسط (مثل .sec-orn بلا أيقونة) */
.page-head:not(:has(.sec-orn))::before, .sib-links::before {
  content: ""; flex: none; width: 128px; height: 7px; margin-bottom: 8px;
  background:
    radial-gradient(circle, var(--gold) 0 2.5px, transparent 3px) center / 7px 7px no-repeat,
    linear-gradient(to left, rgba(196, 160, 82, 0), var(--gold) 42%, transparent 42%, transparent 58%, var(--gold) 58%, rgba(196, 160, 82, 0)) center / 128px 1px no-repeat;
}
.sib-links::before { flex-basis: 100%; width: auto; margin-bottom: 6px; } /* سطر وحده فوق الأزرار */
.page-title { font-size: 26px; font-weight: 700; line-height: 1.4; color: var(--green); text-wrap: balance; overflow-wrap: anywhere; }
.page-note { margin-top: 8px; max-width: 40ch; text-wrap: balance; font-size: 16px; line-height: 1.7; color: var(--muted); }

/* أقسام أخرى: أزرار تلتف (لا شريط تمرير، فلا تُقصّ حلقة التركيز) */
.sib-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 760px; margin: 30px auto 26px; padding: 0 var(--gut);
}
.sib-links .chip {
  height: auto; min-height: 44px; padding: 6px 16px;
  border: 1px solid var(--line); background: var(--lid); color: var(--green);
  font-weight: 600; line-height: 1.35; white-space: normal; text-align: center;
  box-shadow: var(--shadow);
  transition: background-color .2s, border-color .2s;
}
.sib-links .chip:hover { background: var(--sage-soft); border-color: var(--gold); }
.sib-links .chip:focus-visible { outline-offset: 2px; }
.sib-links .chip[aria-current="page"], .sib-links .chip[aria-current="page"]:hover { background: var(--green); border-color: var(--green); color: var(--lid); }
/* داخل .menu الحشوة الجانبية موجودة أصلاً */
.menu .crumbs, .menu .page-head, .menu .sib-links { padding-inline: 0; }
.page-inner .menu > .page-head { padding-top: 16px; }
.page-inner .menu > .page-head ~ .sec:first-of-type { padding-top: 14px; }
.nf .crumbs, .nf .page-head, .nf .sib-links, .nf .foot-nav, .nf .foot-prods { position: relative; z-index: 2; }

@media (max-width: 370px) {
  .page-title { font-size: 24px; }
  .sib-links .chip { padding-inline: 14px; }
}
@media (min-width: 760px) {
  .crumbs { padding-top: 8px; }
  .page-head { padding-top: 10px; padding-bottom: 18px; }
  .page-inner .menu > .page-head { padding-top: 24px; }
  .page-inner .crumbs > a:first-child[href="/"]::before { width: 84px; }
  .page-title { font-size: 32px; }
  .sib-links { margin-top: 36px; }
}
@media (min-width: 1024px) {
  .page-title { font-size: 34px; }
}

/* ═════════ طريقة الطلب ═════════ */
.howto { margin-top: 34px; background: var(--sage); padding: 24px var(--gut) 26px; }
.howto .sec-en { color: #6A5020; }
.howto-in { max-width: 560px; margin: 0 auto; }
.howto .sec-head { margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 14px; border-radius: 18px;
  background: var(--lid); border: 1px solid var(--line-soft);
}
.step-n {
  flex: none; width: 36px; height: 36px; margin-top: 4px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold-ink);
  font-size: 18px; font-weight: 700;
}
.steps h3 { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--green); }
.steps p { margin-top: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.plus-dot {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--olive); color: var(--green); font-size: 16px; font-weight: 600; line-height: 1;
  vertical-align: -3px;
}
.howto-note {
  margin: 10px 0 14px; padding: 12px 16px; border-radius: 18px;
  border: 1.5px dashed rgba(196, 160, 82, .9); background: rgba(253, 252, 240, .55);
}
/* الحقائق الثلاث المؤكدة: التوصيل · موعد الطلب · الدفع */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.facts li { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.fact-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--lid); }
.fact-ic .ic { width: 18px; height: 18px; }
.facts b { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--green); }

/* ═════════ لحظة الهوية + إنستقرام ═════════ */
.story { max-width: 640px; margin: 0 auto; padding: 36px var(--gut) 0; text-align: center; }
.story .sec-head { margin-bottom: 0; }
.story-text { margin-top: 6px; font-size: 16px; color: var(--muted); }
.insta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin: 18px 0 14px; border-radius: 16px; overflow: hidden;
}
.insta-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.insta-grid:hover img { transform: scale(1.03); }

/* ═════════ التذييل ═════════ */
.foot { position: relative; margin-top: calc(var(--strip-h) + 10px); background: var(--green); color: var(--lid); text-align: center; }
.foot-strip { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--strip-h); overflow: hidden; pointer-events: none; }
.foot-strip img { position: absolute; bottom: 0; left: 50%; width: 410px; max-width: none; transform: translateX(-50%); }
.foot-in { display: flex; flex-direction: column; align-items: center; padding: 28px var(--gut) calc(34px + var(--safe-b)); }
html.has-cart .foot-in { padding-bottom: calc(104px + var(--safe-b)); }
.foot-logo { width: 170px; color: var(--lid); }
.rule { display: block; width: 46px; height: 1px; margin: 16px auto 10px; background: var(--gold); }
.foot-tag { font-size: 16px; color: #DCE3D3; }
.foot-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.foot-links a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(253, 252, 240, .35); font-size: 15px;
}
.foot-links a:hover { background: rgba(253, 252, 240, .08); }
.foot-links .ic { width: 18px; height: 18px; }
.foot-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 15px; font-weight: 600; }
.foot-note .ic { width: 17px; height: 17px; color: var(--gold-soft); }
.foot-note--2 { margin-top: 2px; font-size: 15px; font-weight: 400; color: var(--gold-soft); }
.foot-copy { margin-top: 8px; font-size: 13px; color: #C9D3BD; }
/* أقسام المنيو (7) ثم المنتجات (3) في كل صفحة. الأساس للخلفية الكريمية (404)، و.foot للأخضر */
.foot-nav, .foot-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; list-style: none; margin: 0; padding: 0; }
.foot-nav { width: 100%; max-width: 560px; margin-top: 18px; }
.foot-nav ul { width: 100%; }
.foot-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--green);
  transition: background-color .2s;
}
.foot-nav a:hover { background: var(--tint); }
.foot-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.foot-prods { max-width: 560px; margin-top: 2px; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: balance; }
.foot-prods a {
  display: inline-block; padding: 10px 2px; color: var(--green); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px;
}
.foot-prods a:hover { text-decoration-color: var(--gold); }
.foot .foot-nav { padding-top: 12px; border-top: 1px solid rgba(226, 203, 143, .28); }
.foot .foot-nav a { color: var(--lid); }
.foot .foot-nav a:hover { background: rgba(253, 252, 240, .08); }
.foot .foot-nav a[aria-current="page"] { text-decoration-color: var(--gold-soft); }
.foot .foot-prods { color: #DCE3D3; }
.foot .foot-prods a { color: var(--gold-soft); text-decoration-color: rgba(226, 203, 143, .45); }
.foot .foot-prods a:hover { text-decoration-color: var(--gold-soft); }
@media (min-width: 760px) { .foot-nav { max-width: 760px; } } /* الأقسام السبعة في سطر واحد */

/* ═════════ واتساب العائم وشريط الطلب ═════════ */
.fab {
  position: fixed; z-index: 45; right: 14px; bottom: calc(14px + var(--safe-b));
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green); color: var(--lid);
  box-shadow: 0 0 0 2px var(--lid), 0 14px 28px -12px rgba(28, 58, 32, .8), 0 2px 6px rgba(28, 58, 32, .2);
  transition: transform .35s var(--ease), opacity .25s;
}
.fab .ic { width: 25px; height: 25px; }
.fab.is-off, .fab.is-tucked { transform: translateY(140%) scale(.8); opacity: 0; pointer-events: none; }

.cartbar {
  position: fixed; z-index: 50;
  left: 12px; right: 12px; bottom: calc(12px + var(--safe-b));
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 10px 0 14px; border-radius: 22px;
  background: var(--green); color: var(--lid); text-align: start;
  box-shadow: 0 18px 34px -14px rgba(28, 58, 32, .75), 0 2px 8px rgba(28, 58, 32, .2);
  transform: translateY(150%);
  transition: transform .5s var(--spring);
}
.cartbar[hidden] { display: flex; visibility: hidden; }
.cartbar.is-on { transform: none; visibility: visible; }
.cartbar::before { content: ""; position: absolute; inset: 4px; border-radius: 18px; border: 1px solid rgba(226, 203, 143, .35); pointer-events: none; }
.cartbar.bump { animation: bump .45s var(--spring); }
.cb-count {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lid); color: var(--green);
  font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cartbar.bump .cb-count { animation: pop .45s var(--spring); }
.cb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cb-text b { font-size: 16px; font-weight: 600; }
.cb-text small { font-size: 14px; color: rgba(253, 252, 240, .8); }
.cb-total { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-total b { font-size: 19px; font-weight: 700; }
.cb-total small { font-size: 14px; color: rgba(253, 252, 240, .82); }
.cb-arrow { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(253, 252, 240, .12); }

/* فوق الأوراق (80): الإضافة من ورقة التفاصيل و«أُفرغ الطلب» داخل السلة تُرى */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(90px + var(--safe-b));
  display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100% - 32px); padding: 10px 16px 10px 12px; border-radius: 16px;
  background: var(--ink); color: var(--lid);
  font-size: 15px; line-height: 1.5;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--spring), opacity .2s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast .t-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); }
.toast .t-ic .ic { width: 16px; height: 16px; }
.toast .t-txt { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.toast b { font-weight: 600; }
/* والورقة مفتوحة: أعلى الشاشة كي لا يغطي زر الإرسال أو «مراجعة الطلب» */
html.lock .toast { bottom: auto; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -16px); }
html.lock .toast.is-on { transform: translate(-50%, 0); }
.fly {
  position: fixed; z-index: 91; pointer-events: none;
  border-radius: 14px; background: var(--sage) center / cover no-repeat;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
}

/* ═════════ الأوراق السفلية ═════════ */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(22, 32, 22, .5); opacity: 0; transition: opacity .32s; }
.sheet.is-open .sheet-scrim { opacity: 1; }
.sheet-panel {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100% - 24px);
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 26px 26px 0 0; overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .22);
  transform: translateY(104%); transition: transform .45s cubic-bezier(.2, .9, .25, 1);
  outline: none;
}
.sheet.is-open .sheet-panel { transform: none; }
.sheet-panel.dragging { transition: none; }
.sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-grab { display: flex; justify-content: center; padding: 8px 0 4px; touch-action: none; cursor: grab; }
.sheet-grab i { width: 42px; height: 5px; border-radius: 99px; background: rgba(30, 42, 29, .24); }
.sheet-grab--float { position: absolute; z-index: 3; top: 0; left: 0; right: 0; padding: 8px 0 20px; }
.sheet-grab--float i { background: rgba(255, 255, 255, .9); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.sheet-x { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lid); border: 1px solid var(--line-soft); color: var(--ink); }
.sheet-x--float { position: absolute; z-index: 4; top: 12px; left: 12px; background: rgba(253, 252, 240, .94); border: 0; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .35); }
.sheet-foot { flex: none; padding: 12px var(--gut) calc(12px + var(--safe-b)); background: var(--lid); border-top: 1px solid var(--line-soft); }
.sheet-foot[hidden] { display: none; }

/* تفاصيل الصنف */
.car { position: relative; background: var(--sage); }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline-offset: -4px; border-radius: 0; }
.car-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / .86; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; }
.car-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.car-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: width .3s var(--ease), background-color .3s; }
.car-dots i.on { width: 20px; background: #fff; }
.car-nav {
  position: absolute; top: 50%; z-index: 2; margin-top: -22px;
  width: 44px; height: 44px; border-radius: 50%; display: none; place-items: center;
  background: rgba(253, 252, 240, .92); color: var(--ink); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35);
}
.car-nav.prev { right: 12px; }
.car-nav.next { left: 12px; }
@media (hover: hover) and (pointer: fine) { .car-nav { display: grid; } }
.d-body { padding: 16px var(--gut) 18px; }
.d-sec { font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.d-name { margin-top: 2px; font-size: 22px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.d-desc { margin-top: 6px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.d-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.d-stats div { padding: 10px 6px; border-radius: 14px; background: var(--lid); border: 1px solid var(--line-soft); text-align: center; }
.d-stats small { display: block; font-size: 14px; color: var(--muted); }
.d-stats b { font-size: 18px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.d-stats b small { display: inline; font-size: 14px; font-weight: 400; }
.d-buy { margin-top: 12px; padding: 2px 14px; border-radius: 18px; background: var(--lid); border: 1px solid var(--line-soft); }
.d-cart { justify-content: space-between; min-height: 54px; }
.d-cart-sum { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ورقة الطلب */
.sheet-panel--cart { height: calc(100% - 24px); }
.sheet-panel--cart.is-empty { height: auto; }
.cart-head { position: relative; flex: none; padding: 0 var(--gut) 10px; touch-action: none; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.cart-head-row { display: flex; align-items: center; gap: 10px; padding-top: 2px; }
.cart-title { font-size: 26px; font-weight: 700; line-height: 1.35; color: var(--green); }
.cart-count { padding: 2px 10px; border-radius: 999px; background: var(--lid); border: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; color: var(--green); }
.cart-count[hidden] { display: none; }
.c-clear {
  margin-inline-start: auto; min-height: 44px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted); background: rgba(253, 252, 240, .7);
}
.c-clear.is-armed { color: #8E3A14; background: rgba(217, 114, 58, .14); }
.c-clear[hidden] { display: none; }
.c-clear[hidden] + .sheet-x { margin-inline-start: auto; }
.lines { list-style: none; margin: 0; padding: 4px var(--gut) 0; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.line-img { flex: none; width: 58px; height: 58px; border-radius: 13px; object-fit: cover; background: var(--sage); }
.line-ph { flex: none; width: 58px; height: 58px; border-radius: 13px; display: grid; place-items: center; background: var(--green); color: var(--gold-soft); }
.line-ph .ic { width: 28px; height: 28px; }
.line-info { flex: 1; min-width: 0; }
.line-name { font-size: 16px; font-weight: 600; line-height: 1.45; }
.line-var { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.line-total { margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.line-total small { font-size: 14px; font-weight: 400; color: var(--muted); }
.line .ctl.on { background: var(--lid); box-shadow: inset 0 0 0 1.5px rgba(44, 90, 50, .25); }
.line .ctl.on .ctl-b, .line .ctl.on .ctl-q { color: var(--green); }
.line .ctl.on .ctl-b:active { background: var(--tint); }
.line .ctl.on .ctl-b:focus-visible { outline-color: var(--green); }
.line.out { animation: out .26s var(--ease) forwards; }
.c-sum { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gut) 2px; font-size: 17px; font-weight: 600; }
.c-sum > span small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.c-sum b { font-size: 26px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.c-sum small { font-size: 14px; font-weight: 400; color: var(--muted); }
.facts--cart { margin: 12px var(--gut) 0; padding: 10px 12px; gap: 4px; border-radius: 16px; background: var(--tint); }
.facts--cart li { gap: 10px; min-height: 30px; }
.facts--cart .fact-ic { width: 30px; height: 30px; }
.facts--cart .fact-ic .ic { width: 17px; height: 17px; }
.facts--cart b { font-size: 16px; }
.c-form { padding: 16px var(--gut) 22px; }
.c-form fieldset { min-width: 0; margin: 0; padding: 14px 14px 4px; border-radius: 20px; background: var(--lid); border: 1px solid var(--line-soft); }
.c-form legend { float: right; width: 100%; padding: 0; margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--green); }
.c-form legend small { font-size: 14px; font-weight: 400; color: var(--muted); }
.c-form legend + * { clear: both; }
.fld { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; margin-bottom: 12px; border-radius: 16px; }
.fld > span { font-size: 15px; font-weight: 600; color: var(--ink); }
.fld > span small { font-size: 14px; font-weight: 400; color: var(--muted); }
.fld.flash .fld-pick { animation: flash 1.4s var(--ease); }
/* حدّ الخانة هو ما يميّزها (أبيض على كريمي ≈ 1:1): زيتوني .8 = ‎3.5:1 على الأبيض و‎3.4:1 على الكريمي */
.fld input, .fld textarea {
  width: 100%; min-width: 0; min-height: 50px; padding: 10px 14px;
  border-radius: 13px; border: 1.5px solid rgba(91, 114, 67, .8); background: #fff;
  font-size: 16px; line-height: 1.5;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.fld textarea { resize: vertical; min-height: 86px; }
.fld input::placeholder, .fld textarea::placeholder { color: #75766A; opacity: 1; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(44, 90, 50, .16); }
.fld-pick {
  position: relative; display: flex; align-items: center; gap: 8px; min-width: 0;
  min-height: 50px; padding: 0 14px; border-radius: 13px;
  border: 1.5px solid rgba(91, 114, 67, .8); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.fld .fld-pick input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.fld-val { flex: 1; min-width: 0; font-size: 16px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fld-pick.is-empty .fld-val { color: #75766A; }
.fld-pick .ic { width: 19px; height: 19px; color: var(--olive); }
.fld-pick:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(44, 90, 50, .16); }
.fld-pick.is-warn { border-color: #B8662F; }
.fld-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
.fld-note { grid-column: 1 / -1; order: 3; margin: -4px 0 12px; padding: 8px 12px; border-radius: 12px; background: rgba(217, 114, 58, .1); font-size: 15px; line-height: 1.6; color: #7E3510; }
.fld-note[hidden] { display: none; }
.btn-send {
  width: 100%; min-height: 58px; border-radius: 18px; padding: 0 18px;
  justify-content: flex-start; gap: 10px;
  background: var(--green); color: var(--lid); font-size: 17px;
  box-shadow: 0 12px 24px -14px rgba(28, 58, 32, .9);
}
.btn-send:hover { background: var(--green-deep); }
.btn-send .ic { width: 23px; height: 23px; }
.send-total { margin-inline-start: auto; padding: 6px 10px; border-radius: 10px; background: rgba(253, 252, 240, .14); font-size: 14px; font-weight: 400; }
.send-total b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.btn-send[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.c-foot-note { margin-top: 6px; text-align: center; }
.c-note-facts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px; min-height: 30px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.c-note-facts .ic { width: 15px; height: 15px; color: var(--gold-ink); }
.c-note-facts b { font-weight: 600; color: var(--green); }
.c-date-cta {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--green);
}
.c-date-cta span:not(.c-date-soon) { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.c-date-cta .ic { width: 18px; height: 18px; color: var(--gold-ink); }
.c-date-soon { font-weight: 400; color: var(--muted); }
.c-date-cta:hover { background: var(--tint); }
.c-foot-note[hidden], .c-sent[hidden], .c-date-cta[hidden], .c-note-facts[hidden] { display: none; }
.c-sent { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.c-sent p { font-size: 15px; font-weight: 600; }
.c-sent-btn { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--green); background: var(--lid); color: var(--green); font-size: 14px; font-weight: 600; }
.cart-empty { padding: 26px var(--gut) 30px; text-align: center; }
.cart-empty p { margin-bottom: 16px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.cart-empty b { font-size: 18px; color: var(--ink); }

/* ───────── حركة ───────── */
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.035); } 100% { transform: scale(1); } }
@keyframes out { to { opacity: 0; transform: translateX(-12%); } }
@keyframes fadein { from { opacity: 0; transform: scale(.6); } }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(196, 160, 82, 0); } 30% { box-shadow: 0 0 0 5px rgba(196, 160, 82, .5); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* ───────── جوالات صغيرة (≤ 370) ───────── */
@media (max-width: 370px) {
  :root { --gut: 12px; }
  .item { padding: 12px; column-gap: 12px; grid-template-columns: 86px minmax(0, 1fr); }
  .item-media { width: 86px; height: 86px; }
  .lid-oval { width: 192px; height: 88px; }
  .lid-oval .logo { width: 158px; }
  .hero-facts { font-size: 15px; }
  .hero-cta .btn { font-size: 15px; padding: 0 10px; }
  .chip { padding: 0 12px; font-size: 14.5px; }
  .catnav-home { width: 62px; }
  .catnav-home .logo { width: 52px; }
  .cb-text small { display: none; }
}
/* 320–350: زر الإرسال لا يُقصّ مع إجمالي من 4–5 أرقام (النص يلتف سطرين عند الحاجة، والإجمالي لا ينكسر) */
@media (max-width: 350px) {
  .btn-send { padding: 0 12px; gap: 6px; font-size: 15px; white-space: normal; line-height: 1.3; }
  .btn-send > span:not(.send-total) { min-width: 0; }
  .send-total { flex: none; padding: 5px 8px; white-space: nowrap; }
  .send-total b { font-size: 15px; }
  .cart-head-row { gap: 6px; }
}
/* الجوالات: التاريخ فوق الوقت كي يُقرأ اليوم كاملاً («الأربعاء، 30 ديسمبر») */
@media (max-width: 479px) {
  .fld-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fld-note { order: 0; } /* تحت التاريخ مباشرة */
}

/* ───────── تابلت وما فوق ───────── */
@media (min-width: 760px) {
  :root { --gut: 24px; --strip-h: 110px; }
  .lid { padding: 10px; }
  .lid-panel {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center; column-gap: 32px;
    padding: 92px 36px 108px;
    min-height: 520px;
  }
  .lid-panel::before { inset: 8px; }
  /* حديقتان مختلفتان على الطرفين والوسط مفتوح — كما على الغطاء، لا ورق جدران مكرّر */
  .lid-canopy, .lid-ground { left: 0; right: 0; width: auto; transform: none; margin: 0; background-repeat: no-repeat; background-size: auto 100%; }
  .lid-canopy img, .lid-ground img { display: none; }
  .lid-canopy {
    height: 120px; transform: scaleY(-1);
    /* 1x ملف 1000، وشاشات 2x ملف 1600 (يولّدهما .tools/images.py) */
    background-image: url("../assets/img/botanical/strip-c-1000.webp"), url("../assets/img/botanical/strip-b-1000.webp");
    background-image: -webkit-image-set(url("../assets/img/botanical/strip-c-1000.webp") 1x, url("../assets/img/botanical/strip-c-1600.webp") 2x), -webkit-image-set(url("../assets/img/botanical/strip-b-1000.webp") 1x, url("../assets/img/botanical/strip-b-1600.webp") 2x);
    background-image: image-set(url("../assets/img/botanical/strip-c-1000.webp") 1x, url("../assets/img/botanical/strip-c-1600.webp") 2x), image-set(url("../assets/img/botanical/strip-b-1000.webp") 1x, url("../assets/img/botanical/strip-b-1600.webp") 2x);
    background-position: left bottom, right bottom;
    -webkit-mask: linear-gradient(to top, #000 40%, transparent 100%); mask: linear-gradient(to top, #000 40%, transparent 100%);
  }
  .lid-brand { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 2; }
  .lid-oval { width: 270px; height: 124px; }
  .lid-oval .logo { width: 222px; }
  .lid-line { margin-top: 16px; font-size: 22px; }
  .lid-tag { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); text-wrap: balance; }
  .hero-bar { padding-top: 16px; max-width: 440px; }
  .hero-facts .is-wide { display: inline-flex; }
  .lid-photo { margin-top: 0; aspect-ratio: 5 / 4; }
  .lid-ground {
    position: absolute; bottom: 0; height: 104px;
    background-image: url("../assets/img/botanical/strip-b-1000.webp"), url("../assets/img/botanical/strip-a-1000.webp");
    background-image: -webkit-image-set(url("../assets/img/botanical/strip-b-1000.webp") 1x, url("../assets/img/botanical/strip-b-1600.webp") 2x), -webkit-image-set(url("../assets/img/botanical/strip-a-1000.webp") 1x, url("../assets/img/botanical/strip-a-1600.webp") 2x);
    background-image: image-set(url("../assets/img/botanical/strip-b-1000.webp") 1x, url("../assets/img/botanical/strip-b-1600.webp") 2x), image-set(url("../assets/img/botanical/strip-a-1000.webp") 1x, url("../assets/img/botanical/strip-a-1600.webp") 2x);
    background-position: left bottom, right bottom;
  }
  .sec { padding-top: 40px; }
  .sec-title { font-size: 30px; }
  .baskets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .garden-break { height: 110px; }
  .garden-break img { width: 580px; }
  .offer { padding: 32px 32px 28px; }
  .offer-groups { grid-template-columns: 1fr 1fr; }
  .offer-cta { grid-template-columns: 1fr 1fr; align-items: center; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; }
  .howto-in { max-width: 980px; }
  .howto-note { max-width: 560px; margin-inline: auto; }
  .howto .btn-wide { display: flex; max-width: 560px; margin: 0 auto; }
  .foot-strip img { width: 580px; }
  .cartbar { left: 50%; right: auto; width: 480px; margin-left: -240px; }
  .toast { bottom: calc(96px + var(--safe-b)); }
  .fab { right: 22px; bottom: 22px; }
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 26px; max-height: min(88vh, 860px); }
  .sheet-panel--cart { height: min(88vh, 860px); }
  .sheet-panel--cart.is-empty { height: auto; }
  .sheet-grab { display: none; }
  .cart-head { padding-top: 12px; }
}
@media (min-width: 760px) and (max-width: 899px) {
  .items, .ledger { max-width: 640px; margin-inline: auto; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .lid-tag { display: none; } /* the chips right below list the same categories */
}
@media (min-width: 900px) {
  .menu { max-width: 1120px; margin: 0 auto; }
  .item { grid-template-columns: 112px minmax(0, 1fr); }
  .item-media { width: 112px; height: 112px; }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .items > .item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
  .ledger { max-width: 760px; margin: 0 auto; }
}
@media (min-width: 1024px) {
  :root { --gut: 32px; --strip-h: 150px; }
  .lid { padding: 12px; }
  .lid-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    column-gap: 56px; padding: 118px max(48px, calc((100vw - 1180px) / 2)) 136px;
    min-height: min(calc(100svh - 24px - var(--nav-h)), 700px);
  }
  .lid-panel::before { inset: 10px; }
  .lid-oval { width: 310px; height: 142px; }
  .lid-oval .logo { width: 256px; }
  .lid-line { font-size: 26px; }
  .lid-tag { font-size: 16px; }
  .hero-facts { font-size: 16px; }
  .hero-cta .btn { min-height: 54px; }
  .lid-canopy { height: 150px; }
  .lid-ground { height: 130px; }
  .catnav { justify-content: center; padding-inline: 24px; }
  .chips-scroll { flex: none; -webkit-mask-image: none; mask-image: none; }
  .chips-track { padding: 0 10px; }
  .chip { font-size: 16px; padding: 0 18px; }
  .sec-title { font-size: 32px; }
  .garden-break { height: 150px; }
  .garden-break img { width: 790px; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
  .story { max-width: 820px; }
  .foot-strip img { width: 790px; }
}

/* ═════════ صفحة 404 ═════════ */
.nf .lid { min-height: 100vh; min-height: 100svh; display: flex; }
.nf .lid-panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px 20px 150px; min-height: 0; text-align: center; }
.nf .lid-panel > * { order: 0; }
.nf .lid-oval { flex: none; }
.nf-title { position: relative; z-index: 2; margin-top: 22px; font-size: 26px; font-weight: 700; line-height: 1.4; color: var(--green); }
.nf-text { position: relative; z-index: 2; max-width: 34ch; margin-top: 8px; font-size: 16px; color: var(--muted); }
.nf-cta { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.nf-deliv { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--green); }
.nf-deliv .ic { width: 18px; height: 18px; color: var(--gold-ink); }
.nf .lid-ground { position: absolute; left: 50%; bottom: 0; width: 520px; margin: 0; transform: translateX(-50%); }
@media (min-width: 760px) { .nf .lid-ground { left: 0; right: 0; width: auto; transform: none; } }
