/* ============================================================
   FINO — All Egyptian Home Deli
   عالم بصري: مطبوعات البقالة المصرية القديمة.
   أخضر مشبّع + ورق كشكول كريمي + برواز حبر تخين + ظل مطبعة أصفر.
   الظل الأصفر المزاح ده مأخوذ من اللوجو نفسه، مش زخرفة.
   ============================================================ */

:root {
  --green:      #3dbe72;   /* الأرضية المشبّعة — الحبر عليها 6.7:1 */
  --green-dk:   #2a9e5b;
  --ink:        #10261a;   /* البراويز والنص */
  --ink-2:      #1c3d2a;
  --cream:      #f7f3e3;   /* البانلات + حشو الخط الكوميك */
  --cream-2:    #efe9d2;
  --yellow:     #f8d000;   /* ظل المطبعة + الأختام */
  --blue:       #0878c0;   /* الساحل */
  --rule:       rgba(16, 38, 26, .22);

  --s1:4px; --s2:8px; --s3:12px; --s4:16px;
  --s5:24px; --s6:32px; --s7:48px; --s8:64px; --s9:96px;

  --bw: 3px;                          /* سُمك البرواز */
  --off: 6px;                         /* إزاحة ظل المطبعة */
  --r: 16px;
  --e: cubic-bezier(.16, 1, .3, 1);

  --wrap: 1180px;
  --edge: 26px;                       /* شريط الشطرنج على الحواف */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Marhey', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--green);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- شريط الشطرنج على حواف الصفحة ---------- */
.edge {
  position: fixed; top: 0; bottom: 0; width: var(--edge); z-index: 90;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25% 75%, var(--ink) 75%),
    linear-gradient(45deg, var(--ink) 25%, transparent 25% 75%, var(--ink) 75%);
  background-color: var(--cream);
  background-size: var(--edge) var(--edge);
  background-position: 0 0, calc(var(--edge) / 2) calc(var(--edge) / 2);
  border-inline: var(--bw) solid var(--ink);
}
.edge.s { inset-inline-start: 0; }
.edge.e { inset-inline-end: 0; }
@media (max-width: 900px) { :root { --edge: 0px; } .edge { display: none; } }

/* ---------- طباعة ---------- */
.comic {
  font-family: 'Lalezar', 'Marhey', cursive;
  font-weight: 400;
  line-height: 1.3;
  color: var(--cream);
  --o: 3px;
  text-shadow:
    calc(var(--o) * -1) calc(var(--o) * -1) 0 var(--ink),
    var(--o) calc(var(--o) * -1) 0 var(--ink),
    calc(var(--o) * -1) var(--o) 0 var(--ink),
    var(--o) var(--o) 0 var(--ink),
    0 calc(var(--o) * -1) 0 var(--ink),
    0 var(--o) 0 var(--ink),
    calc(var(--o) * -1) 0 0 var(--ink),
    var(--o) 0 0 var(--ink),
    calc(var(--o) * 2.6) calc(var(--o) * 2.6) 0 var(--yellow);
}
.comic.on-ink { --o: 3px; }
.comic .y { color: var(--yellow); }

.script { font-family: 'Aref Ruqaa', 'Marhey', serif; }
.lat { direction: ltr; unicode-bidi: isolate; text-transform: uppercase; letter-spacing: .16em; }
.tnum { font-variant-numeric: tabular-nums; }

h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.9; max-width: 60ch; }

