:root {
  --bg: #050a1c;
  --bg-2: #0a1432;
  --surface: rgba(17, 30, 68, 0.55);
  --surface-2: rgba(24, 42, 92, 0.6);
  --surface-solid: #0e1a3d;
  --line: rgba(120, 175, 255, 0.14);
  --line-2: rgba(120, 175, 255, 0.26);
  --text: #eaf2ff;
  --muted: #9fb3d6;
  --dim: #7187ad;
  --blue: #1e5bd8;
  --blue-2: #2f74ff;
  --cyan: #19b5e0;
  --lime: #8cd62a;
  --lime-2: #b4f04a;
  --red: #ff4d6a;
  --grad: linear-gradient(135deg, #19b5e0 0%, #1e5bd8 55%, #2a3fd1 100%);
  --grad-lime: linear-gradient(135deg, #b4f04a 0%, #8cd62a 45%, #3fbf4a 100%);
  --grad-text: linear-gradient(90deg, #19b5e0, #8cd62a 70%, #b4f04a);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}
h1, h2, h3, h4 { font-family: 'Changa', 'Cairo', sans-serif; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 22px; height: 22px; flex: none; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
[hidden] { display: none !important; }

/* ===== الخلفية المتحركة ===== */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: orb 22s var(--ease) infinite alternate; }
.orb-1 { width: 520px; height: 520px; background: #1e5bd8; top: -160px; right: -120px; }
.orb-2 { width: 420px; height: 420px; background: #19b5e0; top: 40%; left: -180px; animation-delay: -6s; opacity: .28; }
.orb-3 { width: 380px; height: 380px; background: #8cd62a; bottom: -180px; right: 25%; animation-delay: -12s; opacity: .16; }
@keyframes orb { to { transform: translate3d(-80px, 90px, 0) scale(1.15); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120,175,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(120,175,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ===== الشريط العلوي ===== */
.topbar { background: linear-gradient(90deg, rgba(30,91,216,.35), rgba(25,181,224,.2), rgba(140,214,42,.2)); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 38px; }
.ticker { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 40s linear infinite; white-space: nowrap; color: #d6e6ff; }
.ticker-track span { display: inline-flex; align-items: center; gap: 8px; padding-inline: 24px; }
.ticker-track span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
.topbar-side { color: var(--muted); white-space: nowrap; }

/* ===== الهيدر ===== */
.header { position: sticky; top: 0; z-index: 40; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(5, 10, 28, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); box-shadow: 0 10px 30px -15px rgba(0,0,0,.7); }
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 54px; height: auto; filter: drop-shadow(0 6px 14px rgba(25,181,224,.35)); transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; direction: ltr; text-align: left; }
.brand-text b { font-family: 'Changa', sans-serif; font-size: 21px; font-weight: 800; letter-spacing: .01em; }
.brand-text b i { font-style: normal; background: var(--grad-lime); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: 12px; color: var(--muted); direction: rtl; text-align: left; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s, background .2s; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(120,175,255,.08); }
.nav a.active { color: var(--text); background: rgba(25,181,224,.14); box-shadow: inset 0 0 0 1px rgba(25,181,224,.3); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, background .2s, transform .2s; position: relative; }
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.cart-count { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--grad-lime); color: #06210a; font-size: 12px; font-weight: 800; display: grid; place-items: center; font-style: normal; line-height: 1; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }
.menu-btn { display: none; }

/* ===== الأزرار ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 14px; font-weight: 700; font-size: 16px; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; position: relative; overflow: hidden; white-space: nowrap; isolation: isolate; }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(30,91,216,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(120%); transition: transform .7s var(--ease); z-index: -1; }
.btn-primary:hover::after { transform: translateX(-120%); }
.btn-primary:hover, .btn-lime:hover { transform: translateY(-2px); }
.btn-lime { background: var(--grad-lime); color: #072208; box-shadow: 0 12px 30px -12px rgba(140,214,42,.8), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(25,181,224,.1); }
.btn-wa { background: #25d366; color: #052e14; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(37,211,102,.7); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== الهيرو ===== */
.hero { position: relative; padding: 56px 0 40px; overflow-x: clip; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .8; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(140,214,42,.1); border: 1px solid rgba(140,214,42,.3); color: #d4f7a4; font-size: 14px; font-weight: 600; }
.pill b { background: var(--grad-lime); color: #072208; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 66px); font-weight: 800; margin: 18px 0 16px; }
.hero h1 .line { display: block; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 18.5px); max-width: 560px; }
.hero-search { margin-top: 26px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; padding-inline-start: 18px; background: rgba(10,20,50,.7); border: 1px solid var(--line-2); border-radius: 18px; max-width: 560px; box-shadow: var(--shadow); transition: border-color .25s, box-shadow .25s; }
.hero-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(25,181,224,.15), var(--shadow); }
.hero-search .ic { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 16px; padding: 10px 0; }
.hero-search input::placeholder { color: var(--dim); }
.hero-search .btn { min-height: 46px; padding: 0 20px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-tags a { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: rgba(120,175,255,.08); border: 1px solid var(--line); color: var(--muted); transition: all .2s; }
.hero-tags a:hover { color: var(--text); border-color: var(--cyan); }
.hero-ctas { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; max-width: 560px; }
.stat { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-family: 'Changa', sans-serif; font-size: 26px; font-weight: 800; direction: ltr; text-align: right; }
.stat > span { font-size: 13.5px; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; perspective: 1000px; }
.hv-stage { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .2s ease-out; }
.ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(25,181,224,.35); animation: spin 40s linear infinite; }
.ring-2 { inset: 20%; border: 1px solid rgba(140,214,42,.25); animation-duration: 28s; animation-direction: reverse; }
.ring-3 { inset: -2%; border: 1px solid rgba(30,91,216,.25); animation-duration: 60s; }
.ring::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.ring-2::before { background: var(--lime); box-shadow: 0 0 18px var(--lime); }
@keyframes spin { to { transform: rotate(360deg); } }
.hv-glow { position: absolute; inset: 25%; border-radius: 50%; background: radial-gradient(circle, rgba(25,181,224,.55), rgba(30,91,216,.25) 45%, transparent 70%); filter: blur(20px); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .75; } }
.hv-mark { position: absolute; inset: 22%; display: grid; place-items: center; transform: translateZ(60px); animation: float 6s ease-in-out infinite; }
.hv-mark img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)) drop-shadow(0 0 30px rgba(25,181,224,.35)); }
@keyframes float { 50% { transform: translateZ(60px) translateY(-16px); } }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(12,24,58,.78); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); transform: translateZ(100px); animation: chip 7s ease-in-out infinite; white-space: nowrap; }
.chip .logo-dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.chip .logo-dot img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.chip b { display: block; font-size: 14px; line-height: 1.2; }
.chip small { color: var(--lime); font-weight: 700; font-size: 12.5px; }
.chip-1 { top: 6%; right: 2%; }
.chip-2 { top: 30%; left: -4%; animation-delay: -2s; }
.chip-3 { bottom: 12%; right: -2%; animation-delay: -4s; }
.chip-4 { bottom: 2%; left: 14%; animation-delay: -5.5s; }
@keyframes chip { 50% { transform: translateZ(100px) translateY(-12px); } }

/* ===== شريط البراندات ===== */
.brands { padding: 22px 0; border-block: 1px solid var(--line); background: rgba(10,20,50,.35); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.brands-track { display: flex; gap: 0; width: max-content; animation: ticker 45s linear infinite; align-items: center; }
.brands:hover .brands-track { animation-play-state: paused; }
.brands-track a { padding-inline: 28px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: 15px; opacity: .75; transition: opacity .2s, color .2s; white-space: nowrap; }
.brands-track a:hover { opacity: 1; color: var(--text); }
.brands-track img { width: 28px; height: 28px; filter: brightness(0) invert(.85); }

/* ===== الأقسام ===== */
.section { padding: 72px 0; position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 700; font-size: 14px; letter-spacing: .02em; margin-bottom: 8px; }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--grad-text); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 560px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 700; }
.link-more .ic { width: 18px; height: 18px; transition: transform .25s; }
.link-more:hover .ic { transform: translateX(-4px); }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat {
  position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: transform .35s var(--ease), border-color .3s; min-height: 210px; display: flex; flex-direction: column; isolation: isolate;
}
.cat::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, var(--c1), var(--c2)); opacity: 0; transition: opacity .35s; z-index: -1; }
.cat:hover { transform: translateY(-6px); border-color: transparent; }
.cat:hover::before { opacity: .9; }
.cat-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 24px -8px var(--c1); margin-bottom: auto; transition: background .3s, transform .4s var(--ease); }
.cat:hover .cat-ic { background: rgba(255,255,255,.2); transform: rotate(-8deg) scale(1.05); }
.cat-ic .ic { width: 26px; height: 26px; color: #fff; }
.cat h3 { font-size: 20px; margin-top: 22px; }
.cat p { color: var(--muted); font-size: 13.5px; margin-top: 4px; transition: color .3s; }
.cat:hover p { color: rgba(255,255,255,.9); }
.cat .count { position: absolute; top: 18px; left: 18px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); }

