/* =========================================================
   شركة عنان — ستايل الموقع
   ========================================================= */
:root {
  --red: #EC004A;
  --red-ink: #C4003E;      /* أحمر للنصوص على خلفية فاتحة */
  --red-deep: #8F002D;
  --ink: #1C0A12;
  --body: #4D3A43;
  --muted: #6B5560;
  --tint: #FFF2F5;
  --line: #F3D9E1;
  --white: #FFFFFF;
  --ok: #0F7A45;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(120, 0, 40, .07);
  --font: 'Alexandria', Tahoma, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red-ink); }
a:hover { color: var(--red-deep); }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.row-gap { display: flex; flex-wrap: wrap; gap: 12px; }
html[dir="rtl"] [dir="ltr"] { text-align: right; }

/* ---------- أزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--red-ink); }
.btn--white:hover { color: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.85); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #3a1626; color: var(--white); }
.btn--outline { background: transparent; color: var(--red-ink); border-color: var(--red); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--white); flex: 0 0 auto; }
.icon-btn:hover { background: var(--red-ink); color: var(--white); }

.pill { display: inline-block; background: var(--white); color: var(--red-ink); font-weight: 700; font-size: 15px; padding: 10px 22px; border-radius: 999px; }
.pill--light { background: rgba(255,255,255,.2); color: var(--white); padding: 4px 14px; font-size: 13px; }
.badge { position: absolute; top: 12px; right: 12px; background: var(--red); color: var(--white); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.badge--muted { background: var(--ink); top: auto; bottom: 12px; }
.eyebrow { display: block; color: var(--red-ink); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.eyebrow--light { color: #FF8AAE; }

/* ---------- الشريط العلوي والهيدر ---------- */
.topbar { background: var(--ink); color: var(--white); font-size: 13px; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.topbar__addr { display: flex; align-items: center; gap: 8px; }
.topbar__phones { display: flex; gap: 20px; direction: ltr; }
.topbar a { color: var(--white); text-decoration: none; }

.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; }
.brand--small img { width: 48px; height: 48px; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-size: 24px; font-weight: 800; color: #E00046; line-height: 1.1; }
.brand__tag { font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a.is-active { color: #E00046; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--tint); border-radius: 999px; padding: 0 16px; height: 44px; color: var(--red-ink); }
.search input { border: 0; background: transparent; font-family: inherit; font-size: 14px; width: 200px; min-width: 0; outline: none; color: var(--ink); }
.search:focus-within { box-shadow: 0 0 0 2px var(--red); }
.nav-toggle, .nav-toggle__btn { display: none; }

/* ---------- الإعلانات ---------- */
.announce-bar { background: var(--red-ink); color: var(--white); overflow: hidden; }
.announce-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.announce-bar__track { display: grid; align-items: center; flex: 1; min-width: 0; overflow: hidden; }
.announce-bar__item {
  grid-area: 1 / 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px;
  opacity: 0; visibility: hidden; transform: translateY(100%); pointer-events: none; transition: none;
}
.announce-bar__item svg { flex: 0 0 auto; }
.announce-bar__item.is-active {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .45s ease;
}
.announce-bar__item.is-leaving {
  opacity: 0; visibility: hidden; transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .45s ease, visibility 0s .45s;
}
.announce-bar__dots { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.announce-bar__dot {
  width: 7px; height: 7px; min-height: 0; padding: 0; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .38); cursor: pointer; transition: width .25s ease, background .25s ease;
}
.announce-bar__dot.is-active { width: 18px; background: var(--white); }

/* ---------- الهيرو ---------- */
.hero { position: relative; background: var(--red); color: var(--white); overflow: hidden; }
.hero__ring { position: absolute; width: 620px; height: 620px; border-radius: 50%; border: 70px solid rgba(255,255,255,.10); top: -300px; left: -200px; }
.hero__blob { position: absolute; width: 900px; height: 900px; border-radius: 50%; background: var(--white); bottom: -760px; left: -120px; }
.hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 44px; padding-bottom: 60px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero h1 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; line-height: 1.2; }
.hero p { font-size: 17px; line-height: 1.7; font-weight: 300; max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__media { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.hero__media > img { width: 100%; max-width: 380px; border-radius: 32px; box-shadow: 0 30px 60px rgba(120,0,40,.25); }
.hero__logo { width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 30px 60px rgba(120,0,40,.25); }
.hero__logo img { width: 62%; }

/* ---------- المزايا ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding-top: 8px; padding-bottom: 56px; }
.feature { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 20px; background: var(--tint); }
.feature__icon { flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; }
.feature strong { display: block; font-size: 16px; }
.feature small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- الأقسام العامة ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 40px 0 72px; }
.section--tint { background: var(--tint); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.section__head h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; }
.link-more { font-weight: 600; font-size: 15px; text-decoration: none; }
.empty { background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--body); }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 16px; border-radius: var(--radius); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--red); transform: translateY(-2px); color: var(--ink); }
.cat__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--tint); color: #E00046; display: flex; align-items: center; justify-content: center; }
.cat__icon svg { width: 28px; height: 28px; }
.cat__name { font-weight: 700; font-size: 17px; text-align: center; }

/* ---------- بطاقة المنتج ---------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.product-card__media { position: relative; display: flex; align-items: center; justify-content: center; height: 210px; margin: 12px; border-radius: 18px; background: #FFF7F9; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__noimg { color: #F2A3BB; display: flex; }
.product-card__body { padding: 6px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__cat { font-size: 13px; color: var(--muted); }
.product-card__title { font-size: 18px; font-weight: 700; }
.product-card__title a { color: var(--ink); text-decoration: none; }
.product-card__title a:hover { color: var(--red-ink); }
.product-card__desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
.product-card .price { margin-top: auto; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.price__now { font-size: 24px; font-weight: 800; color: var(--red-ink); }
.price__old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.price--lg .price__now { font-size: 34px; }
.price--lg .price__old { font-size: 18px; }

/* ---------- الخدمات ---------- */
.services { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.services__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.services__intro h2 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; }
.services__intro p { font-size: 17px; line-height: 1.9; color: var(--body); }
.services__grid { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.services__grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.service { padding: 28px; border-radius: var(--radius); background: var(--tint); display: flex; flex-direction: column; gap: 12px; color: #E00046; }
.service h3 { font-size: 20px; font-weight: 700; color: var(--ink); }
.service p { font-size: 15px; line-height: 1.8; color: var(--body); }
.service--accent { background: var(--red); color: var(--white); }
.service--accent h3, .service--accent p { color: var(--white); }
.service--accent p { font-weight: 300; }
/* الرئيسية: مربعات أصغر بنفس ارتفاع النص اللي جنبها */
.services { align-items: stretch; }
.services .services__grid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
@media (max-width: 560px) { .services .services__grid { grid-template-columns: 1fr; } }
.services .service { padding: 18px 20px; gap: 8px; }
.services .service svg { width: 26px; height: 26px; }
.services .service h3 { font-size: 17px; }
.services .service p { font-size: 13.5px; line-height: 1.7; }

/* ---------- من نحن ---------- */
.about { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.about__mark { position: absolute; width: 320px; height: 320px; left: -60px; top: -50px; opacity: .06; pointer-events: none; }
.about__inner { position: relative; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.about__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.about__text h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.35; }
.about__text p { font-size: 16px; line-height: 1.8; color: #E8D9DF; font-weight: 300; }
.stats { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 18px 12px; border-radius: 20px; background: rgba(255,255,255,.06); text-align: center; }
.stat strong { display: block; font-size: 28px; font-weight: 800; color: #FF8AAE; }
.stat span { font-size: 14px; color: #E8D9DF; }

/* ---------- دعوة القناة ---------- */
.cta { position: relative; overflow: hidden; background: var(--red); color: var(--white); border-radius: 32px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.08); left: -80px; bottom: -180px; }
.cta__text { position: relative; display: flex; align-items: center; gap: 20px; flex: 1 1 420px; min-width: 0; }
.cta__icon { flex: 0 0 72px; height: 72px; border-radius: 50%; background: var(--white); color: #E00046; display: flex; align-items: center; justify-content: center; }
.cta h2 { font-size: 28px; font-weight: 800; }
.cta p { margin-top: 8px; font-size: 16px; font-weight: 300; }
.cta .btn { position: relative; }

/* ---------- الفوتر ---------- */
.footer { background: var(--tint); border-top: 4px solid var(--red); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 24px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 15px; }
.footer__col h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.footer__col a { color: var(--body); text-decoration: none; }
.footer__col a:hover { color: var(--red-ink); }
.footer__col a.phone { color: var(--red-ink); font-weight: 700; direction: ltr; }
.footer__col p { line-height: 1.9; font-size: 14px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.wa-float { position: fixed; left: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(120,0,40,.35); z-index: 60; }
.wa-float:hover { background: var(--red-ink); color: var(--white); }

/* ---------- رأس الصفحات الداخلية ---------- */
.page-head { background: var(--tint); padding: 40px 0 32px; }
.page-head--slim { padding: 20px 0; }
.page-head--compact { padding: 18px 0 14px; }
.page-head.page-head--compact h1 { font-size: clamp(22px, 2.2vw, 28px); margin: 4px 0 2px; }
.page-head.page-head--compact .muted { font-size: 14px; margin: 0; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 8px 0 4px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red-ink); }

/* ---------- صفحة المنتجات ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--red); color: var(--ink); }
.chip.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort select { height: 40px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 14px; font-family: inherit; font-size: 14px; background: var(--white); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pager__item { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager__item.is-active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- صفحة المنتج ---------- */
.product { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.product__gallery { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.product__main { position: relative; aspect-ratio: 1; border-radius: var(--radius); background: #FFF7F9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product__main img { width: 100%; height: 100%; object-fit: contain; }
.product__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { width: 72px; height: 72px; padding: 4px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; }
.thumb:hover, .thumb:focus { border-color: var(--red); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product__info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.product__info h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.lead { font-size: 17px; color: var(--body); line-height: 1.8; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.facts li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.facts .ok { color: var(--ok); }
.facts .no { color: var(--red-ink); }
.h3 { font-size: 20px; font-weight: 700; margin-top: 8px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: right; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.specs th { width: 38%; color: var(--muted); font-weight: 500; background: #FFF9FB; }
.prose { color: var(--body); line-height: 1.9; }

/* ---------- النماذج والبطاقات ---------- */
.two-col { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.two-col > * { flex: 1 1 420px; min-width: 0; }
.card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.card h2 { font-size: 26px; font-weight: 800; }
.card--red { background: var(--red); color: var(--white); }
.card--red .btn { align-self: flex-start; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--half { max-width: 260px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(236,0,74,.15); }
.form .btn { align-self: flex-start; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.alert { border-radius: 16px; padding: 16px 18px; font-size: 15px; line-height: 1.8; }
.alert ul { margin: 0; padding-inline-start: 18px; }
.alert--ok { background: #E7F6EE; color: #0B5C34; }
.alert--ok strong { display: block; }
.alert--err { background: #FFE8EE; color: #8F002D; }
.ticket { font-family: ui-monospace, Consolas, monospace; direction: ltr; display: inline-block; font-weight: 700; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list a { color: var(--white); text-decoration: none; font-weight: 600; }
/* صفحة تواصل معنا: نموذج "ابعث رسالة" مضغوط بحجم كرت معلومات التواصل */
.contact-form-card { padding: 22px 28px; gap: 10px; }
.contact-form-card h2 { font-size: 22px; }
.contact-form-card .form { gap: 10px; }
.contact-form-card .form__row { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.contact-form-card .field { gap: 4px; }
.contact-form-card .field label { font-size: 13px; }
.contact-form-card .field input, .contact-form-card .field textarea { min-height: 40px; padding: 8px 12px; font-size: 14px; border-radius: 12px; }
.contact-form-card .btn { padding-block: 10px; }
.contact-send-row { display: flex; align-items: flex-end; gap: 10px; }
.contact-send-row .field { flex: 1; min-width: 0; }
.contact-send-row .btn { flex: 0 0 auto; align-self: flex-end; min-height: 56px; }

/* ---------- تتبّع الصيانة ---------- */
.track { border: 1.5px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.track__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.status { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--tint); color: var(--red-ink); }
.status--ready, .status--delivered { background: #E7F6EE; color: #0B5C34; }
.status--cancelled, .status--unrepairable { background: #EEE; color: #444; }
.timeline { list-style: none; margin: 6px 0 0; padding: 0 16px 0 0; border-right: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.timeline li { position: relative; display: flex; flex-direction: column; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; right: -23px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.timeline time { color: var(--muted); font-size: 13px; direction: ltr; text-align: right; }

/* ---------- الجوال ---------- */
@media (max-width: 960px) {
  .nav-toggle__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; order: 2; color: var(--ink); }
  .brand { order: 1; flex: 1; }
  .header__actions { order: 3; width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .nav { order: 4; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav { display: flex; }
  .icon-btn { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .about .about__inner { padding-top: 36px; padding-bottom: 36px; }
  .topbar__addr span { font-size: 12px; }
  .brand__name { font-size: 20px; }
  .brand img { width: 44px; height: 44px; }
  .hero__inner { padding-top: 36px; padding-bottom: 48px; gap: 28px; }
  .hero p { font-size: 16px; }
  .hero__logo { max-width: 260px; }
  .section { padding: 52px 0; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat strong { font-size: 24px; }
  .cta { padding: 28px; }
  .cta h2 { font-size: 22px; }
  .card { padding: 22px; }
  .wa-float { width: 52px; height: 52px; left: 14px; bottom: 14px; }
}


/* ---------- English / LTR: تعديلات الاتجاه ---------- */
.lang-switch { font-weight: 700; padding: 2px 12px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; opacity: .9; }
.lang-switch:hover { opacity: 1; }
.topbar__phones { align-items: center; }
html[dir="ltr"] .i-arrow { transform: scaleX(-1); }
html[dir="ltr"] .badge { right: auto; left: 12px; }
html[dir="ltr"] .hero__ring { left: auto; right: -200px; }
html[dir="ltr"] .hero__blob { left: auto; right: -120px; }
@media (min-width: 601px) { html[dir="ltr"] .hero h1 { font-size: clamp(28px, 3vw, 38px); } }
html[dir="ltr"] .about__mark { left: auto; right: -80px; }
html[dir="ltr"] .cta::before { left: auto; right: -80px; }
html[dir="ltr"] .wa-float { left: auto; right: 20px; }
html[dir="ltr"] .specs th, html[dir="ltr"] .specs td { text-align: left; }
html[dir="ltr"] .timeline { padding: 0 0 0 16px; border-right: 0; border-left: 2px solid var(--line); }
html[dir="ltr"] .timeline li::before { right: auto; left: -23px; }
html[dir="ltr"] .timeline time { text-align: left; }
@media (max-width: 760px) { html[dir="ltr"] .wa-float { left: auto; right: 14px; } }
@media (min-width: 761px) {
  html[dir="ltr"] .header__inner { gap: 12px 18px; }
  html[dir="ltr"] .nav { gap: 4px 16px; font-size: 14px; }
  html[dir="ltr"] .brand__name { font-size: 22px; }
  html[dir="ltr"] .search input { width: 120px; }
}

/* ---------- شريط تقدّم التتبّع ---------- */
.steps { list-style: none; margin: 8px 0; padding: 0; display: flex; gap: 4px; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; font-size: 12px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 15px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.steps li:last-child::before { display: none; }
.steps li.is-done::before { background: var(--red); }
.steps__dot { width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 1; font-size: 13px; }
.steps li.is-done .steps__dot { background: var(--red); border-color: var(--red); color: #fff; }
.steps li.is-now .steps__dot { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 4px rgba(224,0,70,.15); }
.steps li.is-now { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) { .steps__label { font-size: 10px; } .steps__dot { width: 26px; height: 26px; } .steps li::before { top: 12px; } }
.alert--warn { background: #FFF4DC; color: #6B4A00; }
.steps__date { font-size: 10px; color: var(--muted); font-weight: 400; }

/* ---------- حالة المنتج: جديد / مستخدم / مجدّد ---------- */
.cond { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; vertical-align: middle; margin-inline-start: 6px; }
.cond--new { background: #E7F6EE; color: #0B5C34; }
.cond--used { background: #FFF1D6; color: #7A4B00; }
.cond--refurbished { background: #E6F0FF; color: #1D4F9C; }
.cond-line .cond { font-size: 14px; padding: 4px 14px; margin: 0; }

/* ---------- تحسينات الجوال والتابلت ---------- */
html { -webkit-text-size-adjust: 100%; }
.container { padding-inline: max(24px, env(safe-area-inset-right), env(safe-area-inset-left)); }
.wa-float { bottom: max(14px, env(safe-area-inset-bottom)); }
.section h2 { font-size: clamp(22px, 3.2vw, 32px); }
.btn, .nav a, input, select, textarea { min-height: 44px; }
table { max-width: 100%; }
.table-wrap, .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 601px) and (max-width: 960px) {
  /* تابلت: عمودين للمنتجات والتصنيفات، وصورة الهيرو أصغر */
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__logo, .hero__media > img { max-width: 300px; }
  .hero__inner { padding-top: 40px; padding-bottom: 52px; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .hero__logo, .hero__media > img { max-width: 220px; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 6px; }
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: minmax(0, 1fr); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (hover: none) { .btn:hover { transform: none; } }

/* ---------- شريط التنقل السفلي (جوال) + شريط تثبيت التطبيق ---------- */
.tabbar { display: none; }
.install-bar[hidden] { display: none !important; }
@media (max-width: 760px) {
  .tabbar {
    display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 70;
    background: var(--white); border-top: 1px solid var(--line);
    padding: 6px 6px max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(28,10,18,.06);
  }
  .tabbar__item {
    flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 500; border-radius: 12px;
  }
  .tabbar__item.is-active { color: var(--red); font-weight: 700; }
  .tabbar__item.is-active svg { stroke-width: 2.4; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.has-install-bar { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .wa-float, html[dir="ltr"] .wa-float { bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.has-install-bar .wa-float { bottom: calc(160px + env(safe-area-inset-bottom)); }

  .install-bar {
    position: fixed; inset-inline: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 69;
    display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 8px;
    background: var(--ink); color: var(--white); border-radius: 16px; box-shadow: 0 10px 30px rgba(28,10,18,.25);
  }
  .install-bar__icon { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--red); display: flex; align-items: center; justify-content: center; }
  .install-bar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
  .install-bar__text strong { font-size: 14px; }
  .install-bar__text span { font-size: 12px; opacity: .85; }
  .install-bar.is-help .install-bar__text span { opacity: 1; font-size: 12.5px; }
  .install-bar.is-help #install-app { display: none; }
  .install-bar .btn { flex: none; min-height: 40px; }
  .install-bar__close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
}
@media (display-mode: standalone) { .install-bar { display: none !important; } }

/* ---------- واجهة الجوال المضغوطة (مطابقة لنموذج التصميم) ---------- */
@media (max-width: 600px) {
  /* الأعلى والهيرو: أصغر وبدون دائرة الشعار */
  .topbar__addr { display: none; }
  .topbar__inner { justify-content: center; padding-top: 6px; padding-bottom: 6px; }
  .hero__media, .hero__ring, .hero__blob { display: none; }
  .hero { margin: 12px 16px 0; border-radius: 20px; }
  .hero__inner { padding: 22px 18px; gap: 12px; }
  .hero__text { gap: 12px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; line-height: 1.7; }
  .hero__ctas .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .section { padding: 28px 0; }
  .section h2 { font-size: 20px; }

  /* المميزات: صفوف صغيرة */
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 8px; padding-top: 16px; }
  .feature { padding: 12px; gap: 10px; border-radius: 14px; }
  .feature__icon { flex-basis: 36px; height: 36px; border-radius: 10px; }
  .feature__icon svg { width: 18px; height: 18px; }
  .feature strong { font-size: 13px; }
  .feature small { font-size: 11px; }

  /* التصنيفات: صف واحد بأيقونات صغيرة يتحرك أفقياً */
  .cats { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 calc((100% - 30px) / 4); scroll-snap-align: start; padding: 12px 4px; gap: 8px; border: 0; background: var(--tint); border-radius: 16px; }
  .cat__icon { width: 30px; height: 30px; background: transparent; }
  .cat__icon svg { width: 22px; height: 22px; }
  .cat__name { font-size: 12px; font-weight: 600; }

  /* بطاقات المنتجات بالرئيسية: عمودين مضغوطين */
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border: 1px solid var(--line); box-shadow: none; border-radius: 16px; }
  .product-card__media { height: 110px; margin: 0; border-radius: 0; }
  .product-card__noimg svg { width: 40px; height: 40px; }
  .product-card .badge { font-size: 11px; padding: 2px 8px; }
  .product-card__body { padding: 10px 12px 12px; gap: 4px; }
  .product-card__cat { font-size: 11px; }
  .product-card__title { font-size: 14px; line-height: 1.4; }
  .product-card__desc { display: none; }
  .product-card .price__now { font-size: 15px; }
  .product-card .price__old { font-size: 11px; }
  .product-card .btn--block { min-height: 38px; font-size: 12px; padding: 0 8px; margin-top: 6px; }
  .product-card .btn--block svg { width: 16px; height: 16px; }

}
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { display: flex; }
}
@media (max-width: 600px) {
  .hero .pill, .hero p { display: none; }
  .hero h1 { font-size: 22px; }
  .page-head { padding: 16px 0 12px; }
  .page-head h1 { font-size: 22px; margin: 4px 0 0; }
  .page-head.page-head--compact h1 { font-size: 20px; }
  .crumbs { font-size: 12px; }
  .section--tight { padding-top: 14px; }
  .filters { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: -16px; padding-inline: 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 38px; min-height: 38px; padding: 0 14px; font-size: 13px; }
  .sort { display: flex; align-items: center; gap: 8px; font-size: 13px; }
  .sort select { flex: 1; min-height: 40px; }
}
@media (max-width: 600px) {
  .filters > * { min-width: 0; max-width: 100%; }
  .filters > .chips { width: calc(100% + 32px); max-width: calc(100% + 32px); }
  .sort select { width: auto; min-width: 0; }
}
@media (max-width: 600px) {
  /* بطاقتين جنب بعض بكل الصفحات */
  .product-card__media { height: 120px; }
  .product-card__media img { padding: 6px; box-sizing: border-box; }
  .product-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product-card__cat { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .product-card .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
  .product-card .btn--block { width: 100%; }
}

/* ---------- الجوال: الشريط الأسود + الهيدر ثابتين مع السكرول، وخط الشريط أصغر ---------- */
@media (max-width: 760px) {
  .topbar { position: sticky; top: 0; z-index: 51; font-size: 11px; padding-top: env(safe-area-inset-top); }
  .topbar__inner { height: 32px; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; justify-content: center; gap: 14px; }
  .topbar__addr { display: none; }
  .topbar__phones { gap: 14px; font-size: 11px; }
  .topbar .lang-switch { min-height: 0; height: 22px; line-height: 20px; padding: 0 10px; font-size: 11px; border-width: 1px; }
  .header { top: calc(32px + env(safe-area-inset-top)); }
  .header__inner { padding-top: 8px; padding-bottom: 8px; gap: 8px 12px; }
  .brand__name { font-size: 18px; }
  .brand img { width: 38px; height: 38px; }
  .nav-toggle__btn { width: 40px; height: 40px; }
  .search input { min-height: 40px; }
  .header .icon-btn { width: 40px; height: 40px; }
}
@media (max-width: 760px) { .brand__tag { font-size: 11px; } }

/* ---------- الهيرو: صور المنتجات بدل الشعار ---------- */
.hero__stack { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1 / 0.9; }
.hero__shot { position: absolute; background: var(--white); border-radius: 24px; box-shadow: 0 24px 50px rgba(120,0,40,.28); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.hero__shot img { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; background: #fff; }
.hero__shot-cap { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.hero__shot-cap b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__shot-cap span { color: var(--red-ink); font-weight: 800; white-space: nowrap; }
.hero__shot--1 { inset-inline-start: 0; top: 0; width: 58%; height: 70%; z-index: 3; }
.hero__shot--2 { inset-inline-end: 0; top: 8%; width: 44%; height: 50%; z-index: 2; transform: rotate(-4deg); }
.hero__shot--3 { inset-inline-end: 8%; bottom: 0; width: 50%; height: 40%; z-index: 4; transform: rotate(-3deg); }
.hero__stack:has(.hero__shot--1:only-child) .hero__shot--1 { width: 100%; height: 100%; }

/* ---------- من نحن: عدادات + ماركات ---------- */
.stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats--1 { grid-template-columns: minmax(0, 1fr); }
.stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brands { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-bottom: 56px; margin-top: -32px; }
.brands__label { color: #E8D9DF; font-size: 14px; }
.brands__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.brands__list li { padding: 8px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-weight: 700; letter-spacing: .5px; direction: ltr; }

/* ---------- بطاقات المنتجات: مواصفات + ارتفاع موحّد ---------- */
ul.specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; direction: ltr; justify-content: flex-end; }
html[dir="ltr"] ul.specs { justify-content: flex-start; }
ul.specs li { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; background: var(--tint); color: var(--ink); white-space: nowrap; }
ul.specs--lg li { font-size: 14px; padding: 6px 12px; }
.product-card__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.7em * 2); }
.product-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .price { margin-top: auto; }
.products-grid { align-items: stretch; }

/* ---------- بحث صفحة المنتجات ---------- */
.psearch { display: flex; align-items: center; gap: 10px; background: var(--tint); border-radius: 999px; padding: 6px 6px 6px 6px; padding-inline-start: 18px; margin-bottom: 18px; color: var(--muted); }
.psearch input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); outline: none; min-height: 40px; }
.psearch .btn { flex: none; }
.psearch__clear { flex: none; font-size: 13px; padding-inline-end: 10px; }
.section--first { padding-top: 32px; }
.h2-sm { font-size: 22px; font-weight: 800; margin-bottom: 18px; }

@media (max-width: 600px) {
  .hero__stack { display: none; }
  .stats--4, .stats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands { margin-top: -20px; padding-bottom: 32px; }
  .brands__list li { padding: 5px 12px; font-size: 13px; }
  ul.specs { gap: 4px; }
  ul.specs li { font-size: 10px; padding: 2px 6px; }
  .product-card__desc { display: none; }
  .psearch { margin-bottom: 12px; padding-inline-start: 14px; }
  .psearch input { font-size: 14px; }
  .section--first { padding-top: 16px; }
}
.jump { margin-top: 14px; }
#book, #track { scroll-margin-top: 140px; }
@media (max-width: 600px) { .jump .btn { flex: 1 1 0; justify-content: center; font-size: 13px; padding: 0 10px; } .page-head .muted { font-size: 14px; } }
.stat strong { direction: ltr; unicode-bidi: isolate; }

/* ---------- فلاتر المنتجات ---------- */
.filter-box { margin-bottom: 28px; background: var(--tint); border-radius: 16px; }
.filter-box summary { padding: 12px 16px; font-weight: 700; font-size: 14px; cursor: pointer; }
.filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; padding: 4px 16px 16px; }
.filter-form .field { flex: 0 1 150px; min-width: 110px; margin: 0; }
.filter-form .field label { display: block; font-size: 13px; margin-bottom: 4px; }
.filter-form .field input, .filter-form .field select { width: 100%; height: 40px; box-sizing: border-box; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 10px; font: inherit; font-size: 14px; background: var(--white); }
.filter-form__check { display: flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; }
.filter-form__clear { font-size: 13px; align-self: center; }
@media (max-width: 600px) { .filter-form .field { flex: 1 1 40%; } .filter-box { margin-bottom: 18px; } }

/* ---------- إمكانية الوصول ---------- */
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible, label:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- شبكة منتجات مرتبة: أعمدة ثابتة وبطاقات بنفس الترتيب والارتفاع ---------- */
.products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.product-card { height: 100%; } .product-card__media { background: var(--white); border: 1px solid var(--line); box-sizing: border-box; }
.product-card__tags { position: absolute; top: 10px; inset-inline-start: 10px; inset-inline-end: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.product-card__tags .badge, .product-card__tags .cond { position: static; margin: 0; padding: 3px 10px; font-size: 12px; font-weight: 700; line-height: 1.5; border-radius: 999px; }
.product-card__title { min-height: calc(1.5em * 2); line-height: 1.5; }
.product-card__specs { height: 58px; overflow: hidden; align-content: flex-start; }
.product-card ul.specs li { max-width: 100%; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
.product-card__desc { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.7; height: calc(1.7em * 2); min-height: 0; }
.product-card .price { min-height: 34px; }
@media (max-width: 1099px) { .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .product-card__specs { height: 46px; }
  .product-card__desc { display: none; }
  .product-card__tags { top: 6px; inset-inline-start: 6px; inset-inline-end: 6px; gap: 4px; }
  .product-card__tags .badge, .product-card__tags .cond { padding: 1px 7px; font-size: 10px; }
}

/* ---------- الصفحة الرئيسية: مسافات أوسع وألوان أهدى ---------- */
.section--roomy { padding: 32px 0; }
.section--soft { background: #F7F7F8; }
.features-strip { border-block: 1px solid var(--line); }
.features-strip .features { padding-block: 18px; gap: 12px; }
.features-strip .feature { background: transparent; padding: 6px; }
.hero__stack:has(.hero__shot--1:only-child) .hero__shot--1 { box-shadow: 0 16px 36px rgba(120,0,40,.18); }
.hero__stack { aspect-ratio: 1 / 0.85; }
@media (max-width: 600px) {
  .section--roomy { padding: 36px 0; }
  .features-strip .features { padding-block: 10px; gap: 6px; }
  .product-card ul.specs li:nth-child(n+4) { display: none; }
  /* تمرير أفقي للمنتجات بالرئيسية بدل صفوف طويلة */
  .products-grid--scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
  .products-grid--scroll > .product-card { scroll-snap-align: start; }
}

/* ---------- الشريط الأسود + الهيدر ثابتين مع السكرول على الكمبيوتر كمان ---------- */
@media (min-width: 761px) {
  .topbar { position: sticky; top: 0; z-index: 51; }
  .topbar__inner { height: 40px; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; }
  .topbar__addr { min-width: 0; }
  .topbar__addr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar__phones { flex: none; }
  .topbar .lang-switch { min-height: 0; height: 28px; line-height: 26px; padding: 0 12px; border-width: 1px; }
  .header { top: 40px; }
}
#offers, #featured, #latest, #services, #about, #products, #contact-info { scroll-margin-top: 140px; }

/* ---------- شريط الماركات المتحرك ---------- */
.brands { flex-wrap: nowrap; }
.brands__label { flex: none; }
.brands__marquee { flex: 1; min-width: 0; overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.brands__track { display: flex; width: max-content; animation: brands-scroll 28s linear infinite; }
.brands__marquee:hover .brands__track, .brands__marquee:focus-within .brands__track { animation-play-state: paused; }
.brands__track .brands__list { flex-wrap: nowrap; padding-inline-end: 10px; }
.brands__track .brands__list li { white-space: nowrap; }
@keyframes brands-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .brands__track { animation: none; flex-wrap: wrap; width: auto; }
  .brands__track .brands__list[aria-hidden] { display: none; }
}
@media (max-width: 600px) { .brands { flex-direction: column; align-items: flex-start; gap: 10px; } .brands__marquee { width: 100%; } .brands__track { animation-duration: 20s; } }

/* ---------- شريط الإعلانات المتحرك (سطر واحد) ---------- */
.announce-bar { display: none; }
.ticker { display: flex; align-items: stretch; height: 36px; background: var(--red-ink); color: var(--white); font-size: 14px; overflow: hidden; }
.ticker__badge { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: rgba(0,0,0,.18); font-weight: 700; font-size: 13px; white-space: nowrap; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; direction: ltr; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker-ltr var(--ticker-dur, 24s) linear infinite; }
html[dir="rtl"] .ticker__track { animation-name: ticker-rtl; }
.ticker__group { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
html[dir="rtl"] .ticker__group { direction: rtl; }
html[dir="ltr"] .ticker__group { direction: ltr; }
.ticker__item { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 0 22px; }
.ticker__item + .ticker__item::before, .ticker__group + .ticker__group .ticker__item:first-child::before { content: ""; }
.ticker__item::after { content: "•"; opacity: .55; margin-inline-start: 22px; }
.ticker__item span { opacity: .92; }
.ticker__tag { padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 12px; font-weight: 600; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes ticker-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__group[aria-hidden] { display: none; }
  .ticker__viewport { overflow-x: auto; }
}
@media (max-width: 600px) {
  .ticker { height: 32px; font-size: 13px; }
  .ticker__badge { padding: 0 10px; }
  .ticker__badge-txt { display: none; }
  .ticker__item { padding: 0 16px; }
  .ticker__item::after { margin-inline-start: 16px; }
}

/* ---------- شريط المعاينة (للمدير فقط) ---------- */
.preview-bar { position: fixed; z-index: 90; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; width: max-content; max-width: calc(100vw - 24px); padding: 10px 14px; background: #1F2430; color: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); font-size: 14px; }
.preview-bar span { display: inline-flex; align-items: center; gap: 6px; }
.preview-bar .btn--white { background: #fff; color: #1F2430; border-color: #fff; }
@media (max-width: 760px) { .preview-bar { bottom: calc(76px + env(safe-area-inset-bottom)); } }