/* ---------- ورق الكشكول ---------- */
.squared {
  background-color: var(--cream);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- بانل مبروز بظل مطبعة ---------- */
.panel {
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--off) var(--off) 0 var(--ink);
}
.panel.y { box-shadow: var(--off) var(--off) 0 var(--yellow); }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 54px; padding: 0 var(--s6);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  white-space: nowrap;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .16s var(--e), box-shadow .16s var(--e), background-color .16s var(--e);
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn-y { background: var(--yellow); color: var(--ink); }
.btn-c { background: var(--cream); color: var(--ink); }
.btn-i { background: var(--ink); color: var(--cream); box-shadow: 5px 5px 0 var(--yellow); }
.btn-i:hover { box-shadow: 3px 3px 0 var(--yellow); }
.btn-i:active { box-shadow: 0 0 0 var(--yellow); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- النافبار ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream);
  border-bottom: var(--bw) solid var(--ink);
  margin-inline: var(--edge);
}
.nav-in { display: flex; align-items: center; gap: var(--s5); height: 78px; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: var(--s5); margin-inline-start: auto; }
.nav-links a { font-weight: 600; font-size: .98rem; padding-block: var(--s2); border-bottom: 3px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--yellow); color: var(--yellow); }
.nav .btn { min-height: 46px; padding: 0 var(--s5); font-size: .95rem; box-shadow: 4px 4px 0 var(--yellow); border-color: var(--cream); }
.nav .btn:hover { box-shadow: 2px 2px 0 var(--yellow); }
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-in { height: 68px; gap: var(--s3); }
  .nav-logo img { height: 36px; }
  .nav-cta { margin-inline-start: auto; }
}

/* ---------- الهيرو ---------- */
/* overflow-x: clip — الصور المقصوصة بتخرج بره حدودها بنيّة،
   من غيره الموبايل بيوسّع الـ layout viewport ويطلّع الصفحة مضغوطة. */
.hero { position: relative; overflow-x: clip; padding-block: clamp(var(--s7), 7vw, 88px) clamp(var(--s8), 8vw, 104px); margin-inline: var(--edge); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(var(--s6), 5vw, 72px); align-items: center; }
.hero h1 { --o: 4px; text-wrap: balance; }
.hero .lede { margin-block-start: var(--s5); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s4); margin-block-start: var(--s6); }

/* لوحة المواصفات — زي ورقة البقالة */
.spec {
  margin-block-start: var(--s6); padding: var(--s5);
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  box-shadow: var(--off) var(--off) 0 var(--ink);
  transform: rotate(-.7deg);
}
.spec h2 { font-size: 1.05rem; font-weight: 700; margin-block-end: var(--s3); }
.spec ul { display: grid; gap: 6px; }
.spec li { display: flex; gap: var(--s2); align-items: flex-start; font-size: .95rem; font-weight: 500; }
.spec li svg { width: 18px; height: 18px; flex: none; margin-block-start: 6px; }
.spec .modes { display: flex; flex-wrap: wrap; gap: var(--s2); margin-block-start: var(--s4); padding-block-start: var(--s3); border-top: 2px dashed var(--rule); }

/* صورة الهيرو — اللوجو أخضر، فلازم يقعد على لوحة كريمي مش على الأرضية الخضرا */
.hero-art { position: relative; display: grid; place-items: center; padding-block: var(--s7); }
.logo-plate {
  background: var(--cream);
  border: var(--bw) solid var(--ink); border-radius: 24px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(var(--s5), 4vw, var(--s7)) clamp(var(--s6), 5vw, 56px);
  transform: rotate(-2deg);
  width: min(430px, 100%);
  display: grid; justify-items: center; gap: var(--s3);
}
.logo-plate img { width: 100%; height: auto; }
.logo-plate .strap {
  font-size: .6rem; font-weight: 700; text-align: center;
  padding-block-start: var(--s3); border-top: 2px dashed var(--rule); width: 100%;
}
.cut { position: absolute; z-index: 2; filter: drop-shadow(5px 6px 0 rgba(16,38,26,.30)); }
.cut-sand   { width: clamp(190px, 24vw, 310px); inset-block-end: -6%; inset-inline-start: -17%; transform: rotate(-9deg); }
.cut-cheese { width: clamp(104px, 13vw, 168px); inset-block-start: 2%; inset-inline-end: -7%;  transform: rotate(14deg); }
.cut-egg    { width: clamp(80px, 9vw, 116px);   inset-block-end: 20%;  inset-inline-end: -4%;  transform: rotate(-7deg); }