/* ===== كروت المنتجات ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; cursor: pointer;
}
.card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(25,181,224,.16), transparent 45%); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-6px); border-color: rgba(25,181,224,.45); box-shadow: 0 24px 50px -24px rgba(25,181,224,.55); }
.card:hover::after { opacity: 1; }
.tile { position: relative; aspect-ratio: 16/11; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg, var(--c1), var(--c2)); isolation: isolate; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 14px), radial-gradient(circle at 80% 10%, rgba(255,255,255,.35), transparent 45%); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,10,28,.55), transparent 50%); }
.tile .ghost { position: absolute; width: 70%; left: -14%; bottom: -24%; opacity: .12; filter: brightness(0) invert(1); transform: rotate(-14deg); transition: transform .6s var(--ease); z-index: -1; }
.tile .main { width: 34%; max-width: 84px; filter: brightness(0) invert(1) drop-shadow(0 10px 18px rgba(0,0,0,.35)); transition: transform .5s var(--ease); }
.tile .mono { font-family: 'Changa', sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 44px); color: #fff; text-shadow: 0 8px 24px rgba(0,0,0,.4); letter-spacing: .02em; transition: transform .5s var(--ease); }
.card:hover .tile .main, .card:hover .tile .mono { transform: scale(1.12) rotate(-4deg); }
.card:hover .tile .ghost { transform: rotate(-4deg) scale(1.08); }
.tile .en { position: absolute; bottom: 10px; right: 12px; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.92); z-index: 1; direction: ltr; }
.badges { position: absolute; top: 10px; right: 10px; left: 10px; display: flex; justify-content: space-between; z-index: 2; }
.badge { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.badge .ic { width: 13px; height: 13px; }
.badge-off { background: var(--red); color: #fff; }
.badge-hot { background: rgba(5,10,28,.6); color: #ffd36e; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 16.5px; font-weight: 700; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); }
.meta .stars { display: inline-flex; align-items: center; gap: 3px; color: #ffcb45; font-weight: 700; }
.meta .stars .ic { width: 14px; height: 14px; }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price small { display: block; font-size: 11.5px; color: var(--dim); }
.price b { font-family: 'Changa', sans-serif; font-size: 20px; font-weight: 800; color: var(--lime-2); }
.price s { display: block; color: var(--dim); font-size: 12.5px; line-height: 1.2; white-space: nowrap; }
.price b { white-space: nowrap; }
.add-btn { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 8px 20px -8px rgba(30,91,216,.9); }
.add-btn:hover { transform: rotate(-8deg) scale(1.08); }

/* ===== العروض ===== */
.deals { position: relative; border-radius: 28px; padding: 32px; background: linear-gradient(135deg, rgba(30,91,216,.35), rgba(10,20,50,.6) 50%, rgba(140,214,42,.18)); border: 1px solid var(--line-2); overflow: hidden; }
.deals::before { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(140,214,42,.25), transparent 70%); top: -200px; left: -100px; }
.countdown { display: flex; gap: 8px; direction: ltr; }
.countdown div { min-width: 64px; padding: 8px 6px; border-radius: 14px; background: rgba(5,10,28,.6); border: 1px solid var(--line-2); text-align: center; }
.countdown b { display: block; font-family: 'Changa', sans-serif; font-size: 24px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11.5px; color: var(--muted); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; position: relative; }
.scroller > * { scroll-snap-align: start; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 10px 18px; min-height: 44px; border-radius: 999px; font-weight: 700; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: all .25s; }
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(30,91,216,.9); }

