/* ==========================================================
   بن عقيل — الستايل الرئيسي
   الألوان والخطوط كلها بالمتغيرات تحت. التفاصيل بـ DESIGN.md
   ========================================================== */
:root {
  /* الألوان كلها من الصور الثلاث: تدرج الأزرق، تدرج الأصفر، والكريمي */
  --b900: #263C79; --b800: #324F9E; --b700: #3D61BF; --b600: #4975DB; --b500: #568BF2;
  --b400: #70A2F4; --b300: #91BBF6; --b200: #B4D1F9; --b100: #D5E6FB; --b50: #ECF4FD;
  --y50: #FDF9DC; --y100: #FBF1B9; --y200: #FAEA98; --y300: #F7DF69; --y400: #F7D954; --y500: #F6D44A;
  --cream: #EFE9DC;

  /* أدوار الألوان (الأسماء القديمة باقية حتى ما ينكسر شي) */
  --ivory: var(--cream);
  --ivory-2: var(--y50);
  --paper: var(--y50);
  --ink: var(--b900);
  --ink-2: var(--b800);
  --green: var(--b800);
  --green-2: var(--b900);
  --green-soft: var(--b100);
  --gold: var(--y500);
  --gold-soft: var(--y200);
  --bean: var(--b800);
  --skin: var(--y100);

  /* "Milan Arabic" أول بالقائمة بس للحروف العربية (unicode-range تحت)، فالحروف الإنكليزية تبقى على خطوطها */
  --display: "Milan Arabic", "Reem Kufi", "IBM Plex Sans Arabic", serif;
  --body: "Milan Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --sh-2: 0 6px 18px rgba(38,60,121,.08), 0 2px 4px rgba(38,60,121,.05);
  --sh-3: 0 18px 40px rgba(38,60,121,.14), 0 4px 10px rgba(38,60,121,.06);
  --sh-4: 0 30px 70px rgba(38,60,121,.25);
  --ease: cubic-bezier(.2,.8,.2,1);

  /* الانحناءات: كل الزوايا منحنية (بأسلوب أبل) */
  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 30px;
}
/* المتصفحات اللي تدعم corner-shape تطلع الانحناءة ناعمة ومستمرة مثل أيقونات أبل */
@supports (corner-shape: superellipse(1.5)) {
  :root { --r-xs: 11px; --r-sm: 17px; --r-md: 26px; --r-lg: 34px; --r-xl: 42px; }
  .skip, .flap-board, .flap, .folder-back, .folder-front, .folder-front::before, .fcard, .slide,
  .facts li, .fab-bubble, .assistant, .as-q, .as-opt, .product, .map, .nav.open {
    corner-shape: superellipse(1.5);
  }
}