/* ختم مشرشر */
.seal { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: clamp(104px, 13vw, 142px); z-index: 4; transform: rotate(-13deg); }
.seal svg { width: 100%; height: auto; }
.seal .txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 0; }
.seal .txt b { font-family: 'Lalezar', cursive; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; color: var(--ink); }
.seal .txt span { font-size: .58rem; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* على الموبايل: العنوان الأول، بعدين الصورة. الفكرة تسبق الزينة. */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .hero-txt { display: contents; }
  .hero-txt h1     { order: 1; }
  .hero-txt .lede  { order: 2; }
  .hero-art        { order: 3; padding-block: var(--s6) var(--s5); }
  .hero-txt .hero-cta { order: 4; }
  .hero-txt .spec  { order: 5; }
  .logo-plate { width: min(330px, 82%); }
  .cut-egg { display: none; }
  .cut-sand { inset-block-end: -4%; inset-inline-start: -8%; width: clamp(150px, 40vw, 210px); }
  .cut-cheese { inset-inline-end: -2%; width: clamp(84px, 22vw, 120px); }
}

/* ---------- الشريط ---------- */
.ticker { background: var(--ink); color: var(--cream); border-block: var(--bw) solid var(--ink); overflow: hidden; padding-block: 14px; }
.ticker-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker-track > span { display: flex; align-items: center; gap: var(--s5); padding-inline-end: var(--s5); white-space: nowrap; font-weight: 700; font-size: .85rem; }
.ticker .st { color: var(--yellow); font-size: 1.05rem; }
@keyframes slide { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- أقسام ---------- */
.section { padding-block: clamp(var(--s8), 8vw, 104px); margin-inline: var(--edge); overflow-x: clip; }
.section.ink { background: var(--ink); color: var(--cream); }
.section.cream { background: var(--cream); }
.head { margin-block-end: var(--s7); }
.head h2 { --o: 3px; }
.head p { margin-block-start: var(--s4); max-width: 58ch; font-weight: 500; }
.section.ink .head p { color: var(--cream); }
.mid { text-align: center; display: grid; justify-items: center; }
.mid p { margin-inline: auto; }

/* ---------- المنيو ---------- */
.tabs {
  position: sticky; top: 78px; z-index: 80;
  margin-inline: var(--edge);
  background: var(--ink);
  border-block: var(--bw) solid var(--ink);
  padding-block: 10px;
}
@media (max-width: 940px) { .tabs { top: 68px; } }
.rail { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 42px; padding: 0 var(--s4);
  border: 2px solid var(--cream); border-radius: 999px;
  color: var(--cream); font-weight: 700; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background-color .16s var(--e), color .16s var(--e);
}
.tab:hover { background: rgba(247,243,227,.16); }
.tab[aria-selected='true'] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.tab .n { font-size: .72rem; opacity: .8; }

.cat { margin-block-end: clamp(var(--s7), 6vw, 76px); scroll-margin-top: 150px; }
.card {
  position: relative;
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  box-shadow: var(--off) var(--off) 0 var(--ink);
  padding: var(--s6) var(--s5) var(--s5);
}
.cat:nth-child(odd)  .card { transform: rotate(-.45deg); }
.cat:nth-child(even) .card { transform: rotate(.45deg); }
@media (max-width: 700px) {
  .cat .card { transform: none; padding: var(--s6) var(--s4) var(--s4); }
  .cat-cut { inset-inline-end: 10px; }
}

.cat-head { display: flex; align-items: flex-end; gap: var(--s4); margin-block-end: var(--s4); padding-block-end: var(--s3); border-bottom: 3px solid var(--ink); }
.cat-head h3 { font-family: 'Lalezar', cursive; font-weight: 400; line-height: 1.25; }
.cat-head .en { font-size: .6rem; font-weight: 700; opacity: .7; }
.cat-note { margin-inline-start: auto; font-size: .78rem; font-weight: 700; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 13px; white-space: nowrap; }
.cat-cut { position: absolute; inset-block-start: -34px; inset-inline-end: 18px; width: clamp(78px, 9vw, 116px); filter: drop-shadow(4px 5px 0 rgba(16,38,26,.24)); pointer-events: none; }

/* min() لازم — من غيرها الـ 370px بتبقى أعرض من الشاشة وتقص زرار الإضافة */
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(370px, 100%), 1fr)); gap: 2px var(--s7); }
.row { display: flex; align-items: center; gap: var(--s3); padding-block: var(--s3); border-bottom: 2px dotted var(--rule); }
.row-b { min-width: 0; flex: 1; }
.row-n { font-weight: 700; line-height: 1.55; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.row-d { font-size: .8rem; line-height: 1.6; opacity: .72; font-weight: 500; }
.melt { font-size: .6rem; font-weight: 700; background: var(--green); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.price { font-family: 'Lalezar', cursive; font-size: 1.5rem; line-height: 1; flex: none; }
.price small { font-size: .6rem; font-family: 'Marhey', sans-serif; font-weight: 700; opacity: .7; }

.add {
  width: 42px; height: 42px; flex: none;
  border: var(--bw) solid var(--ink); border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .16s var(--e), box-shadow .16s var(--e);
}
.add:hover { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink); }
.add:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }
.add svg { width: 19px; height: 19px; }