/* ===== خطوات الطلب ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before { content: ''; position: absolute; top: 40px; right: 12%; left: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 10px; }
.step-num { position: relative; width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 24px; display: grid; place-items: center; background: var(--surface-solid); border: 1px solid var(--line-2); transition: transform .4s var(--ease); }
.step:hover .step-num { transform: translateY(-6px) rotate(-6deg); }
.step-num .ic { width: 32px; height: 32px; color: var(--cyan); }
.step-num i { position: absolute; top: -8px; left: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-lime); color: #072208; font-style: normal; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* ===== المميزات (Bento) ===== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color .3s, transform .35s var(--ease); }
.feat:hover { border-color: var(--line-2); transform: translateY(-4px); }
.feat.wide { grid-column: span 2; }
.feat-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(25,181,224,.12); border: 1px solid rgba(25,181,224,.3); color: var(--cyan); margin-bottom: 16px; }
.feat.lime .feat-ic { background: rgba(140,214,42,.12); border-color: rgba(140,214,42,.3); color: var(--lime); }
.feat h3 { font-size: 19px; }
.feat p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.feat .big { font-family: 'Changa', sans-serif; font-size: 54px; font-weight: 800; line-height: 1; margin-top: 10px; direction: ltr; text-align: right; }

.pay-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-chips span { padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.pay-chips span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

/* ===== آراء العملاء ===== */
.reviews { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reviews-track { display: flex; gap: 0; width: max-content; animation: ticker 60s linear infinite; padding: 4px 0; }
.reviews:hover .reviews-track { animation-play-state: paused; }
.review { margin-inline: 8px; width: 330px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); flex: none; }
.review .stars { color: #ffcb45; display: flex; gap: 2px; }
.review .stars .ic { width: 16px; height: 16px; }
.review p { margin: 12px 0 16px; color: #d4e2fb; font-size: 15px; }
.review-who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--grad); }
.review-who b { display: block; font-size: 14.5px; line-height: 1.3; }
.review-who small { color: var(--dim); }

