/* ================================================================
   امبليوم — المتجر — v3
   لغة بصرية مستوحاة من موقع إمبليوم الرسمي: ترويسة بيضاء نظيفة، واجهة
   كاملة العرض بنص أبيض كبير، شريط "اكتشف منتجاتنا" داكن، أقسام تحريرية
   بصورة كبيرة، إطارات منتجات مربعة بحدود رفيعة ونص بالوسط، مساحات واسعة.
   ألوان امبليوم: أزرق #124A7C، أخضر #8CC43C. أحمر للخصم فقط.
   ================================================================ */
:root {
  --blue: #124A7C;
  --blue-800: #0C355A;
  --blue-50: #F1F5F9;
  --navy: #0D1824;            /* شريط "اكتشف منتجاتنا" */
  --green: #8CC43C;
  --green-ink: #2E6A12;
  --green-50: #F2F8EA;
  --ink: #111820;
  --muted: #5A6570;
  --line: #E6E8EB;
  --line-2: #D5DAE0;
  --stone: #F4F2F0;           /* خلفية دافئة للأقسام التحريرية */
  --taupe: #D9D1CB;
  --sale: #B42318;
  --pv: #7A1712;
  --r: 6px;
  --r-l: 10px;
  --font: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, -apple-system, Arial, sans-serif;
  --gutter: 20px;
  --hdr-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 8px); }
