/* ============================================================
   ظلال السدر: النموذج التجريبي
   الاتجاه: «دليل الأصناف الحي» مع أدوات المتجر العملي
   الجوال أولاً، عربي من اليمين لليسار، خصائص CSS منطقية
   ============================================================ */

:root {
  /* ألوان الشعار كما هي */
  --name: #006837;     /* أخضر الاسم: الأزرار والعناوين (6.9:1 على الأبيض) */
  --leaf: #547B42;     /* الورقة الكبيرة: الروابط والأيقونات (4.9:1) */
  --sprout: #87BF40;   /* الورقة الصغيرة: تمييز وخلفيات فقط، لا نص عليه بالأبيض */

  /* محايدات */
  --paper: #F7F5EE;
  --paper-2: #EFEBDD;
  --paper-3: #E6E1CF;
  --card: #FFFFFF;
  --ink: #15241A;
  --ink-2: #4A5A4C;
  --line: #E2DED0;
  --sprout-bg: #E6F1D5;

  /* لون تمييز واحد مقترح: لون ثمرة النبق (للموسم والحجز المسبق فقط) */
  --fruit: #B8742A;
  --fruit-ink: #7A4A12;
  --fruit-bg: #F6E3C4;

  --out-bg: #ECE9E2;
  --out-ink: #5E5A50;

  --f-display: 'El Messiri', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --f-ui: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --wrap: 1180px;
  --gutter: 16px;
  --header-h: 64px;
  --bottomnav-h: 64px;

  --t-fast: 160ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 1.0625rem;      /* 17px: العربية تبدو أصغر من اللاتينية بنفس المقاس */
  line-height: 1.75;
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

img, svg { display: block; max-width: 100%; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--name); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.35; margin: 0; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--name);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--name); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- شريط «نموذج تجريبي» ---------- */
.proto-bar {
  background: var(--ink);
  color: #F2EFE4;
  font-size: .8125rem;
  line-height: 1.5;
  padding: 7px var(--gutter);
  text-align: center;
}
.proto-bar strong { color: #fff; }
.proto-bar a { color: #D9EDBC; }

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 245, 238, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(247, 245, 238, .86); backdrop-filter: blur(8px); }
}
.site-header .wrap {
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
@media (min-width: 900px) { .brand img { height: 52px; } }

.main-nav { display: none; }
@media (min-width: 900px) {
  .main-nav { display: flex; gap: 4px; margin-inline-start: 12px; }
  .main-nav a {
    text-decoration: none; color: var(--ink-2); font-weight: 500;
    padding: 8px 14px; border-radius: var(--r-pill);
  }
  .main-nav a:hover { background: var(--paper-2); color: var(--ink); }
  .main-nav a[aria-current="page"] { background: var(--sprout-bg); color: var(--name); font-weight: 600; }
}

.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.country {
  position: relative; display: inline-flex; align-items: center;
}
.country svg { position: absolute; inset-inline-start: 10px; width: 18px; height: 18px; color: var(--leaf); pointer-events: none; }
.country select {
  appearance: none; -webkit-appearance: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill);
  min-height: 44px; padding-block: 6px; padding-inline: 34px 14px;
  font-size: .9375rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.country select:hover { border-color: var(--leaf); }

.header-tools .btn-wa-header { display: none; }
@media (min-width: 600px) { .header-tools .btn-wa-header { display: inline-flex; } }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.3;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--name); color: #fff; }
.btn-primary:hover { background: #00512B; color: #fff; }
.btn-outline { background: transparent; color: var(--name); border-color: var(--name); }
.btn-outline:hover { background: var(--sprout-bg); color: var(--name); }
.btn-soft { background: var(--sprout-bg); color: var(--name); }
.btn-soft:hover { background: #D8EABF; color: var(--name); }
.btn-ghost { background: transparent; color: var(--ink-2); min-height: 44px; padding-inline: 14px; }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
.btn-block { width: 100%; }

/* ---------- عناصر عامة ---------- */
.section { padding-block: 56px; }
@media (min-width: 900px) { .section { padding-block: 84px; } }
.section-alt { background: var(--paper-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 600; color: var(--leaf);
  margin-bottom: 10px;
}
.eyebrow img { width: 22px; height: 22px; }

.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); }
.section-head p { color: var(--ink-2); margin-top: 10px; }
.section-head-row {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.section-head-row .section-head { margin-bottom: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .8125rem; font-weight: 500; line-height: 1.4;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--ink-2); white-space: nowrap;
}
.chip-green { background: var(--sprout-bg); color: var(--name); }
.chip-fruit { background: var(--fruit-bg); color: var(--fruit-ink); }
.chip-out { background: var(--out-bg); color: var(--out-ink); }

.tag-temp {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .6875rem; font-weight: 600; line-height: 1.3;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: rgba(21, 36, 26, .72); color: #fff;
}
.tag-sample {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600; line-height: 1.3;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--fruit-bg); color: var(--fruit-ink);
  border: 1px dashed #C99A5B;
}
.pending { color: var(--ink-2); font-style: normal; opacity: .85; }
.pending::before { content: '؟ '; color: var(--fruit); font-weight: 700; }