/* ---------- العروض ---------- */
.offers-split { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(var(--s6), 5vw, 68px); align-items: center; }
.bundles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 900px) { .offers-split { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .bundles { grid-template-columns: 1fr; } }
.bundle {
  background: var(--cream); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  box-shadow: var(--off) var(--off) 0 var(--yellow);
  padding: var(--s5);
  display: flex; flex-direction: column; gap: var(--s3);
  transition: transform .16s var(--e), box-shadow .16s var(--e);
}
.bundle:hover { transform: translate(2px,2px); box-shadow: 4px 4px 0 var(--yellow); }
.bundle .k { font-size: .68rem; font-weight: 700; background: var(--green); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; align-self: flex-start; }
.bundle h3 { font-family: 'Lalezar', cursive; font-weight: 400; font-size: 1.35rem; line-height: 1.3; }
.bundle .r { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-block-start: auto; padding-block-start: var(--s3); border-top: 2px dashed var(--rule); }
.bundle .price { font-size: 1.85rem; }

.box-art { display: grid; justify-items: center; gap: var(--s4); }
.box-art img { width: min(330px, 100%); filter: drop-shadow(6px 7px 0 rgba(0,0,0,.45)); }
.box-art p { font-weight: 500; font-size: .95rem; text-align: center; max-width: 34ch; }

/* ---------- الشركات ---------- */
.corp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(var(--s6), 5vw, 72px); align-items: center; }
.corp ul { display: grid; gap: var(--s4); margin-block-start: var(--s6); }
.corp li { display: flex; gap: var(--s3); align-items: flex-start; }
.corp li svg { width: 22px; height: 22px; flex: none; margin-block-start: 7px; }
.corp li b { display: block; line-height: 1.6; }
.corp li p { font-size: .92rem; line-height: 1.75; opacity: .78; font-weight: 500; }
.corp-art { position: relative; display: grid; place-items: center; }
.corp-art img { width: min(260px, 70%); filter: drop-shadow(6px 7px 0 rgba(16,38,26,.24)); }
.tagp {
  position: absolute; background: var(--yellow); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 999px;
  padding: 8px 18px; font-size: .82rem; font-weight: 700; white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
}
.tagp.a { inset-block-start: 6%; inset-inline-start: -4%; transform: rotate(-5deg); }
.tagp.b { inset-block-end: 8%; inset-inline-end: -4%; transform: rotate(4deg); background: var(--green); }
@media (max-width: 900px) { .corp { grid-template-columns: 1fr; } .corp-art { order: -1; } }

/* ---------- الفروع ---------- */
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: var(--s5); }
.branch {
  background: var(--cream); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  box-shadow: var(--off) var(--off) 0 var(--ink);
  padding: var(--s6) var(--s5);
  display: flex; flex-direction: column; gap: var(--s2);
}
.branch:nth-child(2) { transform: rotate(-.8deg); }
.branch h3 { font-family: 'Lalezar', cursive; font-weight: 400; }
.branch .en { font-size: .6rem; font-weight: 700; opacity: .65; }
.branch .ar { font-weight: 500; opacity: .85; }
.branch .modes { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: auto; padding-block-start: var(--s4); }
.chip { font-size: .68rem; font-weight: 700; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; background: var(--green); }
.branch.sea { background: var(--blue); color: var(--cream); }
.branch.sea .chip { background: var(--yellow); color: var(--ink); }