/* ===== الأسئلة ===== */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.faq details[open] { border-color: rgba(25,181,224,.45); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s var(--ease); color: var(--cyan); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ===== CTA ===== */
.cta { position: relative; border-radius: 28px; padding: 48px; overflow: hidden; background: var(--grad); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; isolation: isolate; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 10% 120%, rgba(140,214,42,.65), transparent 45%), repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 16px); }
.cta img { position: absolute; left: 3%; top: 50%; width: 200px; transform: translateY(-50%) rotate(-10deg); opacity: .22; z-index: -1; }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.cta p { color: rgba(255,255,255,.88); margin-top: 8px; max-width: 520px; }

/* ===== صفحة القسم ===== */
.page-hero { padding: 40px 0 10px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--dim); flex-wrap: wrap; }
.crumbs a:hover { color: var(--cyan); }
.cat-banner { margin-top: 16px; position: relative; overflow: hidden; border-radius: 26px; padding: 34px; background: linear-gradient(135deg, var(--c1), var(--c2)); display: flex; align-items: center; gap: 22px; isolation: isolate; }
.cat-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 16px), radial-gradient(circle at 0% 0%, rgba(255,255,255,.3), transparent 40%); }
.cat-banner .cat-ic { width: 72px; height: 72px; margin: 0; background: rgba(255,255,255,.2); border-radius: 22px; }
.cat-banner .cat-ic .ic { width: 36px; height: 36px; }
.cat-banner h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.cat-banner p { color: rgba(255,255,255,.9); }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 26px 0 20px; flex-wrap: wrap; }
.filter-input { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 260px; flex: 1; max-width: 420px; }
.filter-input input { background: transparent; border: 0; outline: none; flex: 1; min-width: 0; }
.filter-input .ic { color: var(--dim); width: 20px; height: 20px; }
.select { height: 48px; padding: 0 14px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line); font-weight: 600; cursor: pointer; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ic { width: 54px; height: 54px; color: var(--dim); margin: 0 auto 12px; }