/* رقم الصنف في البنك داخل حلقة تشبه حلقتي الشعار */
.ring {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 30px; padding-inline: 8px;
  border-radius: 50%;
  border: 2px solid var(--leaf);
  box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 3.5px var(--sprout);
  background: var(--card);
  font-family: var(--f-ui); font-weight: 700; font-size: .8125rem; color: var(--name);
  unicode-bidi: isolate;
}
.ring-none { border-style: dashed; box-shadow: none; color: var(--ink-2); font-weight: 600; font-size: .6875rem; }
.ring-lg { min-width: 64px; height: 38px; font-size: .9375rem; }

/* ---------- البطل (أعلى الرئيسية) ---------- */
.hero { padding-block: 32px 48px; }
@media (min-width: 900px) { .hero { padding-block: 56px 72px; } }
.hero-grid { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
}
.hero h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
  line-height: 1.25;
  color: var(--ink);
}
.hero h1 .accent { color: var(--name); }
.hero .lead { font-size: 1.125rem; color: var(--ink-2); margin-top: 16px; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 420px) { .hero-ctas .btn { flex: 1 1 100%; } }
.hero-note { margin-top: 14px; font-size: .875rem; color: var(--ink-2); }

/* لوحة الأصناف */
.plate {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
}
.plate-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 2px 4px 12px; border-bottom: 1px dashed var(--line); margin-bottom: 12px;
}
.plate-head h2 { font-size: 1.125rem; }
.plate-head a { font-size: .875rem; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding-inline: 4px; }
.plate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.specimen {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ink);
  padding: 8px 4px 10px; border-radius: var(--r-md);
  transition: background-color var(--t-fast) var(--ease);
}
.specimen:hover { background: var(--paper); color: var(--ink); }
.specimen .art { width: 100%; aspect-ratio: 4 / 5; background: var(--paper); border-radius: var(--r-sm); position: relative; }
.specimen .art svg { width: 100%; height: 100%; }
.specimen .ring { margin-top: -22px; position: relative; }
.specimen .nm { font-size: .875rem; font-weight: 600; text-align: center; line-height: 1.35; }
.plate-foot { margin-top: 10px; font-size: .75rem; color: var(--ink-2); text-align: center; }

/* شريط الإثبات */
.proof {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid var(--line);
  background: var(--card);
}
@media (min-width: 900px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof-item { padding: 18px 16px; border-inline-start: 1px solid var(--line); }
.proof-item:nth-child(odd) { border-inline-start: 0; }
@media (min-width: 900px) {
  .proof-item:nth-child(odd) { border-inline-start: 1px solid var(--line); }
  .proof-item:first-child { border-inline-start: 0; }
}
.proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .proof-item:nth-child(n+3) { border-top: 0; } }
.proof-num { font-family: var(--f-display); font-size: 1.75rem; font-weight: 700; color: var(--name); line-height: 1.2; }
.proof-label { font-size: .875rem; color: var(--ink-2); margin-top: 2px; }
.proof-wrap { max-width: var(--wrap); margin-inline: auto; }

