/* =====================================================================
   الصفحة الرئيسية — EVOLO (بانرات بعرض الشاشة، أقسام، كتالوج بفلتر)
   ===================================================================== */
.home > section { padding-block: 40px; }
@media (min-width: 1024px) { .home > section { padding-block: 56px; } }
.sec-title { font-size: clamp(22px, 3vw, 30px); text-align: center; text-transform: uppercase; margin: 0 0 24px; font-weight: 700; }
.sec-head { position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 24px; }
.sec-head .sec-title { margin: 0; }
.more-link { position: absolute; inset-inline-end: 0; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .sec-head { flex-direction: column; gap: 4px; } .more-link { position: static; } }

/* ---------- البانرات ---------- */
#heroSec, .promo-sec { padding: 0 !important; }
.banner { display: block; position: relative; background: var(--paper-2); overflow: hidden; }
.banner img { display: block; width: 100%; height: auto; }
.banner picture { display: block; width: 100%; }
/* بانر صورته طولية (زي البوستر) على الكمبيوتر: بيتوسّط وورا منه نفس الصورة مضببة */
.banner.poster { display: flex; justify-content: center; }
.banner.poster .bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(36px) saturate(1.1); opacity: .85; transform: scale(1.1); }
.banner.poster img { position: relative; width: 100%; max-width: 100%; }
@media (min-width: 768px) {
  .banner.poster { padding: 32px 0; }
  .banner.poster img { width: auto; max-height: 78vh; max-width: min(560px, 90%); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
}
.promo-sec { margin-block: 8px 0; }
@media (min-width: 1024px) { .promo-sec .banner:not(.poster) { max-width: 1320px; margin: 0 auto; } }

/* بديل لو مفيش بانر رئيسي */
.hero-text { background: var(--paper-2); text-align: center; padding: 56px 16px 60px; }
.hero-text .kicker { font-size: 13px; font-weight: 600; letter-spacing: 3px; color: var(--muted); }
.hero-text h1 { font-size: clamp(34px, 7vw, 72px); line-height: 1.1; margin: 12px 0 16px; font-weight: 800; text-transform: uppercase; }
.hero-text p { color: var(--ink-2); margin: 0 auto 26px; max-width: 44ch; font-size: 17px; }
.hero-text .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-text .btn { min-width: 180px; }

/* ---------- الأقسام ---------- */
.cat-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 42%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .cat-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); overflow: visible; } }
.cat-tile { scroll-snap-align: start; display: block; text-align: center; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.cat-tile .ci { position: relative; display: block; aspect-ratio: 3/4; background: var(--paper-2); overflow: hidden; }
.cat-tile .ci img, .cat-tile .ci .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); font-size: 0; }
@media (hover: hover) { .cat-tile:hover .ci img { transform: scale(1.04); } }
.cat-tile .cl { display: block; margin-top: 10px; font-weight: 700; font-size: 15px; text-transform: uppercase; }
.cat-tile .cn { display: block; color: var(--muted); font-size: 13px; }