/* ===== صفحة المنتج ===== */
.product { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; margin-top: 20px; align-items: start; }
.p-visual { position: sticky; top: calc(var(--header-h) + 20px); perspective: 900px; }
.p-visual .tile { border-radius: 26px; aspect-ratio: 1; box-shadow: 0 40px 80px -30px var(--c1); border: 1px solid rgba(255,255,255,.12); transition: transform .2s ease-out; transform-style: preserve-3d; }
.p-visual .tile .main { width: 34%; max-width: 170px; }
.p-visual .tile .mono { font-size: clamp(56px, 9vw, 110px); }
.p-visual .tile .en { font-size: 16px; bottom: 18px; right: 20px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.trust div { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.trust .ic { width: 22px; height: 22px; color: var(--lime); margin: 0 auto 4px; display: block; }
.p-info h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.p-info .en-name { color: var(--dim); font-weight: 600; direction: ltr; text-align: right; }
.p-info .meta { font-size: 14px; margin-top: 10px; flex-wrap: wrap; }
.p-info .meta .instock { color: var(--lime); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.p-info .meta .instock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(140,214,42,.2); animation: pulse 2s infinite; }
.block-title { font-weight: 700; margin: 26px 0 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.block-title .ic { width: 20px; height: 20px; color: var(--cyan); }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.opt { position: relative; text-align: start; padding: 14px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); transition: border-color .2s, background .2s, transform .2s; }
.opt:hover { border-color: var(--line-2); transform: translateY(-2px); }
.opt.active { border-color: var(--cyan); background: rgba(25,181,224,.12); box-shadow: 0 0 0 4px rgba(25,181,224,.12); }
.opt.active::before { content: '✓'; position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-lime); display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #072208; animation: popIn .35s var(--ease); }
.opt b { display: block; font-size: 15px; margin-inline-end: 22px; }
.opt span { font-family: 'Changa', sans-serif; color: var(--lime-2); font-weight: 700; font-size: 16px; }
.opt s { color: var(--dim); font-size: 12.5px; margin-inline-start: 4px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; background: rgba(10,20,50,.7); border: 1.5px solid var(--line-2); outline: none; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(25,181,224,.15); }
.input.error { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,77,106,.15); }
.field .hint { font-size: 13px; color: var(--dim); margin-top: 6px; }
.field .err { font-size: 13px; color: var(--red); margin-top: 6px; display: none; }
.field .input.error ~ .err { display: block; }
.buy-box { margin-top: 24px; padding: 18px; border-radius: 20px; background: rgba(10,20,50,.6); border: 1px solid var(--line-2); display: grid; gap: 14px; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); }
.qty button .ic { width: 18px; height: 18px; }
.qty output { min-width: 32px; text-align: center; font-weight: 800; }
.total small { display: block; color: var(--dim); font-size: 13px; }
.total b { font-family: 'Changa', sans-serif; font-size: 30px; font-weight: 800; color: var(--lime-2); }
.total s { color: var(--dim); margin-inline-start: 8px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.desc { margin-top: 26px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.desc ul { margin: 10px 0 0; padding-inline-start: 20px; }
.desc li { margin: 4px 0; }

/* ===== السلة والدرج ===== */
.drawer-wrap, .search-wrap { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(2,6,18,.72); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: absolute; top: 0; bottom: 0; left: 0; width: min(420px, 92vw); background: var(--surface-solid); border-right: 1px solid var(--line-2); display: flex; flex-direction: column; animation: slideIn .4s var(--ease); box-shadow: 30px 0 60px -20px rgba(0,0,0,.7); }
.drawer-menu { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--line-2); animation-name: slideInR; }
@keyframes slideIn { from { transform: translateX(-100%); } }
@keyframes slideInR { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer-foot .sum { display: flex; justify-content: space-between; font-weight: 700; }
.drawer-foot .sum b { font-family: 'Changa', sans-serif; font-size: 22px; color: var(--lime-2); }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; animation: fade .3s; }
.citem .tile { aspect-ratio: 1; border-radius: 14px; }
.citem .tile .main { width: 50%; }
.citem .tile .mono { font-size: 18px; }
.citem .tile::after, .citem .tile .ghost { display: none; }
.citem b { display: block; font-size: 15px; line-height: 1.35; }
.citem small { color: var(--dim); font-size: 12.5px; display: block; word-break: break-all; }
.citem .cprice { color: var(--lime-2); font-weight: 800; font-family: 'Changa', sans-serif; }
.citem .side { display: grid; gap: 6px; justify-items: end; }
.citem .qty button { width: 34px; height: 34px; }
.citem .qty output { min-width: 22px; font-size: 14px; }
.rm { color: var(--dim); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.rm:hover { color: var(--red); background: rgba(255,77,106,.1); }
.rm .ic { width: 18px; height: 18px; }
.menu-links { display: grid; gap: 8px; }
.menu-links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.menu-links a .cat-ic { width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.menu-links a .cat-ic .ic { width: 20px; height: 20px; }

/* ===== البحث ===== */
.search-box { position: relative; margin: 10vh auto 0; width: min(680px, calc(100% - 32px)); background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; animation: pop .35s var(--ease); box-shadow: 0 40px 100px -20px rgba(0,0,0,.8); }
@keyframes pop { from { transform: translateY(-16px) scale(.97); opacity: 0; } }
.search-input { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 10px; padding-inline-start: 18px; border-bottom: 1px solid var(--line); }
.search-input .ic { color: var(--muted); }
.search-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 17px; height: 44px; }
.search-results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.sres { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; transition: background .2s; }
.sres:hover, .sres:focus { background: rgba(120,175,255,.08); }
.sres .tile { width: 52px; aspect-ratio: 1; border-radius: 12px; flex: none; }
.sres .tile .main { width: 52%; }
.sres .tile .mono { font-size: 15px; }
.sres .tile::after, .sres .tile .ghost { display: none; }
.sres b { display: block; }
.sres small { color: var(--dim); }
.sres .p { margin-inline-start: auto; color: var(--lime-2); font-weight: 800; font-family: 'Changa', sans-serif; white-space: nowrap; }

/* ===== الدفع ===== */
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; margin-top: 20px; align-items: start; }
.panel { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.panel h2 { font-size: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel h2 .ic { color: var(--cyan); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.pay-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-opt { position: relative; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; padding: 8px; border-radius: 14px; background: rgba(10,20,50,.6); border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s; }
.pay-opt input:checked + span { border-color: var(--lime); background: rgba(140,214,42,.1); color: #e3fbc4; }
.pay-opt input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.summary .row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; color: var(--muted); }
.summary .row.total-row { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--text); font-weight: 800; font-size: 18px; }
.summary .row.total-row b { font-family: 'Changa', sans-serif; color: var(--lime-2); font-size: 26px; }
.summary .sitem { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary .sitem .tile { width: 46px; aspect-ratio: 1; border-radius: 12px; flex: none; }
.summary .sitem .tile .main { width: 52%; }
.summary .sitem .tile .mono { font-size: 14px; }
.summary .sitem .tile::after, .summary .sitem .tile .ghost { display: none; }
.summary .sitem div { flex: 1; min-width: 0; font-size: 14px; }
.summary .sitem small { color: var(--dim); display: block; }
.summary .sitem b.p { color: var(--lime-2); font-family: 'Changa', sans-serif; white-space: nowrap; }

.success { text-align: center; max-width: 620px; margin: 40px auto; }
.success .check { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--grad-lime); color: #072208; animation: popIn .6s var(--ease); box-shadow: 0 0 0 12px rgba(140,214,42,.15), 0 0 0 24px rgba(140,214,42,.07); }
.success .check .ic { width: 48px; height: 48px; }
@keyframes popIn { from { transform: scale(0) rotate(-90deg); } }
.success h1 { font-size: clamp(28px, 4vw, 40px); }
.success p { color: var(--muted); margin: 10px 0 24px; }
.order-no { display: inline-block; padding: 8px 18px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--lime); font-family: 'Changa', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .05em; direction: ltr; margin-bottom: 24px; }
.orders { display: grid; gap: 12px; }
.order { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.order-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.order-head span { color: var(--dim); font-weight: 500; font-size: 14px; }
.order ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 14.5px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255,203,69,.12); color: #ffd36e; font-size: 12.5px; font-weight: 700; }
.prose { max-width: 820px; color: var(--muted); }
.prose h2 { color: var(--text); font-size: 22px; margin: 26px 0 8px; }
.prose ul { padding-inline-start: 20px; }

/* ===== الفوتر ===== */
.footer { margin-top: 60px; border-top: 1px solid var(--line); background: rgba(5,10,28,.7); padding: 54px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer h4 { font-size: 17px; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--muted); transition: color .2s; }
.footer ul a:hover { color: var(--cyan); }
.footer-about p { color: var(--muted); margin: 14px 0; font-size: 14.5px; max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); transition: all .25s; }
.socials a:hover { background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.footer-mail { margin-top: 14px; color: var(--muted); font-size: 14px; }
.footer-mail a { color: var(--cyan); font-weight: 600; }
.footer-mail a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }

/* ===== عناصر عائمة ===== */
.wa-float { position: fixed; bottom: 24px; left: 24px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.8); transition: transform .3s var(--ease); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ripple 2s infinite; }
@keyframes ripple { to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08) rotate(-8deg); }
.wa-float .ic { width: 30px; height: 30px; }
.bottom-nav { display: none; }
.toasts { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface-solid); border: 1px solid rgba(140,214,42,.45); box-shadow: var(--shadow); animation: toastIn .4s var(--ease); font-weight: 600; pointer-events: auto; }
.toast .ic { color: var(--lime); }
.toast.err { border-color: rgba(255,77,106,.5); }
.toast.err .ic { color: var(--red); }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { transform: translateY(-14px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-14px); opacity: 0; } }
.flyer { position: fixed; z-index: 90; width: 54px; height: 54px; border-radius: 14px; pointer-events: none; display: grid; place-items: center; }
.flyer img { width: 55%; filter: brightness(0) invert(1); }

