/* ═══════════ تصميم راقٍ للمتجر ═══════════ */
:root {
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px; --r-btn: 12px; --r-pill: 10px;
  --ink: var(--text);
  --surface: #ffffff;
  --line: color-mix(in srgb, var(--text) 9%, transparent);
  --line-2: color-mix(in srgb, var(--text) 16%, transparent);
  --soft: color-mix(in srgb, var(--text) 3.5%, var(--bg));
  --tint: color-mix(in srgb, var(--primary) 10%, var(--surface));
  --sub: color-mix(in srgb, var(--ink) 62%, transparent);
  --glow: 0 14px 34px -16px color-mix(in srgb, var(--primary) 55%, transparent);
  --lift: 0 1px 2px rgb(15 23 42 / .04), 0 12px 32px -14px rgb(15 23 42 / .16);
  --ease: cubic-bezier(.22, .8, .24, 1);
}
body { background: var(--bg); letter-spacing: -.003em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
main.wrap { min-height: 60vh; padding-block: 1.4rem 5rem; }
::selection { background: var(--primary); color: #fff; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn { border-radius: var(--r-btn); padding: .82em 1.6em; font-weight: 700; letter-spacing: 0; transition: transform .25s var(--ease), box-shadow .25s, background .2s, color .2s, filter .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--glow); filter: brightness(1.06); }
.btn .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(-4px); }
.btn.ghost { background: transparent; border: 1px solid var(--line-2); }
.btn.ghost:hover { box-shadow: none; background: var(--surface); border-color: var(--ink); filter: none; }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.light { background: #fff; color: #0f172a; }
.btn.light:hover { box-shadow: 0 14px 30px -14px rgb(0 0 0 / .5); }
.btn.sm { border-radius: 10px; }
input:not([type]), input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], input[type=date], input[type=search], select, textarea {
  border-radius: var(--r-sm); padding: .82em 1em; background: var(--surface); border-color: var(--line-2); transition: border-color .2s, box-shadow .2s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.card { border-radius: var(--r-md); box-shadow: 0 1px 2px rgb(15 23 42 / .03); border: 1px solid var(--line); padding: 1.6rem; }

/* شريط الإعلان */
.announce { background: var(--ink); color: color-mix(in srgb, var(--bg) 88%, transparent); font-size: .8rem; font-weight: 500; letter-spacing: .01em; overflow: hidden; white-space: nowrap; }
.announce .track { display: inline-flex; gap: 3.5rem; padding: .62em 0; animation: marquee 45s linear infinite; }
.announce .track span::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; vertical-align: middle; margin-inline-end: 3.5rem; }
.announce:hover .track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* الهيدر */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s; }
.topbar.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); box-shadow: 0 10px 30px -22px rgb(0 0 0 / .25); }
.topbar-in { display: flex; align-items: center; gap: 10px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.025em; white-space: nowrap; }
.brand img { height: 42px; width: auto; }
.brand .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--bg) !important; }
.nav-links { display: flex; gap: 0; margin-inline-start: 1.6rem; }
.nav-links a { position: relative; padding: .5em .95em; text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--sub); transition: color .2s; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; inset-inline: .95em; bottom: .15em; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.on { color: var(--ink); }
.nav-links a.on::after { transform: scaleX(1); background: var(--primary); }
.search { flex: 1; max-width: 340px; margin-inline-start: auto; position: relative; display: flex; }
.search input { border-radius: var(--r-sm); padding-block: .66em; padding-inline: 2.9em 1em; background: var(--soft); border-color: transparent; font-size: .92rem; }
.search input:focus { background: var(--surface); }
.search button { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--sub); cursor: pointer; display: grid; place-items: center; }
.search button:hover { color: var(--ink); }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; text-decoration: none; transition: background .2s; }
.icon-btn:hover { background: var(--soft); }
.badge { position: absolute; top: 2px; left: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }
.nav { display: none; }