@font-face {
  font-family: "Milan Display";
  src: url("../assets/fonts/MilanDisplay-Black.otf") format("opentype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* نفس خط Milan بس للحروف العربية: حتى بالنسخة الإنكليزية، أي كلام عربي (مثل أسماء المحاصيل) يطلع بخط Milan */
@font-face {
  font-family: "Milan Arabic";
  src: url("../assets/fonts/MilanDisplay-Black.otf") format("opentype");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
/* العربي فقط: كل الكتابات بخط Milan Display. الإنكليزي يبقى مثل ما هو */
html[lang="ar"] { --display: "Milan Display", serif; --body: "Milan Display", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; }

.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 8px; top: -80px; background: var(--ink); color: var(--ivory); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.eyebrow { font-size: .875rem; font-weight: 600; color: var(--green); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: "✱"; color: var(--gold); font-size: 1rem; text-shadow: 0 0 0 var(--ink); }
.eyebrow-light { color: var(--gold-soft); }
.lead { font-size: 1.15rem; color: var(--ink-2); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--ivory-2); }
.btn-primary:hover { background: var(--green-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--ivory-2); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .9rem; }

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(239,233,220,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38,60,121,.06);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; }
.logo-tag { font-size: .75rem; color: var(--ink-2); font-weight: 500; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; background: linear-gradient(var(--gold), var(--gold)) no-repeat 100% 100% / 0 2px; transition: background-size .25s var(--ease); }
.nav a:hover { background-size: 100% 2px; }
@media (min-width: 1180px) { .nav { display: flex; } }

/* ---------- الهيرو ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(64px, 9vw, 112px); }

/* لوحة الحروف المتقلبة */
.flap-board {
  /* حجم المربع يتحسب حتى اللوحة كلها تلزم الشاشة (--n = عدد المربعات من js) */
  --n: 13; --gap: clamp(2px, .5vw, 6px); --pad: clamp(8px, 1.4vw, 16px);
  --tile: clamp(16px, calc((100cqw - 2 * var(--pad) - (var(--n) - 1) * var(--gap)) / var(--n)), 48px);
  display: flex; justify-content: center; gap: var(--gap);
  padding: var(--pad); margin-inline: auto; width: fit-content; max-width: 100%;
  background: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-3);
}
/* المربع: نصّين ثابتين + ورقتين ينقلبن. الفراغ بين النصين هو الخط اللي بالوسط */
.flap {
  --h: calc(var(--tile) * 1.3);
  position: relative; flex: none; width: var(--tile); height: var(--h);
  perspective: calc(var(--tile) * 5);
  color: var(--ivory); font: 700 calc(var(--tile) * .8)/1 var(--display);
}
/* --shift يتحسب بـ js حسب الخط حتى مركز الحرف يجي بالضبط على الخط اللي بالنص */
.flap .h, .flap .lf {
  position: absolute; left: 0; right: 0; height: calc(50% - .5px); overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flap .top { top: 0; background: var(--b700); border-radius: var(--r-xs) var(--r-xs) 2px 2px; transform-origin: 50% 100%; }
.flap .bot { bottom: 0; background: var(--b800); border-radius: 2px 2px var(--r-xs) var(--r-xs); transform-origin: 50% 0; }
.flap .lf { z-index: 2; }
.flap .g {
  position: absolute; left: 0; right: 0; height: var(--h); line-height: var(--h);
  text-align: center; translate: 0 var(--shift, 0em); white-space: nowrap;
}
.flap .top .g { top: 0; }
.flap .bot .g { bottom: 0; }
.flap .g.sep { color: var(--gold); }
/* القلبة: الورقة الفوگانية تنطبق لجوّا، بعدها الجوّانية تنزل */
.flap.flipping .lf.top { animation: leafTop 45ms ease-in forwards; }
.flap.flipping .lf.bot { animation: leafBot 45ms ease-out 45ms both; }
@keyframes leafTop { from { transform: rotateX(0); filter: brightness(1); } to { transform: rotateX(-90deg); filter: brightness(.7); } }
@keyframes leafBot { from { transform: rotateX(90deg); filter: brightness(1.25); } to { transform: rotateX(0); filter: brightness(1); } }

.hero-grid { display: grid; gap: 40px; align-items: center; margin-top: clamp(36px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); line-height: 1.15; margin-bottom: 20px; }
.hero .lead { max-width: 34rem; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.hero-stage { position: relative; display: grid; place-items: center; }
.stage-sun { position: absolute; width: min(92%, 420px); aspect-ratio: 1; border-radius: 50%; background: var(--gold-soft); top: 4%; }
.stage-sun::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1.5px dashed rgba(38,60,121,.18); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-caption { position: relative; margin-top: 4px; font-size: .875rem; color: var(--ink-2); min-height: 1.6em; text-align: center; transition: opacity .3s; }

/* ---------- شخصية بن عقيل ---------- */
.aqeel { overflow: visible; }
.aqeel .fill-ink { fill: var(--ink); }
.aqeel .bean { fill: var(--bean); stroke: var(--ink); stroke-width: 4; }
.aqeel .bean-line { fill: none; stroke: var(--b900); stroke-width: 5; stroke-linecap: round; }
.aqeel .shine { fill: rgba(213,230,251,.45); }
.aqeel .dough { fill: var(--y400); stroke: var(--ink); stroke-width: 4; }
.aqeel .icing { fill: var(--b800); }
.aqeel .hole { fill: var(--gold-soft); stroke: var(--ink); stroke-width: 3; }
.aqeel .sprinkle { fill: none; stroke-width: 3; stroke-linecap: round; }
.aqeel .s1 { stroke: var(--gold); } .aqeel .s2 { stroke: var(--paper); }
.aqeel .cup { fill: var(--paper); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.aqeel .sleeve { fill: var(--green); stroke: var(--green); stroke-width: 4; stroke-linejoin: round; }
.aqeel .dot-gold { fill: var(--gold); }
.aqeel .steam { fill: none; stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; opacity: .6; animation: steam 2.4s ease-in-out infinite; }

.aqeel .aq-pose { opacity: 0; transform: translateY(10px) scale(.96); transform-origin: 150px 260px; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.aqeel .aq-pose.is-active { opacity: 1; transform: none; }

@keyframes sway { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes hop { 0% { transform: translateY(0); } 40% { transform: translateY(-16px); } 100% { transform: translateY(0); } }
@keyframes steam { 0%,100% { transform: translateY(0); opacity: .25; } 50% { transform: translateY(-6px); opacity: .7; } }

/* ---------- الملف الزجاجي ---------- */
.picks {
  position: relative; overflow: hidden;
  padding-block: clamp(64px, 10vw, 120px) 0;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(246,212,74,.38), transparent 70%),
    radial-gradient(55% 60% at 10% 30%, rgba(180,209,249,.55), transparent 70%),
    radial-gradient(80% 70% at 50% 100%, var(--b600), transparent 70%),
    var(--b800);
  color: var(--ivory-2);
}
.picks-head { text-align: center; margin-bottom: clamp(24px, 4vw, 48px); }
.picks .eyebrow { color: var(--gold-soft); }

.folder { --p: 1; position: relative; width: min(620px, 92vw); aspect-ratio: 1.15; margin-inline: auto; }
.folder-back {
  position: absolute; inset-inline: 2%; bottom: 0; height: 60%;
  background: rgba(38,60,121,.55); border-radius: var(--r-xl) var(--r-xl) var(--r-lg) var(--r-lg);
}
.folder-front {
  position: absolute; inset-inline: 0; bottom: 0; height: 48%; z-index: 5;
  background: linear-gradient(180deg, rgba(213,230,251,.55), rgba(180,209,249,.38));
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(236,244,253,.55); border-bottom: 0;
  border-radius: var(--r-xl); border-start-start-radius: 0;
  box-shadow: inset 0 1px 0 rgba(236,244,253,.6), 0 -10px 30px rgba(38,60,121,.12);
}
.folder-front::before { /* لسان الملف */
  content: ""; position: absolute; bottom: 100%; inset-inline-start: -1px; width: 42%; height: 34px;
  background: rgba(213,230,251,.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(236,244,253,.55); border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0;
}
.folder-label { position: absolute; top: 18px; inset-inline-end: 22px; font: 600 .875rem/1.3 var(--body); color: var(--green-2); }

.fcard {
  position: absolute; bottom: 22%; width: 38%; aspect-ratio: 3 / 4; z-index: 2;
  border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-3); overflow: hidden;
  color: var(--green-2); background: var(--paper);
  transform: translateY(calc((1 - var(--p)) * 78%)) rotate(calc(var(--r) * var(--p)));
  transition: transform .15s linear;
  will-change: transform;
}
.fcard h3 { font-size: clamp(.95rem, .7rem + 1vw, 1.35rem); }
.fcard-1 { --r: -13deg; inset-inline-end: 6%; background: linear-gradient(170deg, var(--y50), var(--b50)); transform-origin: 50% 100%; }
.fcard-2 { --r: 3deg; inset-inline-start: 31%; bottom: 25%; z-index: 3; padding: 0; color: var(--ivory-2); background: var(--green-2); }
.fcard-3 { --r: 14deg; inset-inline-start: 4%; transform-origin: 50% 100%; }
.fcard-2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fcard-over { position: absolute; inset: 0; padding: 18px; background: linear-gradient(180deg, rgba(38,60,121,.85), rgba(38,60,121,.1) 65%); }
.fcard-over p { font-size: .75rem; margin-top: 8px; opacity: .9; }
.blobs { display: grid; place-items: center; margin-top: 14%; position: relative; }
.blobs span { width: 64%; aspect-ratio: 1.3; display: grid; place-items: center; border-radius: 46% 54% 50% 50%; background: rgba(61,97,191,.14); font-size: .8rem; font-weight: 600; }
.blobs span + i + span { margin-top: -18%; margin-inline-start: 30%; background: rgba(246,212,74,.45); }
.blobs i { position: absolute; font-style: normal; top: 42%; }
.beans { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 70%; margin: 14% auto 0; }
.beans b { aspect-ratio: 1.25; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--b600), var(--b800) 70%); position: relative; }
.beans b::after { content: ""; position: absolute; inset: 18% 48%; border-radius: 40%; background: var(--b900); transform: rotate(18deg); }
.beans b:first-child { grid-column: 1 / -1; width: 56%; justify-self: center; }
.fcard-foot { position: absolute; bottom: 12px; inset-inline: 16px; font: 600 .8rem var(--display); }

/* ---------- الصور المتراكبة: شرائح قطرية بنفس الحجم (تكنيك الفيديو ٣) ---------- */
.moments { background: var(--ink); color: var(--ivory); padding-block: clamp(64px, 10vw, 128px); }
.collage {
  --w: 80%; --dx: 11%; --dy: 34%;           /* موبايل */
  position: relative; margin-top: clamp(28px, 4vw, 48px); aspect-ratio: 1 / 1; overflow: visible;
}
@media (min-width: 768px) { .collage { --w: 56%; --dx: 34%; --dy: 30%; aspect-ratio: 16 / 9; } }
.slide {
  --k: 0;
  position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 16 / 10; margin: 0;
  overflow: hidden; border-radius: var(--r-xl); background: var(--b800);
  box-shadow: 0 24px 50px rgba(15,25,60,.45);
  transform: translate(-50%, -50%) translate(calc(var(--k) * var(--dx)), calc(var(--k) * var(--dy)));
  transition: transform .8s cubic-bezier(.65,0,.35,1), opacity .6s ease, filter .6s ease;
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.side { filter: brightness(.82); }
.slide.out { opacity: 0; }
.slide.jump { transition: none; }

/* ---------- عنّا ---------- */
.about { padding-block: clamp(64px, 10vw, 128px); }
.about-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts li { background: var(--ivory-2); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-2); }
.facts strong { display: block; font: 700 2.2rem/1 var(--display); color: var(--green); }
.facts span { font-size: .875rem; color: var(--ink-2); }

.site-footer { background: var(--green-2); color: var(--ivory-2); padding-block: 28px; font-size: .875rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.site-footer .logo-name { font-size: 1.3rem; }

/* ---------- زر المساعد العائم ---------- */
.fab {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 50;
  width: 76px; height: 76px; padding: 0; border-radius: 50%;
  background: var(--gold-soft); border: 3px solid var(--ink); box-shadow: var(--sh-3);
  cursor: grab; touch-action: none; animation: bob 3s ease-in-out infinite;
}
.fab.dragging { cursor: grabbing; animation: none; transform: scale(1.08); }
.fab-face { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.fab-bubble {
  position: absolute; bottom: calc(100% + 10px); inset-inline-end: 0; white-space: nowrap;
  background: var(--paper); color: var(--ink); font: 600 .85rem/1 var(--body);
  padding: 10px 14px; border-radius: var(--r-md); box-shadow: var(--sh-2); border: 1.5px solid var(--ink);
  transition: opacity .3s;
}
.fab-bubble::after { content: ""; position: absolute; top: calc(100% - 6px); inset-inline-end: 28px; width: 12px; height: 12px; background: var(--paper); border: 1.5px solid var(--ink); border-top: 0; border-inline-start: 0; border-radius: 0 0 4px 0; transform: rotate(45deg); }
.fab.quiet .fab-bubble { opacity: 0; pointer-events: none; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- نافذة المساعد ---------- */
.assistant {
  width: min(440px, 100% - 24px); max-height: min(720px, 100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--r-xl); overflow: hidden auto;
  background: var(--ivory-2); color: var(--ink); box-shadow: var(--sh-4);
}
.assistant::backdrop { background: rgba(38,60,121,.45); backdrop-filter: blur(3px); }
.assistant[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.as-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--green-2); color: var(--ivory-2); }
.as-title { display: flex; align-items: center; gap: 10px; }
.as-title h2 { font-size: 1.25rem; }
.as-face { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); overflow: hidden; }
.as-close { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ivory-2); font-size: 1.3rem; cursor: pointer; border-radius: 50%; }
.as-close:hover { background: rgba(236,244,253,.12); }
.as-progress { padding: 14px 20px 16px; border-bottom: 1px solid rgba(38,60,121,.08); font-size: .875rem; color: var(--ink-2); }
.bar { height: 7px; border-radius: 99px; background: var(--b100); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 25%; background: var(--green-2); border-radius: inherit; transition: width .4s var(--ease); }
.as-body { padding: 18px 20px 22px; }
.as-q { background: var(--paper); border-radius: var(--r-lg); padding: 18px 20px; border: 1px solid rgba(38,60,121,.07); margin-bottom: 14px; }
.as-q b { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--green-2); }
.as-q p { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.as-opts { display: grid; gap: 10px; }
.as-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 56px;
  text-align: start; padding: 14px 20px; border-radius: var(--r-md); cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--green-soft); color: var(--ink);
  font: 600 1rem/1.4 var(--body); transition: border-color .2s, background .2s, transform .2s;
  animation: rise .4s var(--ease) backwards;
}
.as-opt small { font-weight: 400; color: var(--ink-2); font-size: .8rem; }
.as-opt:hover { border-color: var(--green); transform: translateY(-2px); }
.as-opt.picked { background: var(--green); color: var(--ivory-2); border-color: var(--green); }
.as-opt.picked small { color: var(--green-soft); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.as-back { margin-top: 14px; background: none; border: 0; color: var(--ink-2); font: 500 .9rem var(--body); cursor: pointer; padding: 10px 4px; min-height: 44px; }
.as-result h3 { font-size: 1.6rem; margin: 4px 0 8px; color: var(--green-2); }
.as-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; padding: 0; list-style: none; }
.as-tags li { background: var(--gold-soft); color: var(--ink); font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; }
.as-tip { font-size: .95rem; color: var(--ink-2); }
.as-result .btn { margin-top: 18px; width: 100%; }