/* ===== حركات الظهور ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.page-enter { animation: pageIn .5s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } }
.hero .anim { opacity: 0; animation: up .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ===== الاستجابة ===== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-inline-start: auto; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { max-width: 400px; order: -1; margin-bottom: -10px; }
  .product, .checkout { grid-template-columns: 1fr; }
  .p-visual { position: relative; top: 0; max-width: 420px; width: 100%; margin-inline: auto; }
  .p-visual .tile { aspect-ratio: 16/10; }
  .p-visual .tile .main { width: 26%; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .steps::before { display: none; }
  .cta { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 16px; }
  .topbar-side { display: none; }
  .header-in { gap: 10px; }
  .brand-mark { width: 44px; }
  .brand-text b { font-size: 18px; }
  .brand-text small { display: none; }
  #searchBtn, .cart-btn { display: none; }
  .hero { padding-top: 20px; }
  .hero-visual { max-width: 300px; perspective: none; }
  .hv-stage { transform: none !important; }
  .ring-3 { inset: 3%; }
  .chip { padding: 6px 10px 6px 6px; gap: 6px; border-radius: 12px; }
  .chip .logo-dot { width: 30px; height: 30px; border-radius: 9px; }
  .chip .logo-dot img { width: 16px; height: 16px; }
  .chip b { font-size: 12px; }
  .chip small { font-size: 11px; }
  .chip-2 { left: -2%; }
  .chip-3 { right: 0; }
  .stats { gap: 8px; }
  .stat { padding: 10px 10px; }
  .stat b { font-size: 20px; }
  .stat > span { font-size: 12px; }
  .hero-search .btn span { display: none; }
  .hero-search .btn { padding: 0 14px; }
  .hero-ctas .btn { flex: 1; }
  .section { padding: 52px 0; }
  .cats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat { min-height: 170px; padding: 16px; }
  .cat h3 { font-size: 17px; margin-top: 14px; }
  .cat p { font-size: 12.5px; }
  .cat:last-child { grid-column: span 2; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-body h3 { font-size: 14.5px; }
  .meta { font-size: 11.5px; gap: 6px; }
  .meta .sold { display: none; }
  .price b { font-size: 17px; }
  .price s { display: none; }
  .add-btn { width: 40px; height: 40px; border-radius: 11px; }
  .deals { padding: 20px 16px; border-radius: 22px; }
  .countdown div { min-width: 54px; }
  .countdown b { font-size: 20px; }
  .scroller { grid-auto-columns: 62%; }
  .steps { grid-template-columns: 1fr 1fr; gap: 14px; }
  .step p { font-size: 13px; }
  .bento { grid-template-columns: 1fr; }
  .feat.wide { grid-column: auto; }
  .review { width: 280px; }
  .cta { padding: 26px 20px; }
  .cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 100px; }
  .cat-banner { padding: 22px; flex-direction: column; align-items: flex-start; }
  .filter-input { min-width: 0; max-width: none; width: 100%; }
  .select { width: 100%; }
  .buy-actions { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .pay-opts { grid-template-columns: 1fr 1fr; }
  .panel { padding: 18px; }
  .trust div { font-size: 12px; padding: 10px 6px; }
  .wa-float { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
    background: rgba(8,15,38,.96); border-top: 1px solid var(--line-2); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 4px 0; min-height: 48px; justify-content: center; position: relative; }
  .bottom-nav .ic { width: 22px; height: 22px; }
  .bottom-nav .active { color: var(--cyan); }
  .bottom-nav .cart-count { top: -2px; left: calc(50% - 22px); }
  .bottom-nav .wa-link { color: #25d366; }
  .toasts { top: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero .anim { opacity: 1; transform: none; }
}
