/* ───────── متجر الجملة — واجهة التاجر ───────── */
:root {
  --brand: #1e73be;
  --on-brand: #fff;
  --brand-d: color-mix(in srgb, var(--brand) 78%, #000);
  --navy: color-mix(in srgb, var(--brand) 45%, #000c1f);
  --navy-d: color-mix(in srgb, var(--brand) 22%, #020a17);
  --bright: color-mix(in srgb, var(--brand) 60%, #0090ff);
  --soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --soft-2: color-mix(in srgb, var(--brand) 18%, #fff);
  --line: color-mix(in srgb, var(--brand) 7%, #eef1f6);
  --line-h: color-mix(in srgb, var(--brand) 30%, #fff);
  --hero: linear-gradient(135deg, color-mix(in srgb, var(--brand) 82%, #001a40) 0%, var(--brand) 50%, color-mix(in srgb, var(--brand) 78%, #7cc4ff) 100%);
  --accent: #81d742;
  --accent-d: #6ab835;
  --accent-ink: #0f172a;
  --accent-glow: 0 4px 20px rgba(129, 215, 66, .5);
  --dark: #050b1f;
  --bg: #f8fafc;
  --bg-soft: color-mix(in srgb, var(--brand) 4%, #f5f7fa);
  --img-bg: #f8fafd;
  --red: #d92b2b;
  --red-b: #ff2b2b;
  --green: #28a745;
  --wa: #25d366;
  --ink: #0f172a;
  --body: #334155;
  --mut: #64748b;
  --r: 14px;
  --shadow: 0 2px 10px color-mix(in srgb, var(--brand) 8%, transparent);
  --shadow-h: 0 12px 32px color-mix(in srgb, var(--brand) 17%, transparent);
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-brand: "Outfit", "Cairo", sans-serif;
  --wrap: 1320px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 600 15px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
  min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.ic { width: 21px; height: 21px; flex: none; }
.cur { font-size: .7em; font-weight: 700; opacity: .8; margin-inline-start: 2px; }
.num { font-family: var(--font-brand); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--line-h); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.view { flex: 1; width: 100%; }
.boot { display: grid; place-items: center; min-height: 50vh; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--soft-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───── الهيدر الأزرق ───── */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--hero); color: #fff; box-shadow: 0 6px 24px color-mix(in srgb, var(--brand) 25%, transparent); }
.hdr-row { display: flex; align-items: center; gap: 12px; min-height: 66px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; margin-inline-end: auto; }
.brand-logo { width: 74px; height: 74px; border-radius: 17px; flex: none; display: grid; place-items: center; overflow: hidden; padding: 3px;
  background: #fff; border: 0; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); color: var(--brand); transition: transform .3s; }
.brand:hover .brand-logo { transform: scale(1.06) rotate(-3deg); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.brand-logo svg { width: 26px; height: 26px; }
.brand-word { min-width: 0; }
.brand-word b { display: block; font-size: 19px; font-weight: 900; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-word small { display: block; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .75); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-word small .x { display: none; }
body.has-cartbar { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
.brand-word small i { font-style: normal; color: var(--accent); }
.hdr-nav { display: none; }
.hdr-nav a { position: relative; font-size: 15.5px; font-weight: 800; color: rgba(255, 255, 255, .92); padding: 7px 14px; border-radius: 11px; white-space: nowrap; transition: background .2s, color .2s; }
.hdr-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hdr-nav a.on { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.hdr-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hbtn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); transition: all .2s; }
.hbtn:hover { background: #fff; color: var(--brand); }
.hbtn .ic { width: 19px; height: 19px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 14.5px; box-shadow: var(--accent-glow); transition: all .2s; }
.cart-btn:hover { background: var(--accent-d); transform: translateY(-1px); }
.cart-btn.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.12) rotate(-6deg); } 60% { transform: scale(.96) rotate(3deg); } }
.cart-btn .ic-wrap { position: relative; display: inline-flex; }
.cart-btn .ic { width: 20px; height: 20px; }
.cart-btn .badge { top: -9px; inset-inline-start: auto; inset-inline-end: -10px; border: 2px solid #fff; }
.badge { position: absolute; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--red-b); color: #fff; font: 900 10.5px/1 var(--font-brand); display: grid; place-items: center; }

/* ───── شريط الأخبار ───── */
.ticker { background: color-mix(in srgb, var(--brand) 55%, #04142e); color: #fff; overflow: hidden; padding: 9px 0; font-size: 13.5px; font-weight: 700; border-top: 1px solid rgba(255, 255, 255, .08); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-content { display: inline-flex; align-items: center; gap: 22px; padding-inline: 11px; white-space: nowrap; }
.ticker-content b { color: var(--accent); font-weight: 900; }
.ticker-content .sep { color: var(--accent); font-size: 12px; opacity: .7; }
@keyframes ticker { to { transform: translateX(50%); } }

/* ───── السلايدر ───── */
.cover { position: relative; overflow: hidden; background: var(--hero); color: #fff; padding: 18px 0 30px; }
.cover .orb { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
.cover .orb.o1 { width: 420px; height: 420px; inset-inline-end: -160px; top: -120px; animation: drift 14s ease-in-out infinite; }
.cover .orb.o2 { width: 220px; height: 220px; inset-inline-start: 30%; bottom: -120px; animation: drift 11s ease-in-out infinite reverse; }
.cover .orb.o3 { width: 300px; height: 300px; inset-inline-start: -140px; top: 30%; border: 2px dashed rgba(255, 255, 255, .14); background: none; animation: spin 40s linear infinite; }
@keyframes drift { 50% { transform: translate(18px, -22px) scale(1.06); } }
.slider { position: relative; direction: ltr; overflow: hidden; touch-action: pan-y; user-select: none; }
.slides { display: flex; transition: transform .7s cubic-bezier(.25, 1, .5, 1); will-change: transform; }
.slide { flex: 0 0 100%; min-width: 100%; direction: rtl; text-align: right; color: #fff; position: relative;
  display: grid; grid-template-columns: 1fr; gap: 18px; padding: 10px 2px 46px; align-items: center; }
.slide-txt { position: relative; z-index: 2; }
.slide[aria-hidden="false"] .slide-txt > * { animation: fadeUp .7s cubic-bezier(.2, .8, .2, 1) both; }
.slide[aria-hidden="false"] .slide-txt > :nth-child(2) { animation-delay: .08s; }
.slide[aria-hidden="false"] .slide-txt > :nth-child(3) { animation-delay: .16s; }
.slide[aria-hidden="false"] .slide-txt > :nth-child(4) { animation-delay: .24s; }
.slide[aria-hidden="false"] .slide-txt > :nth-child(5) { animation-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
.pill-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 800; padding: 5px 14px; border-radius: 99px; margin-bottom: 14px; }
.pill-badge .ic { width: 15px; height: 15px; color: var(--accent); }
.slide h2 { font-size: clamp(28px, 4.2vw, 52px); font-weight: 900; line-height: 1.25; margin-bottom: 10px; }
.slide h2 em { font-style: normal; color: var(--accent); }
.slide p { font-size: clamp(14px, 1.3vw, 17px); color: rgba(255, 255, 255, .88); margin-bottom: 18px; max-width: 560px; }
.hero-nums { display: flex; gap: 26px; margin-bottom: 20px; }
.hero-nums div { display: grid; text-align: center; }
.hero-nums b { font: 900 24px/1.2 var(--font-brand); color: var(--accent); }
.hero-nums small { font-size: 12px; color: rgba(255, 255, 255, .78); }
.slide-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 15px; padding: 13px 24px; border-radius: 16px; box-shadow: var(--accent-glow); transition: all .22s; }
.sbtn:hover { background: var(--accent-d); transform: translateY(-2px); }
.sbtn.ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .35); box-shadow: none; backdrop-filter: blur(6px); }
.sbtn.ghost:hover { background: rgba(255, 255, 255, .2); }
.sbtn .ic { width: 18px; height: 18px; }
.slide-vis { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); border-radius: 18px; }
.gcard { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 14px 10px; transition: transform .3s, background .3s; }
.gcard:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .16); }
.gcard i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(129, 215, 66, .22); color: var(--accent); }
.gcard i .ic { width: 22px; height: 22px; }
.gcard b { font-size: 14px; font-weight: 900; }
.gcard small { font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.gcard.photo { position: relative; display: block; padding: 0; overflow: hidden; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .22); cursor: pointer; font: inherit; color: #fff; }
.gcard.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gcard.photo:hover img { transform: scale(1.06); }
.gcard.photo b { position: absolute; inset: auto 0 0; padding: 26px 10px 10px; font-size: 13px; text-align: center; background: linear-gradient(transparent, rgba(0, 12, 31, .78)); }
.slide[aria-hidden="false"] .gcard { animation: scaleIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.slide[aria-hidden="false"] .gcard:nth-child(2) { animation-delay: .1s; }
.slide[aria-hidden="false"] .gcard:nth-child(3) { animation-delay: .2s; }
.slide[aria-hidden="false"] .gcard:nth-child(4) { animation-delay: .3s; }
@keyframes scaleIn { from { opacity: 0; transform: scale(.85); } }
.float { animation: floaty 5s ease-in-out infinite; }
.float:nth-child(2) { animation-delay: -1.2s; } .float:nth-child(3) { animation-delay: -2.4s; } .float:nth-child(4) { animation-delay: -3.6s; }
@keyframes floaty { 50% { translate: 0 -8px; } }
.dots { position: absolute; bottom: 8px; inset-inline: 0; display: flex; justify-content: center; align-items: center; gap: 7px; z-index: 3; }
.dots button { width: 9px; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .4); transition: width .3s, background .3s; }
.dots button.on { width: 34px; background: var(--accent); }

/* ───── واجهة العروض: بانرات ملوّنة + كروت أقسام ───── */
.promo { background: var(--bg); padding: 14px 0 6px; }
.bn-slider { border-radius: 22px; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); }
.bn-slider .slide { display: block; padding: 0; color: #fff; }
.bn-slider .dots { bottom: 10px; }
.bn-slider .dots button { background: rgba(255, 255, 255, .55); }
.bn-slider .dots button.on { background: #fff; }
.bn { --c1: #ff6a00; --c2: #ffb000; position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 12px;
  min-height: 230px; padding: 18px 16px 34px; background: linear-gradient(120deg, var(--c1), var(--c2)); }
.bn::before, .bn::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.bn::before { width: 340px; height: 340px; inset-inline-start: -120px; top: -150px; }
.bn::after { width: 200px; height: 200px; inset-inline-end: 34%; bottom: -120px; background: rgba(255, 255, 255, .09); }
.bn.orange { --c1: #ff5f00; --c2: #ffae00; }
.bn.blue { --c1: #0b4fc4; --c2: #22a6ff; }
.bn.green { --c1: #0c8f4f; --c2: #6fcf3a; }
.bn.pink { --c1: #d6246e; --c2: #ff8aa8; }
.bn.purple { --c1: #5b2bd1; --c2: #b06bff; }
.bn-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .16); font-size: 11.5px; font-weight: 800; padding: 4px 12px; border-radius: 99px; margin-bottom: 8px; }
.bn-tag .ic { width: 14px; height: 14px; }
.bn h2 { font-size: clamp(22px, 3.6vw, 50px); font-weight: 900; line-height: 1.18; margin-bottom: 12px; text-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.bn h2 em { font-style: normal; color: #fff6c2; }
.bn-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; max-width: 520px; }
.bn-box { display: grid; text-align: center; gap: 1px; padding: 7px 6px; border-radius: 12px; background: rgba(0, 0, 0, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font: inherit; transition: background .2s, transform .2s; }
button.bn-box { cursor: pointer; }
button.bn-box:hover { background: rgba(0, 0, 0, .24); transform: translateY(-2px); }
.bn-box { align-content: center; }
.bn-box b { font-size: 13px; font-weight: 900; line-height: 1.3; }
.bn-box small { font-size: 11px; opacity: .85; }
.bn-cta { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--c1); font: 900 14px var(--font); padding: 9px 18px; border-radius: 99px; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); transition: transform .2s; }
.bn-cta:hover { transform: translateY(-2px); }
.bn-cta .ic { width: 16px; height: 16px; }
.bn-pics { position: relative; height: 100%; min-height: 170px; }
.bn-pic { position: absolute; padding: 0; overflow: hidden; border-radius: 18px; border: 4px solid #fff; background: #fff; box-shadow: 0 12px 26px rgba(0, 0, 0, .22); cursor: pointer; transition: transform .3s; }
.bn-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-pic:hover { transform: scale(1.04) rotate(0deg) !important; z-index: 3; }
.bn-pics .bn-pic:nth-child(1) { height: 82%; aspect-ratio: 1; top: 50%; left: 50%; translate: -50% -50%; transform: rotate(-4deg); z-index: 2; max-width: 70%; }
.bn-pics .bn-pic:nth-child(2) { height: 46%; aspect-ratio: 1; top: 0; left: 2%; transform: rotate(-8deg); }
.bn-pics .bn-pic:nth-child(3) { height: 42%; aspect-ratio: 1; bottom: 0; right: 4%; transform: rotate(7deg); z-index: 3; }
.slide[aria-hidden="false"] .bn-txt > * { animation: fadeUp .6s cubic-bezier(.2, .8, .2, 1) both; }
.slide[aria-hidden="false"] .bn-txt > :nth-child(2) { animation-delay: .07s; }
.slide[aria-hidden="false"] .bn-txt > :nth-child(3) { animation-delay: .14s; }
.slide[aria-hidden="false"] .bn-txt > :nth-child(4) { animation-delay: .21s; }
.slide[aria-hidden="false"] .bn-pic { animation: scaleIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.slide[aria-hidden="false"] .bn-pic:nth-child(2) { animation-delay: .1s; }
.slide[aria-hidden="false"] .bn-pic:nth-child(3) { animation-delay: .2s; }

.tiles-wrap { position: relative; margin-top: 12px; background: #fff; border-radius: 20px; padding: 10px; box-shadow: var(--shadow); }
.tiles { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.tiles::-webkit-scrollbar { display: none; }
.tile { --t: #0f172a; position: relative; flex: 0 0 132px; aspect-ratio: 1 / 1.08; scroll-snap-align: start; overflow: hidden; isolation: isolate; border-radius: 16px; background: var(--t);
  color: #fff; font: inherit; text-align: center; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; padding: 8px; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(15, 23, 42, .18); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.tile:hover img { transform: scale(1.08); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .15) 55%, transparent 80%); }
.tile b { font-size: 14px; font-weight: 900; line-height: 1.25; text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.tile-go { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 900; padding: 4px 10px; border-radius: 99px; }
.tile-go .ic { width: 12px; height: 12px; }
.tile-em { position: absolute; top: 22%; inset-inline: 0; font-size: 44px; }
.tile.t0 { --t: #ff6a00; } .tile.t1 { --t: #0b4fc4; } .tile.t2 { --t: #0c8f4f; } .tile.t3 { --t: #d6246e; } .tile.t4 { --t: #5b2bd1; } .tile.t5 { --t: #0f172a; }
.tiles-nav { display: none; position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(15, 23, 42, .2); place-items: center; }
.tiles-nav .ic { width: 18px; height: 18px; }
.tiles-nav.prev { inset-inline-start: -6px; }
.tiles-nav.next { inset-inline-end: -6px; }
/* ───── صفحة تفاصيل الصنف ───── */
.pc-name a { color: inherit; }
.pc-name a:hover { color: var(--brand); }
a.pc-media { display: grid; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12.5px; color: var(--mut); margin-bottom: 12px; }
.crumbs a, .crumbs button { color: var(--brand); font: inherit; font-weight: 700; }
.crumbs .ic { width: 13px; height: 13px; transform: scaleX(-1); opacity: .5; }
.crumbs span { color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.pd-grid { display: grid; gap: 12px; }
.pd { display: grid; gap: 16px; background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.pd-media { position: relative; aspect-ratio: 1; max-height: 440px; width: 100%; margin-inline: auto; border-radius: 16px; background: var(--img-bg); display: grid; place-items: center; overflow: hidden; }
.pd-media svg { width: 66%; }
.pd-media img { width: 100%; height: 100%; object-fit: contain; }
.pd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pd-badge { background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 6px; }
.pd-fav { margin-inline-start: auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); color: #f59e0b; display: grid; place-items: center; }
.pd-fav .ic { width: 20px; height: 20px; }
.pd-fav.on { background: #fff4e0; border-color: #fcd34d; }
.pd-fav.on .ic { fill: currentColor; }
.pd-name { font-size: clamp(19px, 2.2vw, 25px); font-weight: 900; color: var(--ink); line-height: 1.45; margin: 8px 0 6px; }
.pd-meta { font-size: 13px; color: var(--mut); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pd-meta button { color: var(--brand); font: inherit; font-weight: 700; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pd-price b { font: 900 30px var(--font-brand); color: var(--ink); }
.pd-price > span { font-size: 14px; font-weight: 700; color: var(--body); }
.pd-price s { color: #94a3b8; font: 600 15px var(--font-brand); }
.pd-price em { font-style: normal; background: #fff1e6; color: #ea580c; font: 800 13px var(--font-brand); padding: 2px 8px; border-radius: 6px; }
.pd-per { font-size: 13px; color: var(--mut); margin-top: 2px; }
.pd-per b { color: var(--brand); }
.pd-stock { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; font-weight: 800; color: #15803d; }
.pd-stock .ic { width: 16px; height: 16px; }
.pd-stock.low { color: #c2410c; }
.pd-stock.out { color: #64748b; }
.pd-lbl { margin-top: 16px; font-size: 14px; font-weight: 900; color: var(--ink); }
.pd-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pd-opt { display: grid; text-align: center; gap: 2px; min-width: 120px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line-h); background: #fff; font: inherit; color: var(--ink); transition: all .2s; }
.pd-opt b { font-size: 13.5px; }
.pd-opt small { font-size: 12px; color: var(--mut); font-weight: 700; }
.pd-opt.on { border-color: var(--brand); background: var(--soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.pd-opt.on small { color: var(--brand); }
.pd-buy { display: flex; gap: 10px; margin-top: 18px; }
.pd-buy .add, .pd-buy .step { height: 50px; font-size: 16px; border-radius: 12px; }
.pd-buy .step { flex: 1; }
.pd-buy .step button { width: 54px; }
.pd-buy { flex-wrap: wrap; }
.pd-buy .step { flex: 1 1 200px; }
.btn.pd-go { flex: 1 1 220px; height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 15px; box-shadow: var(--accent-glow); }
.btn.pd-go:hover { background: var(--accent-d); }
.pd-go .ic { width: 19px; height: 19px; }
.pd-incart { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; color: #15803d; font-weight: 700; }
.pd-incart .ic { width: 16px; height: 16px; }
.pd-share { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 800; color: var(--body); }
.pd-share a, .pd-share button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-h); display: grid; place-items: center; color: var(--ink); }
.pd-share a { color: var(--wa); }
.pd-share .ic { width: 17px; height: 17px; }
.pd-box { background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.pd-box h3 { font-size: 15px; font-weight: 900; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pd-row { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pd-row > .ic { width: 38px; height: 38px; flex: none; padding: 8px; border-radius: 10px; background: var(--soft); color: var(--brand); }
.pd-row div { display: grid; gap: 2px; }
.pd-row b { font-size: 13.5px; color: var(--ink); }
.pd-row small { font-size: 12px; color: var(--mut); }
.pd-wa { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; height: 42px; border-radius: 12px; background: var(--wa); color: #fff; font-weight: 900; font-size: 14px; }
.pd-wa .ic { width: 18px; height: 18px; }
.pd-sim { margin-top: 12px; }
.pd-page { padding-bottom: 40px; }
@media (max-width: 759px) {
  .pd-media { aspect-ratio: 4 / 3; max-height: 240px; }
  .pd-media svg { width: auto; height: 80%; }
  .pd-name { margin-top: 4px; }
}
@media (min-width: 760px) {
  .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 20px; gap: 24px; align-items: start; }
}
@media (min-width: 1100px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; }
  .pd-side { position: sticky; top: 90px; }
}
.feat { background: var(--bg); padding: 6px 0; }
.feat-box { background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.feat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feat-h { font-size: 17px; font-weight: 900; color: var(--ink); margin-bottom: 12px; }
.feat-top .feat-h { margin-bottom: 0; }
.feat-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.feat-row::-webkit-scrollbar { display: none; }
.feat-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; min-width: 170px; padding: 12px 14px; border-radius: 14px; background: #fff8e6; border: 1px solid #fde9b8; color: var(--ink); font: inherit; transition: transform .2s, box-shadow .2s; }
.feat-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(245, 158, 11, .18); }
.feat-chip b { font-size: 14px; font-weight: 800; }
.feat-chip small { margin-inline-start: auto; font-size: 11px; font-weight: 800; color: var(--mut); background: #fff; border-radius: 99px; padding: 1px 8px; }
.feat-badge { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 900 12px var(--font-brand); color: #fff; }
.feat-badge.hot { background: #ef4444; } .feat-badge.deal { background: #16a34a; font-size: 16px; }
.feat-badge.new { background: #f59e0b; font-size: 10px; } .feat-badge.pick { background: var(--brand); }
.feat-nav { display: none; gap: 6px; }
.feat-nav button { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--navy); display: grid; place-items: center; }
.feat-nav .ic { width: 17px; height: 17px; }
.hrow { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 12px 2px 6px; }
.hrow::-webkit-scrollbar { display: none; }
.hrow .pc { flex: 0 0 168px; scroll-snap-align: start; }
@media (min-width: 980px) { .feat-nav { display: flex; } .hrow .pc { flex-basis: 220px; } .hrow { gap: 14px; } }
@media (max-width: 599px) {
  .bn { grid-template-columns: 1fr 112px; min-height: 0; padding: 14px 12px 30px; gap: 8px; }
  .bn-boxes { gap: 5px; margin-bottom: 10px; }
  .bn-box { padding: 5px 4px; border-radius: 10px; }
  .bn-box b { font-size: 11.5px; }
  .bn-box small { font-size: 10px; }
  .bn-cta { font-size: 12.5px; padding: 7px 14px; }
  .bn-pics { min-height: 150px; }
  .bn-pics .bn-pic { border-width: 3px; border-radius: 14px; }
  .bn-pics .bn-pic:nth-child(1) { height: auto; width: 96%; max-width: none; }
  .bn-pics .bn-pic:nth-child(2) { height: auto; width: 56%; top: -6px; left: -6px; z-index: 3; }
  .bn-pics .bn-pic:nth-child(3) { display: none; }
}
@media (min-width: 980px) {
  .promo { padding-top: 20px; }
  .bn { min-height: 340px; padding: 28px 44px 40px; }
  .bn-boxes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .bn-box { padding: 10px 8px; border-radius: 14px; }
  .bn-box b { font-size: 15px; }
  .bn-cta { font-size: 15px; padding: 11px 24px; }
  .bn-pics { min-height: 290px; }
  .tile { flex-basis: 168px; }
  .tile b { font-size: 15px; }
  .tiles-nav { display: grid; }
}

/* شريط الثقة */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding-block: 14px; }
.trust-row div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--body); }
.trust-row .ic { width: 20px; height: 20px; color: var(--accent-d); flex: none; }

/* ───── عناوين الأقسام ───── */
.sec { padding: 34px 0; }
.sec.soft { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 28px; }
.welcome { display: inline-flex; align-items: center; gap: 6px; background: #eefbe3; color: #3f7a17; border: 1px solid #d3f1bb; font-size: 14.5px; font-weight: 800; padding: 6px 18px; border-radius: 99px; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; color: var(--ink); line-height: 1.3; margin-bottom: 12px; }
.welcome .ic { width: 18px; height: 18px; }
.sec-head h2 span { color: var(--brand); }
.sec-line { display: flex; justify-content: center; gap: 5px; margin: 0 auto 12px; }
.sec-line::before, .sec-line::after { content: ""; height: 5px; border-radius: 99px; }
.sec-line::before { width: 56px; background: var(--brand); }
.sec-line::after { width: 22px; background: var(--accent); }
.sec-head p { color: var(--mut); font-size: clamp(15px, 1.5vw, 18.5px); font-weight: 600; max-width: 720px; margin-inline: auto; }

/* ───── تسوّق حسب القسم ───── */
.cat-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-card { position: relative; overflow: hidden; text-align: right; border-radius: 20px; aspect-ratio: 4 / 5; color: #fff; background: var(--hero); box-shadow: var(--shadow); isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; transition: transform .35s, box-shadow .35s; }
.cat-card .cov { position: absolute; inset: 0; z-index: -2; }
.cat-card .cov img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.cat-card .cov svg { width: 70%; margin: 10% auto 0; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, color-mix(in srgb, var(--brand) 55%, #020c1f) 0%, rgba(2, 12, 31, .35) 45%, transparent 75%); }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); }
.cat-card:hover .cov img { transform: scale(1.1); }
.cat-card .em { position: absolute; top: 10px; inset-inline-start: 10px; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .9); display: grid; place-items: center; font-size: 19px; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.cat-card b { font-size: 16.5px; font-weight: 900; line-height: 1.3; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.cat-card small { color: rgba(255, 255, 255, .85); font-size: 12.5px; font-weight: 700; }
.cat-card .go { margin-top: 8px; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 900; padding: 5px 12px; border-radius: 99px; transition: gap .2s; }
.cat-card:hover .go { gap: 9px; }
.cat-card .go .ic { width: 14px; height: 14px; }

/* ───── شريط التحكم (بحث + أقسام) ───── */
.controls { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 20px; display: grid; gap: 12px; }
.controls > * { min-width: 0; }
.ctl-row { display: flex; gap: 10px; align-items: center; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 12px; height: 46px; transition: border-color .25s, box-shadow .25s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft-2); }
.search .ic { color: var(--brand); width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; height: 100%; font-size: 15px; font-weight: 600; }
.search input::placeholder { color: #94a3b8; }
.count { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 46px; display: none; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--mut); white-space: nowrap; }
.count b { color: var(--brand); font-size: 16px; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding-inline: 12px; padding-bottom: 2px; }
.pills::-webkit-scrollbar { display: none; }
.cpill { flex: none; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--body); border: 1.5px solid var(--line); padding: 7px 15px; border-radius: 99px; font-size: 13.5px; font-weight: 800; white-space: nowrap; transition: all .2s; }
.cpill:hover { border-color: var(--brand); color: var(--brand); }
.cpill.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 24%, transparent); }
.brands { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding: 2px 12px; }
.brands::-webkit-scrollbar { display: none; }
.brand-chip { flex: none; width: 64px; text-align: center; font-size: 12px; font-weight: 800; color: var(--mut); }
.brand-chip i { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 4px; border-radius: 50%; background: #fff; border: 2px solid var(--line); font: normal 900 20px var(--font); color: var(--bc, var(--brand)); overflow: hidden; transition: all .2s; }
.brand-chip i img { width: 100%; height: 100%; object-fit: contain; }
.brand-chip i .ic { color: var(--brand); }
.brand-chip.on { color: var(--navy); }
.brand-chip.on i { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft-2); }
.results-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; font-size: 17px; font-weight: 900; color: var(--navy); }
.results-h span { color: var(--red); font-family: var(--font-brand); }

/* ───── كروت المنتجات ───── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.more-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 24px auto 8px; max-width: 320px; text-align: center; }
.more-bar small { color: var(--muted, #6b7280); font-weight: 700; }
.more-track { width: 100%; height: 5px; background: #e8edf5; border-radius: 99px; overflow: hidden; }
.more-track i { display: block; height: 100%; background: var(--navy); border-radius: inherit; transition: width .35s; }
.more-bar .btn { width: 100%; justify-content: center; }
.pc { position: relative; background: #fff; border: 1px solid #edf1f7; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .28s, box-shadow .28s, border-color .28s; animation: up .45s ease both; }
.pc:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); border-color: var(--line-h); }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
.ribbon { position: absolute; top: 9px; inset-inline-start: 9px; z-index: 3; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 0 8px 0 8px; box-shadow: 0 3px 8px color-mix(in srgb, var(--brand) 25%, transparent); }
.ribbon.hot { background: var(--red); }
.ribbon.navy { background: var(--navy); }
.fav { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); color: var(--brand); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); transition: all .2s; }
.fav .ic { width: 16px; height: 16px; }
.fav:hover { transform: scale(1.08); }
.fav.on { color: #fff; background: var(--red); border-color: var(--red); }
.fav.on .ic { fill: currentColor; }
.pc-media { position: relative; aspect-ratio: 1; background: var(--img-bg); display: grid; place-items: center; overflow: hidden; }
.pc .pc-media { margin: 8px 8px 0; border-radius: 15px; }
.pc-media svg { width: 74%; transition: transform .5s; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.pc-media img[src] { background: linear-gradient(100deg, #eef2f7 30%, #f8fafc 50%, #eef2f7 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.pc-media img.ok { animation: none; background: none; }
@keyframes shimmer { to { background-position: -150% 0; } }
.pc:hover .pc-media svg, .pc:hover .pc-media img { transform: scale(1.07); }
.pc-body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; text-align: center; }
.pc-cat { font-size: 11px; font-weight: 700; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-name { font-size: 13.5px; font-weight: 800; color: var(--ink); line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 99px; padding: 3px; gap: 2px; }
.seg button { border-radius: 99px; font-size: 11.5px; font-weight: 800; color: var(--brand); padding: 3px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all .2s; }
.seg button.on { background: var(--brand); color: var(--on-brand); box-shadow: 0 2px 6px color-mix(in srgb, var(--brand) 30%, transparent); }
.pack { align-self: center; font-size: 11.5px; font-weight: 800; color: var(--bright); background: var(--soft); padding: 3px 11px; border-radius: 99px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.price { margin-top: auto; line-height: 1.2; }
.price b { font: 800 19px var(--font-brand); color: var(--brand); }
.price s { color: #94a3b8; font: 600 12.5px var(--font-brand); margin-inline-start: 4px; }
.per { display: block; color: var(--mut); font-size: 11px; font-weight: 700; margin-top: 2px; }
.add { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 900; font-size: 13.5px; transition: background .22s, transform .15s, box-shadow .22s; }
.add:hover { background: var(--brand-d); box-shadow: 0 4px 20px color-mix(in srgb, var(--brand) 45%, transparent); }
.add:active { transform: scale(.97); }
.add .ic { width: 18px; height: 18px; }
.step { display: flex; align-items: center; height: 40px; border-radius: 9px; background: var(--soft); border: 1.5px solid var(--soft-2); overflow: hidden; }
.step button { width: 40px; height: 100%; display: grid; place-items: center; color: var(--brand); flex: none; transition: background .15s; }
.step button:hover { background: var(--soft-2); }
.step button[data-act="inc"] { background: var(--brand); color: #fff; }
.step .ic { width: 17px; height: 17px; }
.step input { flex: 1; min-width: 0; width: 44px; height: 100%; border: 0; background: none; text-align: center; font: 800 16px var(--font-brand); color: var(--navy); outline: 0; -moz-appearance: textfield; appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; }

.empty { text-align: center; padding: 48px 20px; color: var(--mut); grid-column: 1 / -1; }
.empty-ic { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--soft); color: var(--brand); display: grid; place-items: center; }
.empty-ic .ic { width: 38px; height: 38px; }
.empty h2 { color: var(--navy); font-size: 19px; font-weight: 900; margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }

/* ───── ليه تطلب مننا ───── */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid #edf1f7; border-radius: 20px; padding: 20px 12px; text-align: center; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.stat-ic { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #7cc4ff)); color: #fff; display: inline-grid; place-items: center; margin-bottom: 10px; box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.stat:nth-child(even) .stat-ic { background: linear-gradient(135deg, var(--accent-d), var(--accent)); box-shadow: var(--accent-glow); }
.stat-ic .ic { width: 23px; height: 23px; }
.stat b { display: block; font: 900 24px/1.25 var(--font-brand); color: var(--navy); }
.stat b.t { font-family: var(--font); font-size: 18px; }
.stat small { color: var(--mut); font-size: 13px; font-weight: 700; }
.how { display: grid; gap: 12px; margin-top: 22px; }
.how-step { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #edf1f7; border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.how-step i { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--hero); color: #fff; display: grid; place-items: center; font: normal 900 19px var(--font-brand); box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 28%, transparent); }
.how-step b { display: block; font-size: 16px; font-weight: 900; color: var(--navy); }
.how-step span { color: var(--mut); font-size: 13.5px; }

/* ───── الأزرار والفورم ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 11px; font-weight: 800; font-size: 15.5px; background: var(--brand); color: var(--on-brand); transition: background .2s, transform .1s; box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 22%, transparent); }
.btn:hover { background: var(--brand-d); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); background: var(--soft); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.sm { height: 40px; font-size: 14px; padding: 0 14px; border-radius: 10px; }
.btn .ic { width: 19px; height: 19px; }

.page { padding-block: 20px 34px; }
.page-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.page-h h1 { font-size: 23px; font-weight: 900; color: var(--brand); }
.page-h a { width: 42px; height: 42px; border-radius: 11px; background: var(--bg-soft); color: var(--brand); display: grid; place-items: center; border: 1.5px solid var(--line); }
.page-h a:hover { background: var(--brand); color: #fff; }
.cols { display: grid; gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; }
.card h2 { font-size: 17px; font-weight: 900; color: var(--navy); margin-bottom: 12px; }
.line { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.line:first-of-type { padding-top: 0; }
.line:last-of-type { border-bottom: 0; padding-bottom: 0; }
.line .pc-media { border-radius: 11px; border: 1px solid var(--line); padding: 6px; }
.line-name { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.line-meta { color: var(--mut); font-size: 12.5px; }
.line-extra { color: #15803d; font-size: 12px; font-weight: 700; margin-top: 1px; }
.line-extra b { font-weight: 900; }
.line-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.line-foot .step { width: 140px; }
.line-foot b { margin-inline-start: auto; font-size: 16px; color: var(--brand); }
.del { color: var(--mut); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; flex: none; }
.del:hover { color: var(--red); background: #fdecec; }
.del .ic { width: 19px; height: 19px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding-block: 6px; color: var(--mut); }
.sum-row b { color: var(--ink); font-weight: 800; }
.sum-row.total { border-top: 1px dashed var(--line-h); margin-top: 6px; padding-top: 12px; color: var(--navy); font-weight: 900; font-size: 17px; }
.sum-row.total b { color: var(--brand); font: 800 23px var(--font-brand); }
.mini { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding-block: 5px; }
.mini span:first-child { color: var(--body); }
.minbar { margin: 12px 0; padding: 10px 12px; border-radius: 11px; background: #fff7e6; color: #7a4b00; font-size: 13.5px; font-weight: 700; }
.minbar.ok { background: #e8f7ee; color: #146c34; }
.track { height: 6px; background: rgba(0, 0, 0, .08); border-radius: 99px; overflow: hidden; margin-top: 7px; }
.track i { display: block; height: 100%; background: #f59e0b; border-radius: 99px; transition: width .3s; }
.minbar.ok .track i { background: var(--green); }
.note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--mut); font-size: 12.5px; margin-top: 10px; text-align: center; }
.note .ic { width: 16px; height: 16px; color: var(--green); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 800; font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
.field > span em { color: var(--red); font-style: normal; }
.field input, .field textarea, .field select { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 14px; background: var(--bg-soft); outline: 0; font-size: 16px; font-weight: 600; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--soft-2); }
.field input::placeholder, .field textarea::placeholder { color: #a0abbb; }
.opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opt { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; cursor: pointer; background: #fff; transition: all .2s; }
.opt input { position: absolute; opacity: 0; }
.opt b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 800; }
.opt b .ic { width: 18px; height: 18px; color: var(--brand); }
.opt small { color: var(--mut); font-size: 12.5px; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--soft); box-shadow: 0 0 0 3px var(--soft-2); }
.opt:has(input:focus-visible) { outline: 3px solid var(--line-h); }

/* طرق الدفع */
.paylist { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.pm { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 13px; background: #fff;
  border: 1.5px solid transparent; box-shadow: 0 1px 2px rgba(15, 35, 80, .05); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pm:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 35, 80, .08); }
.pm input { position: absolute; opacity: 0; pointer-events: none; }
.pm-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--brand); transition: all .2s; }
.pm-ic .ic { width: 22px; height: 22px; }
.pm-cash .pm-ic { background: #e8f7ee; color: #16a34a; }
.pm-vodafone .pm-ic { background: #fdecec; color: #e60000; }
.pm-instapay .pm-ic { background: #f3e8ff; color: #6d28d9; }
.pm-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pm-t b { font-size: 15px; font-weight: 800; }
.pm-t small { color: var(--mut); font-size: 12.5px; }
.pm-b { display: flex; align-items: center; gap: 4px; flex: none; }
.pm-net { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 10px/1 var(--font-brand); letter-spacing: -.3px; }
.pm-net.v { background: #e60000; } .pm-net.e { background: #e00800; background: linear-gradient(135deg, #e00800, #a6ce39); }
.pm-net.o { background: #ff7900; border-radius: 6px; } .pm-net.w { background: #5c2d91; }
.pm-ipa { font: 800 13px/1 var(--font-brand); color: #3b1d6e; letter-spacing: -.2px; }
.pm-ipa b { color: #d4145a; }
.pm-tag { font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 99px; }
.pm-tag.ok { background: #e8f7ee; color: #15803d; }
.pm-ck { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-h); display: grid; place-items: center; color: transparent; transition: all .2s; }
.pm-ck .ic { width: 14px; height: 14px; }
.paylist { background: #f6fdf0; border-color: #dcf3c8; }
.pm:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(129, 215, 66, .22); }
.pm:has(input:checked) .pm-ck { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); animation: pop .3s ease; }
.pm:has(input:focus-visible) { outline: 3px solid var(--line-h); outline-offset: 2px; }
@keyframes pop { 0% { transform: scale(.5); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@media (max-width: 420px) {
  .pm { gap: 10px; padding: 12px; }
  .pm-ic { width: 38px; height: 38px; }
  .pm-net { width: 20px; height: 20px; font-size: 8px; margin-inline-start: -6px; box-shadow: 0 0 0 2px #fff; }
  .pm-b { gap: 0; }
  .pm-tag { display: none; }
}
.err { background: #fdecec; color: #8f1d1d; border-radius: 11px; padding: 10px 12px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }

/* ───── تم الطلب وطلباتي ───── */
.done { text-align: center; max-width: 500px; margin: 10px auto; }
.done-ic { width: 92px; height: 92px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 0 0 12px #e3f6ea; }
.done-ic .ic { width: 46px; height: 46px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.done h1 { font-size: 26px; font-weight: 900; color: var(--navy); }
.done p { color: var(--mut); margin-top: 6px; }
.done .ono { display: inline-block; margin: 14px 0; padding: 8px 18px; border-radius: 11px; background: var(--soft); color: var(--brand); font-weight: 900; font-size: 18px; }
.done .btns { display: grid; gap: 10px; margin-top: 18px; }
.payinfo { text-align: start; background: #fff7e6; color: #7a4b00; border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 14px; }
.order { margin-bottom: 12px; }
.order-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.order-h b { font-size: 17px; font-weight: 900; color: var(--navy); }
.order-h small { color: var(--mut); display: block; font-size: 12.5px; }
.st { font-size: 12.5px; font-weight: 800; padding: 4px 11px; border-radius: 99px; white-space: nowrap; }
.st.new { background: #fff3d6; color: #8a5300; }
.st.ready { background: #dbeafe; color: #1e40af; }
.st.delivered { background: #dcf5e4; color: #146c34; }
.st.cancelled { background: #fde4e1; color: #a1281a; }
.cancel-box { display: flex; gap: 12px; align-items: flex-start; background: #fff1f1; border: 1px solid #fbd5d5; border-radius: 14px; padding: 12px 14px; margin: 12px 0; color: #7f1d1d; }
.cancel-box .cx { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #dc2626; color: #fff; display: grid; place-items: center; }
.cancel-box .cx .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.cancel-box b { display: block; font-size: 15px; font-weight: 900; }
.cancel-box p { font-size: 14px; margin-top: 2px; color: #991b1b; }
.cancel-box p span { font-weight: 800; }
.cancel-box a { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; font-weight: 800; color: #15803d; }
.cancel-box a .ic { width: 16px; height: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0; }
.stp { text-align: center; font-size: 12.5px; color: var(--mut); position: relative; font-weight: 700; }
.stp i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: #fff; margin: 0 auto 4px; position: relative; z-index: 1; }
.stp i .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.stp::before { content: ""; position: absolute; top: 13px; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--line); }
.stp:first-child::before { display: none; }
.stp.on { color: var(--brand); }
.stp.on i, .stp.on::before { background: var(--brand); }

/* ───── شريط السلة والتاب بار ───── */
.cartbar { position: fixed; z-index: 35; inset-inline: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); max-width: 560px; margin-inline: auto; background: var(--hero); color: #fff; border-radius: 18px; padding: 10px 14px 11px; box-shadow: 0 12px 32px -8px rgba(2, 12, 31, .5); animation: rise .25s ease-out; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.cartbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cartbar b { font-size: 18px; }
.cartbar small { display: block; opacity: .75; font-size: 12px; }
.cartbar .go { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 900; padding: 8px 14px; border-radius: 12px; box-shadow: var(--accent-glow); }
.cartbar .track i { background: var(--accent); }
.cartbar .go .ic { width: 17px; height: 17px; transform: scaleX(-1); }
.cartbar .track { background: rgba(255, 255, 255, .2); }
.cartbar .hint { font-size: 12px; opacity: .88; margin-top: 6px; }
.tabbar { position: fixed; z-index: 36; inset-inline: 0; bottom: 0; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px color-mix(in srgb, var(--navy) 6%, transparent); }
.tab { display: grid; justify-items: center; gap: 1px; font-size: 11.5px; font-weight: 800; color: var(--mut); padding: 4px 0; position: relative; }
.tab.on { color: var(--brand); }
.tab.on::before { content: ""; position: absolute; top: -6px; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); }
.tab.on .ic { animation: bump .45s ease; }
.tab .ic.bump { animation: bump .5s ease; color: var(--accent-d); }
.tab .badge { top: 0; inset-inline-start: calc(50% + 4px); }

/* ───── حساب العميل ───── */
.hbtn.acct { display: none; }
.hbtn.acct.in { background: var(--accent); color: var(--accent-ink); border-color: transparent; font: 900 17px/1 var(--font); }
.locked { display: flex; align-items: center; gap: 8px; border: 1.5px dashed var(--line-h); border-radius: 11px; padding: 11px 14px; background: var(--bg-soft); }
.locked .ic { width: 17px; height: 17px; color: var(--mut); }
.locked b { font-size: 16px; }
.locked small { margin-inline-start: auto; color: var(--mut); font-size: 12px; }
.acct-hint { margin-top: 8px; font-size: 12.5px; color: var(--mut); text-align: center; }
.auth-page { max-width: 480px; }
.auth { background: #fff; border: 1px solid #edf1f7; border-radius: 22px; box-shadow: var(--shadow-h); overflow: hidden; animation: fadeUp .5s cubic-bezier(.2, .8, .2, 1); }
.auth-h { background: var(--hero); color: #fff; text-align: center; padding: 24px 20px 30px; position: relative; overflow: hidden; }
.auth-h::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); inset-inline-end: -70px; top: -90px; }
.auth-ic { width: 58px; height: 58px; border-radius: 18px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); display: inline-grid; place-items: center; margin-bottom: 8px; }
.auth-ic .ic { width: 28px; height: 28px; color: var(--accent); }
.auth-h h1 { font-size: 23px; font-weight: 900; }
.auth-h p { font-size: 13.5px; color: rgba(255, 255, 255, .85); margin-top: 4px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: -18px 18px 0; position: relative; z-index: 2; background: #fff; border-radius: 14px; padding: 4px; box-shadow: 0 8px 20px rgba(15, 35, 80, .12); }
.auth-tabs button { padding: 10px; border-radius: 11px; font-weight: 900; font-size: 14.5px; color: var(--mut); transition: all .2s; }
.auth-tabs button.on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 30%, transparent); }
.auth form { padding: 20px 18px 6px; }
.auth form .btn { margin-top: 4px; background: var(--accent); color: var(--accent-ink); box-shadow: var(--accent-glow); }
.auth form .btn:hover { background: var(--accent-d); }
.pw { position: relative; display: block; }
.pw input { padding-inline-end: 46px; }
.pw button { position: absolute; inset-inline-end: 6px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; color: var(--mut); border-radius: 9px; }
.pw button .ic { width: 19px; height: 19px; }
.auth-foot { padding: 0 18px; font-size: 13px; color: var(--mut); text-align: center; }
.auth-foot a { color: #15803d; font-weight: 800; }
.auth-perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; padding: 14px 18px 18px; margin-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--body); }
.auth-perks span { display: inline-flex; align-items: center; gap: 5px; }
.auth-perks .ic { width: 16px; height: 16px; color: var(--accent-d); }
.acct-card { display: flex; align-items: center; gap: 12px; }
.acct-av { width: 56px; height: 56px; border-radius: 18px; background: var(--hero); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 900; flex: none; }
.acct-card div { flex: 1; min-width: 0; display: grid; }
.acct-card b { font-size: 18px; font-weight: 900; color: var(--ink); }
.acct-card span.num { color: var(--mut); font-size: 14px; text-align: right; }
.acct-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.acct-links .card { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 8px; transition: transform .25s, box-shadow .25s; }
.acct-links .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.acct-links .ic { width: 26px; height: 26px; color: var(--brand); }
.acct-links b { font-size: 14px; font-weight: 900; }
.acct-links small { color: var(--mut); font-size: 12px; }

/* واتساب للتواصل */
.wa-fab { position: fixed; z-index: 34; inset-inline-start: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; transition: bottom .2s; }
.wa-fab .circle { width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px -4px rgba(37, 211, 102, .6); position: relative; }
.wa-fab .circle::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.2s ease-out infinite; }
@keyframes ring { to { transform: scale(1.5); opacity: 0; } }
.wa-fab .circle .ic { width: 27px; height: 27px; }
.wa-fab .tip { display: none; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; padding: 7px 13px; border-radius: 99px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); white-space: nowrap; }
body.has-cartbar .wa-fab { bottom: calc(164px + env(safe-area-inset-bottom)); }

.install { position: fixed; z-index: 60; inset-inline: 12px; top: 12px; max-width: 460px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 16px 40px -10px rgba(2, 12, 31, .35); display: flex; align-items: center; gap: 12px; animation: rise .3s ease-out; }
.install img { width: 46px; height: 46px; border-radius: 12px; }
.install div { flex: 1; min-width: 0; font-size: 13px; color: var(--mut); line-height: 1.45; }
.install div b { display: block; color: var(--navy); font-size: 14.5px; }
.toast { position: fixed; z-index: 70; bottom: calc(160px + env(safe-area-inset-bottom)); inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 32px); background: var(--dark); color: #fff; padding: 11px 18px 13px; border-radius: 14px; font-weight: 800; font-size: 14px; opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none; transition: opacity .25s, transform .25s; overflow: hidden; display: flex; align-items: center; gap: 8px; box-shadow: 0 14px 30px -10px rgba(2, 12, 31, .5); }
.toast::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 900; flex: none; }
.toast::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: right; }
.toast.show { opacity: 1; transform: none; }
.toast.show::after { animation: drain 2.2s linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }

/* ظهور العناصر مع النزول */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ───── الفوتر ───── */
.ftr-top { background: var(--dark); color: #fff; padding: 44px 0 30px; position: relative; overflow: hidden; }
.ftr-top::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 35%, transparent), transparent 70%); inset-inline-end: -120px; top: -160px; pointer-events: none; }
.ftr-grid { display: grid; gap: 26px; }
.ftr-brand { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .97); padding: 8px 14px 8px 18px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); margin-bottom: 14px; }
.ftr-brand .brand-logo { width: 72px; height: 72px; box-shadow: none; }
.ftr-brand b { color: var(--navy-d); font-size: 18px; font-weight: 900; display: block; line-height: 1.2; }
.ftr-brand small { color: var(--mut); font-size: 11px; font-weight: 800; }
.ftr p.about { font-size: 13.5px; color: rgba(255, 255, 255, .7); max-width: 360px; }
.ftr h3 { font-size: 17px; font-weight: 900; margin-bottom: 14px; padding-bottom: 7px; position: relative; }
.ftr h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 36px; height: 3px; border-radius: 99px; background: var(--accent); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr ul a, .ftr ul button { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .72); transition: all .2s; text-align: start; }
.ftr ul a:hover, .ftr ul button:hover { color: var(--accent); padding-inline-start: 5px; }
.ftr .contact li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.ftr .contact li { color: rgba(255, 255, 255, .78); }
.ftr .contact i { width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 30%, #0b1530); color: var(--accent); display: grid; place-items: center; flex: none; }
.ftr .contact .ic { width: 17px; height: 17px; }
.ftr-bottom { background: var(--dark); border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; padding: 16px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .55); }
.ftr-bottom b { color: #fff; }

/* ───── تابلت ───── */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
  .cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .count { display: inline-flex; }
  .brand-word small .x { display: inline; }
  .slide { grid-template-columns: 1.1fr .9fr; gap: 30px; padding: 26px 4px 54px; min-height: 380px; }
  .trust-row { grid-template-columns: repeat(4, auto); justify-content: center; gap: 14px 34px; }
  .trust-row div { font-size: 13.5px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how { grid-template-columns: repeat(3, 1fr); }
  .ftr-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .pc-name { font-size: 14px; }
}

/* ───── كمبيوتر ───── */
@media (min-width: 980px) {
  body, body.has-cartbar { padding-bottom: 0; }
  .tabbar, .cartbar { display: none !important; }
  .hdr-row { min-height: 80px; gap: 20px; }
  .brand { margin-inline-end: 0; }
  .brand-logo { width: 92px; height: 92px; border-radius: 20px; }
  .brand-word b { font-size: 21px; }
  .hdr-nav { display: flex; flex: 1; justify-content: center; gap: 28px; }
  .hbtn.acct { display: grid; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .cat-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .cat-card { aspect-ratio: 5 / 4; padding: 18px; }
  .cat-card b { font-size: 19px; }
  .cover { padding: 26px 0 34px; }
  .slide-vis { gap: 14px; max-width: 470px; margin-inline-start: auto; width: 100%; }
  .gcard { padding: 20px 12px; }
  .pills { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0; padding: 0; }
  .controls { padding: 14px 16px; }
  .slide h2 { max-width: 15em; }
  .cols { grid-template-columns: 1fr 390px; align-items: start; }
  .cols > aside { position: sticky; top: 100px; }
  .wa-fab, body.has-cartbar .wa-fab { bottom: 24px; inset-inline-start: 24px; }
  .wa-fab .tip { display: block; }
  .toast { bottom: 32px; }
  .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .sec { padding: 46px 0; }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ───── صورة الصنف: الصنف كامل جوه الصورة على خلفية فاتحة زي مواقع المتاجر ───── */
.pc .pc-media { aspect-ratio: 1; }
.pc .pc-media img { object-fit: contain; padding: 12px; }
.pc .pc-media svg { width: auto; height: 72%; }

/* أزرار الأقسام أكبر شوية */
.cpill { padding: 10px 20px; font-size: 15px; gap: 8px; }

/* الصنف اللي كميته خلصت: ظاهر في مكانه بس باهت ومينفعش يتطلب */
.pc.out .pc-media { opacity: .45; filter: grayscale(1); }
.pc.out .pc-name, .pc.out .price { opacity: .6; }
.ribbon.out { background: #64748b; color: #fff; }
.add.soldout { background: #e2e8f0; color: #64748b; cursor: not-allowed; box-shadow: none; }
.add.soldout:hover { background: #e2e8f0; box-shadow: none; }

/* الكمية المتاحة على الكارت */
.avail { display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 4px; font-size: 12px; font-weight: 700; color: #15803d; }
.avail b { font-weight: 900; }
.pc .avail .ic { display: inline-block; position: static; width: 13px; height: 13px; margin: 0; flex: none; }
.avail.low { color: #c2410c; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ───────── كود الخصم ───────── */
.tk-cpn { background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .45); color: #fff; font: inherit; padding: 2px 12px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.tk-cpn b { color: var(--accent); font-weight: 900; letter-spacing: .5px; }
.bn.coupon { --c1: color-mix(in srgb, var(--brand) 70%, #0a0f2e); --c2: color-mix(in srgb, var(--brand) 65%, #00c2a8); }
.bn-sub { font-size: 13.5px; opacity: .92; margin: -4px 0 12px; max-width: 420px; }
.bn-code { justify-self: center; display: grid; gap: 4px; text-align: center; padding: 18px 26px; border-radius: 18px; background: rgba(255, 255, 255, .14); border: 2px dashed rgba(255, 255, 255, .7); transform: rotate(-3deg); }
.bn-code span { font-size: 12px; font-weight: 800; opacity: .85; }
.bn-code b { font: 900 clamp(24px, 4vw, 44px) var(--font-brand); letter-spacing: 2px; }
.cpn-box { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.cpn-box input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1.5px dashed var(--line-h); border-radius: 10px; font: 800 14px var(--font); text-transform: uppercase; background: var(--soft); color: var(--ink); }
.cpn-box input:focus { outline: none; border-color: var(--brand); border-style: solid; }
.cpn-box.ok { padding: 9px 12px; border-radius: 10px; background: #e8f6ee; color: #166534; font-size: 13px; }
.cpn-box.ok .ic { width: 18px; height: 18px; flex: none; }
.cpn-box.ok span { flex: 1; }
.cpn-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #166534; }
.cpn-x .ic { width: 15px; height: 15px; }
#cpnErr .err { margin: 8px 0 0; }
.cpn-hint { display: flex; gap: 8px; align-items: center; margin: 10px 0; padding: 9px 12px; border-radius: 10px; background: var(--soft); border: 1px dashed var(--line-h); color: var(--navy); font-size: 12.5px; font-weight: 700; }
.cpn-hint .ic { width: 18px; height: 18px; flex: none; color: var(--brand); }
.sum-row.disc, .sum-row.disc b { color: #15803d; }

/* أقصى كمية في الطلب */
.lim-note { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 3px; font-size: 11.5px; font-weight: 800; color: #9a5b00; }
.pc .lim-note .ic { display: inline-block; position: static; width: 12px; height: 12px; margin: 0; flex: none; }

/* تقييم الطلب */
.stars { display: inline-flex; gap: 1px; color: #d0d5dd; font-style: normal; line-height: 1; }
.stars i { font-style: normal; }
.stars i.on { color: #f5a524; }
.rate { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line-h); display: grid; gap: 8px; justify-items: center; text-align: center; }
.rate > b { color: var(--navy); font-size: 14px; }
.rate small { color: var(--mut); font-size: 12px; }
.rate-stars { display: flex; gap: 4px; }
.rate-stars button { font-size: 32px; line-height: 1; color: #d0d5dd; padding: 0 2px; transition: transform .15s, color .15s; }
.rate-stars button.on { color: #f5a524; }
.rate-stars button:hover { transform: scale(1.15); }
.rate textarea { width: 100%; border: 1px solid var(--line-h); border-radius: 10px; padding: 8px 10px; font: 13.5px var(--font); resize: vertical; background: #fff; }
.rate .err { margin: 0; }
.rate.done { justify-items: stretch; text-align: start; background: #fffaf0; border-color: #fde3b0; }
.rate-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rate-h .stars { font-size: 18px; }
.rate-h b { color: var(--navy); font-size: 13.5px; }
.rate.done p { margin: 0; color: var(--body); font-size: 13.5px; }
.rate .lnk { margin-inline-start: auto; font-size: 12px; font-weight: 800; color: var(--brand); text-decoration: underline; }
.bn.coupon { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 599px) {
  .bn.coupon { grid-template-columns: minmax(0, 1fr) 100px; }
  .bn-code { width: 100%; padding: 10px 6px; border-radius: 14px; transform: rotate(-4deg); }
  .bn-code b { font-size: 16px; letter-spacing: .5px; overflow-wrap: anywhere; }
  .bn-code span { font-size: 10.5px; }
  .bn-sub { font-size: 12px; }
}

/* ═════════ أقسام الرئيسية بشكل التطبيق (العروض / الفئات / الماركات) ═════════ */
.cp-ic { font-style: normal; display: inline-flex; }
.cp-ic .ic { width: 16px; height: 16px; }
.app-sec { background: var(--bg); padding: 8px 0; }
.app-sec > .wrap { background: #fff; border-radius: 20px; padding: 16px 14px; box-shadow: var(--shadow); }
.app-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.app-h h2 { font-size: 20px; font-weight: 900; color: var(--ink); line-height: 1.3; }
.app-h p { font-size: 13.5px; color: var(--mut); font-weight: 600; margin-top: 2px; }
.app-nav { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand); transition: background .2s; }
.app-nav:hover { background: var(--soft-2); }
.app-nav .ic { width: 20px; height: 20px; }
.off-row { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.off-row > .off-tile { width: 96px; }
.off-tile { display: grid; justify-items: center; gap: 8px; padding: 4px 2px; font: inherit; color: var(--ink); text-align: center; }
.off-tile b { font-size: 14px; font-weight: 900; line-height: 1.3; }
.off-ic { position: relative; width: 78px; height: 78px; border-radius: 24px; display: grid; place-items: center; background: var(--soft); color: var(--brand); transition: transform .2s; }
.off-tile:hover .off-ic { transform: translateY(-3px); }
.off-ic .ic { width: 40px; height: 40px; stroke-width: 1.8; }
.off-ic em { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: var(--on-brand);
  font: normal 900 13px var(--font-brand); display: grid; place-items: center; border: 2.5px solid #fff; }
.app-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 4px; }
.app-row::-webkit-scrollbar { display: none; }
.cat-it, .br-it { flex: 0 0 auto; scroll-snap-align: start; display: grid; justify-items: center; align-content: start; gap: 8px; font: inherit; color: var(--ink); text-align: center; }
.cat-it { width: 118px; }
.cat-im { width: 118px; height: 118px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: var(--img-bg); }
.cat-im img { width: 100%; height: 100%; object-fit: cover; }
.cat-im i { font-style: normal; font-size: 52px; }
.cat-it b { font-size: 15px; font-weight: 900; line-height: 1.3; }
.br-it { width: 100px; }
.br-im { width: 100px; height: 72px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: #fff; border: 1.5px solid var(--line); }
.br-im img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.br-im i { font-style: normal; font: 900 30px var(--font); color: var(--bc, var(--brand)); }
.br-it b { font-size: 15px; font-weight: 900; }
.m-only { display: none; }

/* ═════════ الموبايل: شكل التطبيق — أيقونات وأزرار كبيرة وواضحة ═════════ */
@media (max-width: 759px) {
  .m-only { display: block; }
  body { background: #fff; }

  /* الهيدر أبيض والأزرار دواير */
  .hdr { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(15, 23, 42, .05); }
  .hdr-row { min-height: 72px; }
  .brand-logo { width: 82px; height: 82px; border-radius: 19px; background: var(--brand); color: var(--on-brand); box-shadow: none; }
  .brand-logo:has(img) { background: #fff; border: 1px solid var(--line); }
  .brand-word b { color: var(--ink); font-size: 21px; }
  .brand-word small { color: var(--mut); }
  .hbtn { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--brand); border: 1.5px solid var(--soft-2); }
  .hbtn .ic { width: 22px; height: 22px; }
  .cart-btn { height: 48px; border-radius: 99px; background: var(--brand); color: var(--on-brand); box-shadow: none; padding: 0 16px; }
  .cart-btn:hover { background: var(--brand-d); }
  .cart-btn .ic { width: 22px; height: 22px; }

  /* الأقسام بخلفية بيضا وفواصل بدل الكروت */
  .promo, .feat, .app-sec { background: #fff; }
  .app-sec { padding: 0; border-bottom: 8px solid var(--bg-soft); }
  .app-sec > .wrap { box-shadow: none; border-radius: 0; padding: 18px 16px; }
  .tiles-wrap { display: none; }
  .feat-box { box-shadow: none; padding: 14px 2px; }
  .off-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .off-row > .off-tile { width: auto; }
  .off-row:has(> :nth-child(5)) { display: flex; overflow-x: auto; scrollbar-width: none; }
  .off-row:has(> :nth-child(5)) .off-tile { flex: 0 0 84px; }
  .off-ic { width: 74px; height: 74px; border-radius: 22px; }
  .off-ic .ic { width: 38px; height: 38px; }
  .off-tile b { font-size: 13.5px; }

  /* تبويبات الأقسام: كلام بخط عريض وخط تحت المختار */
  .controls { background: #fff; border: 0; padding: 4px 0 0; gap: 14px; }
  .pills { gap: 22px; border-bottom: 1.5px solid var(--line); padding-bottom: 0; margin-inline: -16px; padding-inline: 16px; }
  .cpill { background: none; border: 0; border-radius: 0; padding: 10px 0 12px; font-size: 17px; font-weight: 800; color: #94a3b8; box-shadow: none; position: relative; }
  .cpill:hover { color: var(--ink); }
  .cpill.on { background: none; color: var(--ink); font-weight: 900; box-shadow: none; }
  .cpill.on::after { content: ""; position: absolute; inset-inline: 0; bottom: -1.5px; height: 3.5px; border-radius: 3px 3px 0 0; background: var(--brand); }
  .cp-ic { display: none; }

  /* الماركات دواير كبيرة وحوالين المختارة حلقة */
  .brands { gap: 14px; margin-inline: -16px; padding: 4px 16px; }
  .brand-chip { width: 80px; font-size: 14px; color: var(--ink); }
  .brand-chip i { width: 76px; height: 76px; border: 2px solid var(--line); margin-bottom: 6px; font-size: 26px; }
  .brand-chip.on i { border: 3px solid var(--brand); box-shadow: none; }
  .brand-chip.on { font-weight: 900; }

  .results-h { font-size: 19px; color: var(--ink); }

  /* قايمة المنتجات: صف لكل صنف — الصورة يمين والزرار بعرض الكارت */
  #list .grid { grid-template-columns: 1fr; gap: 14px; }
  #list .pc { display: grid; grid-template-columns: 124px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-content: start; padding: 14px; border-radius: 22px; border: 1px solid #eef1f6; box-shadow: 0 4px 16px rgba(15, 23, 42, .05); }
  #list .pc:hover { transform: none; }
  #list .pc .pc-media { grid-column: 1; grid-row: 1 / span 6; margin: 0; width: 124px; aspect-ratio: 1; border-radius: 18px; background: #fff; border: 1px solid #eef1f6; align-self: start; }
  #list .pc .pc-media img { padding: 8px; }
  #list .pc .pc-media svg { width: auto; height: 96%; }
  #list .pc-body { display: contents; }
  #list .pc-body > * { grid-column: 2; text-align: start; justify-self: start; max-width: 100%; }
  #list .pc-cat { font-size: 12.5px; padding-inline-end: 46px; }
  #list .pc-name { font-size: 16.5px; font-weight: 900; min-height: 0; line-height: 1.45; padding-inline-end: 46px; }
  #list .pack { justify-self: start; background: #fff; color: var(--ink); border: 1.5px solid var(--brand); font-size: 13.5px; padding: 5px 14px; }
  #list .seg { justify-self: stretch; background: #fff; border: 1.5px solid var(--soft-2); padding: 3px; }
  #list .seg button { font-size: 13px; padding: 6px 4px; }
  #list .price { margin-top: 2px; }
  #list .price b { font-size: 22px; }
  #list .avail, #list .lim-note { justify-content: flex-start; font-size: 12.5px; }
  #list .pc-body > .add, #list .pc-body > .step { grid-column: 1 / -1; justify-self: stretch; margin-top: 8px; }
  #list .fav { top: 14px; inset-inline-end: 14px; width: 42px; height: 42px; background: #f1f3f7; border: 0; color: #64748b; }
  #list .fav .ic { width: 20px; height: 20px; }
  #list .fav.on { background: var(--red); color: #fff; }
  #list .ribbon { top: 18px; inset-inline-start: 18px; }

  /* زرار الإضافة كبير بلون المتجر */
  .add { height: 52px; border-radius: 16px; background: var(--brand); color: var(--on-brand); font-size: 17px; }
  .add:hover { background: var(--brand-d); box-shadow: none; }
  .add .ic { width: 22px; height: 22px; }
  .step { height: 52px; border-radius: 16px; }
  .step button { width: 56px; }
  .step .ic { width: 22px; height: 22px; }
  .step input { font-size: 19px; }

  /* الشريط السفلي: أيقونات أكبر */
  .tab { font-size: 12.5px; gap: 3px; padding: 5px 0; }
  .tab .ic { width: 27px; height: 27px; }
  .tab.on { font-weight: 900; }
  .tab.on::before { background: var(--brand); width: 34px; }
}

/* اسم المتجر الطويل يظهر كله على الموبايل (سطرين) — والسلة دايرة أيقونة بس (موجودة كمان في الشريط اللي تحت) */
@media (max-width: 759px) {
  .hdr-row { gap: 10px; }
  .brand { flex: 1; gap: 9px; }
  .brand-word b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 16.5px; line-height: 1.3; }
  .brand-word small { font-size: 11.5px; margin-top: 1px; }
  /* السلة والاتصال موجودين في الشريط اللي تحت وزرار الواتساب — الهيدر فيه البحث بس عشان الاسم ياخد مكانه */
  .hdr-actions .cart-btn, .hdr-actions a.hbtn[href^="tel:"] { display: none; }
}
@media (max-width: 360px) {
  .brand-word b { font-size: 15px; }
  .brand-word small { display: none; }
  .brand-logo { width: 70px; height: 70px; }
  .hbtn { width: 44px; height: 44px; }
}

/* السلايدر اللي فوق أصغر على الموبايل — عنوان + زرار بس، والصور أصغر */
@media (max-width: 759px) {
  .promo { padding: 10px 0 4px; }
  .bn-slider { border-radius: 18px; }
  .bn { grid-template-columns: minmax(0, 1fr) 104px; min-height: 0; padding: 12px 14px 24px; gap: 10px; }
  .bn::before { width: 220px; height: 220px; top: -110px; }
  .bn-tag { font-size: 10.5px; padding: 3px 10px; margin-bottom: 5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bn h2 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
  .bn-boxes { display: none; }
  .bn-sub { display: none; }
  .bn-cta { font-size: 12.5px; padding: 6px 14px; }
  .bn-pics { min-height: 104px; height: 104px; }
  .bn-pics .bn-pic:nth-child(1) { width: 92%; }
  .bn-code { padding: 8px 6px; }
  .bn-code b { font-size: 15px; }
  .bn-slider .dots { bottom: 7px; }
}

/* ═════════ صفحة المنتجات (قسم / ماركة / عرض) ═════════ */
.cat-page { background: var(--bg-soft); min-height: 70vh; padding-bottom: 24px; }
.cp-top { background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.cp-h { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; padding: 12px 0 6px; }
.cp-h h1 { text-align: center; font-size: 22px; font-weight: 900; color: var(--ink); }
.cp-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand); }
.cp-btn .ic { width: 22px; height: 22px; }
.cp-top .pills { margin-inline: 0; padding-inline: 0; padding-bottom: 10px; }
.cp-body #brands { margin-bottom: 12px; }
.cp-body .brands { margin-inline: 0; padding-inline: 0; }

@media (max-width: 759px) {
  /* الصفحة دي ليها هيدر خاص بيها زي التطبيق */
  body[data-view="c"] .hdr, body[data-view="c"] .ticker { display: none; }
  .cp-top { position: sticky; top: 0; z-index: 30; box-shadow: 0 4px 14px rgba(15, 23, 42, .05); }
  .cp-top .pills { margin-inline: -16px; padding-inline: 16px; padding-bottom: 0; border-bottom: 0; }
  .cp-body { padding-top: 4px; }
  .cp-body .brands { margin-inline: -16px; padding-inline: 16px; }
}

/* "منتجات قد تعجبك" على الموبايل: كروت أصغر (حوالي 2.5 كارت في الشاشة) */
@media (max-width: 759px) {
  .hrow { gap: 9px; padding-top: 8px; }
  .hrow .pc { flex: 0 0 132px; border-radius: 16px; }
  .hrow .pc .pc-media { margin: 6px 6px 0; border-radius: 12px; }
  .hrow .pc .pc-media svg { height: 86%; }
  .hrow .pc-body { padding: 6px 7px 8px; gap: 4px; }
  .hrow .pc-cat, .hrow .avail, .hrow .lim-note, .hrow .price .per { display: none; }
  .hrow .pc-name { font-size: 12.5px; min-height: 2.7em; line-height: 1.35; }
  .hrow .pack { font-size: 10.5px; padding: 2px 8px; }
  .hrow .seg button { font-size: 10.5px; padding: 2px; }
  .hrow .price b { font-size: 16px; }
  .hrow .fav { top: 9px; inset-inline-end: 9px; width: 28px; height: 28px; }
  .hrow .fav .ic { width: 14px; height: 14px; }
  .hrow .ribbon { top: 9px; inset-inline-start: 9px; font-size: 9.5px; padding: 2px 7px; }
  .hrow .add { height: 36px; font-size: 13px; border-radius: 11px; gap: 4px; }
  .hrow .add .ic { width: 16px; height: 16px; }
  .hrow .step { height: 36px; border-radius: 11px; }
  .hrow .step button { width: 32px; }
  .hrow .step .ic { width: 16px; height: 16px; }
  .hrow .step input { font-size: 15px; }
}

/* قايمة المنتجات (تحت "جميع منتجات المتجر" وفي صفحة القسم) أصغر على الموبايل — حوالي 4 أصناف في الشاشة */
@media (max-width: 759px) {
  #list .grid { gap: 10px; }
  #list .pc { grid-template-columns: 92px minmax(0, 1fr); column-gap: 11px; row-gap: 3px; padding: 10px; border-radius: 18px; }
  #list .pc .pc-media { width: 92px; border-radius: 14px; grid-row: 1 / span 5; }
  #list .pc .pc-media img { padding: 5px; }
  #list .pc-cat { display: none; }
  #list .pc-name { font-size: 14.5px; line-height: 1.4; padding-inline-end: 38px; }
  #list .pack { font-size: 12px; padding: 2px 10px; border-width: 1.2px; }
  #list .seg button { font-size: 12px; padding: 4px 3px; }
  #list .price { margin-top: 0; }
  #list .price b { font-size: 18px; }
  #list .price s { font-size: 11.5px; }
  #list .price .per { font-size: 11px; }
  #list .avail, #list .lim-note { font-size: 11.5px; margin-top: 0; }
  #list .pc-body > .add, #list .pc-body > .step { margin-top: 6px; }
  #list .add { height: 42px; font-size: 15px; border-radius: 13px; }
  #list .add .ic { width: 19px; height: 19px; }
  #list .step { height: 42px; border-radius: 13px; }
  #list .step button { width: 48px; }
  #list .step input { font-size: 17px; }
  #list .fav { top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; }
  #list .fav .ic { width: 17px; height: 17px; }
  #list .ribbon { top: 13px; inset-inline-start: 13px; font-size: 9.5px; padding: 2px 7px; }
}

/* اللوجو المرفوع بيملا مكانه كله من غير الإطار الأبيض — أوضح وأكبر (خصوصًا اللوجو المدوّر) */
.brand .brand-logo:has(img), .ftr-brand .brand-logo:has(img) { padding: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.brand .brand-logo:has(img) img, .ftr-brand .brand-logo:has(img) img { filter: drop-shadow(0 4px 10px rgba(2, 12, 31, .22)); }