/* ---------- تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- لمسات من مراجعة إرشادات الواجهات ---------- */
h1, h2, h3 { text-wrap: balance; }
section[id] { scroll-margin-top: 80px; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.assistant { overscroll-behavior: contain; }
.fab { user-select: none; -webkit-user-select: none; }

/* ==========================================================
   المرحلة الثانية: الهيدر، الإيقاف، المنتجات، التواصل
   ========================================================== */
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  min-width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 .9rem/1 var(--body);
}
.lang-btn:hover { background: var(--ink); color: var(--ivory-2); }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-content: center; gap: 6px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (max-width: 1179px) {
  .nav.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; inset-inline: 0; padding: 12px 1rem 20px;
    background: var(--ivory-2); border-bottom: 1px solid rgba(38,60,121,.08); box-shadow: var(--sh-2);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
  }
  .nav.open a { padding: 12px 4px; font-size: 1.05rem; }
}
@media (min-width: 1180px) { .menu-btn { display: none; } }

.board-wrap { width: 100%; container-type: inline-size; } /* حجم المربعات يتحسب من عرض هذا المكان */
.board-inner { position: relative; width: fit-content; margin-inline: auto; }
.pause-btn {
  position: absolute; inset-inline-end: -14px; bottom: -14px; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--gold); color: var(--ink); font: 700 .7rem/1 var(--body); cursor: pointer;
  box-shadow: var(--sh-2);
}
.pause-btn::before { content: ""; position: absolute; inset: -4px; } /* مساحة لمس أكبر */
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* المنتجات */
.shop { padding-block: clamp(64px, 10vw, 128px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.products { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.product {
  --tint: var(--green-soft);
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px;
  background: var(--paper); border-radius: var(--r-xl); border: 1px solid rgba(38,60,121,.08); box-shadow: var(--sh-2);
  overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: var(--tint); }
.product:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.product[data-flavor="fruity"] { --tint: var(--y300); }
.product[data-flavor="floral"] { --tint: var(--b200); }
.product[data-flavor="sweet"] { --tint: var(--gold); }
.product[data-flavor="nutty"] { --tint: var(--b600); }
.product[data-flavor="citrus"] { --tint: var(--y200); }
.product-top { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.product-top small { font-size: .8rem; }
.roast { display: inline-flex; gap: 4px; }
.roast i { width: 10px; height: 14px; border-radius: 50%; background: var(--b100); }
.roast i.on { background: var(--bean); }
.product h3 { font-size: 1.3rem; }
.notes { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.notes li { font-size: .8rem; font-weight: 500; padding: 5px 11px; border-radius: 99px; background: var(--ivory-2); border: 1px solid rgba(38,60,121,.08); }
.product-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: end; justify-content: space-between; gap: 12px; border-top: 1px dashed rgba(38,60,121,.15); }
.price { font-size: .9rem; color: var(--ink-2); }
.price strong { font: 700 1.5rem/1 var(--display); color: var(--ink); }
.price small { display: block; font-size: .75rem; }

/* التواصل */
.contact { padding-block: clamp(64px, 10vw, 128px); background: var(--b50); }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: stretch; } }
.contact-card { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.info { margin: 0; display: grid; gap: 14px; width: 100%; }
.info div { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(38,60,121,.08); }
.info dt { font-weight: 600; color: var(--green); }
.info dd { margin: 0; }
.info a { color: var(--ink); text-underline-offset: 3px; }
.info a[dir="ltr"] { unicode-bidi: isolate; }
.map { min-height: 320px; border-radius: var(--r-xl); overflow: hidden; border: 3px solid var(--ink); box-shadow: var(--sh-3); background: var(--green-soft); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* نتيجة المساعد */
.as-price { margin: 4px 0 12px; color: var(--ink-2); }
.as-price strong { font: 700 1.4rem/1 var(--display); color: var(--ink); }
.as-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }
.as-row .as-back { margin-top: 0; text-decoration: none; display: inline-flex; align-items: center; }
.pause-btn::after { /* أيقونة إيقاف (خطين) أو تشغيل (مثلث) */
  content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 12px;
  background: linear-gradient(90deg, var(--ink) 0 35%, transparent 35% 65%, var(--ink) 65%);
}
.pause-btn[aria-pressed="true"]::after { background: var(--ink); clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.as-q p.as-tip, .as-q p.as-price { font-family: var(--body); font-size: .95rem; font-weight: 400; }
.as-q p.as-price { font-size: .9rem; }
html[lang="ar"] { font-size: 106.25%; } /* خط Milan حروفه أصغر شوية، نكبّر العربي بس */
/* وصلة منحنية بين لسان الملف وجسمه (بدل الزاوية الحادة) */
.folder-front::after {
  content: ""; position: absolute; bottom: 100%; inset-inline-start: calc(42% - 1px);
  width: var(--r-md); height: var(--r-md);
  background: rgba(213,230,251,.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  -webkit-mask: radial-gradient(circle at 100% 0, transparent calc(var(--r-md) - .5px), #000 var(--r-md));
          mask: radial-gradient(circle at 100% 0, transparent calc(var(--r-md) - .5px), #000 var(--r-md));
}
html[dir="rtl"] .folder-front::after {
  -webkit-mask: radial-gradient(circle at 0 0, transparent calc(var(--r-md) - .5px), #000 var(--r-md));
          mask: radial-gradient(circle at 0 0, transparent calc(var(--r-md) - .5px), #000 var(--r-md));
}

/* ---------- شخصية بن عقيل (الصورة الأصلية) ---------- */
.mascot { position: relative; z-index: 0; width: min(76%, 300px); margin-block: 32px 20px; transform-origin: 50% 95%; animation: mascot-sway 5s ease-in-out infinite; }
.mascot::before, .mascot::after { /* الدائرة الصفرة وراه والحلقة المنقطة */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%;
}
.mascot::before { width: 128%; background: var(--gold-soft); }
.mascot::after { width: 104%; border: 1.5px dashed rgba(38,60,121,.22); animation: spin 40s linear infinite; }
.mascot-img { width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(38,60,121,.18)); }
.mascot.hop { animation: hop .5s var(--ease), mascot-sway 5s ease-in-out infinite .5s; }
.mascot .props { position: absolute; right: -12%; bottom: -2%; width: 40%; height: auto; }
.props .aq-pose { transform: scale(.4) rotate(-14deg); transform-origin: 70px 70px; }
.props .aq-pose.is-active { transform: none; }
@keyframes mascot-sway { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-4px); } }
.fab-face { display: block; object-fit: contain; padding: 7px 8px 5px; }
.as-face { object-fit: contain; padding: 4px; }

/* ==========================================================
   صفحة المحاصيل + السلة
   ========================================================== */
.nav a.active { background-size: 100% 2px; }

/* زر السلة بالهيدر */
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; display: grid; place-items: center;
}
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.cart-btn:hover { background: var(--y200); }
.cart-count {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--ink); font: 700 .7rem/20px var(--body); text-align: center;
}

/* محتوى الصفحة */
.crops-main { padding-block: 24px clamp(64px, 9vw, 112px); min-height: 70vh; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-2); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-head { margin-bottom: clamp(24px, 4vw, 40px); max-width: 44rem; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: 10px; }

/* اختيار الفئة */
.cat-grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
.cat-card {
  display: grid; gap: 18px; padding: 22px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid rgba(38,60,121,.08); border-radius: var(--r-xl); box-shadow: var(--sh-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.cat-pics { display: flex; justify-content: center; align-items: end; height: 220px; background: var(--b50); border-radius: var(--r-lg); overflow: hidden; padding-top: 16px; }
.cat-pics img { width: 38%; margin-inline: -6%; filter: drop-shadow(0 10px 14px rgba(38,60,121,.18)); }
.cat-pics img:nth-child(2) { width: 46%; position: relative; z-index: 1; }
.cat-text { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cat-text h2 { font-size: 1.6rem; width: 100%; }
.cat-text p { color: var(--ink-2); }

/* فلترة الدول */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter {
  min-height: 40px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(38,60,121,.18); background: transparent; color: var(--ink); font: 500 .9rem var(--body);
}
.filter:hover { border-color: var(--ink); }
.filter.on { background: var(--ink); color: var(--y50); border-color: var(--ink); }

/* بطاقات المحاصيل */
.crop-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (max-width: 520px) { .crop-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.crop-card {
  display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 14px;
  background: var(--paper); border: 1px solid rgba(38,60,121,.08); border-radius: var(--r-xl); box-shadow: var(--sh-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.crop-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.crop-link { color: var(--ink); text-decoration: none; display: grid; gap: 10px; }
.crop-img { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--b50); }
.crop-img img { width: 100%; height: 100%; object-fit: contain; }
.crop-card h3 { font-size: 1.05rem; padding-inline: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0; padding: 0 4px; }
.chips li { font-size: .72rem; font-weight: 500; padding: 4px 9px; border-radius: 999px; background: var(--b50); border: 1px solid rgba(38,60,121,.1); }
.crop-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 4px 0; border-top: 1px dashed rgba(38,60,121,.15); }
.crop-price { margin-inline-end: auto; font-size: .8rem; color: var(--ink-2); }
.crop-price strong { font: 700 1.15rem/1 var(--display); color: var(--ink); }
.crop-rate { font-size: .78rem; color: var(--ink-2); }
.add-mini {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: var(--y50); font: 600 1.3rem/1 var(--body); transition: background .2s, transform .2s;
}
.add-mini:hover { background: var(--green-2); transform: scale(1.06); }
.add-mini:active { transform: scale(.94); }

/* محاصيل بن عقيل بدون صور: خلفية من الألوان والشخصية */
.ours-art { position: relative; display: grid; place-items: center; background: linear-gradient(160deg, var(--b100), var(--y100)); }
.ours-art[data-flavor="fruity"], .ours-art[data-flavor="sweet"] { background: linear-gradient(160deg, var(--y200), var(--y50)); }
.ours-art[data-flavor="floral"], .ours-art[data-flavor="citrus"] { background: linear-gradient(160deg, var(--b200), var(--b50)); }
.crop-img.ours-art img { width: 62%; height: auto; object-fit: contain; }

/* صفحة المحصول */
.pdp { display: grid; gap: clamp(20px, 4vw, 48px); margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr .95fr; align-items: start; } }
.pdp-gallery { display: grid; gap: 12px; }
@media (min-width: 900px) { .pdp-gallery { position: sticky; top: 88px; } }
.pdp-main { aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; background: var(--b50); box-shadow: var(--sh-2); }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; }
.pdp-main.ours-art img { width: 55%; height: auto; }
.pdp-main.ours-art span { position: absolute; bottom: 22px; font: 700 1.2rem var(--display); }
.pdp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-thumbs button { width: 72px; height: 72px; padding: 0; border-radius: var(--r-md); overflow: hidden; border: 2px solid transparent; background: var(--b50); cursor: pointer; }
.pdp-thumbs button.on { border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { display: flex; flex-direction: column; gap: 14px; }
.pdp-info h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
.pdp-info .chips li { font-size: .85rem; padding: 6px 12px; }
.stock { align-self: flex-start; font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--b100); color: var(--ink); }
.stock.out { background: var(--y200); }
.pdp-rate { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.stars { display: inline-flex; gap: 1px; font-size: 1rem; line-height: 1; }
.stars i { font-style: normal; color: var(--b200); }
.stars i.on { color: var(--gold); -webkit-text-stroke: .6px var(--ink); }
.pdp-price { font-size: 1rem; color: var(--ink-2); }
.pdp-price strong { font: 700 clamp(2rem, 1.6rem + 1.6vw, 2.6rem)/1 var(--display); color: var(--ink); }
.pdp-note { font-size: .82rem; color: var(--ink-2); margin-top: -8px; }
.pdp-buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin-top: 6px; }
.pdp-buy .btn { flex: 1 1 200px; min-height: 54px; }
.pdp-sku { font-size: .82rem; color: var(--ink-2); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); }
.stepper button { width: 48px; height: 52px; border: 0; background: transparent; color: var(--ink); font: 600 1.3rem/1 var(--body); cursor: pointer; }
.stepper button:hover { background: var(--y200); }
.stepper span { min-width: 36px; text-align: center; font: 700 1.1rem var(--body); }
.stepper.sm button { width: 34px; height: 34px; font-size: 1.05rem; }
.stepper.sm span { min-width: 24px; font-size: .95rem; }

.pdp-desc, .pdp-reviews, .pdp-similar { margin-bottom: clamp(40px, 6vw, 72px); }
.pdp-desc h2, .pdp-reviews h2, .pdp-similar h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 18px; }
.desc-body { max-width: 860px; margin-inline: auto; display: grid; gap: 16px; }
.desc-body img { width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.desc-body p { font-size: 1.05rem; color: var(--ink-2); }
.reviews { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.reviews li { background: var(--paper); border-radius: var(--r-lg); padding: 16px 18px; border: 1px solid rgba(38,60,121,.08); display: grid; gap: 6px; }
.rv-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.reviews small { color: var(--ink-2); font-size: .75rem; }

/* درج السلة */
.cart-drawer {
  margin: 0; margin-inline-start: auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100%);
  padding: 0; border: 0; background: var(--ivory-2); color: var(--ink); box-shadow: var(--sh-4);
  display: none; flex-direction: column; border-start-start-radius: var(--r-xl); border-end-start-radius: var(--r-xl);
}
.cart-drawer[open] { display: flex; animation: slideIn .35s var(--ease); }
html[dir="ltr"] .cart-drawer[open] { animation-name: slideInLtr; }
.cart-drawer::backdrop { background: rgba(38,60,121,.4); backdrop-filter: blur(3px); }
@keyframes slideIn { from { transform: translateX(-100%); } }
@keyframes slideInLtr { from { transform: translateX(100%); } }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--green-2); color: var(--y50); }
.cart-head h2 { font-size: 1.3rem; }
.cart-x { color: var(--y50); }
.cart-empty { padding: 32px 20px; display: grid; gap: 16px; justify-items: start; color: var(--ink-2); }
.cart-list { list-style: none; margin: 0; padding: 12px 16px; overflow-y: auto; flex: 1; display: grid; gap: 10px; align-content: start; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; background: var(--paper); border-radius: var(--r-lg); border: 1px solid rgba(38,60,121,.08); }
.cart-thumb { width: 64px; height: 64px; border-radius: var(--r-md); overflow: hidden; background: var(--b50); display: grid; place-items: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-thumb span { font: 700 .7rem/1.1 var(--display); text-align: center; }
.cart-info { display: grid; gap: 4px; justify-items: start; }
.cart-info b { font-size: .92rem; line-height: 1.3; }
.cart-info small { font-size: .75rem; color: var(--ink-2); }
.cart-line { display: grid; justify-items: end; gap: 4px; font-size: .78rem; color: var(--ink-2); }
.cart-line strong { font: 700 1rem var(--display); color: var(--ink); }
.cart-rm { border: 0; background: none; color: var(--ink-2); font: 500 .75rem var(--body); cursor: pointer; text-decoration: underline; padding: 6px 0; }
.cart-foot { padding: 16px 20px 20px; border-top: 1px solid rgba(38,60,121,.1); display: grid; gap: 8px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.cart-total strong { font: 700 1.4rem var(--display); }
@supports (corner-shape: superellipse(1.5)) {
  .cat-card, .cat-pics, .crop-card, .crop-img, .pdp-main, .pdp-thumbs button, .desc-body img, .reviews li,
  .cart-drawer, .cart-item, .cart-thumb { corner-shape: superellipse(1.5); }
}

/* إشعار "انضاف للسلة" */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--y50); padding: 12px 20px; border-radius: 999px; box-shadow: var(--sh-3);
  font: 600 .9rem var(--body); transition: opacity .25s, translate .25s var(--ease); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; translate: -50% 0; }
.stepper { direction: ltr; } /* − يسار و + يمين مثل بلاك نايت */
@media (max-width: 520px) { .crop-rate { display: none; } }
/* محاصيل الواجهة الرئيسية */
.shop-side { display: grid; gap: 14px; justify-items: start; }
.home-picks { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 1100px) { .home-picks { grid-template-columns: repeat(3, 1fr); } }
.crop-fame { font-size: .8rem; color: var(--ink-2); padding-inline: 4px; line-height: 1.6; }
.crop-fame span { color: var(--ink); font-weight: 700; }
.moments { overflow: hidden; } /* الصور المخفية بانتظار دورها ما تطلع برا الشاشة (حتى بالموبايل) */
@media (max-width: 520px) { .home-picks { grid-template-columns: 1fr 1fr; gap: 12px; } .crop-fame { font-size: .72rem; } }
/* الحلقة المنقطة تدور، وإطارها المربع (مو المرئي) يكبر وهو مايل: نقصّه حتى ما تزحف الصفحة بالموبايل */
.hero-stage { overflow: hidden; }
.hero { overflow-x: clip; }

/* ---------- عقيل: اقتراح المحصول ---------- */
.as-left { font-size: .82rem; font-weight: 600; color: var(--ink); background: var(--y200); padding: 6px 12px; border-radius: 999px; }
.as-row { align-items: center; }
.as-result { background: var(--paper); border-radius: var(--r-lg); padding: 18px 20px; border: 1px solid rgba(38,60,121,.07); display: grid; gap: 10px; }
.as-kicker { font-family: var(--display); font-size: 1.05rem; color: var(--green-2); }
.as-pick { display: flex; gap: 14px; align-items: flex-start; }
.as-pick-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.as-pick-text h3 { font-size: 1.45rem; color: var(--ink); }
.as-meta { font-size: .8rem; color: var(--ink-2); }
.as-notes { font-size: .88rem; color: var(--ink); line-height: 1.6; }
.as-pick-img { width: 92px; height: 92px; flex: none; object-fit: contain; border-radius: var(--r-md); background: var(--b50); box-shadow: var(--sh-2); }
.as-pick-img.ours { background: var(--y100); padding: 6px; }
.as-result .as-tags { margin: 2px 0 0; }
.as-result .as-price { margin: 4px 0 0; }
.as-result .btn { margin-top: 4px; width: 100%; }
@supports (corner-shape: superellipse(1.5)) { .as-result, .as-pick-img { corner-shape: superellipse(1.5); } }

/* اسم المحصول بالنسخة الإنكليزية: العربي، خط بسيط، الإنكليزي */
.nm { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .3em; max-width: 100%; }
.nm-ar { font-family: "Milan Display", serif; }
.nm-en { width: 100%; padding-top: .3em; border-top: 1px solid rgba(38,60,121,.25); font-size: .8em; }

/* ---------- فيلم الافتتاحية (js/intro.js) ----------
   يغطي عرض الشاشة كامل بقياس 2000×627، بنص الهيرو، وبعد ما يخلص يطلع الهيرو بنعومة */
.hero { position: relative; min-height: calc(100vw * 627 / 2000); }
.hero > .container { transition: opacity .8s var(--ease), transform .8s var(--ease), visibility 0s; }
.hero.is-intro > .container { opacity: 0; visibility: hidden; transform: translateY(16px); }
.intro {
  position: absolute; left: 0; right: 0; top: var(--intro-top, 0px); z-index: 3;
  aspect-ratio: 2000 / 627; background: var(--cream);
  transition: opacity .6s ease;
  /* ملمس الورق يذوب بالحافة الفوق والتحت حتى ما يبين حد بينه وبين الصفحة */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 11%, #000 89%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 11%, #000 89%, transparent 100%);
}
.intro-canvas { display: block; width: 100%; height: 100%; }
.intro-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--cream); }
.hero.intro-out .intro { opacity: 0; pointer-events: none; }
.intro-skip {
  position: absolute; inset-inline-end: clamp(10px, 2vw, 28px); bottom: 9%; z-index: 1;
  min-height: 32px; padding: 4px 14px; border-radius: 999px; cursor: pointer;
  font: 600 .78rem/1 var(--body); color: var(--ink); background: rgba(239,233,220,.7);
  border: 1.5px solid rgba(38,60,121,.35); opacity: .75; transition: opacity .2s ease, background .2s ease;
}
.intro-skip:hover { opacity: 1; background: var(--y50); }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } .hero.is-intro > .container { opacity: 1; visibility: visible; transform: none; } }
/* الموبايل الواقف: نسخة 9:16 من الفيلم تملي الشاشة تحت البار (js/intro-video.js يحط intro-tall على <html>).
   الحاسبة ما يتغير عليها شي. زر "تخطَّ" بالنص تحت، وزر عقيل العائم يختفي لحد ما يخلص الفيلم. */