html.is-locked { overflow: hidden; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.7 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
[hidden] { display: none !important; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.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 { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #F2A900; outline-offset: 2px; }
@media (max-width: 380px) { :root { --gutter: 16px; } }
@media (max-width: 359px) { .hdr .logo { width: 88px; } .hdr__in { gap: 2px; } }

/* الشعار: نفس ملف الشعار المعتمد بدون تعديل، والإطار يعرض الجزء العلوي فقط
   (الرمز + electronic equipment) مثل الموقع الرسمي، فسطر العنوان ما يبين. */
.logo { display: block; width: 104px; aspect-ratio: 700 / 311; overflow: hidden; flex: none; }
.logo img { width: 100%; height: auto; max-width: none; }
.logo--sm { width: 96px; }
.logo--lg { width: min(260px, 60vw); }
.logo--ftr { width: 132px; }

/* شعار الوكيل بالترويسة: الصورة كاملة (الرمز + electronic equipment + وكيل امبليوم حي الحسين)
   بنفس نسبة الأبعاد وobject-fit: contain — بدون أي قص. */
.logo--agency { width: 120px; aspect-ratio: 700 / 412; overflow: visible; }
.logo--agency img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
@media (max-width: 359px) { .hdr .logo--agency { width: 108px; } }
@media (min-width: 1000px) { .hdr .logo--agency { width: 156px; } }

/* ---------------- أزرار ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15.5px; text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-800); }
.btn--light { background: rgba(255, 255, 255, .92); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.icon-btn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue); }
.field { width: 100%; min-height: 48px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; padding: 10px 18px; font-size: 16px; }
.field:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(18, 74, 124, .14); }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--green-ink); letter-spacing: .02em; margin-bottom: 8px; }
.ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green-50); color: var(--green-ink); flex: none; }

/* ---------------- 1. الشريط المتحرك ---------------- */
.ticker { background: var(--blue); color: #fff; }
.ticker__view { overflow: hidden; white-space: nowrap; }
.ticker__track { display: flex; width: max-content; }
.ticker__grp { flex: none; padding-block: 7px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.ticker__track.is-on { animation: tk var(--tk-dur, 40s) linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tk { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--tk-shift, 50%), 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track.is-on { animation: none; }
  .ticker__view { white-space: normal; }
  .ticker__track { width: auto; }
  .ticker__grp { padding-inline: var(--gutter); text-align: center; }
  .ticker__grp[data-ticker-clone] { display: none; }
}

/* ---------------- 2. الترويسة البيضاء ---------------- */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 6px; min-height: var(--hdr-h); }
.brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; margin-inline-end: auto; }
.hnav { display: none; }
.hdr__end { display: flex; align-items: center; gap: 4px; }
.pvpill { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 12px; border-radius: 999px; background: var(--pv); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
/* الموبايل: الشارة بسطر رفيع كامل العرض داخل الترويسة الثابتة (تبقى ظاهرة دائماً) */
@media (max-width: 479px) {
  .hdr__in { flex-wrap: wrap; }
  .hdr__end { display: contents; }
  .pvpill { order: 10; flex: 1 0 100%; justify-content: center; min-height: 24px; margin: 0 calc(var(--gutter) * -1); padding: 3px 12px; border-radius: 0; font-size: 11.5px; }
}
@media (min-width: 1000px) {
  :root { --hdr-h: 84px; }
  .hdr__menu { display: none; }
  .logo { width: 132px; }
  .brand { margin-inline-end: 0; }
  .hnav { display: flex; gap: 6px; margin-inline: auto; }
  .hnav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; color: var(--blue); text-decoration: none; font-size: 16px; font-weight: 600; }
  .hnav a::after { content: ''; position: absolute; inset-inline: 14px; bottom: 6px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .18s; }
  .hnav a:hover::after, .hnav a[aria-current]::after { transform: scaleX(1); }
  .hnav a[aria-current] { color: var(--ink); }
  .pvpill { font-size: 12px; }
}

/* ---------------- 3. الواجهة: عمود واحد متوازن بالوسط ---------------- */
.hero { background: var(--stone); border-bottom: 1px solid var(--line); }
.hero__in { display: flex; justify-content: center; padding-block: 44px 72px; }
.hero__copy { width: 100%; max-width: 880px; text-align: center; }
.nowrap { white-space: nowrap; }
.hero__title { font-size: clamp(26px, 7.2vw, 54px); line-height: 1.3; font-weight: 800; color: var(--blue); }
.hero__lead { margin: 16px auto 0; max-width: 34em; font-size: clamp(15.5px, 4vw, 20px); line-height: 1.75; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero__cta .btn { flex: 1 1 140px; max-width: 220px; }
@media (min-width: 900px) {
  .hero__in { padding-block: 88px 112px; }
  .hero__cta .btn { flex: 0 0 auto; min-width: 180px; }
}

/* ---------------- 4. البحث البارز ---------------- */
.hsearch { position: relative; z-index: 5; margin-top: -32px; }
.hsearch .wrap { max-width: 900px; }
.hsearch__box { position: relative; display: flex; align-items: center; background: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgba(12, 22, 34, .16); border: 1px solid var(--line); }
.hsearch__box > svg { position: absolute; inset-inline-start: 20px; color: var(--muted); pointer-events: none; }
.hsearch__box input { width: 100%; min-height: 60px; border: 0; background: transparent; border-radius: 999px; padding: 12px 56px 12px 52px; font-size: 16.5px; }
.hsearch__box input:focus { outline: none; }
.hsearch__box:focus-within { box-shadow: 0 0 0 3px rgba(18, 74, 124, .18), 0 10px 30px rgba(12, 22, 34, .16); }
.hsearch__box input::-webkit-search-cancel-button { display: none; }
.hsearch__clear { position: absolute; inset-inline-end: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue-50); color: var(--ink); display: grid; place-items: center; }
.hsearch__clear svg { width: 18px; height: 18px; }
.hsearch__panel { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 12px 30px rgba(12, 22, 34, .08); }
.hsearch__count { font-size: 13.5px; color: var(--muted); font-weight: 600; padding: 4px 10px 8px; }
.hsearch__list { display: grid; }
.hres { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; min-height: 64px; }
.hres:hover, .hres:focus-visible { background: var(--blue-50); }
.hres__img { position: relative; width: 52px; height: 52px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.hres__img img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.hres__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hres__name { font-weight: 700; font-size: 15px; line-height: 1.4; }
.hres__meta { font-size: 12.5px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.hres__price { font-weight: 800; color: var(--blue); font-size: 14.5px; white-space: nowrap; }
.hsearch__empty { text-align: center; padding: 12px 8px 8px; }
.hsearch__hint { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.hsearch__all { width: 100%; margin-top: 8px; }

/* ---------------- 5. اكتشف منتجاتنا ---------------- */
.explore { background: var(--navy); color: #fff; padding-block: 88px 64px; margin-top: 56px; scroll-margin-top: var(--hdr-h); }
.explore__title { text-align: center; font-size: clamp(26px, 6.4vw, 44px); font-weight: 800; letter-spacing: -.2px; }
.explore__sub { text-align: center; color: #B9C3CE; margin-top: 6px; font-size: 15px; }
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.cat {
  flex: 0 0 calc((100% - 12px) / 2); display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 0 14px; border-radius: var(--r-l); background: #fff; color: var(--ink); text-decoration: none; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.cat:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.cat__img { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.cat__img img { position: absolute; object-fit: contain; inset: 10%; width: 80%; height: 80%; }
.cat__img.fit-tall img { inset: 6% 20%; width: 60%; height: 88%; }
.cat__name { font-weight: 800; font-size: 14.5px; line-height: 1.35; padding-inline: 8px; }
.cat__n { font-size: 12.5px; color: var(--muted); }
@media (min-width: 600px) { .cat { flex-basis: calc((100% - 24px) / 3); } }
@media (min-width: 960px) { .cats { gap: 16px; } .cat { flex-basis: calc((100% - 48px) / 4); } .cat__name { font-size: 16px; } }
@media (min-width: 1200px) { .cat { flex-basis: calc((100% - 64px) / 5); } }

/* ---------------- 6. أقسام تحريرية ---------------- */
.edit { padding-block: 40px; }
.edit:nth-child(odd) { background: var(--stone); }
.edit__in { display: grid; gap: 24px; align-items: center; }
.edit__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: #fff; }
.edit__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.edit__media--cover img { object-fit: cover; }
.edit__media--contain img { object-fit: contain; inset: 8%; width: 84%; height: 84%; }
.edit__copy { text-align: center; }
.edit__title { font-size: clamp(24px, 6vw, 38px); font-weight: 800; line-height: 1.25; color: var(--ink); }
.edit__text { margin: 12px auto 0; max-width: 34em; color: var(--muted); font-size: 16px; }
.edit__from { margin-top: 14px; font-size: 15px; color: var(--ink); }
.edit__from strong { color: var(--blue); font-weight: 800; }
.edit__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; margin-top: 20px; }
.edit__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .edit { padding-block: 72px; }
  .edit__in { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .edit--rev .edit__media { order: 2; }
  .edit__copy { text-align: start; }
  .edit__text { margin-inline: 0; }
  .edit__cta { justify-content: flex-start; }
}

/* ---------------- 7. منتجات مختارة + بطاقة المنتج ---------------- */
.sec { padding-block: 56px; }
.sec__head { margin-bottom: 28px; }
.sec__head--center { text-align: center; }
.sec__title { font-size: clamp(24px, 6vw, 36px); font-weight: 800; line-height: 1.25; }
.sec__sub { color: var(--muted); margin-top: 6px; font-size: 15px; }
.sec__foot { display: flex; justify-content: center; margin-top: 32px; }
@media (min-width: 900px) { .sec { padding-block: 88px; } }

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

.card { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; background: #fff; text-align: center; }
.card__media { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .18s; }
.card:hover .card__media, .card:focus-within .card__media { border-color: var(--ink); }
.card:focus-within .card__media { box-shadow: 0 0 0 3px rgba(18, 74, 124, .25); }
.card__media img { position: absolute; object-fit: contain; }
.fit-std img { inset: 10%; width: 80%; height: 80%; }
.fit-tall img { inset: 5% 14%; width: 72%; height: 90%; }
.fit-wide img { inset: 12% 6%; width: 88%; height: 76%; }
.badge { position: absolute; top: 0; inset-inline-start: 0; padding: 4px 10px; font-size: 12px; font-weight: 800; line-height: 1.5; border-radius: var(--r) 0 var(--r) 0; }
[dir="rtl"] .badge { border-radius: 0 var(--r) 0 var(--r); }
.badge--offer { background: var(--sale); color: #fff; }
.card__body { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 4px; flex: 1; }
.card__cat { font-size: 12px; color: var(--muted); font-weight: 600; }
.card__title { font-size: 15px; font-weight: 700; line-height: 1.45; min-height: calc(1.45em * 2); }
.card__link { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card__model { font-size: 12.5px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.card__buy { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; width: 100%; }
.price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 10px; }
.price__now { font-size: 18px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.price__was { font-size: 13px; color: var(--muted); white-space: nowrap; }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; font-size: 12px; color: var(--green-ink); font-weight: 700; }
.perk { display: inline-flex; align-items: center; gap: 4px; }
.perk::before { content: ''; width: 8px; height: 4px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-1px); flex: none; }
.card__cta {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; margin-top: 8px;
  border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); font-weight: 700; font-size: 14px;
  transition: background-color .18s, color .18s;
}
.card:hover .card__cta, .card:focus-within .card__cta { background: var(--ink); color: #fff; }
@media (min-width: 600px) { .card__title { font-size: 16px; } .price__now { font-size: 19px; } }

/* ---------------- 8. الثقة ---------------- */
.trustband { border-block: 1px solid var(--line); padding-block: 40px; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.trust li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.trust li:last-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .trust { grid-template-columns: repeat(5, minmax(0, 1fr)); } .trust li:last-child { grid-column: auto; } .trust li { font-size: 15.5px; } }

/* ---------------- 9. من نحن ---------------- */
.about { padding-block: 64px; scroll-margin-top: var(--hdr-h); }
.about:focus { outline: none; }
.about__in { display: grid; gap: 28px; align-items: center; }
.about__brand { display: grid; place-items: center; padding: 40px 20px; background: var(--stone); border-radius: var(--r-l); }
.about__title { font-size: clamp(24px, 6vw, 36px); font-weight: 800; line-height: 1.3; color: var(--ink); }
.about__loc { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 14px; font-weight: 700; color: var(--blue); }
.about__copy p + p { margin-top: 10px; }
.about__copy > p:not(.eyebrow):not(.about__loc) { color: var(--muted); }
@media (min-width: 900px) { .about { padding-block: 96px; } .about__in { grid-template-columns: .9fr 1.1fr; gap: 64px; } .about__brand { padding: 72px 40px; } }

/* ---------------- 10. تواصل معنا ---------------- */
.contact { background: var(--blue-50); padding-block: 56px; scroll-margin-top: var(--hdr-h); }
.contact:focus { outline: none; }
.contact__in { display: grid; gap: 24px; }
.contact__lead { color: var(--muted); margin-top: 8px; }
.contact__list { display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); }
.contact__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 18px; border-bottom: 1px solid var(--line); min-height: 58px; }
.contact__list li:last-child { border-bottom: 0; }
.contact__k { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.contact__v { border: 0; background: none; padding: 0; min-height: 44px; font-weight: 800; font-size: 16px; color: var(--ink); }
button.contact__v { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social__b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: 14.5px; }
.social__b:hover { border-color: var(--blue); color: var(--blue); }
@media (min-width: 900px) { .contact { padding-block: 80px; } .contact__in { grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 48px; } }

/* ---------------- 11. التذييل ---------------- */
.ftr { background: var(--navy); color: #C9D3DD; font-size: 14.5px; }
.ftr__in { display: grid; gap: 32px; padding-block: 56px 32px; }
.ftr__brand .logo { background: #fff; border-radius: var(--r); box-sizing: content-box; padding: 8px 12px; }
.ftr__brand p { margin-top: 12px; }
.ftr__h { font-size: 15.5px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.ftr__h--sp { margin-top: 20px; }
.ftr__col ul { display: grid; gap: 2px; }
.ftr__col a { color: #C9D3DD; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.ftr__col a:hover { color: #fff; text-decoration: underline; }
.ftr__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.ftr__pol { display: grid; gap: 8px; }
.ftr__pol dt { color: #fff; font-weight: 700; }
.ftr__lnk { border: 0; background: none; padding: 0; color: #fff; font-weight: 700; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.ftr__pv { padding-block: 16px 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; color: #9FAAB5; }
@media (min-width: 900px) { .ftr__in { grid-template-columns: 1.2fr .8fr 1.4fr 1.2fr; gap: 40px; padding-block: 72px 40px; } }

/* ---------------- جميع المنتجات / القسم ---------------- */
.listing { padding-bottom: 72px; min-height: 70vh; }
.listing__band { background: var(--stone); padding-block: 24px 28px; margin-bottom: 24px; text-align: center; }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; font-size: 13.5px; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: '‹'; margin-inline: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 36px; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs a[aria-current] { color: var(--ink); font-weight: 800; }
.listing__title { font-size: clamp(26px, 6.4vw, 42px); font-weight: 800; line-height: 1.25; margin-top: 4px; }
.listing__title:focus { outline: none; }
.results { color: var(--muted); font-weight: 600; font-size: 14.5px; margin-top: 4px; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.toolbar__search { grid-column: 1 / -1; position: relative; display: flex; align-items: center; }
.toolbar__search svg { position: absolute; inset-inline-start: 16px; color: var(--muted); pointer-events: none; }
.toolbar__search .field { padding-inline-start: 48px; }
.toolbar__sort { min-width: 0; }
.toolbar__sort .field { appearance: auto; }
.toolbar__filter { min-height: 48px; padding-inline: 18px; font-size: 14.5px; }
.toolbar:has(.toolbar__filter[hidden]) .toolbar__sort { grid-column: 1 / -1; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--green-ink); color: #fff; font-size: 12px; }
@media (min-width: 768px) {
  .toolbar { grid-template-columns: minmax(0, 1fr) 250px auto; }
  .toolbar__search { grid-column: auto; }
  .toolbar:has(.toolbar__filter[hidden]) { grid-template-columns: minmax(0, 1fr) 250px; }
  .toolbar:has(.toolbar__filter[hidden]) .toolbar__sort { grid-column: auto; }
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 4px; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__n { font-size: 12px; opacity: .7; }
@media (min-width: 1000px) { .chips { flex-wrap: wrap; justify-content: center; margin-inline: 0; padding-inline: 0; overflow: visible; } }
.active { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.active:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); background: var(--blue-50); color: var(--ink); border-radius: 999px; padding: 4px 14px; min-height: 40px; font-weight: 600; font-size: 14px; }
.pill:hover { border-color: var(--ink); }
.listing .grid { margin-top: 28px; }
.more-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; }
.more-note { color: var(--muted); font-size: 14px; }
.empty { text-align: center; padding: 40px 16px; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--stone); }
.empty__t { font-weight: 800; font-size: 16px; margin-bottom: 14px; }

/* ---------------- اللوحات ---------------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10, 16, 24, .45); opacity: 0; transition: opacity .2s; }
.drawer__panel { position: absolute; background: #fff; display: flex; flex-direction: column; outline: none; transition: transform .22s ease; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); }
.drawer__panel--side { top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 340px); transform: translateX(100%); }
.drawer__panel--sheet { inset-inline: 0; bottom: 0; max-height: 88vh; border-radius: 18px 18px 0 0; transform: translateY(100%); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); min-height: 64px; }
.drawer__title { font-size: 18px; font-weight: 800; }
.drawer__body { overflow-y: auto; padding-bottom: 24px; }
.menu { display: grid; padding: 8px; }
.menu a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 14px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 700; }
.menu a:hover { background: var(--blue-50); }
.menu--cats a { font-weight: 600; }
.menu__n { font-size: 12px; color: var(--muted); }
.menu__h { font-size: 12.5px; color: var(--muted); font-weight: 800; padding: 12px 22px 0; }
.sheet__body { overflow-y: auto; padding: 6px 16px 10px; }
.sheet__foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.fset { border: 0; padding: 0; margin: 12px 0 4px; }
.fset legend { font-weight: 800; font-size: 15.5px; padding: 0; margin-bottom: 4px; }
.opts { display: grid; gap: 2px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: var(--r); cursor: pointer; }
.opt:hover { background: var(--blue-50); }
.opt input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.opt__n { margin-inline-start: auto; font-size: 12px; color: var(--muted); }
@media (min-width: 768px) { .drawer__panel--sheet { inset-inline: auto; inset-inline-end: 0; top: 0; bottom: 0; max-height: none; width: 400px; border-radius: 0; transform: translateX(-100%); } }

/* ---------------- التنبيه ---------------- */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px); opacity: 0; visibility: hidden; max-width: calc(100vw - 32px); width: max-content;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22); transition: opacity .2s, transform .2s, visibility .2s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }
