/* ==========================================================
   أقساطي ستور — واجهة المتجر
   الهوية: برتقالي وكهرماني الشعار + الفحمي. الخط: Cairo
   ========================================================== */
:root {
  --brand: #F85E0C; --brand-2: #FF8A1F; --brand-deep: #D94B00; --amber: #FFB21A; --amber-soft: #FFF3DC;
  --ink: #1E2026; --ink-2: #4A4D57; --mute: #8A8D96;
  --bg: #F6F7F9; --card: #FFFFFF; --soft: #F1F2F5; --line: #E7E9EE; --line-2: #D9DCE3;
  --ok: #12936A; --bad: #D93A31; --wa: #17A057; --blue: #3D5AFE;
  --grad: linear-gradient(135deg, #F85E0C 0%, #FF8A1F 100%);
  --r-card: 22px; --r-inner: 16px; --r-ctl: 14px; --r-sheet: 26px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px -6px rgba(16, 24, 40, .08);
  --sh-2: 0 2px 4px rgba(16, 24, 40, .04), 0 18px 40px -16px rgba(16, 24, 40, .22);
  --sh-brand: 0 12px 28px -10px rgba(248, 94, 12, .55);
  --ff: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --hh: 74px; --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font-family: var(--ff); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 15.5px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff); line-height: 1.3; margin: 0; font-weight: 800; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(248, 94, 12, .5); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--amber); color: var(--ink); }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--mute); }
.center { display: flex; justify-content: center; margin-top: 28px; }
[data-lucide], .lucide { width: 20px; height: 20px; stroke-width: 2; flex: none; }
.num { font-family: var(--ff); font-weight: 800; font-feature-settings: "tnum"; direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- مقدمة الشعار (موشن جرافيك) ---------- */
.intro { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; overflow: hidden; }
.intro-on .intro { display: grid; animation: introSafety .5s 8s forwards; }
.intro__panel { position: absolute; inset: 0; will-change: transform; }
.intro__panel--1 { z-index: 3; background: radial-gradient(60vmax 60vmax at 50% 42%, #FFF7EE, #FFFFFF 60%); }
.intro__panel--2 { z-index: 2; background: var(--brand); }
.intro__panel--3 { z-index: 1; background: var(--amber); }
.intro__stage { position: relative; z-index: 4; display: grid; justify-items: center; gap: 14px; }
.intro__mark { position: relative; width: min(260px, 62vw); aspect-ratio: 544 / 464; }
.intro__bags, .intro__word { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__bags { clip-path: inset(0 25% 52.5% 27%); transform-origin: 51% 47%; opacity: 0; animation: bagsDrop .75s .42s cubic-bezier(.3, 1.2, .5, 1) forwards; }
.intro__word { clip-path: polygon(100% 47.5%, 100% 47.5%, 100% 0, 100% 0, 100% 100%, 100% 100%); filter: blur(6px); transform: translateX(14px); animation: wordIn .7s 1s cubic-bezier(.65, 0, .35, 1) forwards; }
.intro__dot, .intro__ring, .intro__spark { position: absolute; left: 51%; top: 24%; }
.intro__dot { width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: var(--grad); box-shadow: 0 14px 30px -8px rgba(248, 94, 12, .6); transform: scale(0); animation: dotPop .62s .05s cubic-bezier(.3, 1.5, .5, 1) forwards; }
.intro__ring { width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; border: 3px solid var(--brand); opacity: 0; animation: ringOut .9s .5s cubic-bezier(.2, .7, .3, 1) forwards; }
.intro__ring--2 { border-color: var(--amber); border-width: 2px; animation-delay: .62s; }
.intro__spark { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--brand); opacity: 0; transform: rotate(var(--a)) translateY(0) scale(1); animation: spark .7s .95s cubic-bezier(.15, .7, .3, 1) forwards; }
.intro__spark:nth-of-type(even) { background: var(--amber); width: 7px; height: 7px; }
.intro__tag { font: 700 clamp(16px, 4.4vw, 19px) var(--ff); color: var(--ink-2); opacity: 0; transform: translateY(10px); animation: tagIn .55s 1.5s var(--ease) forwards; }
@keyframes dotPop { 0% { transform: scale(0); } 55% { transform: scale(1.15); } 75% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes ringOut { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(4.2); } }
@keyframes bagsDrop { 0% { opacity: 0; transform: translateY(-90px) rotate(-16deg) scale(.55); } 45% { opacity: 1; transform: translateY(8px) rotate(4deg) scale(1.06, .92); } 70% { transform: translateY(-5px) rotate(-1.5deg) scale(.98, 1.03); } 100% { opacity: 1; transform: none; } }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-30px) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-118px) scale(.2); } }
@keyframes wordIn { to { clip-path: polygon(0 47.5%, 75% 47.5%, 75% 0, 100% 0, 100% 100%, 0 100%); filter: blur(0); transform: none; } }
@keyframes tagIn { to { opacity: 1; transform: none; } }
.intro--out .intro__stage { animation: stageOut .4s cubic-bezier(.7, 0, .84, 0) forwards; }
.intro--out .intro__panel { animation: panelUp .72s cubic-bezier(.76, 0, .24, 1) forwards; }
.intro--out .intro__panel--1 { animation-delay: .2s; }
.intro--out .intro__panel--2 { animation-delay: .3s; }
.intro--out .intro__panel--3 { animation-delay: .4s; }
@keyframes stageOut { to { opacity: 0; transform: scale(.88) translateY(-24px); filter: blur(4px); } }
@keyframes panelUp { to { transform: translateY(-100%); } }
@keyframes introSafety { to { opacity: 0; visibility: hidden; } }