.intro-tall .intro {
  top: 0; aspect-ratio: auto; height: var(--intro-h, calc(100svh - 68px));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 95%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 95%, transparent 100%);
}
.intro-tall .intro-skip { inset-inline: 0; margin-inline: auto; width: max-content; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
.intro-tall.intro-playing .fab { opacity: 0; visibility: hidden; pointer-events: none; }        /* يختفي فوراً ويّا بداية الفيلم */
.intro-tall:not(.intro-playing) .fab { transition: opacity .5s ease, visibility .5s; }       /* ويطلع بنعومة بعد ما يخلص */

/* ==========================================================
   البار المتحرك: عريض فوق، ويصير كبسولة زرقة بالنص لما تنزل
   (البرومت الكامل: prompts/البار-المتحرك.md)
   ========================================================== */
.site-header { display: flow-root; height: 68px; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.site-header .header-row {
  --pill-ease: cubic-bezier(.22,1,.36,1);
  width: var(--hdr-full, min(1180px, 100% - 2rem));
  border: 1px solid transparent; border-radius: 999px;
  transition:
    width .42s var(--pill-ease), height .42s var(--pill-ease), margin .42s var(--pill-ease),
    padding .42s var(--pill-ease), gap .42s var(--pill-ease),
    background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.site-header .logo { transition: gap .42s var(--pill-ease), color .3s ease; }
.site-header .logo-tag {
  display: inline-block; max-width: 10em; overflow: hidden; white-space: nowrap;
  transition: max-width .42s var(--pill-ease), opacity .3s ease .15s, filter .3s ease .15s, color .3s ease;
}
.site-header .nav { transition: gap .42s var(--pill-ease); }
.site-header .nav a, .site-header .lang-btn, .site-header .cart-btn, .site-header .menu-btn, .site-header .header-cta { transition: color .3s ease, background-color .3s ease, border-color .3s ease, transform .2s ease, width .5s var(--pill-ease, ease), min-width .5s var(--pill-ease, ease), height .5s var(--pill-ease, ease), min-height .5s var(--pill-ease, ease), padding .5s var(--pill-ease, ease); }
.site-header .cart-btn svg { transition: stroke .3s ease; }
.site-header .menu-btn span { transition: transform .25s var(--ease), background-color .3s ease; }

/* الحالة الثانية: الكبسولة */
.site-header.is-pill { background-color: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-pill .header-row {
  width: var(--hdr-pill, min(1180px, 100% - 2rem));
  height: 54px; margin-top: 14px; padding-inline: 10px 8px; gap: 28px;
  background-color: rgba(38,60,121,.86);
  border-color: rgba(239,233,220,.16);
  box-shadow: 0 12px 32px rgba(38,60,121,.28), 0 2px 6px rgba(38,60,121,.18);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition:
    width .6s var(--pill-ease), height .6s var(--pill-ease), margin .6s var(--pill-ease),
    padding .6s var(--pill-ease), gap .6s var(--pill-ease),
    background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-pill .logo { gap: 0; color: var(--cream); transition: gap .6s var(--pill-ease), color .3s ease; }
.site-header.is-pill .logo-tag {
  max-width: 0; opacity: 0; filter: blur(6px);
  transition: max-width .6s var(--pill-ease), opacity .18s ease, filter .18s ease, color .3s ease;
}
.site-header.is-pill .logo-name { padding-inline-start: 8px; }
.site-header .logo-name { transition: padding .5s var(--pill-ease); }
.site-header.is-pill .nav { gap: 16px; transition: gap .6s var(--pill-ease); }
.site-header.is-pill .nav:not(.open) a { color: var(--cream); }
.site-header.is-pill .lang-btn, .site-header.is-pill .cart-btn { border-color: rgba(239,233,220,.55); color: var(--cream); }
.site-header.is-pill .lang-btn:hover, .site-header.is-pill .cart-btn:hover { background: rgba(239,233,220,.14); }
.site-header.is-pill .cart-btn svg { stroke: var(--cream); }
.site-header.is-pill .header-cta { background: var(--gold); color: var(--ink); }
.site-header.is-pill .header-cta:hover { background: var(--y300); }
.site-header.is-pill .menu-btn span { background: var(--cream); }
.site-header.is-pill .lang-btn, .site-header.is-pill .cart-btn, .site-header.is-pill .menu-btn { width: 40px; min-width: 40px; height: 40px; }
.site-header.is-pill .header-cta { min-height: 40px; padding-block: 8px; }
/* القائمة المنسدلة بالموبايل تطلع تحت الكبسولة */
.site-header.is-pill .nav.open { top: 66px; inset-inline: 8px; border-radius: var(--r-lg); }
/* الموبايل: الكبسولة أنحف (٤٤ بدل ٥٤) وأعرض (١٤px من كل جهة، نفس الفراغ اللي فوقها)، وكل اللي بيها أصغر بنفس النسبة. الحاسبة ما تتغير. */
@media (max-width: 559px) {
  .site-header.is-pill .header-row { width: calc(100% - 28px); height: 44px; padding-inline: 8px 6px; }
  .site-header .header-tools { transition: gap .5s var(--pill-ease, ease); }
  .site-header.is-pill .header-tools { gap: 6px; }
  .site-header.is-pill .lang-btn, .site-header.is-pill .cart-btn, .site-header.is-pill .menu-btn { width: 32px; min-width: 32px; height: 32px; }
  .site-header .lang-btn { transition: color .3s ease, background-color .3s ease, border-color .3s ease, width .5s var(--pill-ease, ease), min-width .5s var(--pill-ease, ease), height .5s var(--pill-ease, ease), font-size .5s var(--pill-ease, ease); }
  .site-header.is-pill .lang-btn { font-size: .78rem; }
  .site-header .cart-btn svg { transition: stroke .3s ease, width .5s var(--pill-ease, ease), height .5s var(--pill-ease, ease); }
  .site-header.is-pill .cart-btn svg { width: 18px; height: 18px; }
  .site-header .menu-btn span { transition: transform .25s var(--ease), background-color .3s ease, width .5s var(--pill-ease, ease); }
  .site-header.is-pill .menu-btn { gap: 5px; }
  .site-header.is-pill .menu-btn span { width: 18px; }
  .site-header .logo-name { transition: padding .5s var(--pill-ease, ease), font-size .5s var(--pill-ease, ease); }
  .site-header.is-pill .logo-name { font-size: 1.3rem; }
  .site-header.is-pill .nav.open { top: 56px; }   /* نفس الفراغ اللي كان بين الكبسولة والقائمة */
}

/* بدون حركة: أول تحميل، والقياس */
.site-header.no-anim, .site-header.no-anim * { transition: none !important; }
.hdr-measure { position: absolute !important; top: -9999px !important; left: 0 !important; height: auto !important; visibility: hidden !important; pointer-events: none !important; }
.hdr-measure .header-row { width: max-content !important; margin: 0 !important; }
.hdr-measure .nav.open { display: none !important; }

/* ==========================================================
   الكاش باك (js/cashback.js + js/cart.js)
   ١) بالسلة: صندوق العرض، خانة الرقم، والخصم بالمجموع
   ٢) بالرئيسية: ملف ثاني بنفس حجم "ملف بن عقيل"
   ========================================================== */
.cb-box {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--b900), var(--b700)); color: var(--y50);
}
.cb-box.is-hidden { display: none; }
.cb-box p { margin: 0; font-size: .84rem; line-height: 1.55; font-weight: 600; }
.cb-box p b { color: var(--gold); }
.cb-box small { grid-column: 2; font-size: .7rem; line-height: 1.5; opacity: .82; }
.cb-badge {
  grid-row: span 2; display: grid; place-content: center; justify-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--ink); text-align: center; line-height: 1;
}
.cb-badge b { font: 700 1.05rem/1 var(--display); }
.cb-badge small { grid-column: auto; font: 600 .56rem/1.2 var(--body); opacity: 1; }
.cb-bar { grid-column: 1 / -1; height: 6px; margin-top: 8px; border-radius: 99px; background: rgba(239,233,220,.22); overflow: hidden; }
.cb-bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--gold); border-radius: inherit; transition: width .4s var(--ease); }
.cb-check { grid-column: 1 / -1 !important; }
.cb-box.is-on { background: var(--y100); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gold); }
.cb-box.is-on p b { color: var(--ink); background: var(--y300); padding: 0 6px; border-radius: 99px; }
.cb-box.is-on .cb-badge { background: var(--ink); color: var(--y100); }
.cb-box.is-muted { grid-template-columns: 1fr; background: var(--b50); color: var(--ink-2); }
.cb-box.is-muted p { font-weight: 500; }