/* ---------- الخدمات ---------- */
.services-main { display: grid; gap: 14px; }
@media (min-width: 900px) { .services-main { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.svc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.svc-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--sprout-bg); color: var(--name);
  display: inline-flex; align-items: center; justify-content: center;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-who { font-size: .875rem; color: var(--leaf); font-weight: 600; }
.svc h3 { font-size: 1.375rem; }
.svc p { color: var(--ink-2); }
.svc-price {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
  font-weight: 600; font-size: .9375rem;
}
.svc-price small { display: block; font-weight: 500; font-size: .75rem; color: var(--ink-2); }
.svc .btn { margin-top: 6px; align-self: flex-start; }

/* باقي الخدمات: شريط يُسحب أفقياً على الجوال، وشبكة على الشاشات الأكبر */
.services-more {
  display: grid; gap: 10px; margin-top: 14px;
  grid-auto-flow: column; grid-auto-columns: 74%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px;
}
.services-more::-webkit-scrollbar { display: none; }
.services-more > * { scroll-snap-align: start; }
.swipe-hint { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.swipe-hint svg { width: 16px; height: 16px; }
@media (min-width: 640px) {
  .services-more { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .swipe-hint { display: none; }
}
@media (min-width: 1100px) { .services-more { grid-template-columns: repeat(5, 1fr); } }
.svc-mini {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px; display: flex; flex-direction: column; gap: 6px;
}
.svc-mini .svc-icon { width: 40px; height: 40px; border-radius: 12px; }
.svc-mini .svc-icon svg { width: 22px; height: 22px; }
.svc-mini h3 { font-size: 1.0625rem; font-family: var(--f-ui); font-weight: 700; }
.svc-mini p { font-size: .9375rem; color: var(--ink-2); }
.svc-mini .price { font-size: .8125rem; font-weight: 600; color: var(--ink); margin-top: auto; padding-top: 6px; }
.svc-mini a.more { font-size: .875rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.svc-mini a.more svg { width: 16px; height: 16px; }
.price-note { margin-top: 14px; font-size: .8125rem; color: var(--ink-2); }

/* ---------- خطوات التطعيم ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.step { position: relative; padding-inline-start: 56px; padding-bottom: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--name); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step::after {
  content: ''; position: absolute; inset-inline-start: 19px; top: 44px; bottom: 4px;
  border-inline-start: 2px dashed var(--sprout);
}
.step:last-child::after { display: none; }
@media (min-width: 900px) {
  .step { padding-inline-start: 0; padding-top: 56px; padding-bottom: 0; }
  .step::after { top: 19px; bottom: auto; inset-inline-start: 48px; inset-inline-end: -10px; border-inline-start: 0; border-top: 2px dashed var(--sprout); }
}
.step h3 { font-size: 1.125rem; font-family: var(--f-ui); font-weight: 700; }
.step p { color: var(--ink-2); font-size: .9375rem; margin-top: 4px; }

/* ---------- رحلات التطعيم ---------- */
.trips {
  margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; display: grid; gap: 14px;
}
@media (min-width: 900px) { .trips { grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 24px; padding: 22px 26px; } }
.trips-head h3 { font-size: 1.25rem; }
.trips-head p { color: var(--ink-2); font-size: .9375rem; margin-top: 4px; }
.trips-list { list-style: none; display: grid; gap: 6px; }
.trips-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9375rem; }
.trips-list li svg { width: 18px; height: 18px; color: var(--leaf); flex-shrink: 0; }
.trips-list li span { color: var(--ink-2); font-size: .8125rem; }
.trips .btn { justify-self: start; }

/* ---------- الموسم ---------- */
.season-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 14px; overflow: hidden;
}
@media (min-width: 600px) { .season-card { padding: 22px; } }
.season-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.countdown { display: flex; align-items: baseline; gap: 8px; }
.countdown .n { font-family: var(--f-display); font-size: 2.5rem; font-weight: 700; color: var(--fruit-ink); line-height: 1; }
.countdown .t { color: var(--ink-2); font-size: .9375rem; }

.gantt { display: grid; grid-template-columns: 56px repeat(5, minmax(0, 1fr)); align-items: center; row-gap: 8px; font-size: .75rem; }
@media (min-width: 600px) { .gantt { grid-template-columns: 96px repeat(5, minmax(0, 1fr)); font-size: .875rem; } }
.gantt .m { text-align: center; color: var(--ink-2); font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--line); position: relative; white-space: nowrap; }
.gantt .m.now { color: var(--fruit-ink); }
.gantt .m.now::after {
  content: ''; position: absolute; inset-inline-start: 50%; bottom: -5px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--fruit); transform: translateX(50%);
}
.gantt .lbl { font-weight: 600; color: var(--ink); }
.gantt .bar {
  height: 26px; border-radius: var(--r-pill);
  background: var(--sprout-bg); border: 1.5px solid var(--sprout);
  display: flex; align-items: center; padding-inline: 10px;
  font-size: .75rem; color: var(--name); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gantt .bar.fr { background: var(--fruit-bg); border-color: var(--fruit); color: var(--fruit-ink); }
.season-names { display: grid; gap: 6px; margin-top: 16px; font-size: .875rem; color: var(--ink-2); }
.season-names b { color: var(--ink); }
.season-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.season-foot small { color: var(--ink-2); }

/* ---------- قبل وبعد ---------- */
.ba {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--paper-2); border: 1px solid var(--line);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer svg { width: 100%; height: 100%; }
.ba-after { clip-path: inset(0 var(--p, 50%) 0 0); }
.ba-line {
  position: absolute; top: 0; bottom: 0; inset-inline-start: var(--p, 50%);
  width: 3px; margin-inline-start: -1.5px; background: #fff; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(21, 36, 26, .15);
}
.ba-knob {
  position: absolute; top: 50%; inset-inline-start: var(--p, 50%);
  width: 44px; height: 44px; margin-top: -22px; margin-inline-start: -22px;
  border-radius: 50%; background: #fff; border: 2px solid var(--name); color: var(--name);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.ba-knob svg { width: 22px; height: 22px; }
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.ba input[type="range"]:focus-visible ~ .ba-knob { outline: 3px solid var(--name); outline-offset: 3px; }
.ba-tag {
  position: absolute; top: 10px; font-size: .75rem; font-weight: 700;
  background: rgba(21, 36, 26, .78); color: #fff; padding: 3px 10px; border-radius: var(--r-pill);
  pointer-events: none;
}
.ba-tag.b { inset-inline-start: 10px; }
.ba-tag.a { inset-inline-end: 10px; background: var(--name); }
.ba .tag-temp { position: absolute; bottom: 10px; inset-inline-end: 10px; pointer-events: none; }

.timeline {
  display: flex; align-items: stretch; gap: 0; margin-top: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.timeline > div { flex: 1; padding: 10px 14px; }
.timeline > div + div { border-inline-start: 1px dashed var(--line); }
.timeline .d { font-size: .75rem; color: var(--ink-2); }
.timeline .e { font-weight: 600; font-size: .9375rem; }
.timeline .mid { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--sprout-bg); color: var(--name); font-weight: 700; padding-inline: 12px; }
.timeline .mid small { font-weight: 500; font-size: .6875rem; }

/* ---------- لمحة النتائج في الرئيسية ---------- */
.results-teaser { display: grid; gap: 18px; }
@media (min-width: 960px) { .results-teaser { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.teaser-side { display: grid; gap: 12px; }

.case-row {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 8px; text-decoration: none; color: var(--ink);
}
.case-row:hover { border-color: var(--leaf); color: var(--ink); }
.case-row .thumb2 { width: 92px; height: 92px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; background: var(--paper-2); }
.case-row .thumb2 svg { width: 100%; height: 100%; }
.case-row .txt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.case-row .txt b { font-size: 1rem; }
.case-row .txt > span { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; color: var(--ink-2); }
.case-row .txt > span svg { width: 15px; height: 15px; color: var(--leaf); }
.case-row .tag-sample { font-style: normal; font-size: .6875rem; }

/* ---------- صور النتائج والمؤسس ---------- */
.feat-photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line);
}
.feat-photo img { object-position: 50% 42%; }
@media (min-width: 960px) { .feat-photo { aspect-ratio: 16 / 10; } }
.photo-cap {
  position: absolute; bottom: 10px; inset-inline-end: 10px;
  font-size: .75rem; font-weight: 600; line-height: 1.4;
  background: rgba(21, 36, 26, .72); color: #fff; padding: 3px 10px; border-radius: var(--r-pill);
}
.case-row .icon-tile { display: flex; align-items: center; justify-content: center; background: var(--sprout-bg); color: var(--name); }
.case-row .icon-tile svg { width: 34px; height: 34px; }
.about-photo { margin: 0; max-width: 440px; width: 100%; justify-self: center; }
.about-photo img { aspect-ratio: 4 / 5; height: auto; border-radius: var(--r-lg); object-position: 28% 40%; border: 1px solid var(--line); }
.about-photo figcaption { font-size: .8125rem; color: var(--ink-2); margin-top: 8px; text-align: center; }

/* ---------- فيديو القصة ---------- */
.about-video { margin: 0; max-width: 440px; width: 100%; justify-self: center; }
.video-wrap { position: relative; }
.video-wrap video {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line);
}
.video-toggle {
  position: absolute; bottom: 12px; inset-inline-end: 12px;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(21, 36, 26, .72); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.video-toggle:hover { background: rgba(21, 36, 26, .88); }
.video-toggle svg { width: 20px; height: 20px; }
.about-video figcaption { font-size: .8125rem; color: var(--ink-2); margin-top: 8px; text-align: center; }
.founder { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.founder img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 50%; border: 2px solid var(--sprout); flex-shrink: 0; background: var(--sprout-bg); }
.founder b { display: block; line-height: 1.4; }
.founder span { font-size: .875rem; color: var(--ink-2); }
.founder + blockquote { margin-top: 12px; }

/* ---------- المؤسس ---------- */
.about-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .8fr 1.2fr; gap: 48px; } }
.photo-slot {
  aspect-ratio: 16 / 10; border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(84, 123, 66, .06) 14px 28px),
    var(--paper-2);
  border: 1.5px dashed #BDB59C;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-2); text-align: center; padding: 20px; font-size: .9375rem;
}
.photo-slot svg { width: 40px; height: 40px; color: var(--leaf); }
@media (min-width: 900px) { .photo-slot { aspect-ratio: 4 / 5; } }
.about-text h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); }
.about-text p { color: var(--ink-2); margin-top: 12px; }
.about-text blockquote {
  margin: 18px 0 0; padding: 14px 18px; border-inline-start: 4px solid var(--sprout);
  background: var(--card); border-radius: var(--r-sm); font-weight: 500;
}

