/* ==========================================================================
   SOUQ O ELECTRONICS LLC — Demo Design System
   Premium UAE electronics marketplace. Dark chrome + light retail surface.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:            #05070A;
  --ink-2:          #0E1218;
  --ink-3:          #171D26;
  --line-dark:      rgba(255,255,255,.10);

  --surface:        #F4F6F9;
  --card:           #FFFFFF;
  --line:           #E4E8EE;
  --text:           #10151C;
  --text-2:         #5A6472;
  --text-3:         #8A94A3;

  --cyan:           #22C3F3;
  --cyan-600:       #0FA6D4;
  --cyan-50:        #E7F8FE;
  --danger:         #E5314B;
  --danger-50:      #FDECEF;
  --success:        #14A66B;
  --success-50:     #E6F7F0;
  --amber:          #F5A524;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,18,30,.06), 0 2px 8px rgba(11,18,30,.05);
  --shadow:    0 4px 14px rgba(11,18,30,.08), 0 12px 32px rgba(11,18,30,.06);
  --shadow-lg: 0 18px 50px rgba(11,18,30,.18);
  --glow:      0 0 0 4px rgba(34,195,243,.16);

  --ease: cubic-bezier(.22,.75,.28,1);
  --fast: .18s var(--ease);
  --med:  .32s var(--ease);
  --slow: .6s var(--ease);

  --wrap: 1320px;
  --header-h: 132px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Segoe UI", "Tahoma", "Noto Naskh Arabic", system-ui, sans-serif;
}

html[dir="rtl"] { --font: var(--font-ar); }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14px; letter-spacing: .01em;
  transition: transform var(--fast), background var(--fast), box-shadow var(--fast), color var(--fast);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--cyan); color: #04222E; box-shadow: 0 6px 18px rgba(34,195,243,.35); }
.btn-primary:hover { background: var(--cyan-600); box-shadow: 0 10px 26px rgba(34,195,243,.45); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border: 1.5px solid var(--line); background: var(--card); color: var(--text); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.28); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Announcement bar ---------- */
.topbar {
  background: linear-gradient(90deg, #05070A, #10202B 45%, #05070A);
  color: #D6E4EC; font-size: 12.5px; letter-spacing: .02em;
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 36px; }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.marquee-track .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
.topbar-links { display: flex; gap: 16px; color: #93A3B0; }
.topbar-links a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5,7,10,.96);
  backdrop-filter: blur(14px);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow var(--med);
}
.site-header.scrolled { box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.header-main { display: flex; align-items: center; gap: 22px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 34px; width: auto; border-radius: 4px; }

.search {
  flex: 1; position: relative; max-width: 720px;
}
.search input {
  width: 100%; height: 46px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.12);
  padding-inline: 46px 120px; color: #fff; outline: none;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}
.search input::placeholder { color: #7C8A98; }
.search input:focus { border-color: var(--cyan); background: rgba(255,255,255,.12); box-shadow: var(--glow); }
.search .icon-search { position: absolute; inset-inline-start: 16px; top: 13px; color: #8A98A6; }
.search .btn-search {
  position: absolute; inset-inline-end: 5px; top: 5px; height: 36px;
  padding-inline: 20px; border-radius: var(--r-pill); background: var(--cyan);
  color: #04222E; font-weight: 700; font-size: 13px;
}
.suggest {
  position: absolute; top: 54px; inset-inline: 0; background: #fff; color: var(--text);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 10px; z-index: 70;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: all var(--fast);
}
.suggest.open { opacity: 1; transform: none; pointer-events: auto; }
.suggest h5 { margin: 8px 10px 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.suggest a:hover { background: var(--surface); }
.suggest a .thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.suggest .s-price { margin-inline-start: auto; font-weight: 700; font-size: 13px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.iconbtn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 12px; border-radius: 12px; color: #E6EDF3; font-size: 11px; font-weight: 600;
  transition: background var(--fast), transform var(--fast), color var(--fast);
}
.iconbtn:hover { background: rgba(255,255,255,.10); transform: translateY(-2px); color: #fff; }
.iconbtn .badge {
  position: absolute; top: 2px; inset-inline-end: 6px; min-width: 18px; height: 18px;
  border-radius: var(--r-pill); background: var(--cyan); color: #04222E;
  font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px;
}
.iconbtn .badge.pop { animation: pop .45s var(--ease); }
@keyframes pop { 0%{transform:scale(.4)} 60%{transform:scale(1.35)} 100%{transform:scale(1)} }

.lang-toggle {
  border: 1.5px solid rgba(255,255,255,.2); border-radius: var(--r-pill);
  padding: 7px 14px; font-size: 12.5px; font-weight: 700; color: #fff;
  transition: all var(--fast);
}
.lang-toggle:hover { background: #fff; color: var(--ink); }

/* Nav + mega menu */
.nav { border-top: 1px solid var(--line-dark); }
.nav-inner { display: flex; align-items: center; gap: 4px; height: 52px; }
.nav a.nav-link, .nav button.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #C9D5DF;
  transition: background var(--fast), color var(--fast);
}
.nav a.nav-link:hover, .nav button.nav-link:hover, .nav .nav-link.active { background: rgba(255,255,255,.10); color: #fff; }
.nav .hot { color: var(--cyan); }
.nav-right { margin-inline-start: auto; display: flex; gap: 4px; font-size: 12.5px; color: #8494A2; }

.mega {
  position: absolute; inset-inline: 0; top: 100%;
  background: #fff; color: var(--text); box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity var(--med), transform var(--med), visibility var(--med);
  z-index: 65;
}
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding: 30px 0 34px; }
.mega h4 { font-size: 13px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.mega h4 .mi { width: 26px; height: 26px; border-radius: 8px; background: var(--cyan-50); display: grid; place-items: center; color: var(--cyan-600); }
.mega li a { display: block; padding: 4px 0; font-size: 13px; color: var(--text-2); transition: color var(--fast), padding var(--fast); }
.mega li a:hover { color: var(--cyan-600); padding-inline-start: 5px; }

.nav-wrap { position: relative; }

/* Mobile menu button */
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 80% 10%, rgba(34,195,243,.20), transparent 60%);
  pointer-events: none;
}
.hero-slides { position: relative; min-height: 460px; }
.hero-slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 30px; padding: 44px 0;
  opacity: 0; visibility: hidden; transform: scale(1.02);
  transition: opacity .9s var(--ease), transform 1.4s var(--ease), visibility .9s;
}
.hero-slide.active { opacity: 1; visibility: visible; transform: none; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(34,195,243,.35); border-radius: var(--r-pill); padding: 6px 14px;
  background: rgba(34,195,243,.08);
}
.hero h1 { font-size: clamp(32px, 4.4vw, 60px); margin: 18px 0 14px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p { color: #A9B8C4; font-size: 16px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-art { position: relative; z-index: 1; }
.hero-art svg { width: 100%; max-height: 380px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); }
.hero-price { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.hero-price .now { font-size: 30px; font-weight: 800; }
.hero-price .was { color: #7E8D9A; text-decoration: line-through; }
.hero-price .off { background: var(--danger); color: #fff; border-radius: var(--r-pill); padding: 3px 12px; font-size: 12px; font-weight: 800; }
.hero-dots { display: flex; gap: 8px; padding-bottom: 26px; }
.hero-dots button { width: 30px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); transition: all var(--med); }
.hero-dots button.active { background: var(--cyan); width: 54px; }

/* ---------- Section shell ---------- */
.section { padding: 54px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(21px, 2.4vw, 29px); }
.section-head p { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.section-head .link { color: var(--cyan-600); font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.section-head .link:hover { gap: 11px; }
.section-head .link span { transition: all var(--fast); }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-600); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Category tiles ---------- */
.cat-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 12px; }
.cat-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 8px; text-align: center; transition: transform var(--med), box-shadow var(--med), border-color var(--med);
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cat-tile .ci {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center;
  background: var(--cyan-50); color: var(--cyan-600); transition: transform var(--med);
}
.cat-tile .ci-art {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: none;
  box-shadow: inset 0 0 0 2px var(--line); margin-bottom: 12px;
}
.cat-tile .ci-art svg { width: 100%; height: 100%; }
.cat-tile:hover .ci-art { box-shadow: inset 0 0 0 2px var(--cyan); }
.cat-tile small { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 3px; font-weight: 600; }
.cat-tile { padding: 18px 8px 16px; }
.cat-tile:hover .ci { transform: scale(1.12) rotate(-4deg); }
.cat-tile span { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: block; }

/* ---------- Product card ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.pcard {
  position: relative; background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--med), box-shadow var(--med), border-color var(--med);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pcard-media { position: relative; aspect-ratio: 1/1; background: #fff; overflow: hidden; }
.pcard-media svg { width: 100%; height: 100%; transition: transform var(--slow); }
.pcard:hover .pcard-media svg { transform: scale(1.08); }
.pcard-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge-chip { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.b-deal { background: var(--danger); color: #fff; }
.b-new { background: var(--ink); color: #fff; }
.b-best { background: var(--amber); color: #3B2500; }
.pcard-fav {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.94);
  display: grid; place-items: center; color: var(--text-2); box-shadow: var(--shadow-sm);
  transition: transform var(--fast), color var(--fast);
}
.pcard-fav:hover { transform: scale(1.12); color: var(--danger); }
.pcard-fav.on { color: var(--danger); }
.pcard-fav.on svg { fill: currentColor; }
.pcard-fav.pulse { animation: pulse .5s var(--ease); }
@keyframes pulse { 0%{transform:scale(1)} 40%{transform:scale(1.35)} 100%{transform:scale(1)} }
.pcard-quick {
  position: absolute; inset-inline: 10px; bottom: 10px; z-index: 2;
  background: rgba(5,7,10,.9); color: #fff; border-radius: 10px; padding: 9px;
  font-size: 12.5px; font-weight: 700; text-align: center; backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(10px); transition: all var(--med);
}
.pcard:hover .pcard-quick { opacity: 1; transform: none; }
.pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.pcard-brand { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.pcard-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; min-height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard:hover .pcard-title { color: var(--cyan-600); }
.rating { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.stars { color: var(--amber); display: inline-flex; align-items: center; gap: 1px; }
.stars span { display: inline-flex; }
.stars svg { display: block; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: 11px; font-weight: 700; color: var(--text-3); margin-inline-end: 3px; }
.price-was { font-size: 12.5px; color: var(--text-3); text-decoration: line-through; }
.price-off { font-size: 12px; font-weight: 800; color: var(--danger); }
.stock { font-size: 11.5px; font-weight: 600; }
.in-stock { color: var(--success); }
.low-stock { color: var(--amber); }
.out-stock { color: var(--text-3); }
.pcard-add {
  margin-top: 8px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background var(--fast), transform var(--fast);
}
.pcard-add:hover { background: var(--cyan); color: #04222E; }
.pcard-add:active { transform: scale(.95); }
.pcard-add.added { background: var(--success); color: #fff; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 1fr);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 6px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button {
  width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 1px solid var(--line);
  display: grid; place-items: center; transition: all var(--fast);
}
.carousel-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
html[dir="rtl"] .carousel-nav svg { transform: scaleX(-1); }

/* ---------- Flash deals ---------- */
.flash {
  background: linear-gradient(135deg, #0B0F14, #14212B 55%, #0B0F14);
  border-radius: var(--r-lg); padding: 26px; color: #fff; position: relative; overflow: hidden;
}
.flash::before {
  content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(34,195,243,.28), transparent 70%);
}
.flash-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; position: relative; }
.flash-head h2 { font-size: clamp(20px, 2.2vw, 27px); }
.flash-head .sub { color: #93A5B2; font-size: 13.5px; }
.countdown { display: flex; align-items: center; gap: 7px; margin-inline-start: auto; }
.countdown .cd {
  min-width: 50px; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 6px 8px;
}
.countdown .cd b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.countdown .cd span { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #8FA1AE; }
.countdown .sep { font-size: 18px; color: var(--cyan); font-weight: 800; }
.flash .carousel-track { position: relative; }
.flash .pcard { border-color: transparent; }

/* ---------- Brands ---------- */
.brand-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.brand-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  height: 84px; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  letter-spacing: -.02em; color: #99A3B0; filter: grayscale(1);
  transition: all var(--med);
}
.brand-card:hover { filter: none; color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
  transition: transform var(--med), box-shadow var(--med);
}
.trust-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trust-item .ti { width: 42px; height: 42px; border-radius: 12px; background: var(--cyan-50); color: var(--cyan-600); display: grid; place-items: center; flex-shrink: 0; }
.trust-item b { display: block; font-size: 14px; }
.trust-item span { font-size: 12.5px; color: var(--text-2); }

/* ---------- Newsletter ---------- */
.news {
  background: linear-gradient(120deg, #05070A, #10222D 60%, #05070A); color: #fff;
  border-radius: var(--r-lg); padding: 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
  position: relative; overflow: hidden;
}
.news::after { content: ""; position: absolute; inset-inline-start: -80px; bottom: -120px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(34,195,243,.22), transparent 70%); }
.news h2 { font-size: clamp(22px, 2.6vw, 32px); }
.news p { color: #A2B2BE; margin-top: 10px; }
.news-form { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.news-form input {
  flex: 1; min-width: 200px; height: 48px; border-radius: var(--r-pill); padding-inline: 20px;
  background: rgba(255,255,255,.09); border: 1.5px solid rgba(255,255,255,.16); color: #fff; outline: none;
}
.news-form input:focus { border-color: var(--cyan); box-shadow: var(--glow); }
.app-badges { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.app-badge { display: flex; align-items: center; gap: 10px; border: 1.5px solid rgba(255,255,255,.2); border-radius: 14px; padding: 10px 18px; transition: all var(--fast); }
.app-badge:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.app-badge b { display: block; font-size: 14px; }
.app-badge span { font-size: 10.5px; color: #93A5B2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C6D1; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding: 52px 0 36px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer li a { display: block; padding: 4px 0; font-size: 13.5px; transition: color var(--fast), padding var(--fast); }
.site-footer li a:hover { color: var(--cyan); padding-inline-start: 4px; }
.footer-about img { height: 36px; margin-bottom: 14px; border-radius: 4px; }
.footer-about p { font-size: 13.5px; max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: all var(--fast); }
.social a:hover { background: var(--cyan); color: #04222E; border-color: transparent; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 18px 0 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #7F8F9C; }
.pay-icons { display: flex; gap: 8px; margin-inline-start: auto; flex-wrap: wrap; }
.pay-icons span { border: 1px solid var(--line-dark); border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 700; color: #C4D0DA; }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-2); padding: 18px 0; flex-wrap: wrap; }
.crumb a:hover { color: var(--cyan-600); }
.crumb .sep { color: var(--text-3); }
html[dir="rtl"] .crumb .sep { transform: scaleX(-1); display: inline-block; }

/* ---------- Listing layout ---------- */
.listing { display: grid; grid-template-columns: 268px 1fr; gap: 24px; align-items: start; padding-bottom: 50px; }
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 4px 18px 14px; position: sticky; top: calc(var(--header-h) + 12px);
  max-height: calc(100vh - var(--header-h) - 30px); overflow-y: auto;
}
.fgroup { border-bottom: 1px solid var(--line); padding: 16px 0; }
.fgroup:last-child { border-bottom: 0; }
.fgroup h4 { font-size: 13px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.fopt:hover { color: var(--text); }
.fopt input { accent-color: var(--cyan-600); width: 16px; height: 16px; }
.fopt .count { margin-inline-start: auto; font-size: 11.5px; color: var(--text-3); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 100%; height: 38px; border: 1.5px solid var(--line); border-radius: 10px; padding-inline: 10px; outline: none; }
.price-inputs input:focus { border-color: var(--cyan); }
.filter-actions { display: flex; gap: 8px; padding-top: 14px; }

.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 16px; margin-bottom: 16px;
}
.toolbar .count { font-size: 13.5px; color: var(--text-2); }
.toolbar .count b { color: var(--text); }
.toolbar select {
  height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding-inline: 12px;
  background: var(--card); outline: none; font-size: 13.5px; font-weight: 600;
}
.toolbar select:focus { border-color: var(--cyan); }
.toolbar .spacer { margin-inline-start: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 6px 13px; font-size: 12.5px; font-weight: 600;
}
.chip button { color: var(--text-3); display: grid; place-items: center; }
.chip button:hover { color: var(--danger); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.pagination { display: flex; gap: 6px; justify-content: center; padding: 30px 0 10px; flex-wrap: wrap; }
.pagination button {
  min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  font-weight: 700; font-size: 13.5px; transition: all var(--fast); padding: 0 12px;
}
.pagination button:hover { border-color: var(--ink); }
.pagination button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.filter-btn-mobile { display: none; }
.empty { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty b { display: block; font-size: 17px; color: var(--text); margin-bottom: 6px; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; padding-bottom: 40px; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumb-btn {
  aspect-ratio: 1/1; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; transition: border-color var(--fast), transform var(--fast);
}
.thumb-btn:hover { transform: translateY(-2px); }
.thumb-btn.active { border-color: var(--cyan); box-shadow: var(--glow); }
.stage {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  aspect-ratio: 1/1; overflow: hidden; display: grid; place-items: center;
}
.stage-img { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.stage-img.active { opacity: 1; }
.stage:hover .stage-img.active { transform: scale(1.12); }
.stage .zoom-hint {
  position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(5,7,10,.75); color: #fff;
  font-size: 11.5px; padding: 6px 12px; border-radius: var(--r-pill); z-index: 2;
}
.pdp-brand { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-600); }
.pdp h1 { font-size: clamp(22px, 2.6vw, 32px); margin: 10px 0 12px; }
.pdp-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); align-items: center; }
.pdp-price { margin: 20px 0; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pdp-price .now { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.pdp-price .now small { font-size: 14px; color: var(--text-3); }
.pdp-price .vat { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.opt-row { margin-bottom: 16px; }
.opt-row h4 { font-size: 13px; margin-bottom: 9px; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 15px; font-size: 13px; font-weight: 600;
  background: var(--card); transition: all var(--fast);
}
.opt:hover { border-color: var(--ink); }
.opt.active { border-color: var(--cyan); background: var(--cyan-50); color: var(--cyan-600); box-shadow: var(--glow); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.qty button { width: 40px; height: 42px; font-size: 18px; font-weight: 700; transition: background var(--fast); }
.qty button:hover { background: var(--surface); }
.qty span { min-width: 44px; text-align: center; font-weight: 700; }
.pdp-actions { display: flex; gap: 10px; margin: 22px 0; flex-wrap: wrap; }
.pdp-actions .btn { flex: 1; min-width: 160px; }
.icon-square {
  width: 50px; height: 50px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--card);
  display: grid; place-items: center; transition: all var(--fast); flex: 0 0 auto;
}
.icon-square:hover { border-color: var(--danger); color: var(--danger); }
.icon-square.on { color: var(--danger); border-color: var(--danger); }
.icon-square.on svg { fill: currentColor; }
.delivery-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.delivery-row { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.delivery-row .di { width: 34px; height: 34px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; color: var(--cyan-600); flex-shrink: 0; }
.delivery-row b { display: block; }
.delivery-row span { color: var(--text-2); font-size: 12.5px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab {
  padding: 13px 18px; font-size: 14px; font-weight: 700; color: var(--text-2);
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: all var(--fast);
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-color: var(--cyan); }
.tab-panel { display: none; animation: fadeUp .4s var(--ease); }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.spec-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-table td { padding: 13px 18px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { width: 34%; color: var(--text-2); font-weight: 600; background: #FAFBFC; }

.review-summary { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px; }
.big-rating { text-align: center; }
.big-rating b { font-size: 44px; font-weight: 800; letter-spacing: -.04em; display: block; line-height: 1; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.bar { flex: 1; height: 7px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--amber); border-radius: 4px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 10px; }
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.review p { font-size: 13.5px; color: var(--text-2); }
.verified { font-size: 11px; font-weight: 700; color: var(--success); background: var(--success-50); padding: 2px 8px; border-radius: var(--r-pill); }

.sticky-buy {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 55; background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(11,18,30,.10);
  transform: translateY(110%); transition: transform var(--med); backdrop-filter: blur(10px);
}
.sticky-buy.show { transform: none; }
.sticky-buy .inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.sticky-buy .sb-art { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.sticky-buy .sb-name { font-weight: 700; font-size: 14px; }
.sticky-buy .sb-actions { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 372px; gap: 24px; align-items: start; padding-bottom: 50px; }
.cart-line {
  display: grid; grid-template-columns: 104px 1fr auto; gap: 16px; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px;
  animation: fadeUp .35s var(--ease);
}
.cart-line .cl-art { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; }
.cart-line h4 { font-size: 14.5px; margin-bottom: 4px; }
.cart-line .cl-meta { font-size: 12.5px; color: var(--text-2); }
.cart-line .cl-right { text-align: end; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; justify-content: space-between; }
.linkbtn { font-size: 12.5px; font-weight: 700; color: var(--text-3); transition: color var(--fast); }
.linkbtn:hover { color: var(--danger); }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: sticky; top: calc(var(--header-h) + 12px); }
.summary h3 { font-size: 16px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; color: var(--text-2); }
.sum-row b { color: var(--text); }
.sum-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 18px; font-weight: 800; display: flex; justify-content: space-between; }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon input { flex: 1; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding-inline: 14px; outline: none; }
.coupon input:focus { border-color: var(--cyan); }
.note { font-size: 12px; color: var(--text-3); margin-top: 12px; text-align: center; }
.saved-hint { background: var(--success-50); color: #0B6A46; font-size: 12.5px; font-weight: 600; border-radius: 10px; padding: 9px 12px; margin-top: 10px; }

/* Cart drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(5,7,10,.5); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: all var(--med); z-index: 90;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%);
  background: var(--surface); z-index: 95; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--med); box-shadow: var(--shadow-lg);
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none !important; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 16px; }
.drawer-head .close { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background var(--fast); }
.drawer-head .close:hover { background: var(--surface); }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px; }
.drawer-foot { padding: 16px; background: var(--card); border-top: 1px solid var(--line); }
.mini-line { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.mini-line .ml-art { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; }
.mini-line h5 { font-size: 12.5px; font-weight: 600; margin: 0 0 4px; line-height: 1.35; }

/* ---------- Checkout ---------- */
.stepper { display: flex; align-items: center; gap: 6px; padding: 22px 0 8px; overflow-x: auto; }
.step { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.step .sn { width: 28px; height: 28px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12.5px; transition: all var(--med); }
.step.active { color: var(--text); }
.step.active .sn { background: var(--cyan); border-color: var(--cyan); color: #04222E; box-shadow: var(--glow); }
.step.done .sn { background: var(--success); border-color: var(--success); color: #fff; }
.step.done { color: var(--text-2); }
.step-line { flex: 1; height: 2px; background: var(--line); min-width: 20px; }
.step-line.done { background: var(--success); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 16px; }
.panel h3 { font-size: 16px; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.field input, .field select, .field textarea {
  height: 46px; border: 1.5px solid var(--line); border-radius: 10px; padding-inline: 14px; outline: none;
  background: var(--card); transition: border-color var(--fast), box-shadow var(--fast);
}
.field textarea { height: 92px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: var(--glow); }
.choice {
  display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 15px; cursor: pointer; transition: all var(--fast); margin-bottom: 10px; background: var(--card);
}
.choice:hover { border-color: var(--text-3); }
.choice.active { border-color: var(--cyan); background: var(--cyan-50); }
.choice input { accent-color: var(--cyan-600); margin-top: 3px; width: 17px; height: 17px; }
.choice b { display: block; font-size: 14px; }
.choice span { font-size: 12.5px; color: var(--text-2); }
.choice .price-tag { margin-inline-start: auto; font-weight: 800; font-size: 14px; white-space: nowrap; }

/* ---------- Order confirmation ---------- */
.confirm-hero { text-align: center; padding: 46px 20px 30px; }
.tick {
  width: 82px; height: 82px; margin: 0 auto 20px; border-radius: 50%; background: var(--success-50);
  display: grid; place-items: center; color: var(--success); animation: popIn .6s var(--ease);
}
@keyframes popIn { 0%{transform:scale(.3);opacity:0} 60%{transform:scale(1.12)} 100%{transform:scale(1);opacity:1} }
.confirm-hero h1 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 10px; }
.confirm-hero p { color: var(--text-2); }
.order-no { display: inline-flex; gap: 10px; align-items: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-pill); padding: 10px 20px; margin-top: 18px; font-weight: 800; }
.timeline { display: flex; gap: 0; padding: 26px 0; }
.tl-step { flex: 1; text-align: center; position: relative; font-size: 12.5px; color: var(--text-3); }
.tl-step::before { content: ""; position: absolute; top: 15px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--line); }
.tl-step:first-child::before { display: none; }
.tl-step .tld { width: 32px; height: 32px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); display: grid; place-items: center; margin: 0 auto 8px; position: relative; z-index: 1; }
.tl-step.done { color: var(--text); font-weight: 700; }
.tl-step.done .tld { background: var(--success); border-color: var(--success); color: #fff; }
.tl-step.done::before { background: var(--success); }

/* ---------- Account ---------- */
.acct { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; padding-bottom: 50px; }
.acct-nav { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; position: sticky; top: calc(var(--header-h) + 12px); }
.acct-nav button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: all var(--fast); text-align: start; }
.acct-nav button:hover { background: var(--surface); color: var(--text); }
.acct-nav button.active { background: var(--ink); color: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: start; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 800; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--fast); }
.table tbody tr:hover { background: #FAFBFC; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; padding: 4px 11px; border-radius: var(--r-pill); }
.pill-ok { background: var(--success-50); color: #0B6A46; }
.pill-warn { background: #FFF4E0; color: #96590A; }
.pill-info { background: var(--cyan-50); color: #0A6F92; }
.pill-bad { background: var(--danger-50); color: #A81530; }

/* ---------- Admin mockup ---------- */
body.admin { background: #0B0F14; color: #D8E2EA; }
.adm { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.adm-side { background: #05070A; border-inline-end: 1px solid var(--line-dark); padding: 20px 14px; }
.adm-side .logo { padding: 0 8px 20px; }
.adm-side h5 { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #5D6B78; margin: 18px 10px 8px; }
.adm-side a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; color: #9BAAB7; transition: all var(--fast); }
.adm-side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.adm-side a.active { background: var(--cyan); color: #04222E; font-weight: 700; }
.adm-main { padding: 22px 26px 50px; }
.adm-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.adm-top h1 { font-size: 22px; color: #fff; }
.adm-top .spacer { margin-inline-start: auto; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: #10161E; border: 1px solid var(--line-dark); border-radius: var(--r); padding: 18px; transition: transform var(--med), border-color var(--med); }
.kpi:hover { transform: translateY(-4px); border-color: rgba(34,195,243,.4); }
.kpi span { font-size: 12px; color: #8496A3; }
.kpi b { display: block; font-size: 26px; color: #fff; margin: 6px 0 4px; letter-spacing: -.03em; }
.kpi .delta { font-size: 12px; font-weight: 700; }
.up { color: #3ED598; } .down { color: #FF6A7E; }
.adm-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; }
.adm-card { background: #10161E; border: 1px solid var(--line-dark); border-radius: var(--r); padding: 18px; }
.adm-card h3 { font-size: 15px; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.adm-card h3 .spacer { margin-inline-start: auto; font-size: 12px; color: var(--cyan); font-weight: 600; }
.adm-card .table th { color: #6F8090; border-color: var(--line-dark); }
.adm-card .table td { border-color: var(--line-dark); color: #C3D0DB; }
.adm-card .table tbody tr:hover { background: rgba(255,255,255,.03); }
.mini-bar { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; }
.mini-bar .mb-track { flex: 1; height: 7px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; }
.mini-bar .mb-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), #7BE0FF); border-radius: 4px; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; z-index: 120; bottom: 22px; inset-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; border-radius: 12px; padding: 13px 18px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 11px;
  animation: toastIn .35s var(--ease);
}
.toast .tk { color: var(--cyan); display: grid; place-items: center; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

/* fly-to-cart ghost */
.fly { position: fixed; z-index: 130; width: 70px; height: 70px; border-radius: 12px; overflow: hidden;
  pointer-events: none; box-shadow: var(--shadow-lg); background: #fff; }

/* ---------- Quick view modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5,7,10,.6); backdrop-filter: blur(4px); z-index: 100;
  opacity: 0; visibility: hidden; transition: all var(--med); display: grid; place-items: center; padding: 20px; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface); border-radius: var(--r-lg); width: min(900px, 100%); max-height: 88vh; overflow-y: auto;
  transform: translateY(40px) scale(.97); transition: transform var(--med); box-shadow: var(--shadow-lg);
}
.modal-backdrop.open .modal { transform: none; }
.modal-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.modal .close-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow-sm); z-index: 2; }

/* ---------- Mobile bottom nav ---------- */
.mobile-nav {
  display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 80;
  background: rgba(5,7,10,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-nav ul { display: grid; grid-template-columns: repeat(5, 1fr); }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0; font-size: 10.5px; font-weight: 600; color: #93A3B0; position: relative; }
.mobile-nav a.active { color: var(--cyan); }
.mobile-nav .badge { position: absolute; top: 3px; inset-inline-end: 22%; min-width: 16px; height: 16px; border-radius: var(--r-pill);
  background: var(--cyan); color: #04222E; font-size: 10px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Demo ribbon ---------- */
.demo-flag {
  position: fixed; inset-inline-end: 0; top: 45%; z-index: 70; background: var(--cyan); color: #04222E;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 12px; border-radius: 10px 0 0 10px; writing-mode: vertical-rl; box-shadow: var(--shadow);
}
html[dir="rtl"] .demo-flag { border-radius: 0 10px 10px 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .cat-row { grid-template-columns: repeat(5, 1fr); }
  .brand-row { grid-template-columns: repeat(5, 1fr); }
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .adm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .listing { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset-block: 0; inset-inline-start: 0; width: min(360px, 90%); z-index: 96;
    border-radius: 0; max-height: none; transform: translateX(-100%); transition: transform var(--med); padding-bottom: 90px;
  }
  html[dir="rtl"] .filters { transform: translateX(100%); }
  .filters.open { transform: none !important; }
  .filter-btn-mobile { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .acct { grid-template-columns: 1fr; }
  .acct-nav { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .news { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-inner { overflow-x: auto; scrollbar-width: none; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .adm { grid-template-columns: 1fr; }
  .adm-side { display: none; }
}

@media (max-width: 900px) {
  .hero-slide { grid-template-columns: 1fr; text-align: center; padding: 30px 0 20px; }
  .hero-slide .hero-art { order: -1; }
  .hero-art svg { max-height: 210px; }
  .hero p { margin-inline: auto; }
  .hero-cta, .hero-price, .hero-dots { justify-content: center; }
  .hero-slides { min-height: 620px; }
  .modal-inner { grid-template-columns: 1fr; }
  .review-summary { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { padding-bottom: 58px; }
  .mobile-nav { display: block; }
  .topbar-links { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-bottom: 12px; }
  .header-main { flex-wrap: wrap; height: auto; padding-top: 12px; }
  .search input { padding-inline-end: 16px; }
  .search .btn-search { display: none; }
  .nav { display: none; }
  .burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; }
  .burger:hover { background: rgba(255,255,255,.1); }
  .cat-row { grid-template-columns: repeat(3, 1fr); }
  .brand-row { grid-template-columns: repeat(3, 1fr); }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; overflow-x: auto; }
  .thumb-btn { width: 68px; flex-shrink: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 36px 0; }
  .cart-line { grid-template-columns: 84px 1fr; }
  .cart-line .cl-right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .news { padding: 26px; }
  .flash { padding: 18px; border-radius: var(--r); }
  .countdown { margin-inline-start: 0; }
  .acct-nav { grid-template-columns: 1fr 1fr; }
  .demo-flag { display: none; }
  .toast-host { inset-inline: 12px; bottom: 70px; }
  .sticky-buy { bottom: 58px; }
  .sticky-buy .sb-name, .sticky-buy .sb-art { display: none; }
  .sticky-buy .sb-actions { width: 100%; }
  .sticky-buy .sb-actions .btn { flex: 1; }
}

@media (max-width: 420px) {
  .grid-products { grid-template-columns: 1fr 1fr; }
  .pcard-title { font-size: 12.5px; }
  .price { font-size: 15.5px; }
  .cat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
}


/* ---------- Real product photography ---------- */
.pimg { width: 100%; height: 100%; object-fit: cover; background: #fff; display: block; }
.pcard-media .pimg { transition: transform var(--slow); }
.pcard:hover .pcard-media .pimg { transform: scale(1.07); }
.stage .pimg, .stage-img .pimg, .thumb-btn .pimg { object-fit: contain; padding: 6%; }
.hero-art .pimg { border-radius: var(--r-lg); max-height: 360px; object-fit: contain; background: #fff; }
.fly .pimg { object-fit: cover; }

/* ---------- Product card v2 (premium) ---------- */
.pcard { isolation: isolate; }
.pcard::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r); pointer-events: none;
  background: linear-gradient(120deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%);
  background-size: 260% 100%; background-position: 130% 0; opacity: 0;
  transition: background-position .9s var(--ease), opacity .3s;
}
.pcard:hover::after { opacity: 1; background-position: -30% 0; }
.pcard-media { display: block; }
.pcard-cat {
  position: absolute; inset-inline-start: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(6px);
  border-radius: var(--r-pill); padding: 4px 11px 4px 7px;
  font-size: 10.5px; font-weight: 700; color: var(--text-2); letter-spacing: .02em;
  box-shadow: var(--shadow-sm); transition: opacity var(--med), transform var(--med);
}
.pcard-cat svg { width: 14px; height: 14px; color: var(--cyan-600); }
.pcard:hover .pcard-cat { opacity: 0; transform: translateY(8px); }
.pcard-rail {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3;
  display: flex; flex-direction: column; gap: 7px;
}
.pcard-rail button {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: grid; place-items: center; color: var(--text-2); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateX(10px);
  transition: opacity var(--med), transform var(--med), color var(--fast), background var(--fast);
}
html[dir="rtl"] .pcard-rail button { transform: translateX(-10px); }
.pcard-rail button:nth-child(2) { transition-delay: .05s; }
.pcard:hover .pcard-rail button, .pcard-rail button.on { opacity: 1; transform: none; }
.pcard-rail button:hover { background: var(--ink); color: #fff; }
.pcard-rail button.on { color: var(--danger); }
.pcard-rail button.on svg { fill: currentColor; }
.pcard-rail button.pulse { animation: pulse .5s var(--ease); }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard-rate {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700;
  background: #FFF8E9; color: #8A5B08; border-radius: var(--r-pill); padding: 2px 8px;
}
.pcard-rate svg { color: var(--amber); }
.pcard-ship { font-size: 11px; font-weight: 700; color: var(--success); display: flex; align-items: center; gap: 5px; }
.sold-wrap { margin-top: 2px; }
.sold-bar { height: 6px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.sold-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #FF6A3D, var(--danger)); }
.sold-txt { font-size: 10.5px; font-weight: 700; color: var(--danger); margin-top: 4px; display: block; }

/* ---------- Promotional banners ---------- */
.promo-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.promo {
  position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 190px;
  padding: 26px; display: flex; flex-direction: column; justify-content: center; color: #fff;
  transition: transform var(--med), box-shadow var(--med);
}
.promo:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.promo::before {
  content: ""; position: absolute; inset-inline-end: -50px; bottom: -70px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,.26), transparent 68%); transition: transform var(--slow);
}
.promo:hover::before { transform: scale(1.25); }
.promo .pr-art { position: absolute; inset-inline-end: -14px; bottom: -20px; width: 170px; opacity: .92; transition: transform var(--slow); }
.promo .pr-art svg { border-radius: 20px; }
.promo:hover .pr-art { transform: translateY(-8px) rotate(-4deg); }
.promo-k { background: linear-gradient(120deg, #12131A, #2A1E3D 55%, #451F52); }
.promo-a { background: linear-gradient(120deg, #06222E, #0B4B63 60%, #0FA6D4); }
.promo-b { background: linear-gradient(120deg, #2A1206, #6D2A10 60%, #C2410C); }
.promo-c { background: linear-gradient(120deg, #071C2C, #123A54 60%, #1E6F91); }
.promo .pr-kicker { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .85; position: relative; }
.promo h3 { font-size: clamp(18px, 2vw, 25px); margin: 8px 0 6px; max-width: 14ch; position: relative; }
.promo p { font-size: 12.5px; color: rgba(255,255,255,.78); max-width: 24ch; position: relative; }
.promo .pr-cta {
  margin-top: 14px; align-self: flex-start; position: relative;
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-pill); padding: 9px 18px; transition: all var(--fast);
}
.promo:hover .pr-cta { background: #fff; color: #10151C; border-color: #fff; gap: 13px; }

/* full-width campaign strip */
.campaign {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(115deg, #3B0714, #7A1024 45%, #B3122F);
  padding: 34px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: center;
}
.campaign::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.campaign h2 { font-size: clamp(24px, 3.2vw, 40px); letter-spacing: -.035em; position: relative; }
.campaign h2 em { font-style: normal; color: #FFD166; }
.campaign p { color: rgba(255,255,255,.82); margin-top: 10px; max-width: 46ch; position: relative; }
.campaign .cmp-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; position: relative; }
.campaign .cmp-tags span {
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.32); border-radius: var(--r-pill); padding: 5px 13px;
}
.campaign .cmp-right { text-align: center; position: relative; }
.campaign .cmp-off { font-size: clamp(44px, 7vw, 82px); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.campaign .cmp-off small { display: block; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; opacity: .82; margin-top: 8px; }

/* clearance strip */
.clearance-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
  background: linear-gradient(100deg, #FFF1E7, #FFE2CE); border: 1px solid #FFD3B4;
  border-radius: var(--r); padding: 16px 20px;
}
.clearance-head .ch-badge {
  background: linear-gradient(120deg, #FF6A3D, #E5314B); color: #fff; border-radius: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px;
  box-shadow: 0 8px 20px rgba(229,49,75,.3);
}
.clearance-head h2 { font-size: clamp(19px, 2.2vw, 25px); color: #7A2E10; }
.clearance-head p { font-size: 13px; color: #9A5433; }
.clearance-head .ch-right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.b-clear { background: linear-gradient(120deg, #FF6A3D, #E5314B); color: #fff; }

/* ---------- PWA install + promo subscribe ---------- */
.install-bar {
  position: fixed; z-index: 88; inset-inline: 16px; bottom: 16px; max-width: 460px; margin-inline: auto;
  background: rgba(5,7,10,.97); color: #fff; border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 14px 16px; display: flex; gap: 13px; align-items: center;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(14px);
  transform: translateY(160%); transition: transform .5s var(--ease);
}
.install-bar.show { transform: none; }
.install-bar img { width: 42px; height: 42px; border-radius: 12px; }
.install-bar b { display: block; font-size: 13.5px; }
.install-bar span { font-size: 11.5px; color: #93A5B2; }
.install-bar .ib-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.install-bar .ib-close { color: #7E8D9A; padding: 6px; }

.promo-modal .modal { width: min(560px, 100%); }
.promo-modal .pm-head {
  background: linear-gradient(120deg, #05070A, #0B3F53 60%, #0FA6D4); color: #fff;
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 28px 26px 24px; position: relative; overflow: hidden;
}
.promo-modal .pm-head::after {
  content: ""; position: absolute; inset-inline-end: -40px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(34,195,243,.5), transparent 70%);
}
.promo-modal .pm-head h2 { font-size: 23px; position: relative; }
.promo-modal .pm-head p { color: rgba(255,255,255,.8); font-size: 13.5px; margin-top: 8px; position: relative; }
.promo-modal .pm-bell {
  width: 56px; height: 56px; border-radius: 18px; background: rgba(255,255,255,.14);
  display: grid; place-items: center; margin-bottom: 14px; position: relative;
  animation: bell 3s var(--ease) infinite;
}
@keyframes bell { 0%,72%,100% { transform: rotate(0); } 78% { transform: rotate(12deg); } 84% { transform: rotate(-10deg); } 90% { transform: rotate(6deg); } }
.promo-modal .pm-body { padding: 22px 26px 26px; }
.pm-perk { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 13.5px; }
.pm-perk .pk { width: 30px; height: 30px; border-radius: 9px; background: var(--cyan-50); color: var(--cyan-600); display: grid; place-items: center; flex-shrink: 0; }
.pm-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.pm-plat {
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; gap: 10px; align-items: center;
  font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--card);
}
.pm-plat svg { color: var(--text); flex-shrink: 0; }
.pm-status { font-size: 12.5px; font-weight: 700; margin-top: 12px; }
.pm-ios { background: var(--surface); border-radius: var(--r); padding: 14px; font-size: 12.5px; color: var(--text-2); margin-top: 12px; }
.pm-ios b { color: var(--text); }
.pm-ios ol { margin: 8px 0 0; padding-inline-start: 18px; display: grid; gap: 5px; }
.pm-ios li { list-style: decimal; }

/* ---------- Premium motion layer ---------- */
.countup { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .tilt { transition: transform .25s var(--ease); }
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-18deg); animation: sheen 5s ease-in-out infinite; pointer-events: none;
  }
  @keyframes sheen { 0%, 62% { left: -60%; } 88%, 100% { left: 130%; } }
  .reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal-stagger.in > * { opacity: 1; transform: none; }
  .page-fade { animation: pageIn .5s var(--ease); }
  @keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .hero-art { animation: float 7s ease-in-out infinite; }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
}

@media (max-width: 1024px) {
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid .promo:first-child { grid-column: 1 / -1; }
  .campaign { grid-template-columns: 1fr; text-align: center; }
  .campaign .cmp-tags { justify-content: center; }
}
@media (max-width: 768px) {
  .promo-grid { grid-template-columns: 1fr; }
  .pm-platforms { grid-template-columns: 1fr; }
  .install-bar { bottom: 70px; }
  .pcard-rail button { opacity: 1; transform: none; }
  .promo { min-height: 160px; padding: 20px; }
  .promo .pr-art { width: 128px; }
  .campaign { padding: 24px; }
}


/* ---------- Mobile header + hero tidy-up ---------- */
@media (max-width: 768px) {
  .header-main {
    display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
    column-gap: 10px; row-gap: 10px; height: auto; padding: 10px 0 12px;
  }
  .burger { width: 36px; height: 36px; margin-inline-start: -6px; }
  .logo { justify-self: start; }
  .logo img { height: 28px; }
  .header-actions { margin-inline-start: 0; gap: 2px; }
  .header-actions .dup-nav { display: none; }          /* already in the bottom bar */
  .iconbtn { padding: 7px 8px; }
  .iconbtn span { display: none; }                     /* icon-only on phones */
  .iconbtn .badge { top: -2px; inset-inline-end: 0; }
  .lang-toggle { padding: 6px 12px; font-size: 12px; }
  .header-actions { order: 1; }
  .search { grid-column: 1 / -1; order: 2; margin-bottom: 0; }
  .search input { height: 42px; padding-inline: 42px 14px; font-size: 14px; }
  .search .icon-search { top: 11px; inset-inline-start: 14px; }
  .topbar-inner { height: 32px; }
  .topbar { font-size: 11.5px; }

  .hero-slides { min-height: 0; }
  .hero-slide {
    position: relative; inset: auto; display: none; padding: 16px 0 22px;
    opacity: 1; visibility: visible; transform: none;
    grid-template-columns: 1fr; text-align: center;
  }
  .hero-slide.active { display: flex; flex-direction: column; }
  .hero-slide .hero-art { order: -1; }
  .hero-art { max-width: 230px; margin: 0 auto 16px; }
  .hero-art svg { max-height: 200px; border-radius: 20px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 14px; }
  .hero-cta .btn { padding: 12px 20px; font-size: 13.5px; }
  .hero-price .now { font-size: 24px; }
  .hero-dots { padding-bottom: 18px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-head .carousel-nav { display: none; }
  .cat-tile .ci-art { width: 72px; height: 72px; }
  .install-bar { padding: 12px; gap: 10px; }
  .install-bar img { width: 36px; height: 36px; }
  .install-bar b { font-size: 12.5px; }
  .install-bar span { font-size: 11px; }
}
@media (max-width: 380px) {
  .lang-toggle { padding: 6px 9px; }
  .logo img { height: 25px; }
}

@media print { .site-header, .site-footer, .mobile-nav, .demo-flag { display: none; } }