/* ---------- الحكاية ---------- */
.story { text-align: center; }
.story .script { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 2.1; max-width: 58ch; margin-inline: auto; margin-block-start: var(--s5); }
.story .checker { width: 52px; height: 52px; margin-inline: auto; margin-block-end: var(--s5);
  background-image: linear-gradient(45deg, var(--yellow) 25%, transparent 25% 75%, var(--yellow) 75%), linear-gradient(45deg, var(--yellow) 25%, transparent 25% 75%, var(--yellow) 75%);
  background-size: 26px 26px; background-position: 0 0, 13px 13px; }

/* ---------- الفوتر ---------- */
.footer { padding-block: var(--s8) var(--s5); margin-inline: var(--edge); border-top: var(--bw) solid var(--ink); }
.foot-top { display: grid; justify-items: center; gap: var(--s4); text-align: center; }
.foot-plate {
  background: var(--cream); border: var(--bw) solid var(--ink); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: var(--s5) var(--s7); transform: rotate(-1.5deg);
}
.foot-plate img { height: 88px; width: auto; }
.phone {
  display: inline-flex; align-items: center; gap: var(--s3);
  direction: rtl;                      /* الرقم يتقرا من اليمين زي المنيو المطبوع */
  background: var(--ink); color: var(--cream);
  border: var(--bw) solid var(--ink); border-radius: 999px;
  padding: 13px 30px; font-size: 1.2rem; font-weight: 700;
  box-shadow: 5px 5px 0 var(--yellow);
}
.phone:hover { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--yellow); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: center; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot-base { margin-block-start: var(--s7); padding-block-start: var(--s4); border-top: 2px dashed var(--rule);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; font-size: .8rem; font-weight: 500; }

/* ---------- الكارت ---------- */
.fab {
  position: fixed; inset-block-end: 20px; inset-inline-start: calc(var(--edge) + 20px); z-index: 95;
  display: flex; align-items: center; gap: var(--s3);
  min-height: 58px; padding: 0 var(--s5);
  background: var(--ink); color: var(--cream);
  border: var(--bw) solid var(--ink); border-radius: 999px;
  font-weight: 700; box-shadow: 5px 5px 0 var(--yellow);
  transform: translateY(160%);
  transition: transform .5s var(--e), box-shadow .16s var(--e);
}
.fab.show { transform: translateY(0); }
.fab:hover { box-shadow: 3px 3px 0 var(--yellow); }
.fab svg { width: 22px; height: 22px; flex: none; }
.fab .c {
  min-width: 28px; height: 28px; padding: 0 7px;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--cream); border-radius: 999px;
  display: grid; place-items: center; font-size: .82rem; font-weight: 700;
}
.fab .c.pop { animation: pop .4s var(--e); }
@keyframes pop { 0%{transform:scale(1)} 45%{transform:scale(1.45)} 100%{transform:scale(1)} }

.scrim { position: fixed; inset: 0; z-index: 190; background: rgba(16,38,26,.62); opacity: 0; visibility: hidden; transition: opacity .3s var(--e), visibility .3s; }
.scrim.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 200;
  width: min(450px, 100%);
  background: var(--cream);
  border-inline-end: var(--bw) solid var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(-102%);
  transition: transform .45s var(--e);
  visibility: hidden;
}
.drawer.open { transform: translateX(0); visibility: visible; }
.d-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s5); background: var(--ink); color: var(--cream); flex: none; }
.d-head h3 { font-family: 'Lalezar', cursive; font-weight: 400; font-size: 1.4rem; flex: 1; }
.ib { width: 44px; height: 44px; flex: none; border: 2px solid var(--cream); border-radius: 50%; display: grid; place-items: center; }
.ib:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.ib svg { width: 19px; height: 19px; }
.d-body { flex: 1; overflow-y: auto; padding: var(--s5); }
.d-foot { flex: none; padding: var(--s5); border-top: var(--bw) solid var(--ink); background: var(--cream-2); }