/* ---------- الأسئلة ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0 18px;
}
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--leaf); transition: transform var(--t-fast) var(--ease); flex-shrink: 0; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding-bottom: 16px; color: var(--ink-2); }

/* ---------- دعوة ختامية ---------- */
.cta-band { background: var(--name); color: #fff; border-radius: var(--r-lg); padding: 28px 22px; display: grid; gap: 16px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 36px 40px; } }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.cta-band p { color: #DCEBD2; margin-top: 6px; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .btn-primary { background: #fff; color: var(--name); }
.cta-band .btn-primary:hover { background: var(--sprout-bg); }
.cta-band .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .7); }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; gap: 28px; padding-block: 40px 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid img { height: 64px; width: auto; }
.footer-grid h3 { font-family: var(--f-ui); font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.footer-grid ul { list-style: none; display: grid; gap: 2px; }
.footer-grid li a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; color: var(--ink); }
.footer-grid li a:hover { color: var(--name); }
.footer-grid li a svg { width: 18px; height: 18px; color: var(--leaf); }
.footer-about { color: var(--ink-2); font-size: .9375rem; margin-top: 12px; max-width: 30em; }
.footer-legal {
  border-top: 1px solid var(--line); padding-block: 16px 24px;
  font-size: .8125rem; color: var(--ink-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.footer-note { background: var(--fruit-bg); color: var(--fruit-ink); border-radius: var(--r-md); padding: 12px 16px; font-size: .875rem; margin-bottom: 8px; }

/* ---------- شريط التنقل السفلي (الجوال) ---------- */
.bottom-nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
@media (min-width: 900px) { .bottom-nav { display: none; } }
.bottom-nav a {
  height: var(--bottomnav-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--ink-2); font-size: .75rem; font-weight: 600;
}
.bottom-nav a svg { width: 24px; height: 24px; }
.bottom-nav a[aria-current="page"] { color: var(--name); }
.bottom-nav a[aria-current="page"] svg { color: var(--name); }
.bottom-nav a.wa { color: var(--name); }

/* ============================================================
   الكتالوج
   ============================================================ */
.page-head { padding-block: 24px 8px; }
@media (min-width: 900px) { .page-head { padding-block: 40px 12px; } }
.crumbs { font-size: .8125rem; color: var(--ink-2); margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.page-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.page-head p { color: var(--ink-2); margin-top: 8px; max-width: 46em; }
.page-head .ring { vertical-align: middle; margin-inline: 2px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--fruit-bg); color: var(--fruit-ink);
  border-radius: var(--r-md); padding: 10px 14px; font-size: .875rem; line-height: 1.6;
  margin-top: 14px;
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

.toolbar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: var(--paper);
  padding-block: 10px; border-bottom: 1px solid var(--line);
}
.toolbar-row { display: flex; gap: 8px; align-items: center; }
.search { position: relative; flex: 1; min-width: 0; }
.search svg { position: absolute; inset-inline-start: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink-2); pointer-events: none; }
.search input {
  width: 100%; min-height: 46px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--card);
  padding-inline: 40px 14px; font-size: 1rem;
}
.search input::placeholder { color: #7F8A7F; }
.search input:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(135, 191, 64, .35); }