.cart-phone { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--ink); }
.cart-phone input {
  min-height: 46px; padding: 8px 14px; border-radius: var(--r-sm); border: 1.5px solid rgba(38,60,121,.28);
  background: var(--paper); color: var(--ink); font: 600 1.02rem var(--body); letter-spacing: .05em; font-variant-numeric: tabular-nums;
}
.cart-phone input::placeholder { color: rgba(38,60,121,.38); }
.cart-phone input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--ink); }
.cart-phone small { font-weight: 500; font-size: .72rem; color: var(--ink-2); }
.cart-phone.is-error input { border-color: var(--y500); box-shadow: 0 0 0 3px var(--y200); }
.cart-phone.is-error small { color: var(--ink); font-weight: 700; }

.cart-sum { display: grid; gap: 2px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: .88rem; color: var(--ink-2); }
.sum-cb { color: var(--ink); font-weight: 600; }
.sum-cb strong { font: 700 .95rem var(--display); background: var(--y200); padding: 1px 10px; border-radius: 99px; }

/* ---------- الرئيسية: ملفين جنب بعض (ملف بن عقيل + ملف الكاش باك) ---------- */
.folders { display: grid; justify-items: center; gap: clamp(48px, 9vw, 80px); }
.folders .folder { width: min(620px, 92vw); }
@media (min-width: 1000px) {
  .folders { grid-template-columns: repeat(2, minmax(0, 560px)); justify-content: center; align-items: end; gap: 48px; }
  .folders .folder { width: 100%; }
}
/* إذا انرصفوا فوق بعض: الملف الفوقاني يصير كامل (حافته الجوّانية مسكّرة) */
@media (max-width: 999px) {
  .folders .folder:not(:last-child) .folder-front { border-bottom: 1px solid rgba(236,244,253,.55); }
}
.folder-cb .cb-card-a { background: linear-gradient(170deg, var(--y100), var(--y50)); }
.folder-cb .cb-card-a .cb-k { margin: 0 0 6px; font: 600 .72rem var(--body); color: var(--ink-2); }
.folder-cb .cb-card-b { display: grid; justify-items: center; align-content: start; padding: 16px 10px; background: var(--gold); color: var(--ink); }   /* الرقم فوق، حتى يبين فوق زجاج الملف */
.cb-big { display: grid; justify-items: center; line-height: 1; text-align: center; }
.cb-big b { font: 700 clamp(2.1rem, 1.2rem + 4vw, 3.9rem)/1 var(--display); letter-spacing: -.01em; }
.cb-big span { margin-top: 6px; font: 700 clamp(.85rem, .6rem + 1vw, 1.2rem) var(--display); }
.folder-cb .cb-card-c { background: linear-gradient(190deg, var(--b50), var(--y50)); }
.folder-cb .cb-card-c .fcard-foot { position: static; margin-top: 8px; font-size: .72rem; line-height: 1.4; }
.cb-front {
  position: absolute; inset-inline: 22px; bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  color: var(--green-2);
}
.cb-front p { margin: 0; max-width: 24ch; font: 700 clamp(.82rem, .65rem + .6vw, 1rem)/1.45 var(--display); }
.cb-front .btn { flex: none; }
@media (max-width: 420px) { .cb-front { inset-inline: 16px; bottom: 14px; } .cb-front .btn { min-height: 40px; padding: 8px 14px; } }

