:root {
  --bg: #0c0c0c;
  --bg-2: #141414;
  --card: #161616;
  --card-2: #1c1c1c;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --ink: #f4f4f4;
  --muted: #a8a8a8;
  --faint: #8d8d8d;
  --yellow: #ffe500;
  --ink-y: #161400;
  --danger: #ff5d52;
  --ok: #c6f08a;
  --warn: #ffc14d;
  --radius: 16px;
  --max: 1120px;
  --font: "Cairo", Tahoma, sans-serif;
  --en: "Outfit", "Cairo", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -48px; background: var(--yellow); color: var(--ink-y);
  padding: 8px 12px; border-radius: 8px; z-index: 80;
}
.skip:focus { top: 8px; }
.en { font-family: var(--en); letter-spacing: .02em; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.muted, .card p { color: var(--muted); }
.topnote {
  margin: 0; background: var(--yellow); color: var(--ink-y); text-align: center;
  font-size: 13.5px; font-weight: 700; line-height: 1.35; padding: 7px 16px;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.chrome { position: sticky; top: 0; z-index: 30; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

header.bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(12, 12, 12, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
body.scrolled header.bar { border-bottom-color: rgba(255, 229, 0, .35); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand strong { display: block; font-family: var(--en); font-size: 14px; letter-spacing: .12em; line-height: 1.1; }
.brand strong em { font-style: normal; color: var(--yellow); }
.brand small { color: var(--muted); font-size: 12px; }
nav.main { display: flex; gap: 2px; align-items: center; }
nav.main a {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--muted); font-weight: 700;
  padding: 8px 10px; border-radius: 999px; white-space: nowrap;
}
nav.main a.on, nav.main a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
nav.main a.on { color: var(--yellow); }
.iconbtn, .btn, .btn-ghost, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border-radius: 12px; border: 0; text-decoration: none; font-weight: 800;
  padding: 10px 14px;
}
.btn { background: var(--yellow); color: var(--ink-y); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost { background: var(--card-2); color: var(--ink); border: 1px solid var(--line); }
.iconbtn {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  padding: 0 12px; position: relative; min-width: 44px;
}
.iconbtn b {
  position: absolute; top: -6px; inset-inline-start: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--yellow); color: var(--ink-y); font-size: 11px;
  display: grid; place-items: center; font-family: var(--en);
}
.menu-btn { display: none; }

.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 28px; align-items: center; padding: 28px 0 8px; }
.kicker {
  display: inline-flex; gap: 8px; align-items: center; color: var(--ink-y); background: var(--yellow);
  border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800; margin-bottom: 14px;
}
.kicker .ico { width: 16px; height: 16px; }
h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.3; margin: 0 0 12px; }
.lede { color: var(--muted); font-size: 17px; max-width: 38ch; margin: 0 0 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
}
.facts > div { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.facts .ico { width: 20px; height: 20px; color: var(--yellow); margin-top: 2px; }
.facts b { display: block; font-family: var(--en); font-size: 20px; font-weight: 700; line-height: 1.2; }
.facts span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.hero-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #111; }
.hero-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.teaser {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; align-items: center;
  margin: 18px 0 6px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.teaser h2 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 30px); }
.teaser .sub { margin: 0 0 14px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.quote-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.quote-line span { color: var(--muted); flex: none; }
.quote-line b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-total { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 12px; }
.quote-total strong { font-family: var(--en); font-size: 26px; color: var(--yellow); font-weight: 700; }

.section { padding: 28px 0; }
.section h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.sec-label { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.sec-label .ico { width: 16px; height: 16px; }

.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cat {
  display: flex; flex-direction: column; gap: 2px; min-height: 168px; justify-content: flex-end;
  padding: 14px; border-radius: var(--radius); text-decoration: none; color: #fff;
  background-color: #111; background-size: cover; background-position: center;
  position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line);
}
.cat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.2) 68%); z-index: -1; }
.cat b { font-size: 17px; line-height: 1.35; }
.cat > span { color: #ddd; font-size: 13px; }
.cat .shot-ic { color: var(--yellow); }
.shot-ic {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: rgba(10, 10, 10, .72); color: var(--yellow);
}
.cat .shot-ic { position: static; margin-bottom: auto; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; min-width: 0;
}
.shot { position: relative; display: block; overflow: hidden; background: #111; }
.card .im, .visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center; }
.shot-ic { position: absolute; top: 10px; inset-inline-start: 10px; }
.cat .shot-ic { position: static; }
.badge {
  display: inline-flex; align-self: flex-start; background: rgba(255, 229, 0, .14); color: var(--yellow);
  border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 800;
}
.badge.float {
  position: absolute; top: 10px; inset-inline-end: 10px; width: auto; height: auto;
  background: rgba(10, 10, 10, .78); z-index: 1;
}
.card .in { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; line-height: 1.45; }
.card h3 a { text-decoration: none; }
.card p { margin: 0; font-size: 14px; }
.card .btn { width: 100%; margin-top: auto; }
.eyebrow { margin: 0; color: var(--yellow); font-size: 12px; font-weight: 800; }
.price { font-family: var(--en); color: var(--yellow); font-weight: 700; font-size: 20px; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.was { color: var(--faint); text-decoration: line-through; font-family: var(--en); font-size: 13px; margin-inline-end: 6px; }
.stock { color: var(--faint); font-size: 13px; }
.stock.low { color: var(--warn); }
.stock.out { color: var(--danger); }

.page-hero {
  margin-top: 16px; min-height: 220px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; background-color: #111; background-size: cover; background-position: center;
  position: relative; border: 1px solid var(--line);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(8,8,8,.92) 0%, rgba(8,8,8,.5) 52%, rgba(8,8,8,.18) 100%); }
.page-hero > div { position: relative; padding: 22px; max-width: 620px; }
.page-hero h2 { margin: 0 0 6px; }
.page-hero p { margin: 0 0 12px; color: #eee; }

.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.chip, .choice {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font-weight: 700;
}
.chip.on, .choice.on { background: var(--yellow); color: var(--ink-y); border-color: var(--yellow); }
.tools select, .field input, .field select, .field textarea, .grow, #c-code {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%;
}
.tools select { width: auto; min-height: 44px; }
.search {
  display: flex; align-items: center; gap: 8px; margin-inline-start: auto;
  width: min(260px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px;
}
.search input { border: 0; background: transparent; padding: 10px 0; width: 100%; min-width: 0; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.step .ico { width: 28px; height: 28px; color: var(--ink-y); background: var(--yellow); border-radius: 10px; padding: 5px; }
.step h3 { margin: 10px 0 4px; }
.step p { margin: 0; }
.ig {
  display: flex; align-items: stretch; gap: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.ig img { width: 42%; min-height: 180px; object-fit: cover; }
.ig > div { padding: 22px; }
.ig p { margin: 6px 0 14px; color: var(--muted); }
footer.site { border-top: 1px solid var(--line); margin-top: 12px; padding: 28px 0 40px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
footer a { color: var(--yellow); }

.crumb { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.crumb a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: start; padding-top: 18px; }
.visual { background: #111; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.buy { position: sticky; top: 78px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.buy h1 { font-size: clamp(24px, 3vw, 34px); }
.specs { width: 100%; border-collapse: collapse; margin: 12px 0 0; }
.specs th, .specs td { text-align: start; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; vertical-align: top; }
.specs th { color: var(--muted); width: 38%; }
.group { margin: 14px 0; }
.group .lbl { font-weight: 800; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice small { font-family: var(--en); font-weight: 700; }
.qty { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qty button { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink); }
.buybar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 16px; }
.note { min-height: 74px; resize: vertical; }

.build { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 14px; align-items: start; }
.sum, .picker { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.sum { position: sticky; top: 78px; }
.slot {
  width: 100%; text-align: start; background: transparent; border: 1px solid transparent;
  border-radius: 12px; padding: 8px; color: inherit;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 8px; align-items: center;
}
.slot.on { border-color: var(--yellow); background: rgba(255, 229, 0, .06); }
.slot .shot-ic { position: static; width: 32px; height: 32px; grid-row: 1 / span 2; }
.slot span { grid-column: 2; color: var(--muted); font-size: 12px; }
.slot b { grid-column: 2; font-weight: 700; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-family: var(--en); color: var(--yellow); font-size: 13px; }
.warn, .block { border-radius: 12px; padding: 8px 10px; font-size: 14px; margin-top: 8px; }
.warn { background: rgba(255, 193, 77, .1); color: var(--warn); }
.block { background: rgba(255, 93, 82, .1); color: #ffb1ab; }
.parts { display: grid; gap: 8px; }
.part {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; text-align: start;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px; color: inherit;
}
.part img { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; grid-row: span 2; background: #111; }
.part b { min-width: 0; }
.part small { color: var(--muted); min-width: 0; }
.part small:last-child { text-align: end; }
.part.on { border-color: var(--yellow); }
.part:disabled { opacity: .45; cursor: not-allowed; }

.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 40; display: none; }
.overlay.open { display: block; }
.drawer {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%);
  background: #101010; border-inline-start: 1px solid var(--line); padding: 16px;
  overflow: auto; display: flex; flex-direction: column; gap: 8px;
}
.drawer-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; background: #000; }
.line p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.line .qty { grid-column: 1 / -1; }
.tot { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.field span { color: var(--muted); font-size: 13px; }
.pay { display: grid; gap: 8px; }
.pay label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; }
.pay label:has(input:checked) { border-color: var(--yellow); }
.pay input { width: auto; margin-top: 6px; }
.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: #fff; color: #141414; padding: 12px 16px; border-radius: 12px; display: none;
  z-index: 60; max-width: min(520px, calc(100% - 24px)); font-weight: 700; text-align: center;
}
.toast.err { background: var(--danger); color: #fff; }
.empty { color: var(--muted); padding: 20px 0; }
.account { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.order { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.status { display: inline-flex; border-radius: 999px; padding: 2px 10px; background: rgba(255, 229, 0, .12); color: var(--yellow); font-size: 13px; font-weight: 800; }
.offer {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap;
  border: 1px dashed rgba(255, 229, 0, .55); border-radius: var(--radius); padding: 12px 14px; margin: 14px 0;
}
.gallery { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery button { width: 68px; height: 52px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #111; flex: none; }
.gallery button.on { border-color: var(--yellow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.authpop { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.62); display: none; place-items: center; padding: 16px; }
.authpop.open { display: grid; }
.authcard { width: min(420px, 100%); background: #121212; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.gbtn { display: flex; justify-content: center; min-height: 44px; }
.phone-login { margin-top: 14px; color: var(--muted); }
.phone-login summary { cursor: pointer; font-weight: 800; color: var(--ink); }

@media (hover: hover) {
  .btn:hover { filter: brightness(1.05); }
  .btn-line:hover, .card:hover, .cat:hover { border-color: rgba(255, 229, 0, .7); }
  .card:hover .im { transform: scale(1.04); }
  .card .im { transition: transform .35s ease; }
}

@media (max-width: 980px) {
  .hide-sm {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .menu-btn { display: inline-flex; }
  nav.main {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #111; border-bottom: 1px solid var(--line); padding: 8px; z-index: 35;
  }
  nav.main.open { display: flex; }
  nav.main a { width: 100%; min-height: 48px; border-radius: 12px; padding-inline: 12px; }
  .hero, .teaser, .product, .build, .foot { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .cats, .grid { grid-template-columns: 1fr 1fr; }
  .sum, .buy { position: static; }
  .ig { flex-direction: column; }
  .ig img { width: 100%; height: 200px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 24px); }
  header.bar { padding: 8px 12px; gap: 8px; }
  .hide-sm {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .menu-btn { display: inline-flex; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 13px; letter-spacing: .08em; }
  nav.main {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #111; border-bottom: 1px solid var(--line); padding: 8px; z-index: 35;
  }
  nav.main.open { display: flex; }
  nav.main a { width: 100%; min-height: 48px; border-radius: 12px; padding-inline: 12px; }
  h1 { font-size: 30px; }
  .lede { font-size: 15px; }
  .hero { gap: 14px; padding-top: 14px; }
  .hero .row .btn, .hero .row .btn-line { flex: 1 1 calc(50% - 8px); }
  .facts { gap: 8px; }
  .facts b { font-size: 16px; }
  .facts span { font-size: 11px; }
  .facts .ico { width: 16px; height: 16px; }
  .teaser { padding: 14px; margin-top: 14px; }
  .teaser .btn { width: 100%; }
  .page-hero { min-height: 196px; }
  .page-hero::before { background: linear-gradient(to top, rgba(8,8,8,.94), rgba(8,8,8,.45)); }
  .page-hero > div { padding: 16px; max-width: none; }
  .page-hero .row { flex-direction: column; align-items: stretch; }
  .page-hero .btn, .page-hero .btn-line, .page-hero .btn-ghost { width: 100%; }
  .tools { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .search, .tools select { width: 100%; margin-inline-start: 0; }
  .grid { grid-template-columns: 1fr; }
  .cats { gap: 8px; }
  .cat { min-height: 136px; padding: 10px; }
  .cat b { font-size: 15px; }
  .steps, .account { grid-template-columns: 1fr; }
  .account .btn { width: 100%; }
  .order { overflow-wrap: anywhere; }
  .section { padding: 20px 0; }
  .section h2, .page-hero h2 { font-size: 24px; }
  .ig > div { padding: 16px; }
  .ig .btn { width: 100%; }
  .foot { gap: 14px; }
  .product { padding-top: 12px; gap: 12px; }
  .buy { padding: 14px; }
  body[data-view="product"] { padding-bottom: 96px; }
  body[data-view="product"] .toast { bottom: 104px; }
  .buybar {
    position: fixed; inset-inline: 0; bottom: 0; margin: 0; z-index: 25;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(12, 12, 12, .96); border-top: 1px solid var(--line);
  }
  .buybar .btn { min-width: 46%; }
  .part { grid-template-columns: 64px minmax(0, 1fr); }
  .part img { width: 64px; height: 64px; grid-row: span 3; }
  .part b, .part .price, .part small { grid-column: 2; }
  .part small:last-child { text-align: start; }
  .drawer { width: 100%; border: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .offer { align-items: stretch; }
  .offer .btn { width: 100%; }
  input, select, textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