.btn-filter { position: relative; flex-shrink: 0; min-height: 46px; padding-inline: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn-filter:hover { border-color: var(--leaf); background: var(--card); }
.btn-filter .count {
  min-width: 22px; height: 22px; border-radius: 11px; padding-inline: 6px;
  background: var(--name); color: #fff; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center;
}
.btn-filter .count[hidden] { display: none; }
@media (min-width: 1024px) { .btn-filter { display: none; } }

.sort { position: relative; flex-shrink: 0; display: none; }
@media (min-width: 1024px) { .sort { display: block; } .sort-group { display: none; } }
.chips-row { padding-bottom: 2px; }
.sort select {
  appearance: none; -webkit-appearance: none;
  min-height: 46px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card);
  padding-inline: 14px 34px; font-size: .9375rem; cursor: pointer; max-width: 160px;
}
.sort svg { position: absolute; inset-inline-end: 10px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none; color: var(--ink-2); }
@media (max-width: 480px) { .sort-label-long { display: none; } }

.quick {
  display: flex; gap: 8px; overflow-x: auto; padding-block: 10px 2px;
  scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.quick::-webkit-scrollbar { display: none; }
.qchip {
  flex-shrink: 0; scroll-snap-align: start;
  min-height: 40px; padding: 6px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer;
  font-size: .9375rem; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.qchip:hover { border-color: var(--leaf); }
.qchip[aria-pressed="true"] { background: var(--sprout-bg); border-color: var(--name); color: var(--name); font-weight: 600; }
.qchip[aria-pressed="true"]::before { content: '✓'; font-weight: 700; }

.applied { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 10px; }
.applied:empty { display: none; }
.applied button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px;
  padding: 4px 6px 4px 12px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  background: var(--name); color: #fff; font-size: .8125rem; font-weight: 600;
}
.applied button svg { width: 16px; height: 16px; }
.applied .clear { background: transparent; color: var(--name); text-decoration: underline; padding-inline: 8px; }

.catalog-layout { display: grid; gap: 24px; padding-block: 16px 56px; }
@media (min-width: 1024px) { .catalog-layout { grid-template-columns: 270px 1fr; align-items: start; gap: 32px; } }

.result-count { font-size: .9375rem; color: var(--ink-2); margin-bottom: 12px; }
.result-count b { color: var(--ink); }

.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* بطاقة الصنف */
.vcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; text-align: start; padding: 0; cursor: pointer; color: var(--ink);
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.vcard:hover { border-color: var(--leaf); color: var(--ink); }
.vcard .art { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); }
.vcard .art svg { width: 100%; height: 100%; }
.vcard .art .ring { position: absolute; top: 10px; inset-inline-start: 10px; }
.vcard .art .tag-temp { position: absolute; top: 12px; inset-inline-end: 8px; }
.vcard .art .stock { position: absolute; bottom: 10px; inset-inline-start: 10px; }
.vcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vcard h3 { font-family: var(--f-ui); font-size: 1rem; font-weight: 700; line-height: 1.4; }
.vcard .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.vcard .chips .chip { font-size: .75rem; padding: 2px 8px; }
.vcard .price { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.vcard .price b { font-size: 1.125rem; color: var(--name); }
.vcard .price b small { font-size: .8125rem; font-weight: 600; }
.vcard .price .tbd { font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.vcard .price .go { width: 32px; height: 32px; border-radius: 50%; background: var(--sprout-bg); color: var(--name); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vcard .price .go svg { width: 18px; height: 18px; }
.stock-badge { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); }
.top-badge { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); background: var(--fruit-bg); color: var(--fruit-ink); }
.vcard .art .stock { display: flex; flex-wrap: wrap; gap: 4px; inset-inline-end: 10px; }
.stock-in { background: var(--name); color: #fff; }
.stock-pre { background: var(--fruit-bg); color: var(--fruit-ink); }
.stock-out { background: var(--out-bg); color: var(--out-ink); }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 40px 16px;
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty h3 { font-size: 1.25rem; }
.empty p { color: var(--ink-2); margin: 8px auto 16px; max-width: 30em; }
.empty .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* لوحة الفلاتر: لوحة سفلية على الجوال، عمود جانبي على الحاسوب */
.filters {
  background: var(--card);
}
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filters-head h2 { font-family: var(--f-ui); font-size: 1.125rem; font-weight: 700; }
.fgroup { border-top: 1px solid var(--line); padding-block: 12px; }
.fgroup:first-of-type { border-top: 0; }
.fgroup legend, .fgroup .ftitle { font-weight: 700; font-size: .9375rem; margin-bottom: 6px; padding: 0; }
.fgroup fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fopt {
  display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer;
  font-size: .9375rem; border-radius: var(--r-sm); padding-inline: 4px;
}
.fopt:hover { background: var(--paper); }
.fopt input { width: 20px; height: 20px; accent-color: var(--name); margin: 0; flex-shrink: 0; }
.fopt .n { margin-inline-start: auto; font-size: .8125rem; color: var(--ink-2); background: var(--paper); border-radius: var(--r-pill); padding: 0 8px; min-width: 26px; text-align: center; }
.fopt.zero { opacity: .45; }
.filters-foot { display: none; }
.fmore { border-top: 1px solid var(--line); }
.fmore summary {
  list-style: none; cursor: pointer; min-height: 52px;
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9375rem; color: var(--name);
}
.fmore summary::-webkit-details-marker { display: none; }
.fmore summary small { font-weight: 500; color: var(--ink-2); font-size: .75rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmore summary svg { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); flex-shrink: 0; }
.fmore[open] summary svg { transform: rotate(180deg); }
.fmore .fgroup:first-of-type { border-top: 1px solid var(--line); }

@media (max-width: 1023px) {
  .filters {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 70;
    max-height: 88dvh; border-radius: var(--r-lg) var(--r-lg) 0 0;
    display: flex; flex-direction: column;
    transform: translateY(105%); visibility: hidden;
    transition: transform 240ms var(--ease), visibility 0s linear 240ms;
    box-shadow: 0 -8px 30px rgba(21, 36, 26, .16);
  }
  .filters.open { transform: translateY(0); visibility: visible; transition: transform 240ms var(--ease), visibility 0s; }
  .filters-head { padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
  .filters-body { overflow-y: auto; padding: 4px var(--gutter) 12px; overscroll-behavior: contain; }
  .filters-foot {
    display: flex; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line); background: var(--card);
  }
  .filters-foot .btn-primary { flex: 1; }
}
@media (min-width: 1024px) {
  .filters {
    position: sticky; top: calc(var(--header-h) + 84px);
    max-height: calc(100vh - var(--header-h) - 100px); overflow-y: auto;
    border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px;
  }
  .filters-head .close { display: none; }
  .filters-head { padding-bottom: 8px; }
}

.backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(21, 36, 26, .45);
  opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), visibility 0s linear 200ms;
}
.backdrop.show { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease), visibility 0s; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0;
}
.icon-btn:hover { background: var(--paper-3); }
.icon-btn svg { width: 22px; height: 22px; }