/* ---------- الأزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: var(--r-ctl); font: 700 16px var(--ff); transition: transform .2s var(--ease), box-shadow .25s, background .25s; white-space: nowrap; user-select: none; }
.btn:active { transform: scale(.98); }
.btn > svg { flex: none; }
.btn--primary { color: #fff; background: var(--grad); box-shadow: var(--sh-brand); font-weight: 800; }
.btn--primary:hover { box-shadow: 0 16px 34px -10px rgba(248, 94, 12, .7); transform: translateY(-1px); }
.btn--glass { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--dark { color: #fff; background: var(--ink); }
.btn--soft { background: var(--soft); color: var(--ink); }
.btn--soft:hover { background: var(--line); }
.btn--light { background: #fff; color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.btn--block { width: 100%; }
.btn--sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .spin { width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); transition: background .2s; }
.icon-btn:hover { background: var(--line); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-deep); font-weight: 700; font-size: 14.5px; }
.link .lucide, .link [data-lucide] { width: 16px; height: 16px; transition: transform .25s; }
.link:hover .lucide { transform: translateX(-4px); }

/* ---------- شريط الإعلانات ---------- */
.topbar { background: var(--ink); color: #FFD27A; font-size: 13px; font-weight: 600; height: 36px; overflow: hidden; }
.marquee { display: flex; height: 100%; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 44px; white-space: nowrap; animation: marq 38s linear infinite; padding-inline-start: 44px; }
.marquee__track span { display: inline-flex; align-items: center; gap: 44px; }
.marquee__track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
@keyframes marq { to { transform: translateX(50%); } }

/* ---------- الهيدر ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(16, 24, 40, .35); }
.header__in { display: flex; align-items: center; gap: 18px; height: var(--hh); }
.brand { flex: none; }
.brand img { height: 56px; width: auto; }
.searchbar { flex: 1; min-width: 0; max-width: 560px; margin-inline: auto; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 14px; background: var(--soft); border: 1.5px solid transparent; color: var(--mute); transition: border-color .2s, background .2s, box-shadow .2s; }
.searchbar:hover { background: #fff; border-color: var(--line-2); }
.searchbar:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(248, 94, 12, .12); }
.searchbar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 600 14.5px var(--ff); color: var(--ink); }
.searchbar input::placeholder { color: var(--mute); font-weight: 500; }
.searchbar input::-webkit-search-cancel-button { display: none; }
.searchbar__clear { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-2); }
.searchbar__clear .lucide, .searchbar__clear [data-lucide] { width: 15px; height: 15px; }
.sdrop { position: fixed; z-index: 70; overflow-y: auto; overscroll-behavior: contain; padding: 8px; border-radius: 20px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 24px 60px -18px rgba(16, 24, 40, .35), 0 0 0 1px rgba(16, 24, 40, .05); opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease); }
.sdrop.on { opacity: 1; transform: none; }
.sd-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 6px 8px; }
.sd-cats .chip { height: 34px; font-size: 13px; background: rgba(255, 255, 255, .8); }
.sd-empty { padding: 18px 12px; text-align: center; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.header__actions { display: flex; align-items: center; gap: 6px; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; font-size: 14.5px; font-weight: 700; position: relative; transition: background .2s; }
.hbtn:hover { background: var(--soft); }
.hbtn.icon { width: 46px; padding: 0; justify-content: center; }
.count { position: absolute; top: 4px; left: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font: 800 11px/20px var(--ff); text-align: center; box-shadow: 0 0 0 2px #fff; }

/* ---------- الواجهة الرئيسية ---------- */
.hero { padding: 20px 0 8px; }
.hero__panel { --R: 214px; --m: 68px; --d: 330px; position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 24px; min-height: 580px; padding: 48px 56px; border-radius: 32px; color: #fff;
  background: radial-gradient(38% 62% at 26% 52%, rgba(255, 214, 120, .55), transparent 72%), linear-gradient(135deg, #FF8420 0%, #F85E0C 48%, #DE4700 100%); }
/* حلقات ضوء خفيفة حول المنصة */
.hero__panel::before { content: ""; position: absolute; z-index: -1; left: 26%; top: 52%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 69px, rgba(255, 255, 255, .09) 69px 70px); mask-image: radial-gradient(closest-side, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 70%); }
.hero__copy { position: relative; z-index: 2; }
.hero__kicker { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 10px; background: rgba(255, 255, 255, .18); font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.hero__title { font-size: clamp(36px, 4.6vw, 62px); font-weight: 900; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--ink); }
.hero__sub { margin-top: 16px; font-size: clamp(15.5px, 1.4vw, 18px); font-weight: 500; color: rgba(255, 255, 255, .9); max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn--white { background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 16px 32px -14px rgba(110, 30, 0, .6); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(110, 30, 0, .7); }
.hero__show { position: relative; display: grid; justify-items: center; gap: 14px; }

/* منصة العرض */
.spot { position: relative; width: calc(var(--R) * 2 + var(--m)); aspect-ratio: 1; }
.spot__ghost { position: absolute; z-index: 0; inset: -14% -30% auto; text-align: center; pointer-events: none; }
.spot__ghost span { display: inline-block; font: 900 clamp(110px, 13vw, 200px)/1 var(--ff); letter-spacing: -.03em; color: rgba(255, 255, 255, .16); direction: ltr; font-feature-settings: "tnum"; }
.spot__orbit { position: absolute; z-index: 1; inset: 0; animation: orbit 70s linear infinite; }
.spot__ring { position: absolute; inset: calc(var(--m) / 2); border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .55); }
.spot__moon { position: absolute; left: 50%; top: 50%; width: var(--m); height: var(--m); margin: calc(var(--m) / -2) 0 0 calc(var(--m) / -2); transform: rotate(calc(var(--k) * 360deg / var(--n))) translateY(calc(var(--R) * -1)) rotate(calc(var(--k) * -360deg / var(--n))); }
.spot__moon > span { display: block; width: 100%; height: 100%; animation: orbit 70s linear infinite reverse; }
.spot__moon > span > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; padding: 15.5%; overflow: hidden; box-shadow: 0 10px 22px -10px rgba(90, 20, 0, .55); transition: box-shadow .3s, scale .35s var(--ease); }
.spot__moon img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.spot__moon svg { width: 100%; height: 100%; }
.spot__moon:hover > span > span { scale: 1.08; }
.spot__moon.on > span > span { box-shadow: 0 0 0 3px var(--ink), 0 10px 22px -10px rgba(90, 20, 0, .55); scale: 1.12; }
@keyframes orbit { to { transform: rotate(360deg); } }
.spot__stage { position: absolute; z-index: 2; left: 50%; top: 50%; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); cursor: pointer; }
.spot__disc { position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: 0 50px 80px -34px rgba(110, 30, 0, .75), inset 0 -8px 22px rgba(248, 94, 12, .1); }
/* الصورة داخل المربع المرسوم بالدائرة: لا تطلع حوافها ولا ينقص منها شي */
.spot__img { position: absolute; inset: 17%; display: grid; place-items: center; animation: float 6s ease-in-out infinite; }
.spot__img > * { width: 100%; height: 100%; }
.spot__img img { object-fit: contain; mix-blend-mode: multiply; }
@keyframes float { 50% { transform: translateY(-6px); } }
.spot__tag { position: absolute; z-index: 3; left: -2%; bottom: 7%; display: grid; gap: 2px; max-width: 250px; padding: 12px 16px 12px; border-radius: 18px; background: #fff; color: var(--ink); text-align: right; box-shadow: 0 24px 44px -20px rgba(90, 20, 0, .6); }
.spot__tag { grid-template-columns: minmax(0, 1fr); }
.spot__tag b { font-size: 14px; font-weight: 700; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.spot__tag.long b { font-size: 12.5px; }
.spot__tag .pt { flex-wrap: nowrap; }
.spot__tag .pt__v { font-size: 21px; }
.spot__go { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13px; font-weight: 800; color: var(--brand-deep); }
.spot__go .lucide, .spot__go [data-lucide] { width: 15px; height: 15px; transition: transform .25s; }
.spot__tag:hover .spot__go .lucide { transform: translateX(-4px); }
.spot__dots { display: flex; gap: 6px; }
.spot__dots button { position: relative; width: 26px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .32); overflow: hidden; transition: width .3s var(--ease); }
.spot__dots button.on { width: 44px; }
.spot__dots b { position: absolute; inset: 0; background: #fff; border-radius: inherit; transform: scaleX(0); transform-origin: right; transition: transform .1s linear; }
.spot--empty .spot__img { inset: 16%; }
.spot--empty .spot__img img { mix-blend-mode: normal; }

/* ---------- الأقسام والعناوين ---------- */
.section { padding: 52px 0; }
.section--tight { padding: 22px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head--center { justify-content: center; text-align: center; }
.sec-title { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; }
.sec-head .muted { font-size: 14px; font-weight: 600; }

/* ---------- البنرات ---------- */
.swiper { position: relative; overflow: hidden; }
.swiper-wrapper { display: flex; position: relative; width: 100%; height: 100%; z-index: 1; transition-property: transform; box-sizing: content-box; }
.swiper-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; transition-property: transform; }
.no-swiper .swiper { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.no-swiper .swiper-slide { scroll-snap-align: start; }
.promo { border-radius: 26px; }
.banner { position: relative; height: 250px; border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; padding: 0 48px; color: #fff; isolation: isolate; }
.banner--orange { background: linear-gradient(120deg, #E24E00, #F85E0C 45%, #FF9A2E); }
.banner--amber { background: linear-gradient(120deg, #F29A00, #FFB21A 55%, #FFD36B); color: var(--ink); }
.banner--dark { background: radial-gradient(120% 140% at 0% 100%, #3a3c45, #1E2026 60%); }
.banner__deco { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 18% 50%, rgba(255, 255, 255, .22), transparent 38%); }
.banner h3 { font-size: clamp(22px, 3vw, 36px); font-weight: 900; }
.banner p { margin: 6px 0 18px; opacity: .92; font-size: 15.5px; max-width: 26em; }
.banner .btn { height: 44px; }
.banner__art { height: 220px; justify-self: center; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .25)); }
.banner__art svg { height: 100%; width: auto; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner.banner--image { display: block; height: auto; padding: 0; background: var(--soft); }
.banner--image .banner__img { position: static; display: block; width: 100%; height: auto; z-index: auto; }
.swiper-pagination { position: absolute; bottom: 14px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; z-index: 5; }
.swiper-pagination-bullet { width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .55); transition: width .35s var(--ease), background .3s; cursor: pointer; display: inline-block; }
.swiper-pagination-bullet-active { width: 26px; background: #fff; }

/* ---------- الأقسام ---------- */
.cats { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); gap: 14px 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: grid; justify-items: center; gap: 8px; padding: 6px 4px; border-radius: 18px; text-align: center; transition: background .25s; }
.cat__art { width: 82px; height: 82px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); display: grid; place-items: center; padding: 14px; transition: transform .35s var(--ease), box-shadow .35s; }
.cat__art svg, .cat__art img { width: 100%; height: 100%; object-fit: contain; }
.cat__txt { display: grid; line-height: 1.3; }
.cat__txt span { font-weight: 700; font-size: 14px; }
.cat:hover .cat__art { transform: translateY(-4px); box-shadow: var(--sh-2); }
.cat.active .cat__art { box-shadow: 0 0 0 3px var(--brand), var(--sh-2); }
.cat.active .cat__txt span { color: var(--brand-deep); }

/* ---------- المزايا ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat { display: flex; gap: 14px; align-items: center; padding: 18px; background: #fff; border-radius: 20px; box-shadow: var(--sh-1); }
.feat__ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: #FFF0E6; color: var(--brand-deep); flex: none; }
.feat h4 { font-size: 15px; font-weight: 800; }
.feat p { font-size: 13px; color: var(--mute); line-height: 1.5; }

/* ---------- بطاقة المنتج ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { min-width: 0; position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-card); padding: 8px; box-shadow: var(--sh-1); cursor: pointer; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.card:hover { box-shadow: var(--sh-2); transform: translateY(-4px); }
.card__media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-inner); background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; }
.card__media svg { width: 74%; height: 74%; transition: transform .5s var(--ease); }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 7%; clip-path: inset(7% round 12px); transition: transform .5s var(--ease); }
.card:hover .card__media img, .card:hover .card__media svg { transform: scale(1.06); }
.badge { position: absolute; top: 10px; right: 10px; z-index: 2; height: 26px; padding: 0 10px; border-radius: 9px; font: 800 12px/26px var(--ff); color: #fff; background: var(--ink); }
.badge--deal { background: var(--brand); }
.stock { position: absolute; bottom: 10px; right: 10px; z-index: 2; height: 24px; padding: 0 10px; border-radius: 8px; font: 700 11.5px/24px var(--ff); background: rgba(255, 255, 255, .92); }
.stock--preorder { color: var(--blue); }
.stock--out { color: var(--bad); }
.fav { position: absolute; top: 8px; left: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 8px rgba(16, 24, 40, .12); transition: transform .25s var(--ease), color .2s; }
.fav .lucide, .fav [data-lucide] { width: 17px; height: 17px; }
.fav:hover { transform: scale(1.08); }
.fav.on { color: var(--brand); }
.fav.on .lucide { fill: var(--brand); }
.card__body { padding: 12px 8px 6px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card__brand { font-size: 12.5px; font-weight: 600; color: var(--mute); }
.card__name { font-size: 15px; font-weight: 700; line-height: 1.5; min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin: 8px 0 10px; }
.pt { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 5px; line-height: 1.3; }
.pt__v { font-size: 22px; font-weight: 900; color: var(--brand-deep); font-feature-settings: "tnum"; direction: ltr; unicode-bidi: isolate; }
.pt__c { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pt__x { font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.pt--lg .pt__v { font-size: 34px; }
.pt--lg .pt__c { font-size: 15px; }
.pt--lg .pt__x { font-size: 18px; }
.price__soon { font-size: 13px; font-weight: 700; color: var(--mute); }
.card__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.months__lbl { font-size: 12px; font-weight: 600; color: var(--mute); }
.months { display: flex; gap: 4px; flex-wrap: wrap; }
.months span { padding: 0 8px; border-radius: 7px; background: var(--amber-soft); color: #8A5300; font: 700 11.5px/22px var(--ff); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; padding: 6px 2px 18px; }
.rail::-webkit-scrollbar { display: none; }
.csec + .csec { padding-top: 6px; }
.rail--cat { grid-auto-columns: calc((100% - 72px) / 4.4); }
.more-pill { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--brand); color: var(--brand-deep); font: 700 13px var(--ff); background: #fff; transition: background .2s, color .2s; }
.more-pill:hover { background: var(--brand); color: #fff; }

/* ---------- العروض ---------- */
.deals { position: relative; overflow: hidden; color: #fff; width: min(1280px, 100% - 16px); margin: 26px auto; border-radius: 32px; background: radial-gradient(50% 90% at 100% 0%, rgba(248, 94, 12, .5), transparent 70%), linear-gradient(140deg, #26282F, #1A1C21); }
.deals__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.deals__title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; }
.deals__note { color: #C9CBD3; margin-top: 2px; }
.countdown { display: flex; gap: 8px; direction: ltr; }
.cd { display: grid; justify-items: center; min-width: 68px; padding: 8px 6px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.cd b { font: 900 30px/1.1 var(--ff); color: #FFC24A; font-feature-settings: "tnum"; }
.cd small { font-size: 11.5px; color: #C9CBD3; font-weight: 600; }
.deals .card { box-shadow: none; color: var(--ink); }

/* ---------- شريط الأدوات ---------- */
.toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar__end { display: flex; align-items: center; gap: 12px; }
.sec-head__t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 13px; background: #fff; box-shadow: var(--sh-1); font: 700 14px var(--ff); }
.fbtn .lucide, .fbtn [data-lucide] { width: 18px; height: 18px; color: var(--brand); }
.fbtn[aria-expanded="true"] { background: var(--ink); color: #fff; }
.fbtn__n { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font: 800 11px/20px var(--ff); text-align: center; }
.fpanel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease), margin .4s var(--ease); }
.fpanel.on { grid-template-rows: 1fr; margin-bottom: 18px; }
.fpanel__in { overflow: hidden; display: grid; gap: 14px; }
.fpanel.on .fpanel__in { padding: 16px; border-radius: 20px; background: #fff; box-shadow: var(--sh-1); }
.fpanel__grp { display: grid; gap: 8px; }
.fpanel__grp > b { font-size: 13.5px; font-weight: 800; }
.fpanel__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chips--wrap .chip { box-shadow: none; background: var(--soft); height: 36px; font-size: 13px; }
.chips--wrap .chip.on { background: var(--ink); }
.more-load { display: flex; justify-content: center; gap: 6px; padding: 26px 0 6px; }
.more-load i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); animation: dotB 1s ease-in-out infinite; }
.more-load i:nth-child(2) { animation-delay: .15s; } .more-load i:nth-child(3) { animation-delay: .3s; }
@keyframes dotB { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-6px); } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 40px; padding: 0 16px; border-radius: 12px; background: #fff; box-shadow: var(--sh-1); font: 700 14px var(--ff); white-space: nowrap; transition: background .2s, color .2s; }
.chip.on { background: var(--ink); color: #fff; }
.select { position: relative; }
.select select { appearance: none; height: 40px; padding: 0 14px 0 38px; border-radius: 12px; border: 0; box-shadow: var(--sh-1); background: #fff; font: 600 13.5px var(--ff); cursor: pointer; }
.select .lucide, .select [data-lucide] { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 600 13.5px var(--ff); white-space: nowrap; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 40px; height: 24px; border-radius: 20px; background: var(--line-2); position: relative; transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(-16px); }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--mute); }
.empty .lucide { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--line-2); }

/* ---------- تيليجرام ---------- */
.tg { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 34px; border-radius: 28px; background: linear-gradient(120deg, #1F8BC6 0%, #2AABEE 60%, #64C8F5 100%); color: #fff; position: relative; overflow: hidden; }
.tg__copy { display: flex; gap: 18px; align-items: center; }
.tg__icon { width: 62px; height: 62px; border-radius: 20px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; }
.tg h3 { font-size: 21px; font-weight: 800; }
.tg p { opacity: .92; }
.tg__actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- تتبّع الطلب (تحت بطاقة التيليجرام) ---------- */
.trackcard { width: 100%; display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px 20px; border-radius: 22px; background: linear-gradient(120deg, #FFF3E6, #FFF8EE); border: 1.5px solid #FFDDB8; text-align: start; color: var(--ink); transition: border-color .2s, box-shadow .25s; }
.trackcard:hover { border-color: var(--brand-2); box-shadow: var(--sh-1); }
.trackcard__ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--sh-brand); flex: none; }
.trackcard__t { flex: 1; display: grid; line-height: 1.4; }
.trackcard__t b { font-size: 17px; font-weight: 800; }
.trackcard__t small { font-size: 13px; color: var(--ink-2); }
.trackcard > .lucide, .trackcard > [data-lucide] { color: var(--brand-deep); }

/* ---------- الفوتر ---------- */
.footer { padding: 0 0 calc(24px + var(--safe-b)); margin-top: 26px; color: var(--mute); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer__brand img { height: 104px; width: auto; margin-bottom: 14px; }
.footer__brand p { font-size: 14px; color: #B5B7BE; max-width: 22em; }
.footer h4 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer a:hover { color: #FFC24A; }
.footer li { display: flex; gap: 8px; align-items: center; }
.footer li .lucide { width: 16px; height: 16px; color: var(--amber); }
.footer__bottom { padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: center; text-align: center; font-size: 13px; color: var(--mute); }
.footer .dash { color: var(--brand); }

/* ---------- عناصر عائمة ---------- */
.fab-wa { position: fixed; z-index: 40; left: 20px; bottom: calc(24px + var(--safe-b)); width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: #25D366; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7); transition: transform .3s var(--ease); }
.fab-wa:hover { transform: translateY(-3px); }
/* نبضة خفيفة حول زر الواتساب + هزّة صغيرة كل كم ثانية */
.fab-wa::before, .fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; opacity: 0; animation: waPulse 2.8s ease-out infinite; pointer-events: none; }
.fab-wa::after { animation-delay: 1.4s; }
.fab-wa svg { animation: waNudge 5s ease-in-out 2s infinite; transform-origin: 50% 60%; }
@keyframes waPulse { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes waNudge { 0%, 84%, 100% { transform: none; } 87% { transform: rotate(-14deg) scale(1.08); } 90% { transform: rotate(12deg) scale(1.08); } 93% { transform: rotate(-8deg); } 96% { transform: rotate(4deg); } }
.bnav { display: none; }

/* ---------- صفحة القسم ---------- */
.cpage { position: fixed; inset: 0; z-index: 78; display: flex; flex-direction: column; background: var(--bg); transform: translateX(-100%); transition: transform .42s cubic-bezier(.3, .8, .25, 1); }
.cpage.on { transform: none; }
.cpage__head { flex: none; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.cpage__bar { display: flex; align-items: center; gap: 12px; height: 64px; }
.cpage__t { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.cpage__t h2 { font-size: 21px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpage__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px 0 calc(40px + var(--safe-b)); }

/* ---------- الطبقات ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(20, 22, 27, .5); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.scrim.on { opacity: 1; visibility: visible; }
.sheet { position: fixed; z-index: 90; left: 50%; top: 50%; width: min(980px, 100% - 40px); max-height: min(88vh, 860px); background: #fff; border-radius: var(--r-sheet); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .45); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translate(-50%, -46%) scale(.97); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s; }
.sheet.on { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.sheet--checkout, .sheet--track { width: min(560px, 100% - 40px); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.sheet__close { position: absolute; top: 14px; left: 14px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--sh-1); }
.sheet__bar { position: relative; z-index: 3; display: flex; gap: 10px; padding: 14px 20px calc(14px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); }
.sheet__bar .btn { flex: 1; min-width: 0; padding: 0 14px; }
.sheet__bar .btn--ghost { border-color: var(--line-2); }
.sheet__bar .btn--ghost.in { border-color: var(--ok); color: var(--ok); background: #F0FAF6; }
.sheet__bar .icon-btn { width: 52px; height: 52px; border-radius: 16px; }
.sheet__bar .icon-btn.on { color: var(--brand); }
.sheet__bar .bar-cart { position: relative; }
.sheet__bar .bar-cart .count { top: -4px; left: -4px; }
.sheet__bar .icon-btn.on .lucide { fill: var(--brand); }
.drawer { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(440px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(-104%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s; }
.drawer.on { transform: none; visibility: visible; box-shadow: 30px 0 80px -20px rgba(0, 0, 0, .3); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer__head h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 20px calc(16px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); }

/* ---------- صفحة المنتج ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 26px; }
.pd__gallery { position: sticky; top: 0; align-self: start; }
.pd__main { aspect-ratio: 1 / 1; border-radius: 22px; background: var(--soft); display: grid; place-items: center; overflow: hidden; position: relative; }
.pd__main .swiper { width: 100%; height: 100%; }
.pd__main .swiper-slide { display: grid; place-items: center; }
.pd__main svg { width: 76%; height: 76%; }
.pd__main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; clip-path: inset(6% round 18px); mix-blend-mode: multiply; }
.pd__main .swiper-pagination-bullet { background: rgba(30, 32, 38, .25); }
.pd__main .swiper-pagination-bullet-active { background: var(--brand); }
.pd__info { display: flex; flex-direction: column; gap: 16px; }
.pd__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--mute); }
.pill { height: 26px; padding: 0 10px; border-radius: 8px; font: 700 12px/26px var(--ff); background: #E7F6EF; color: var(--ok); }
.pill--preorder { background: #ECEFFF; color: var(--blue); }
.pill--out { background: #FDECEB; color: var(--bad); }
.pd h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 900; }
.pd__from { display: grid; gap: 2px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #FFF4EC, #FFF9F0); }
.pd__from small { color: var(--mute); font-weight: 600; font-size: 13px; }
.share-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border-radius: 14px; background: var(--soft); color: var(--ink); font: 700 14.5px var(--ff); transition: background .2s; }
.share-btn:hover { background: var(--line); }
.share-btn .lucide { color: var(--brand); }
.share-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: -6px; }
.share-menu > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 72px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font: 700 13px var(--ff); }
.share-menu .sm-wa { color: var(--wa); }
.share-menu .sm-tg { color: #229ED9; }
.lbl { font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lbl small { font-weight: 600; color: var(--mute); font-size: 12.5px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.plan { position: relative; text-align: start; padding: 14px 16px; border-radius: 18px; background: #fff; border: 2px solid var(--line); transition: border-color .2s, box-shadow .2s, background .2s; }
.plan:hover { border-color: var(--line-2); }
.plan.on { border-color: var(--brand); background: #FFF8F3; box-shadow: 0 0 0 4px rgba(248, 94, 12, .1); }
.plan.on::after { content: ""; position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.vars { display: flex; flex-wrap: wrap; gap: 8px; }
.var { min-height: 44px; padding: 6px 16px; border-radius: 13px; border: 2px solid var(--line); background: #fff; font: 800 14px var(--ff); direction: ltr; unicode-bidi: plaintext; transition: border-color .2s, background .2s, box-shadow .2s; }
.var:hover { border-color: var(--line-2); }
.var.on { border-color: var(--brand); background: #FFF8F3; color: var(--brand-deep); box-shadow: 0 0 0 4px rgba(248, 94, 12, .1); }
.plan[hidden] { display: none; }
.plan__v { line-height: 1.3; color: var(--ink-2); }
.plan__v b { font-size: 21px; font-weight: 900; color: var(--brand-deep); font-feature-settings: "tnum"; }
.plan__v small { font-size: 12.5px; font-weight: 700; }
.plan__m { font-size: 15px; font-weight: 800; }
.plan__d { font-size: 12px; font-weight: 600; color: var(--mute); margin-top: 2px; }
.ask { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--ink-2); transition: border-color .2s, background .2s; }
.ask:hover { border-color: var(--line-2); background: var(--soft); }
.ask > span:nth-child(2) { flex: 1; }
.ask b { color: var(--ink); font-weight: 800; }
.ask__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; flex: none; }
.ask__ic svg { width: 20px; height: 20px; }
.ask > .lucide, .ask > [data-lucide] { width: 18px; height: 18px; color: var(--mute); }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.color { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: 600 13px var(--ff); }
.color i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.color.on { border-color: var(--ink); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.specs div { background: var(--soft); border-radius: 14px; padding: 10px 14px; }
.specs small { display: block; color: var(--mute); font-size: 12px; font-weight: 600; }
.specs b { font-size: 14px; font-weight: 700; }
.pd__desc { color: var(--ink-2); white-space: pre-line; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #FFF6E5; color: #7A5200; font-size: 13.5px; font-weight: 600; }
.note .lucide { color: var(--amber); width: 18px; height: 18px; margin-top: 2px; }
.related { padding: 0 26px 26px; }
.related h4 { margin-bottom: 14px; font-size: 18px; }
.related .rail { grid-auto-columns: 210px; }
.related .card { box-shadow: none; border: 1px solid var(--line); }

/* ---------- السلة ---------- */
.ci { display: grid; grid-template-columns: 78px 1fr auto; gap: 12px; padding: 12px; background: #fff; border-radius: 18px; box-shadow: var(--sh-1); margin-bottom: 10px; }
.ci__img { width: 78px; height: 78px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.ci__img svg { width: 80%; height: 80%; }
.ci__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ci h5 { margin: 0; font: 700 14px/1.45 var(--ff); }
.ci p { font-size: 12.5px; color: var(--mute); }
.ci .pl { font: 800 13.5px var(--ff); color: var(--brand-deep); }
.ci__side { display: flex; flex-direction: column; justify-content: space-between; align-items: end; }
.qty { display: inline-flex; align-items: center; border-radius: 10px; background: var(--soft); height: 32px; }
.qty button { width: 30px; height: 100%; display: grid; place-items: center; }
.qty button .lucide { width: 14px; height: 14px; }
.qty span { min-width: 22px; text-align: center; font: 800 13px var(--ff); }
.rm { color: var(--mute); }
.rm:hover { color: var(--bad); }
.rm .lucide { width: 18px; height: 18px; }
.sum { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; }
.sum div { display: flex; justify-content: space-between; }
.sum b { font-weight: 800; }
.cart-empty { text-align: center; padding: 60px 10px; }
.cart-empty .bigbag { width: 110px; height: 110px; margin: 0 auto 18px; }

/* ---------- النماذج ---------- */
.ck { padding: 26px 26px 30px; }
.ck h3 { font-size: 22px; font-weight: 900; margin-bottom: 2px; }
.steps-ind { display: flex; gap: 6px; margin: 16px 0 20px; }
.steps-ind i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.steps-ind i.on { background: var(--grad); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font: 700 13.5px var(--ff); }
.field > span em { color: var(--brand); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field textarea { height: 86px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(248, 94, 12, .12); }
.field.err input, .field.err select { border-color: var(--bad); }
.field .hint { font-size: 12px; color: var(--bad); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { height: 42px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font: 600 13.5px var(--ff); }
.opt.on { border-color: var(--brand); background: #FFF3EA; color: var(--brand-deep); }
.check { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.review { background: var(--soft); border-radius: 18px; padding: 6px 16px; margin-bottom: 14px; }
.review .ri { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 14px; }
.review .ri + .ri { border-top: 1px dashed var(--line-2); }
.review .ri b { font-weight: 700; }
.review .ri > span:not([style]) { color: var(--brand-deep); font: 800 13px var(--ff); white-space: nowrap; }
.done { text-align: center; padding: 34px 26px 30px; }
.done__check { width: 96px; height: 96px; margin: 0 auto 18px; }
.done__check circle { fill: none; stroke: var(--ok); stroke-width: 5; stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw .8s .1s var(--ease) forwards; }
.done__check path { fill: none; stroke: var(--ok); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .5s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { font-size: 23px; font-weight: 900; }
.order-no { display: inline-flex; align-items: center; gap: 10px; margin: 16px auto; padding: 8px 8px 8px 18px; border-radius: 16px; background: var(--soft); font: 900 24px var(--ff); direction: ltr; }
.order-no button { height: 36px; padding: 0 14px; border-radius: 10px; background: var(--ink); color: #fff; font: 700 13px var(--ff); }
.done .btns { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- التتبع ---------- */
.track { padding: 30px 26px; }
.track__icon { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--sh-brand); margin-bottom: 14px; }
.track__icon .lucide { width: 28px; height: 28px; }
.track h3 { font-size: 22px; font-weight: 900; }
.track .form { margin-top: 18px; }
.tl { margin-top: 22px; background: var(--soft); border-radius: 20px; padding: 18px; }
.tl__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 800; }
.tl ol { list-style: none; padding: 0; margin: 0; }
.tl li { position: relative; padding: 0 30px 18px 0; color: var(--mute); font-size: 14px; }
.tl li::before { content: ""; position: absolute; right: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); }
.tl li::after { content: ""; position: absolute; right: 11px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl li.done { color: var(--ink); }
.tl li.done::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(18, 147, 106, .15); }
.tl li.cur::before { background: var(--brand); box-shadow: 0 0 0 5px rgba(248, 94, 12, .2); }
.tl li b { font-weight: 800; display: block; }
.tl li small { font-size: 12px; color: var(--mute); }

/* ---------- نتائج البحث ---------- */
.sr { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; transition: background .15s; cursor: pointer; }
.sr:hover, .sr.hl { background: rgba(255, 255, 255, .9); }
.sr .ci__img { width: 52px; height: 52px; border-radius: 12px; background: rgba(241, 242, 245, .9); }
.sr__t b { font-weight: 700; font-size: 14.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr__t small { color: var(--mute); font-size: 12.5px; }
.sr .from .pt { flex-wrap: nowrap; }
.sr .from .pt__v { font-size: 15px; }
.sr .from .pt__c, .sr .from .pt__x { font-size: 12px; }
/* أسماء الأجهزة اللاتينية: الاتجاه حسب النص حتى ينقطع الاسم من نهايته */
.card__name, .sr__t b, .ci h5 { unicode-bidi: plaintext; text-align: right; }
.sr mark { background: #FFE2B8; color: inherit; border-radius: 4px; padding: 0 1px; }

/* ---------- التنبيهات ---------- */
.toasts { position: fixed; z-index: 120; top: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, 100% - 24px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--sh-2); font: 600 14px var(--ff); pointer-events: auto; animation: tin .45s var(--ease); }
.toast .lucide { color: var(--amber); }
.toast.ok .lucide { color: #4FE0A8; }
.toast.bad { background: #8F1D19; }
.toast.out { animation: tout .35s forwards; }
@keyframes tin { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes tout { to { opacity: 0; transform: translateY(-10px); } }
.fly { position: fixed; z-index: 130; width: 70px; height: 70px; border-radius: 18px; background: #fff; display: grid; place-items: center; pointer-events: none; box-shadow: var(--sh-2); }
.fly svg, .fly img { width: 80%; height: 80%; object-fit: contain; }

/* ---------- التحميل ---------- */
.sk { background: linear-gradient(90deg, #E9EBEF 25%, #F3F4F6 37%, #E9EBEF 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: var(--r-card); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.card.sk { height: 380px; box-shadow: none; }

/* ==========================================================
   الاستجابة
   ========================================================== */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 36px) / 3); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero__panel { padding: 44px 36px; --R: 180px; --m: 58px; --d: 280px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --hh: 64px; }
  .hide-sm { display: none !important; }
  .brand img { height: 46px; }
  .header__in { gap: 10px; }
  .searchbar { height: 44px; padding: 0 12px; }
  .searchbar input { font-size: 16px; }
  .sr { grid-template-columns: 48px minmax(0, 1fr); row-gap: 0; }
  .sr .ci__img { width: 48px; height: 48px; grid-row: span 2; }
  .sr__t small { display: none; }
  .sr .from { grid-column: 2; }
  .sheet__bar { gap: 8px; padding-inline: 14px; }
  .sheet__bar .btn { font-size: 14.5px; padding: 0 6px; }
  .sheet__bar .icon-btn { width: 46px; height: 52px; border-radius: 15px; flex: none; }
  .sheet__bar .btn--ghost .lucide, .sheet__bar .btn--ghost [data-lucide] { display: none; }
  .header__actions .hbtn[data-open="fav"] { display: none; }
  .hero { padding: 12px 0 4px; }
  .hero__panel { --R: 128px; --m: 50px; --d: 188px; grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 30px 20px 24px; border-radius: 26px; gap: 8px; text-align: center;
    background: radial-gradient(70% 40% at 50% 72%, rgba(255, 214, 120, .55), transparent 72%), linear-gradient(160deg, #FF8420 0%, #F85E0C 50%, #DE4700 100%); }
  .hero__panel::before { left: 50%; top: 72%; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__kicker { margin-bottom: 10px; height: 28px; font-size: 13px; }
  .hero__title { font-size: clamp(28px, 8vw, 38px); }
  .hero__sub { margin-top: 10px; font-size: 14.5px; }
  .hero__cta { justify-content: center; margin-top: 18px; width: 100%; }
  .hero__cta .btn { flex: 1; min-width: 130px; height: 52px; font-size: 16px; }
  .hero__show { margin-top: 18px; }
  .spot__ghost { inset: -6% -40% auto; }
  .spot__ghost span { font-size: clamp(84px, 26vw, 120px); }
  .spot__tag { left: 0; right: 0; margin-inline: auto; width: max-content; max-width: 86%; bottom: -4%; padding: 10px 14px; text-align: center; justify-items: center; }
  .spot__tag .pt__v { font-size: 18px; }
  .spot__go { display: none; }
  .section { padding: 38px 0; }
  .section--tight { padding: 16px 0; }
  .banner { height: 190px; padding: 0 22px; grid-template-columns: 1.4fr 1fr; border-radius: 22px; }
  .banner p { font-size: 13px; margin: 6px 0 12px; }
  .banner .btn { height: 38px; font-size: 13px; padding: 0 14px; }
  .banner__art { height: 150px; }
  .promo { border-radius: 22px; }
  .cats { grid-auto-columns: 84px; gap: 12px 6px; }
  .cat__art { width: 70px; height: 70px; padding: 12px; }
  .cat__txt span { font-size: 13px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rail { grid-auto-columns: 47%; gap: 12px; }
  .rail--cat { grid-auto-columns: 42.5%; }
  .csec .sec-title { font-size: 19px; }
  .card { border-radius: 20px; padding: 6px; }
  .card__media { border-radius: 15px; }
  .card__body { padding: 10px 6px 4px; }
  .card__name { font-size: 13.5px; }
  .card .pt__v { font-size: clamp(17px, 5vw, 20px); }
  .card .pt__c { font-size: 11.5px; }
  .card .pt__x { font-size: 12.5px; }
  .card__foot { padding-top: 8px; }
  .months__lbl { display: none; }
  .features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feat { flex-direction: column; text-align: center; padding: 16px 10px; gap: 10px; }
  .toolbar__end { width: 100%; justify-content: space-between; }
  .deals { border-radius: 26px; width: calc(100% - 16px); }
  .cd { min-width: 58px; } .cd b { font-size: 24px; }
  .tg { padding: 24px 20px; } .tg__actions { width: 100%; } .tg__actions .btn { flex: 1; }
  .footer { padding-bottom: calc(96px + var(--safe-b)); border-radius: 26px 26px 0 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer__brand { grid-column: 1 / -1; }
  .fab-wa { bottom: calc(86px + var(--safe-b)); left: 14px; width: 52px; height: 52px; border-radius: 17px; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 60; bottom: 0; inset-inline: 0; padding: 6px 6px calc(6px + var(--safe-b)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .bnav > * { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; font: 600 11px var(--ff); color: var(--ink-2); }
  .bnav .count { top: 0; left: calc(50% - 22px); }
  .bnav .bnav__cart .lucide { color: var(--brand); }
  .sheet { left: 0; right: 0; top: auto; bottom: 0; width: 100% !important; max-height: 94vh; border-radius: var(--r-sheet) var(--r-sheet) 0 0; transform: translateY(100%); }
  .sheet.on { transform: none; }
  .sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: rgba(0, 0, 0, .15); z-index: 6; }
  .sheet--product { height: 94vh; }
  .pd { grid-template-columns: 1fr; padding: 0 0 10px; gap: 18px; }
  .pd__gallery { position: relative; }
  .pd__main { border-radius: 0 0 26px 26px; aspect-ratio: 1.1 / 1; }
  .pd__info { padding: 0 18px; }
  .related { padding: 0 18px 20px; }
  .related .rail { grid-auto-columns: 47%; }
  .drawer { width: 100%; }
  .ck, .track { padding: 26px 18px 24px; }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .banner { grid-template-columns: 1fr; } .banner__art { display: none; }
  .hero__panel { --R: 116px; --m: 44px; --d: 172px; }
  .sheet__bar { gap: 6px; padding-inline: 10px; } .sheet__bar .btn { font-size: 13px; padding: 0 4px; } .sheet__bar .icon-btn { width: 42px; }
}
@media (max-width: 345px) {
  .hero__panel { --R: 100px; --m: 40px; --d: 144px; padding-inline: 16px; }
  .hero__cta .btn { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