/* ==========================================================
   صفحة السلة: تملي الشاشة بدل الدرج الجانبي (js/cart.js)
   الخلفية نفس قسم الملفات بس متحركة، ونجوم صفرة متطايرة يمين ويسار.
   الترتيب: الكاش باك ← المنتجات ← تفاصيل الأسعار والرقم والإرسال
   ========================================================== */
html.cart-open body { background: var(--b800); }
html.cart-open main, html.cart-open .site-footer, html.cart-open .fab, html.cart-open .skip { display: none !important; }
.cart-page { position: relative; min-height: calc(100svh - 68px); color: var(--y50); }
.cart-page[hidden] { display: none; }

/* الخلفية المتحركة: أضواء تمشي ببطء فوق الأزرق */
.cart-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--b800); }
.cart-blob { position: absolute; border-radius: 50%; will-change: transform; animation: cbDriftA var(--d, 18s) ease-in-out infinite alternate; }
.cart-blob.b1 { --d: 17s; width: 75vmax; height: 75vmax; top: -30vmax; inset-inline-start: -22vmax; background: radial-gradient(circle, rgba(246,212,74,.42), rgba(246,212,74,0) 62%); }
.cart-blob.b2 { --d: 21s; width: 70vmax; height: 70vmax; top: 8vmax; inset-inline-end: -30vmax; background: radial-gradient(circle, rgba(180,209,249,.5), rgba(180,209,249,0) 62%); animation-name: cbDriftB; }
.cart-blob.b3 { --d: 24s; width: 95vmax; height: 95vmax; bottom: -55vmax; left: calc(50% - 47vmax); background: radial-gradient(circle, rgba(73,117,219,.9), rgba(73,117,219,0) 62%); animation-name: cbDriftC; }
.cart-blob.b4 { --d: 15s; width: 40vmax; height: 40vmax; bottom: 4vmax; inset-inline-start: -10vmax; background: radial-gradient(circle, rgba(247,223,105,.3), rgba(247,223,105,0) 62%); animation-name: cbDriftB; }
@keyframes cbDriftA { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(14vmax, 8vmax) scale(1.12); } 100% { transform: translate(4vmax, 18vmax) scale(.94); } }
@keyframes cbDriftB { 0% { transform: translate(0, 0) scale(1.05); } 50% { transform: translate(-12vmax, 10vmax) scale(.92); } 100% { transform: translate(-4vmax, -8vmax) scale(1.1); } }
@keyframes cbDriftC { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-6vmax, -10vmax) scale(1.08); } }