/* نافذة الصنف */
.vdialog {
  position: fixed; z-index: 80; background: var(--paper);
  inset-inline: 0; bottom: 0; top: 24px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(105%); visibility: hidden;
  transition: transform 260ms var(--ease), visibility 0s linear 260ms;
  box-shadow: 0 -8px 30px rgba(21, 36, 26, .18);
}
.vdialog.open { transform: translateY(0); visibility: visible; transition: transform 260ms var(--ease), visibility 0s; }
@media (min-width: 900px) {
  .vdialog {
    top: 50%; bottom: auto; inset-inline: 0; margin-inline: auto;
    width: min(980px, calc(100% - 48px)); max-height: calc(100vh - 64px);
    border-radius: var(--r-lg);
    transform: translateY(-46%); opacity: 0;
    transition: transform 220ms var(--ease), opacity 220ms var(--ease), visibility 0s linear 220ms;
  }
  .vdialog.open { transform: translateY(-50%); opacity: 1; transition: transform 220ms var(--ease), opacity 220ms var(--ease), visibility 0s; }
}
.vd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card); }
.vd-top .t { font-size: .875rem; color: var(--ink-2); font-weight: 600; padding-inline-start: 6px; }
.vd-scroll { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; flex: 1; }
.vd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px var(--gutter) 24px; }
.vd-grid > * { min-width: 0; }
@media (min-width: 900px) { .vd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; padding: 24px; } }
.vd-media .main { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 899px) { .vd-media .main { aspect-ratio: 5 / 4; } }
.vd-media .main svg { width: 100%; height: 100%; }
.vd-media .main .tag-temp { position: absolute; top: 12px; inset-inline-end: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.thumb {
  aspect-ratio: 1; border-radius: var(--r-md); border: 1.5px dashed #BDB59C; background: var(--paper-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  font-size: .75rem; color: var(--ink-2); padding: 6px; text-decoration: none; line-height: 1.35;
}
.thumb svg { width: 22px; height: 22px; color: var(--leaf); }
a.thumb { border-style: solid; border-color: var(--leaf); color: var(--name); font-weight: 600; background: var(--sprout-bg); }
.thumb-img { padding: 0; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--paper-2); }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.thumb-img[aria-pressed="true"] { border-color: var(--name); }