/* الهيرو */
.hero { position: relative; display: grid; align-items: center; min-height: clamp(460px, 68vh, 640px); padding: clamp(2rem, 6vw, 5rem); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 0; isolation: isolate; }
.hero.no-media { background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%), radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #111; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 7s ease-out; }
.hero-media img.on { opacity: 1; transform: scale(1); }
.hero.has-media::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgb(8 10 16 / .78) 0%, rgb(8 10 16 / .45) 45%, rgb(8 10 16 / .05) 80%), linear-gradient(to top, rgb(8 10 16 / .35), transparent 40%); }
.hero.has-media { color: #fff; }
.slides { position: relative; max-width: 620px; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none; }
.slide.on { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .7em; align-self: flex-start; font-size: .82rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 1.1rem; opacity: .9; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; opacity: .7; }
.slide h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; margin-bottom: .45em; text-wrap: balance; }
.slide p { font-size: clamp(1rem, 1.5vw, 1.18rem); opacity: .82; max-width: 32em; margin: 0 0 2rem; line-height: 1.75; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta .btn { padding: 1em 2.1em; font-size: 1rem; }
.hero.has-media .btn.ghost { color: #fff; border-color: rgb(255 255 255 / .45); background: rgb(255 255 255 / .06); backdrop-filter: blur(8px); }
.hero.has-media .btn.ghost:hover { background: rgb(255 255 255 / .16); border-color: #fff; }
.dots { position: absolute; bottom: clamp(1.4rem, 3vw, 2.2rem); inset-inline-start: clamp(2rem, 6vw, 5rem); display: flex; gap: 8px; z-index: 2; }
.dots button { width: 34px; height: 18px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; align-items: center; }
.dots button i { display: block; height: 3px; border-radius: 3px; background: color-mix(in srgb, currentColor 30%, transparent); transition: background .3s; }
.hero.has-media .dots button i { background: rgb(255 255 255 / .35); }
.dots button.on i { background: currentColor; }
.hero.no-media .dots button.on i { background: var(--primary); }

/* شريط المزايا */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); margin: 1.2rem 0 5rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.perk { display: flex; align-items: center; gap: 14px; padding: 1.25rem 1.4rem; }
.perk + .perk { border-inline-start: 1px solid var(--line); }
.perk b { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); }
.perk strong { display: block; font-size: .94rem; font-weight: 700; }
.perk small { color: var(--muted); font-size: .82rem; }

/* رؤوس الأقسام */
.sec { margin-bottom: 5.5rem; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.sec-head .kicker { display: inline-flex; align-items: center; gap: .6em; color: var(--primary); font-weight: 700; font-size: .8rem; letter-spacing: .08em; margin-bottom: .45rem; }
.sec-head .kicker::before { content: ''; width: 20px; height: 1.5px; background: currentColor; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; letter-spacing: -.03em; font-weight: 800; }
.sec-head a { display: inline-flex; align-items: center; gap: .45em; padding: .4em 0; color: var(--ink); font-weight: 700; text-decoration: none; font-size: .92rem; white-space: nowrap; border-bottom: 1.5px solid var(--line-2); transition: border-color .2s, gap .25s var(--ease); }
.sec-head a:hover { border-color: var(--ink); gap: .7em; }

/* الأقسام (بنتو) */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); grid-auto-rows: 320px; gap: 16px; }
.cat { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; text-decoration: none; isolation: isolate; background: var(--soft); }
/* تخطيط بنتو فقط عندما يملأ العدد الشبكة بلا فراغات (3 أو 5 أقسام) */
.cats:has(> :nth-child(3)):not(:has(> :nth-child(4))) { grid-template-columns: 1.4fr 1fr; grid-auto-rows: 250px; }
.cats:has(> :nth-child(3)):not(:has(> :nth-child(4))) .cat:first-child { grid-row: span 2; }
.cats:has(> :nth-child(5)):not(:has(> :nth-child(6))) { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
.cats:has(> :nth-child(5)):not(:has(> :nth-child(6))) .cat:first-child { grid-row: span 2; grid-column: span 2; }
.cat img, .cat .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; font-size: 5.5rem; transition: transform 1s var(--ease); z-index: -2; }
.cat .ph { padding-bottom: 2rem; }
.cat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(8 10 16 / .72), rgb(8 10 16 / .1) 50%, transparent); transition: opacity .4s; }
.cat:hover img, .cat:hover .ph { transform: scale(1.05); }
.cat .cat-in { position: absolute; inset-inline: 20px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.cat b { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.cat .arr { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #0f172a; display: grid; place-items: center; opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .35s var(--ease); }
.cat:hover .arr { opacity: 1; transform: none; }

/* بطاقات المنتجات */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 34px 20px; }
.pcard { position: relative; display: flex; flex-direction: column; background: transparent; }
.pcard .thumb { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: var(--soft); aspect-ratio: 4/5; }
.pcard .thumb img, .pcard .thumb .ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: transform 1s var(--ease); }
.pcard .thumb .ph { font-size: clamp(3rem, 6vw, 4.5rem); }
.pcard:hover .thumb img, .pcard:hover .thumb .ph { transform: scale(1.045); }
.sale-tag { display: none; }
.out-tag { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 60%, transparent); backdrop-filter: grayscale(1); font-weight: 700; letter-spacing: .02em; }
.qa { position: absolute; bottom: 12px; inset-inline: 12px; height: 46px; border-radius: var(--r-sm); border: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); color: var(--ink); font-size: .9rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: .45em; cursor: pointer; box-shadow: 0 8px 24px -10px rgb(0 0 0 / .3); transform: translateY(10px); opacity: 0; transition: transform .35s var(--ease), opacity .3s, background .2s, color .2s; z-index: 2; }
.pcard:hover .qa, .qa:focus-visible { transform: none; opacity: 1; }
.qa:hover { background: var(--ink); color: var(--bg); }
.pcard .body { padding: 1rem .15rem 0; display: flex; flex-direction: column; gap: .2rem; }
.pcard .cat-name { font-size: .76rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.pcard h3 { font-size: 1rem; font-weight: 600; margin: 0; letter-spacing: -.005em; line-height: 1.45; }
.pcard h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.pcard h3 a:hover { background-size: 100% 1px; }
.price { font-weight: 700; color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.price del { color: var(--muted); font-weight: 500; font-size: .85em; margin-inline-start: .5em; }
.pcard .price { margin-top: .2rem; }
.pcard:has(.bdg.sale) .price { color: #dc2626; }

.text-sec { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2.4rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--r-lg); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.text-sec::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--primary); filter: blur(110px); opacity: .4; top: -180px; left: -120px; z-index: -1; }
.text-sec .big-ico { font-size: 4rem; width: 112px; height: 112px; display: grid; place-items: center; border-radius: 28px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.text-sec .big-ico .ph { background: none; }
.text-sec h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.03em; font-weight: 800; }
.text-sec p { margin: 0; opacity: .78; font-size: 1.05rem; max-width: 62ch; line-height: 1.85; }

/* القوائم والفلاتر */
.page-title { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.035em; font-weight: 800; margin: .3rem 0 1.2rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; padding: .6rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chip { padding: .5em 1.1em; border-radius: var(--r-pill); background: transparent; text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background .2s, color .2s; }
.chip:hover { background: var(--soft); }
.chip.on { background: var(--ink); color: #fff; }
.toolbar select { width: auto; border-radius: var(--r-pill); border: 0; background: var(--soft); font-weight: 600; padding: .5em 1.1em; }
.count { color: var(--muted); font-size: .9rem; margin: -.6rem 0 1.2rem; }
.crumbs { display: flex; gap: .5em; font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

/* صفحة المنتج */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gallery { position: sticky; top: 100px; }
.gallery .main { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery .main img, .gallery .main .ph { width: 100%; aspect-ratio: 1; object-fit: cover; font-size: 8rem; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs img { width: 78px; height: 78px; object-fit: cover; border-radius: var(--r-sm); cursor: pointer; border: 2px solid transparent; opacity: .6; transition: opacity .2s, border-color .2s; }
.thumbs img.on, .thumbs img:hover { opacity: 1; border-color: var(--primary); }
.pinfo h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.035em; font-weight: 800; }
.pinfo .price { font-size: 1.75rem; margin-bottom: 1.2rem; color: var(--ink); }
.desc { color: color-mix(in srgb, var(--ink) 70%, transparent); margin-bottom: 1.6rem; font-size: 1.02rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.opt { margin-bottom: 1.4rem; }
.opt > b { display: block; margin-bottom: .55rem; font-size: .95rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: inline-block; padding: .6em 1.2em; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-weight: 600; transition: all .2s var(--ease); }
.choices label:hover span { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.choices input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.choices input:checked + span small { color: rgb(255 255 255 / .7); }
.choices input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); overflow: hidden; height: 54px; }
.qty button { border: 0; background: transparent; width: 46px; height: 100%; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--soft); }
.qty input { width: 46px; text-align: center; border: 0; padding: 0; border-radius: 0; box-shadow: none !important; background: transparent; }
.buy-row { display: flex; gap: 10px; align-items: center; margin-top: 1.6rem; }
.buy-row .btn { flex: 1; height: 54px; font-size: 1.05rem; }
.file-drop { display: flex; align-items: center; gap: 12px; padding: 1rem; border: 1.5px dashed color-mix(in srgb, var(--ink) 20%, transparent); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
.file-drop:hover { border-color: var(--primary); background: var(--soft); }
.file-drop input { display: none; }
.file-drop .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.file-status { font-size: .85rem; }
.assure { display: grid; gap: 10px; margin-top: 1.6rem; padding: 1.1rem 1.3rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 500; color: var(--sub); }

/* السلة والدفع */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-item img, .cart-item .ph { width: 96px; height: 96px; border-radius: var(--r-sm); object-fit: cover; font-size: 2.2rem; }
.cart-item .opts { font-size: .85rem; color: var(--muted); }
.cart-item .end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item .qty { height: 42px; }
.cart-item .qty button { width: 38px; }
.cart-item .qty input { width: 34px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .85rem; padding: 0; text-decoration: underline; }
.link-btn:hover { color: var(--err); }
.summary { position: sticky; top: 100px; }
.summary h3 { font-size: 1.15rem; }
.summary .row { display: flex; justify-content: space-between; padding: .4em 0; gap: 1em; }
.summary .row.total { border-top: 1px dashed var(--line); margin-top: .6em; padding-top: .9em; font-weight: 800; font-size: 1.3rem; }
.summary .discount { color: var(--ok); }
.coupon { display: flex; gap: 8px; margin: 1rem 0; }
.coupon input { border-radius: var(--r-pill); }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 1em 1.2em; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; margin-bottom: 10px; background: var(--surface); transition: border-color .2s, background .2s; }
.pay-opt:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.pay-opt input { accent-color: var(--ink); margin-top: .35em; }
.step { display: flex; align-items: center; gap: .7em; font-size: 1.1rem; }
.step i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.empty { text-align: center; padding: 5rem 1rem; }
.empty .big { width: 120px; height: 120px; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 40px; background: var(--tint); font-size: 3.4rem; }
.empty h2 { font-size: 1.8rem; letter-spacing: -.03em; }

.done { max-width: 640px; margin: 2rem auto; text-align: center; padding: clamp(1.8rem, 5vw, 3rem); }
.done .check { width: 96px; height: 96px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 3rem; display: grid; place-items: center; margin: 0 auto 1.4rem; box-shadow: 0 0 0 12px color-mix(in srgb, var(--ok) 15%, transparent); animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.1); } }
.order-no { display: inline-block; font-size: 2.2rem; font-weight: 800; letter-spacing: 3px; padding: .2em .8em; border-radius: var(--r-sm); background: var(--soft); margin-bottom: 1rem; }

.timeline { list-style: none; padding: 0; margin: 1.2rem 0; }
.timeline li { position: relative; padding: 0 1.8rem 1.2rem 0; border-right: 2px dashed var(--line); }
.timeline li::before { content: ''; position: absolute; right: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--primary)); box-shadow: 0 0 0 4px var(--surface); }
.timeline li:last-child { border-color: transparent; }
.page-content { max-width: 820px; margin-inline: auto; }