/* النجوم: بعيدة صغار، وسط واضحات، قريبة چبار ومضببات */
.cart-stars { position: absolute; inset: 0; }
.cart-star {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2);
  opacity: var(--o); filter: blur(var(--b)); will-change: transform;
  animation: cbFloat var(--d) ease-in-out var(--dl) infinite alternate;
}
.cart-star.l2 { z-index: 2; }
@keyframes cbFloat { from { transform: translateY(calc(var(--dy) * -1)) rotate(0deg); } to { transform: translateY(var(--dy)) rotate(var(--r)); } }
@media (max-width: 700px) { .cart-star { width: calc(var(--s) * .62); height: calc(var(--s) * .62); margin: calc(var(--s) * -.31); } }

/* المحتوى */
.cart-wrap {
  position: relative; z-index: 1; width: min(760px, 100%); margin-inline: auto; display: grid; gap: 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: clamp(20px, 4vw, 40px) 72px;
}
.cart-page:not([hidden]) .cart-wrap { animation: cartRise .5s var(--ease) both; }
@keyframes cartRise { from { opacity: 0; transform: translateY(18px); } }
.cart-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cart-top h1 { margin: 0; font: 700 clamp(1.9rem, 1.3rem + 2.4vw, 2.7rem)/1.1 var(--display); color: var(--y50); outline: none; }
.cart-top h1 small { font: 600 .9rem var(--body); color: var(--gold-soft); margin-inline-start: 6px; }
.cart-back {
  min-height: 42px; padding: 8px 16px; border-radius: 999px; cursor: pointer; font: 600 .88rem var(--body);
  color: var(--y50); background: rgba(239,233,220,.1); border: 1.5px solid rgba(239,233,220,.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s ease;
}
.cart-back:hover { background: rgba(239,233,220,.2); }
.cart-back:focus-visible, .cart-clear:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* الكاش باك فوق: زجاج على الأزرق، ويصير ذهبي إذا عنده خصم */
.cart-page .cb-box { padding: 16px 18px; border-radius: var(--r-lg); background: rgba(239,233,220,.1); border: 1px solid rgba(236,244,253,.3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cart-page .cb-box p { font-size: .95rem; }
.cart-page .cb-box small { font-size: .76rem; }
.cart-page .cb-box .cb-badge { width: 62px; height: 62px; }
.cart-page .cb-box .cb-badge b { font-size: 1.2rem; }
.cart-page .cb-box.is-on { background: var(--y100); border-color: var(--gold); backdrop-filter: none; -webkit-backdrop-filter: none; }
.cart-page .cb-box.is-muted { background: rgba(239,233,220,.12); color: var(--y50); }

/* المنتجات */
.cart-page .cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; overflow: visible; }
.cart-page .cart-item { grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 14px 34px rgba(16,28,70,.28); border: 0; }
.cart-page .cart-thumb { width: 84px; height: 84px; border-radius: var(--r-md); }
.cart-page .cart-info b { font-size: 1rem; }
.cart-page .cart-info small { font-size: .8rem; }
.cart-page .cart-line strong { font-size: 1.15rem; }

/* تفاصيل الأسعار والرقم والإرسال */
.cart-summary { display: grid; gap: 16px; padding: clamp(18px, 3vw, 26px); border-radius: var(--r-xl); background: var(--paper); color: var(--ink); box-shadow: 0 18px 44px rgba(16,28,70,.32); }
.cart-summary-t { margin: 0; font: 700 1.15rem var(--display); }
.cart-summary .cart-sum { gap: 8px; padding-bottom: 14px; border-bottom: 1px dashed rgba(38,60,121,.22); }
.cart-summary .sum-row { font-size: 1.05rem; }
.cart-summary .sum-cb strong { font-size: 1.1rem; }
.cart-summary .cart-total { margin: 0; font-size: 1.1rem; font-weight: 700; }
.cart-summary .cart-total strong { font: 700 clamp(1.9rem, 1.4rem + 1.8vw, 2.4rem)/1.1 var(--display); }
.cart-summary .cart-phone { font-size: .95rem; gap: 6px; }
.cart-summary .cart-phone input { min-height: 58px; font-size: 1.3rem; letter-spacing: .08em; text-align: center; border-radius: var(--r-md); }
.cart-summary .cart-phone.is-ok input { border-color: var(--b600); box-shadow: 0 0 0 3px var(--b100); }
.cart-summary .cart-phone small { font-size: .8rem; text-align: center; }
.cart-send { min-height: 58px; font-size: 1.1rem; width: 100%; justify-content: center; }
.cart-clear { justify-self: center; border: 0; background: none; color: var(--ink-2); font: 500 .85rem var(--body); text-decoration: underline; cursor: pointer; padding: 6px 10px; }

/* السلة فارغة */
.cart-empty-card { display: grid; gap: 10px; justify-items: start; padding: 26px; border-radius: var(--r-xl); background: rgba(239,233,220,.1); border: 1px solid rgba(236,244,253,.3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cart-empty-card p { margin: 0; }
.cart-empty-t { font: 700 1.3rem var(--display); }
.cart-empty-card .btn { margin-top: 8px; background: var(--gold); color: var(--ink); }

/* إشعار "انضاف للسلة" ويّاه زر عرض السلة */
.toast.show { pointer-events: auto; }
.toast { display: flex; align-items: center; gap: 12px; }
.toast button { flex: none; border: 0; border-radius: 999px; padding: 6px 12px; background: var(--gold); color: var(--ink); font: 700 .8rem var(--body); cursor: pointer; }

/* الانتقال بين الصفحة والسلة (المتصفحات اللي تدعمه) — البار يبقى ثابت */
html.vt-run .site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: .32s var(--ease) both vtOut; }
::view-transition-new(root) { animation: .5s var(--ease) both vtIn; }
html.vt-back::view-transition-old(root) { animation: .3s var(--ease) both vtOutBack; }
html.vt-back::view-transition-new(root) { animation: .45s var(--ease) both vtInBack; }
@keyframes vtOut { to { opacity: 0; transform: scale(.96); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(36px); } }
@keyframes vtOutBack { to { opacity: 0; transform: translateY(36px); } }
@keyframes vtInBack { from { opacity: 0; transform: scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  .cart-blob, .cart-star, .cart-page:not([hidden]) .cart-wrap { animation: none; }
}

/* كروت السلة زجاجية: نفس اللون الكريمي بس شفاف ٤٠٪، والخلفية والنجوم تبين وراها مضببة */
.cart-page .cart-item, .cart-summary {
  background: rgba(253,249,220,.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.35) brightness(1.25); backdrop-filter: blur(18px) saturate(1.35) brightness(1.25);
  border: 1px solid rgba(253,249,220,.55);
  box-shadow: 0 14px 34px rgba(16,28,70,.22), inset 0 1px 0 rgba(255,255,255,.45);
}

/* بالسلة: صورة القهوة واسمها روابط لصفحة تفاصيلها */
.cart-page a.cart-thumb { transition: transform .2s var(--ease); }
.cart-page a.cart-thumb:hover { transform: scale(1.05); }
.cart-page .cart-name { display: inline-flex; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; border-radius: 6px; }
.cart-page .cart-name b { text-decoration: underline; text-decoration-color: rgba(38,60,121,.25); text-underline-offset: 5px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s; }
.cart-page .cart-name:hover b { text-decoration-color: var(--ink); }
.cart-go { font-size: .85em; color: var(--b600); transition: transform .2s var(--ease); }
.cart-page .cart-name:hover .cart-go { transform: translateX(-4px); }
html[dir="ltr"] .cart-page .cart-name:hover .cart-go { transform: translateX(4px); }
.cart-page .cart-name:focus-visible, .cart-page a.cart-thumb:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* حساباتنا: آخر شي بالموقع — شعارات انستغرام وفيسبوك وتيك توك بألوان الموقع */
.footer-social { display: grid; justify-items: center; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(239,233,220,.14); }
.footer-social-t { margin: 0; font: 700 1rem var(--display); color: var(--gold-soft); }
.footer-social ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.footer-social a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(239,233,220,.55); color: var(--y50);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.footer-social a:hover, .footer-social a:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.footer-social a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.footer-social svg { width: 22px; height: 22px; }