/* الصور الحقيقية داخل الإطارات */
.vcard .art img, .specimen .art img, .related .art img, .vd-media .main img,
.feat-photo img, .about-photo img, .case-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vcard .art { overflow: hidden; }
.vcard:hover .art img { transform: scale(1.03); }
.vcard .art img { transition: transform 400ms var(--ease); }
.specimen .art { overflow: hidden; }
.related .art { overflow: hidden; }
.vd-info h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.4rem); margin-top: 8px; }
.vd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vd-hook { margin-top: 10px; padding: 10px 14px; border-inline-start: 3px solid var(--sprout); background: var(--card); border-radius: var(--r-sm); font-weight: 500; }
.vd-hook small { display: block; color: var(--ink-2); font-weight: 500; font-size: .75rem; margin-top: 2px; }
.vd-note { color: var(--ink-2); margin-top: 12px; }
.vd-buy { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 12px; }
.vd-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.vd-price b { font-family: var(--f-display); font-size: 2rem; color: var(--name); line-height: 1.1; }
.vd-price b small { font-size: 1rem; }
.vd-delivery { display: flex; gap: 8px; align-items: flex-start; font-size: .9375rem; }
.vd-delivery svg { width: 20px; height: 20px; color: var(--leaf); flex-shrink: 0; margin-top: 3px; }
.vd-delivery small { display: block; color: var(--ink-2); font-size: .75rem; }
.vd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vd-actions .btn-primary { flex: 1 1 220px; }