.empty { text-align: center; padding-block: var(--s8); display: grid; justify-items: center; gap: var(--s4); }
.empty p { font-weight: 500; }

.line { display: flex; align-items: center; gap: var(--s3); padding-block: var(--s4); border-bottom: 2px dotted var(--rule); }
.line-b { flex: 1; min-width: 0; }
.line-n { font-weight: 700; line-height: 1.5; font-size: .96rem; }
.line-p { font-size: .82rem; opacity: .75; font-weight: 500; }
.qty { display: flex; align-items: center; gap: 2px; flex: none; border: 2px solid var(--ink); border-radius: 999px; padding: 2px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.qty button:hover { background: var(--yellow); }
.qty button svg { width: 14px; height: 14px; }
.qty .v { min-width: 26px; text-align: center; font-weight: 700; }

.field { margin-block-end: var(--s4); }
.field > label, .field > .lb { display: block; font-size: .8rem; font-weight: 700; margin-block-end: var(--s2); }
.seg { display: flex; gap: var(--s2); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 0 6px; border: 2px solid var(--ink); border-radius: 999px; font-size: .85rem; font-weight: 700; text-align: center; }
.seg label:hover span { background: var(--green); }
.seg input:checked + span { background: var(--ink); color: var(--cream); }
.seg input:focus-visible + span { outline: 4px solid var(--yellow); outline-offset: 2px; }

select, .input {
  width: 100%; min-height: 48px; padding: 0 var(--s4);
  border: 2px solid var(--ink); border-radius: 10px;
  background: var(--cream); font-weight: 600;
}
select:focus, .input:focus { outline: 4px solid var(--yellow); outline-offset: 2px; }
textarea.input { min-height: 76px; padding-block: var(--s3); resize: vertical; line-height: 1.7; }

.total { display: flex; align-items: baseline; justify-content: space-between; margin-block-end: var(--s4); }
.total .lb { font-weight: 700; }
.total .val { font-family: 'Lalezar', cursive; font-size: 2rem; }
.total .val small { font-family: 'Marhey', sans-serif; font-size: .7rem; font-weight: 700; opacity: .7; }
.d-foot .btn { width: 100%; }
.note { font-size: .74rem; text-align: center; margin-block-start: var(--s3); line-height: 1.7; font-weight: 500; opacity: .8; }

.toast {
  position: fixed; inset-block-end: 90px; inset-inline-start: calc(var(--edge) + 20px); z-index: 300;
  background: var(--yellow); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 999px;
  padding: 11px 22px; font-weight: 700; font-size: .9rem;
  box-shadow: 4px 4px 0 var(--ink);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s var(--e), transform .25s var(--e);
}
.toast.show { opacity: 1; transform: translateY(0); }
.fly { position: fixed; z-index: 300; pointer-events: none; }

/* ---------- اللحظة الوحيدة: دخول الهيرو ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lift { animation: lift .9s var(--e) both; }
  .lift:nth-child(1) { animation-delay: .04s; }
  .lift:nth-child(2) { animation-delay: .12s; }
  .lift:nth-child(3) { animation-delay: .2s; }
  .lift:nth-child(4) { animation-delay: .28s; }
  @keyframes lift { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  .logo-plate { animation: plate 1s var(--e) both .1s; }
  @keyframes plate { from { opacity: 0; transform: rotate(-2deg) translateY(24px) scale(.96); } }
  .cut { animation: drop .9s var(--e) both; }
  .cut-sand   { animation-delay: .34s; }
  .cut-cheese { animation-delay: .44s; }
  .cut-egg    { animation-delay: .54s; }
  @keyframes drop { from { opacity: 0; transform: translateY(-26px) rotate(0deg); } }
  .seal { animation: stamp .5s var(--e) both .66s; }
  @keyframes stamp { from { opacity: 0; transform: rotate(-13deg) scale(1.9); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