/* ---------- الكتالوج ---------- */
.catalog { padding-top: 0 !important; }
.crumb-bar { background: var(--paper-2); margin-bottom: 8px; }
.crumb-bar ol { list-style: none; display: flex; justify-content: center; gap: 10px; margin: 0 auto; padding: 14px 16px; font-size: 15px; flex-wrap: wrap; }
.crumb-bar li + li::before { content: "‹"; margin-inline-end: 10px; color: var(--muted); }
.crumb-bar a:hover { text-decoration: underline; }
.tools { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tool-btn { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: none; font: inherit; font-size: 16px; cursor: pointer; padding: 0 4px; }
.tool-btn svg { width: 22px; height: 22px; }
.tool-count { background: var(--ink); color: #fff; font-size: 12px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.view-toggle { display: flex; gap: 6px; }
.vt { width: 40px; height: 40px; border: 1px solid var(--line-strong); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); }
.vt svg { width: 20px; height: 20px; }
.vt[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sort-wrap { justify-self: end; }
.sort-select { border: 0; background: transparent; font: inherit; font-size: 15px; min-height: 44px; padding: 0 4px; cursor: pointer; max-width: 46vw; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.active-filters:empty { display: none; }
.af { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--ink); background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.af span[aria-hidden] { font-size: 18px; line-height: 1; }
.af.clear { border-color: transparent; text-decoration: underline; }
.count { color: var(--muted); font-size: 14px; margin: 10px 0 16px; text-align: center; }
.empty .btn { margin-top: 10px; }

/* ---------- الفلتر ---------- */
.filter-panel .panel-box { position: absolute; top: 0; bottom: 0; right: 0; width: min(90vw, 380px); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.filter-panel.open .panel-box { transform: none; }
.f-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.f-group { border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; margin: 0; }
.f-group legend { font-weight: 700; padding: 0; margin-bottom: 10px; font-size: 16px; }
.f-check, .f-radio { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; }
.f-check input, .f-radio input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.f-radio small { color: var(--muted); margin-inline-start: auto; }
.f-price { display: flex; align-items: center; gap: 10px; }
.f-price label { flex: 1; }
.f-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .filter-panel .panel-box { transition: none; } }

/* ---------- الفروع والمساعدة ---------- */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.branch-card { border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 6px; text-align: right; }
.branch-card h3 { margin: 0; font-size: 20px; }
.branch-card p { margin: 0; color: var(--ink-2); }
.branch-card .meta { color: var(--muted); font-size: 14px; }
.branch-card .btn { margin-top: 12px; align-self: flex-start; height: 44px; }
.help .box { background: var(--paper-2); padding: 36px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.help h2 { margin: 0 0 6px; font-size: 24px; }
.help p { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .help .box { padding: 24px 18px; } .help .btn { width: 100%; } }

/* العنوان الكبير بنفس شكل اللوجو */
.hero-text h1.hero-brand { display: inline-flex; align-items: baseline; gap: .25em; direction: ltr; white-space: nowrap; }
.hero-brand .lg-a { font-weight: 800; letter-spacing: .04em; }
.hero-brand .lg-b { font-size: .5em; font-weight: 600; letter-spacing: .3em; }
.hero-text .kicker { display: block; }
.hero-text h1.hero-brand { display: flex; justify-content: center; }

/* =====================================================================
   بانرات متعددة: سلايدر (جنب بعض بأسهم) أو تحت بعض + فيديو
   ===================================================================== */
.bslot { position: relative; }
.bslot.stack { display: flex; flex-direction: column; gap: 8px; }
.slide { position: relative; min-width: 0; }
.banner video { display: block; width: 100%; height: auto; background: #000; }
.bslot.slider .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline-offset: -3px; }
.bslot.slider .track::-webkit-scrollbar { display: none; }
.bslot.slider .slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; }
/* كل الشرايح بنفس الارتفاع، والأقصر بتتوسّط */
.bslot.slider .slide > .banner { flex: 1; display: flex; align-items: center; justify-content: center; }
.bslot.slider .slide > .banner.poster { align-items: center; }
.promo-sec .banner video { max-height: 85vh; width: auto; max-width: 100%; }
@media (min-width: 768px) {
  .bslot.slider.pv2 .slide { flex-basis: 50%; }
  .bslot.stack.pv2, .promo-sec .bslot.stack { gap: 12px; }
}
.sl-arrow { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: rgba(255,255,255,.86); color: var(--ink); cursor: pointer; transition: background-color .2s; }
.sl-arrow svg { width: 24px; height: 24px; }
.sl-arrow:hover { background: #fff; }
.sl-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sl-prev { inset-inline-start: 10px; }
.sl-next { inset-inline-end: 10px; }
@media (min-width: 1024px) { .sl-arrow { width: 52px; height: 52px; margin-top: -26px; } .sl-prev { inset-inline-start: 20px; } .sl-next { inset-inline-end: 20px; } }
.sl-dots { position: absolute; z-index: 3; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; pointer-events: none; }
.sl-dots button { pointer-events: auto; width: 30px; height: 24px; border: 0; background: none; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.sl-dots button::before { content: ""; width: 18px; height: 3px; background: rgba(255,255,255,.6); box-shadow: 0 0 3px rgba(0,0,0,.45); transition: background-color .2s, width .2s; }
.sl-dots button[aria-current="true"]::before { background: #fff; width: 28px; }
.sl-arrow[hidden], .sl-dots[hidden] { display: none; }

/* =====================================================================
   اسم المحل الكبير ثابت تحت على يمين الشاشة، وبيختفي عند نص الصفحة تقريباً
   ===================================================================== */
.brand-float { position: fixed; z-index: 15; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: baseline; gap: .2em;
  direction: ltr; white-space: nowrap; pointer-events: none; font-family: var(--mark), 'Rubik', sans-serif; line-height: .85;
  font-size: min(calc(clamp(44px, 15vw, 180px) * var(--bf-scale, 1)), calc((100vw - 28px) / 4.7)); transition: opacity .25s ease, visibility .25s; }
.brand-float .lg-a { font-weight: 800; letter-spacing: .02em; }
.brand-float .lg-b { font-weight: 600; font-size: .42em; letter-spacing: .22em; }
.brand-float.c-auto { color: #fff; mix-blend-mode: difference; }   /* بيقلب لونه حسب اللي وراه فيبان على أي خلفية */
.brand-float.c-white { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.brand-float.c-black { color: #111; }
.brand-float.gone { opacity: 0; visibility: hidden; }
@media (min-width: 768px) { .brand-float { right: 32px; bottom: 28px; font-size: min(calc(clamp(64px, 10vw, 180px) * var(--bf-scale, 1)), calc((100vw - 64px) / 4.7)); } }
/* لو زرار الواتساب موجود (تحت على اليمين) الاسم يطلع فوقه */
body:has(.wa-float:not(.hidden)) .brand-float { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .brand-float, .sl-arrow { transition: none; } }