.vd-section { margin-top: 22px; }
.vd-section h3 { font-family: var(--f-ui); font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.specs { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: .9375rem; }
.specs th, .specs td { text-align: start; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 38%; color: var(--ink-2); font-weight: 600; background: #FBFAF6; }
.receive { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.receive div { background: var(--card); border: 1px dashed #BDB59C; border-radius: var(--r-md); padding: 10px 12px; font-size: .875rem; }
.receive b { display: block; font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.related a { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; text-decoration: none; color: var(--ink); font-size: .8125rem; font-weight: 600; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.related a:hover { border-color: var(--leaf); }
.related .art { aspect-ratio: 1; background: var(--paper-2); border-radius: var(--r-sm); }
.related .art svg { width: 100%; height: 100%; }
.related .s { font-weight: 500; color: var(--fruit-ink); font-size: .75rem; }

.mini-season { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini-season span { text-align: center; font-size: .6875rem; color: var(--ink-2); padding-top: 22px; position: relative; }
.mini-season span::before { content: ''; position: absolute; top: 4px; inset-inline: 0; height: 12px; border-radius: 4px; background: var(--paper-2); }
.mini-season span.on::before { background: var(--fruit); }
.mini-season span.on { color: var(--fruit-ink); font-weight: 700; }

.vd-sticky {
  display: flex; align-items: center; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--card);
}
.vd-sticky .p { font-weight: 700; color: var(--name); white-space: nowrap; }
.vd-sticky .btn { flex: 1; }
@media (min-width: 900px) { .vd-sticky { display: none; } }

.toast {
  position: fixed; z-index: 90; inset-inline: 0; margin-inline: auto; bottom: calc(var(--bottomnav-h) + 16px);
  width: max-content; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r-pill); font-size: .9375rem;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.toast.show { opacity: 1; transform: translateY(0); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* ============================================================
   صفحة النتائج
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.stat .v { font-family: var(--f-display); font-size: 1.75rem; font-weight: 700; color: var(--name); line-height: 1.2; }
.stat .v.temp { font-family: var(--f-ui); font-size: .9375rem; color: var(--fruit-ink); background: var(--fruit-bg); display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); border: 1px dashed #C99A5B; margin-block: 4px; }
.stat .l { font-size: .875rem; color: var(--ink-2); }

.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }

.featured { display: grid; gap: 20px; }
@media (min-width: 960px) { .featured { grid-template-columns: 1.25fr .75fr; align-items: start; gap: 32px; } }
.featured-info h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.featured-info .place { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; margin-top: 6px; }
.featured-info .place svg { width: 18px; height: 18px; color: var(--leaf); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.facts dt { font-size: .75rem; color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; font-size: .9375rem; }
.quote-slot { margin-top: 14px; padding: 14px 16px; border-inline-start: 4px solid var(--sprout); background: var(--card); border-radius: var(--r-sm); color: var(--ink-2); }

.cases { display: grid; gap: 14px; }
@media (min-width: 720px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cases { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.case { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.case .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); position: relative; }
.case .pair figure { margin: 0; position: relative; aspect-ratio: 1; background: var(--paper-2); }
.case .pair svg { width: 100%; height: 100%; }
.case .pair figcaption { position: absolute; top: 8px; inset-inline-start: 8px; font-size: .6875rem; font-weight: 700; background: rgba(21, 36, 26, .78); color: #fff; padding: 2px 8px; border-radius: var(--r-pill); }
.case .pair figure + figure figcaption { background: var(--name); }
.case .pair .tag-temp { position: absolute; bottom: 8px; inset-inline-end: 8px; }
.case .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case h3 { font-family: var(--f-ui); font-size: 1.0625rem; font-weight: 700; }
.case .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8125rem; color: var(--ink-2); }
.case .meta svg { width: 16px; height: 16px; color: var(--leaf); }
.case ul { list-style: none; display: grid; gap: 4px; font-size: .875rem; }
.case li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.case li span { color: var(--ink-2); }
.case .src { margin-top: auto; padding-top: 6px; font-size: .75rem; color: var(--ink-2); }

.feat-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.feat-thumbs .thumb { aspect-ratio: 1; }
#featured .feat-photo { aspect-ratio: 4 / 5; }
@media (min-width: 960px) { #featured .feat-photo { aspect-ratio: 5 / 4; } }
.case-text .case-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 0; }
.case-text .icon-tile { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--sprout-bg); color: var(--name); }
.case-text .icon-tile svg { width: 26px; height: 26px; }
.case-text .case-svc { display: block; font-size: .75rem; font-weight: 600; color: var(--leaf); }
.photo-pending {
  display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--fruit-ink);
  background: var(--fruit-bg); border: 1px dashed #C99A5B; border-radius: var(--r-sm); padding: 8px 10px;
}
.photo-pending svg { width: 18px; height: 18px; flex-shrink: 0; }

.testis { display: grid; gap: 14px; }
@media (min-width: 900px) { .testis { grid-template-columns: repeat(3, 1fr); } }
.testi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { background: #E7F3DC; border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: .9375rem; line-height: 1.7; position: relative; }
.testi .who { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .875rem; }
.testi .who b { display: block; }
.testi .who span { color: var(--ink-2); font-size: .8125rem; }

.press { display: flex; flex-wrap: wrap; gap: 8px; }
.press span { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px; font-weight: 600; font-size: .9375rem; }

/* ---------- حركة أقل لمن يفضّل ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