/* هيكل التحميل */
.skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; margin-top: 1rem; }
.skel { border-radius: var(--r-md); background: linear-gradient(90deg, var(--line) 25%, color-mix(in srgb, var(--line) 40%, transparent) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skel.tall { aspect-ratio: 4/5; }
.skel.line { height: 14px; margin-top: 12px; width: 70%; border-radius: 99px; }
.skel.line.s { width: 40%; }
.skel.hero { height: 420px; border-radius: var(--r-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ظهور تدريجي */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.fade-in { animation: fadeIn .45s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }

/* الفوتر */
.footer { position: relative; background: #0b0d12; color: rgb(255 255 255 / .62); padding: 4.5rem 0 2rem; margin-top: 3rem; overflow: hidden; isolation: isolate; font-size: .94rem; }
.footer::before { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: var(--primary); filter: blur(160px); opacity: .22; top: -380px; right: -140px; z-index: -1; }
.footer a { color: rgb(255 255 255 / .62); text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
.foot-cta h3 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.8rem); letter-spacing: -.035em; font-weight: 800; margin: 0; max-width: 20ch; line-height: 1.2; }
.foot-cta .btn { background: #fff; color: #0b0d12; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.foot-grid p { max-width: 42ch; line-height: 1.8; }
.footer h4 { color: #fff; margin: 0 0 1.1rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; opacity: .9; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1.4rem; }
.social a { padding: .42em 1em; border: 1px solid rgb(255 255 255 / .14); border-radius: 10px; font-size: .84rem; transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: #fff; color: #0b0d12; border-color: #fff; }
.foot-brand { font-size: 1.35rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: .5em; margin-bottom: .6rem; }
.copy { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgb(255 255 255 / .08); font-size: .82rem; color: rgb(255 255 255 / .42); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.wa-float { position: fixed; bottom: 24px; left: 24px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 30px -6px rgb(37 211 102 / .6); text-decoration: none; z-index: 40; transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.08); }

/* ═══════════ البحث الفوري ═══════════ */
.search-drop { position: absolute; top: calc(100% + 8px); inset-inline: 0; min-width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 24px 60px -20px rgb(15 23 42 / .3); padding: 6px; z-index: 70; max-height: 70vh; overflow-y: auto; animation: fadeIn .2s var(--ease); }
.s-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; text-decoration: none; }
.s-item img, .s-item .ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; font-size: 1.4rem; }
.s-item b { display: block; font-size: .92rem; font-weight: 700; }
.s-item small { color: var(--muted); font-size: .78rem; }
.s-item .price { font-size: .92rem; color: var(--primary); white-space: nowrap; }
.s-item:hover, .s-item.sel { background: var(--soft); }
.s-all { display: block; text-align: center; padding: .7em; margin-top: 4px; border-top: 1px solid var(--line); color: var(--primary); font-weight: 700; text-decoration: none; font-size: .9rem; border-radius: 0 0 12px 12px; }
.s-all:hover, .s-all.sel { background: var(--soft); }
.s-empty { padding: 1.2rem; text-align: center; color: var(--muted); }

/* ═══════════ السلة الجانبية ═══════════ */
body.locked { overflow: hidden; }
.overlay { position: fixed; inset: 0; background: rgb(15 23 42 / .45); backdrop-filter: blur(3px); z-index: 90; animation: fadeIn .25s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(420px, 100%); background: var(--bg); z-index: 100; display: flex; flex-direction: column; transform: translateX(-105%); transition: transform .4s var(--ease); box-shadow: 20px 0 60px -20px rgb(0 0 0 / .3); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.2rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.drawer-foot { padding: 1.1rem 1.3rem calc(1.1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; }
.drawer-foot:empty { display: none; }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 1.15rem; }
.ship-progress { padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--soft); margin-bottom: 1rem; font-size: .9rem; }
.bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; margin-top: .5rem; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .6s var(--ease); }
.d-item { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.d-item:last-child { border-bottom: 0; }
.d-item.flash { animation: flash 1.2s var(--ease); border-radius: var(--r-sm); }
@keyframes flash { 0% { background: var(--tint); } 100% { background: transparent; } }
.d-item img, .d-item .ph { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; font-size: 1.8rem; }
.d-info { min-width: 0; padding-inline-end: 26px; }
.d-info b { display: block; font-size: .95rem; }
.d-info small { display: block; color: var(--muted); font-size: .8rem; }
.d-row { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
.d-row .price { font-size: .95rem; }
.d-del { position: absolute; top: .9rem; left: 0; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.d-del:hover { background: #fee2e2; color: var(--err); }
.qty.sm { height: 34px; }
.qty.sm button { width: 32px; font-size: 1rem; }
.qty.sm span { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; }

/* ═══════════ النجوم والتقييمات ═══════════ */
.stars { display: inline-flex; gap: 1px; color: color-mix(in srgb, var(--ink) 18%, transparent); font-size: 1.05rem; line-height: 1; direction: ltr; }
.stars.sm { font-size: .85rem; }
.stars.lg { font-size: 1.5rem; }
.stars i { font-style: normal; }
.stars i.f { color: #f59e0b; }
.stars i.h { background: linear-gradient(90deg, #f59e0b 50%, color-mix(in srgb, var(--ink) 18%, transparent) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rate-row { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; }
.rate-row small { color: var(--muted); font-size: .8rem; }
.rate-row.big { margin: -.2rem 0 .6rem; }
.rate-row.big small { font-size: .9rem; text-decoration: underline; }
.reviews { margin-top: 4rem; }
.rv-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; align-items: start; }
.rv-summary { text-align: center; position: sticky; top: 100px; }
.rv-score { font-size: 3.6rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.rv-bar { display: grid; grid-template-columns: 34px 1fr 24px; gap: 8px; align-items: center; font-size: .85rem; margin-top: .4rem; }
.rv-bar .bar { margin: 0; }
.rv-bar .bar i { background: #f59e0b; }
.rv-item { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.rv-item:first-child { padding-top: 0; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-head > div { flex: 1; }
.rv-head b { display: block; }
.rv-av { width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.rv-item p { margin: .6rem 0 0; }
.rv-form { margin-top: 1.4rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 1rem; direction: ltr; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2rem; cursor: pointer; color: color-mix(in srgb, var(--ink) 18%, transparent); transition: color .15s, transform .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }

/* ═══════════ معرض الصور ═══════════ */
.gallery .main { position: relative; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; cursor: zoom-in; }
.g-slide img { transition: transform .25s ease-out; }
.g-hint { position: absolute; bottom: 14px; right: 14px; padding: .3em .8em; border-radius: 99px; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(8px); font-size: .78rem; font-weight: 700; pointer-events: none; }
.g-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: none; }
.g-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgb(255 255 255 / .6); box-shadow: 0 0 0 1px rgb(0 0 0 / .1); transition: width .3s; }
.g-dots i.on { width: 20px; background: #fff; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgb(10 10 15 / .94); display: grid; place-items: center; animation: fadeIn .25s; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 12px; user-select: none; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; font-size: 1.8rem; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgb(255 255 255 / .25); }
.lb-close { top: 20px; left: 20px; font-size: 1.2rem; }
.lb-prev { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 24px; color: #fff; font-weight: 700; opacity: .8; }

/* ═══════════ شريط الشراء الثابت ═══════════ */
.buybar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 65; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 10px; padding-inline-start: 20px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); box-shadow: 0 20px 50px -15px rgb(0 0 0 / .3); animation: bbIn .3s var(--ease); }
@keyframes bbIn { from { opacity: 0; transform: translate(-50%, 16px); } }
.buybar > div { min-width: 0; }
.buybar small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .8rem; }
.buybar b { font-size: 1.1rem; color: var(--primary); }
.buybar .btn { flex: none; }

/* ═══════════ المفضلة والشارات والعدّاد ═══════════ */
.heart { position: absolute; top: 10px; left: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgb(0 0 0 / .08); transition: transform .2s var(--ease); }
.heart svg { fill: none; stroke: var(--ink); stroke-width: 2; transition: fill .2s, stroke .2s; }
.heart:hover { transform: scale(1.1); }
.heart.on svg { fill: #ef4444; stroke: #ef4444; }
.heart.on { animation: beat .4s var(--ease); }
@keyframes beat { 50% { transform: scale(1.25); } }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.title-row .heart { position: static; flex: none; width: 46px; height: 46px; border: 1px solid var(--line); box-shadow: none; }
.title-row .heart svg { width: 20px; height: 20px; }
.bdgs { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.pinfo > .bdgs, .qv-info .bdgs { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: .6rem; }
.bdg { padding: .28em .7em; border-radius: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .01em; color: #fff; background: var(--ink); white-space: nowrap; }
.bdg.sale { background: #ef4444; }
.bdg.best { background: linear-gradient(90deg, #f97316, #f59e0b); }
.bdg.new { background: var(--primary); }
.bdg.low { background: #7c3aed; }
.bdg.custom { background: var(--accent); color: #111; }
.sale-tag { display: none; }
.qv-btn { position: absolute; top: 56px; left: 10px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); color: var(--ink); font-weight: 700; font-size: .82rem; cursor: pointer; box-shadow: var(--lift); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease), background .2s; }
.pcard:hover .qv-btn, .qv-btn:focus-visible { opacity: 1; transform: none; }
.qv-btn:hover { background: var(--ink); color: var(--bg); }
.cd { position: absolute; inset-inline: 12px; bottom: 66px; z-index: 2; text-align: center; padding: .35em .6em; border-radius: 10px; background: rgb(239 68 68 / .92); color: #fff; font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd .cd-end { opacity: .9; }
.cd.big { position: static; direction: rtl; text-align: start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-inline-start: 3px solid #ef4444; padding: .9rem 1rem; border-radius: var(--r-sm); margin: -.4rem 0 1.4rem; }
.cd-label { display: block; font-size: .88rem; color: #dc2626; margin-bottom: .5rem; }
.cd-boxes { display: flex; gap: 8px; direction: ltr; justify-content: flex-end; }
.cd-boxes span { min-width: 58px; padding: .4em .3em; border-radius: 10px; background: var(--soft); text-align: center; }
.cd-boxes b { display: block; font-size: 1.35rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-boxes small { font-size: .7rem; color: var(--muted); font-weight: 600; }

/* ═══════════ الفلترة ═══════════ */
.tb-end { display: flex; gap: 8px; align-items: center; }
.filter-btn { border: 0; cursor: pointer; background: var(--soft); font-weight: 700; }
.filter-btn.on { background: var(--ink); color: var(--bg); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.5rem 2.5rem; padding: 1.2rem 1.4rem; margin: -.6rem 0 1.4rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); animation: fadeIn .25s var(--ease); }
.f-group > b { display: block; font-size: .88rem; margin-bottom: .5rem; }
.f-range { display: flex; align-items: center; gap: 8px; }
.f-range input { width: 110px; border-radius: var(--r-pill); padding: .55em 1em; }
.f-check { display: inline-flex; align-items: center; gap: .45em; margin-inline-end: 1.2rem; cursor: pointer; font-weight: 600; font-size: .92rem; }
.f-check input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ═══════════ العرض السريع ═══════════ */
.qv-wrap { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgb(15 23 42 / .5); backdrop-filter: blur(4px); animation: fadeIn .2s; }
.qv-box { position: relative; width: min(900px, 100%); max-height: 90vh; overflow-y: auto; background: var(--bg); border-radius: var(--r-lg); box-shadow: 0 40px 100px -30px rgb(0 0 0 / .5); animation: pop .35s var(--ease); }
.qv-close { position: absolute; top: 14px; left: 14px; z-index: 3; }
.qv-body { display: grid; grid-template-columns: 1fr 1fr; }
.qv-img { position: relative; background: var(--surface); }
.qv-img img, .qv-img .ph { width: 100%; height: 100%; min-height: 360px; object-fit: cover; aspect-ratio: auto; font-size: 6rem; }
.qv-img .bdgs { top: 14px; right: 14px; }
.qv-info { padding: 2rem 1.8rem; }
.qv-info h2 { font-size: 1.6rem; letter-spacing: -.03em; margin: .2rem 0 .4rem; }
.qv-info .price { font-size: 1.5rem; color: var(--primary); margin: .5rem 0 1rem; }
.qv-info .cd { position: static; margin-bottom: 1rem; display: inline-block; }
.qv-desc { font-size: .92rem; }
.qv-info .buy-row .btn { height: 50px; }
.qv-info .qty { height: 50px; }
.qv-more { display: inline-block; margin-top: 1rem; color: var(--primary); font-weight: 700; text-decoration: none; }

/* ═══════════ القائمة الجانبية ═══════════ */
.drawer.menu { left: auto; right: 0; transform: translateX(105%); box-shadow: -20px 0 60px -20px rgb(0 0 0 / .3); width: min(340px, 88%); }
.drawer.menu.open { transform: none; }
.drawer.menu h4 { margin: 1.4rem 0 .5rem; font-size: .8rem; color: var(--muted); letter-spacing: .05em; }
.m-links { display: grid; gap: 2px; }
.m-links a { display: flex; align-items: center; justify-content: space-between; padding: .75em 1em; border-radius: 12px; text-decoration: none; font-weight: 700; }
.m-links a:hover { background: var(--soft); }
.m-n { color: var(--primary); }
.m-theme { width: 100%; margin: 1.4rem 0 .8rem; padding: .8em; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; }

/* ═══════════ الأسئلة الشائعة ═══════════ */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 700; font-size: 1.02rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-style: normal; font-size: 1.2rem; transition: transform .3s var(--ease), background .2s; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq-more { margin-top: 1.2rem; color: var(--muted); }
.faq-more a { color: var(--primary); font-weight: 700; }

/* ═══════════ الوضع الليلي ═══════════ */
html[data-theme=dark] { color-scheme: dark; }
html[data-theme=dark] .announce, html[data-theme=dark] .text-sec, html[data-theme=dark] .footer { background: #05080e; }
html[data-theme=dark] .chip.on, html[data-theme=dark] .tabbar a.on, html[data-theme=dark] .choices input:checked + span,
html[data-theme=dark] .sec-head a:hover, html[data-theme=dark] .filter-btn.on, html[data-theme=dark] .qv-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
html[data-theme=dark] .bdg { color: #fff; }
html[data-theme=dark] .bdg.custom { color: #111; }
html[data-theme=dark] .bdg:not(.sale):not(.best):not(.new):not(.low):not(.custom) { background: #334155; }
html[data-theme=dark] .error-box { background: #2a1215; color: #fca5a5; border-color: #7f1d1d; }
html[data-theme=dark] .sec-head .kicker, html[data-theme=dark] .perk b, html[data-theme=dark] .m-links a .ic, html[data-theme=dark] .assure .ic { color: color-mix(in srgb, var(--primary) 45%, #fff); }
html[data-theme=dark] .nav-links a.on::after { background: currentColor; }
html[data-theme=dark] .d-del:hover { background: #3b1219; }
html[data-theme=dark] .pay-opt:has(input:checked) { border-color: var(--primary); }
html[data-theme=dark] .heart svg { stroke: #e8ebf1; }

/* ═══════════ حساب العميل ═══════════ */
.acc-btn.on { background: var(--tint); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.acc-hint { margin: -.4rem 0 1.2rem; }
.acc-hint a { color: var(--primary); font-weight: 700; }
.auth-wrap { max-width: 460px; margin: 1rem auto; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); margin-bottom: 1rem; }
.auth-tabs button { border: 0; padding: .65em; border-radius: var(--r-pill); background: transparent; font-weight: 700; cursor: pointer; color: var(--muted); }
.auth-tabs button.on { background: var(--ink); color: var(--bg); }
.auth-wrap h2 { font-size: 1.4rem; letter-spacing: -.02em; }
.acc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 1.8rem; flex-wrap: wrap; }
.acc-av { width: 64px; height: 64px; border-radius: 22px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; }
.acc-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.acc-title { font-size: 1.2rem; margin-bottom: .8rem; }
.acc-order { padding: 1.1rem 1.3rem; margin-bottom: 10px; }
.ao-top, .ao-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ao-top { margin-bottom: .3rem; }
.ao-bottom { margin-top: .6rem; }
.ao-bottom a { color: var(--primary); font-weight: 700; text-decoration: none; font-size: .9rem; }
.pw-box { margin-bottom: 1rem; }
.pw-box summary { cursor: pointer; color: var(--primary); font-weight: 700; margin-bottom: .8rem; }
.vat-row { font-size: .82rem; color: var(--muted); padding-top: 0 !important; }

/* ═══════════ النشرة البريدية ═══════════ */
.newsletter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 3rem; padding: 1.8rem 2rem; border-radius: var(--r-md); background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08); }
.nl-row .btn { background: #fff; color: #0b0d12; }
.newsletter h4 { margin: 0 0 .2rem; color: #fff; font-size: 1.15rem; }
.newsletter p { margin: 0; font-size: .9rem; }
.nl-row { display: flex; gap: 8px; flex: 1; max-width: 460px; min-width: 260px; }
.nl-row input { border-radius: var(--r-sm); background: rgb(255 255 255 / .07); color: #fff; border: 1px solid rgb(255 255 255 / .14); }
.nl-row input::placeholder { color: rgb(255 255 255 / .45); }
.nl-done { color: #fff; font-weight: 700; margin: 0; }

/* ═══════════ الأيقونات ═══════════ */
.ic { display: inline-block; vertical-align: -0.2em; flex: none; }
.icon-btn .ic { vertical-align: middle; }
.brand .ico { color: var(--primary); }
.perk b { color: var(--primary); }
.ph { color: color-mix(in srgb, var(--primary) 55%, transparent); }
.empty .big { color: var(--primary); }
.text-sec .big-ico { color: #fff; }
.assure > div { display: flex; align-items: center; gap: .55em; }
.assure .ic { color: var(--primary); }
.m-links a { justify-content: flex-start; gap: .75em; }
.m-links a .ic { color: var(--primary); }
.m-n { margin-inline-start: auto; }
.m-theme { display: flex; align-items: center; justify-content: center; gap: .5em; }
.wa-float .ic { stroke-width: 2.2; }
.bdg .ic { vertical-align: -0.15em; }
.cd .ic { vertical-align: -0.2em; }
.ship-progress .ic { color: var(--ok); }
.nl-done { display: flex; align-items: center; gap: .5em; }
.file-drop .fi { color: var(--primary); }

/* ═══════════ شريط النموذج التجريبي ═══════════ */
.demo-bar { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: .55em 16px; background: linear-gradient(90deg, #4f46e5, #7c3aed); color: #fff; font-size: .86rem; font-weight: 600; }
.demo-bar b { font-weight: 800; }
.demo-bar a, .demo-bar button { display: inline-flex; align-items: center; gap: .35em; padding: .3em .9em; border-radius: 999px; border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .12); color: #fff; text-decoration: none; font: inherit; cursor: pointer; }
.demo-bar a:hover, .demo-bar button:hover { background: rgb(255 255 255 / .25); }
.demo-bar .db-main { background: #fff; color: #4f46e5; border-color: #fff; }
.demo-bar select { width: auto; padding: .25em 2em .25em .8em; border-radius: 999px; border: 0; font-size: .85rem; color: #1e1b4b; }
@media (max-width: 640px) { .demo-bar { font-size: .78rem; gap: 6px; } .demo-bar .db-hide-sm { display: none; } }

/* شريط التنقل السفلي (جوال) */
.tabbar { display: none; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .perk:nth-child(3) { border-inline-start: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .hero { min-height: 520px; align-items: end; padding-bottom: 4rem; }
  .hero.no-media { align-items: center; min-height: 420px; }
  .hero.has-media::before { background: linear-gradient(to top, rgb(8 10 16 / .85) 0%, rgb(8 10 16 / .45) 55%, rgb(8 10 16 / .1) 100%); }
  .product, .cart-layout { grid-template-columns: 1fr; }
  .gallery, .summary { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .text-sec { grid-template-columns: 1fr; text-align: center; }
  .text-sec .big-ico { margin-inline: auto; }
  .cats.cats { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .cats.cats .cat:first-child { grid-row: auto; grid-column: auto; }
  .cats.cats:has(> :nth-child(3)):not(:has(> :nth-child(4))) .cat:first-child,
  .cats.cats:has(> :nth-child(5)):not(:has(> :nth-child(6))) .cat:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  main.wrap { padding-bottom: 6rem; }
  .topbar-in { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 8px; }
  .brand { flex: 1; font-size: 1.12rem; }
  .brand img { height: 38px; }
  .brand .ico { width: 38px; height: 38px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .hide-sm { display: none; }
  .wrap { width: calc(100% - 32px); }
  .hero { min-height: 480px; padding: 1.6rem 1.4rem 3.6rem; border-radius: var(--r-md); }
  .slide h2 { font-size: 2.1rem; }
  .slide p { margin-bottom: 1.4rem; }
  .hero-cta { flex-wrap: nowrap; }
  .hero-cta .btn { flex: 1; padding: .9em 1em; }
  .dots { inset-inline-start: 1.4rem; bottom: 1.2rem; }
  .perks { margin-bottom: 3.5rem; }
  .perk { flex-direction: column; text-align: center; padding: 1rem .6rem; gap: 6px; }
  .sec { margin-bottom: 4rem; }
  .grid, .skel-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .qa { opacity: 1; transform: none; width: 38px; height: 38px; inset-inline: auto 8px; bottom: 8px; border-radius: 50%; padding: 0; }
  .qa span { display: none; }
  .pcard h3 { font-size: .92rem; }
  .sec-head h2 { font-size: 1.5rem; }
  .cats.cats { grid-auto-rows: 160px; gap: 10px; }
  .cat img, .cat .ph { font-size: 3.4rem; }
  .cat b { font-size: 1rem; }
  .cat .arr { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .toolbar { border-radius: var(--r-md); }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img, .cart-item .ph { width: 72px; height: 72px; }
  .cart-item .end { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .foot-grid { grid-template-columns: 1fr; }
  .wa-float { bottom: 84px; left: 16px; width: 52px; height: 52px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 10px; inset-inline: 10px; z-index: 60; padding: 6px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); box-shadow: 0 10px 40px -10px rgb(0 0 0 / .25); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45em 0; border-radius: 16px; text-decoration: none; font-size: .7rem; font-weight: 700; color: var(--muted); }
  .tabbar a span { font-size: 1.2rem; }
  .tabbar a.on { background: var(--ink); color: var(--bg); }
  .tabbar .badge { top: 0; left: calc(50% - 22px); }
  .footer { padding-bottom: 7rem; }
  body.has-buybar .tabbar { display: none; }
  .qv-body { grid-template-columns: 1fr; }
  .qv-img img, .qv-img .ph { min-height: 0; aspect-ratio: 4/3; }
  .qv-info { padding: 1.3rem; }
  .qv-wrap { padding: 0; align-items: end; }
  .qv-box { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; }
  .qv-btn { display: none; }
  .heart { width: 34px; height: 34px; top: 8px; left: 8px; }
  .bdgs { top: 8px; right: 8px; }
  .bdg { font-size: .66rem; padding: .2em .6em; }
  .cd { bottom: 56px; font-size: .7rem; inset-inline: 6px; }
  .cd-boxes span { min-width: 0; flex: 1; }
  .filters { gap: 1rem; padding: 1rem; }
  .f-range input { width: 100%; }
  .f-group { width: 100%; }
  .tb-end { width: 100%; justify-content: space-between; }
  .buybar { bottom: 12px; }
  .search-drop { min-width: 0; }
  .rv-grid { grid-template-columns: 1fr; }
  .rv-summary { position: static; }
  .g-hint { display: none; }
  .lb-prev, .lb-next { display: none; }
}
@media (max-width: 860px) {
  .acc-grid { grid-template-columns: 1fr; }
  .rv-grid { grid-template-columns: 1fr; }
  .rv-summary { position: static; }
}
@media (hover: none) {
  .g-slide img { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
