:root {
  --bg: #070908;
  --surface: #111413;
  --surface-2: #181b1a;
  --line: rgba(241, 234, 216, .1);
  --cream: #f1ead8;
  --text: #f4f1ea;
  --muted: #b6b0a3;
  --red: #c8262e;
  --red-hi: #e0343c;
  --red-glow: rgba(200, 38, 46, .35);
  --wa: #1fae5b;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Changa", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --bar-h: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.has-bar { --bar-h: 92px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--cream); color: #111; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 0; font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .2s, box-shadow .25s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px var(--red-glow); }
.btn-red:hover { background: var(--red-hi); }
.btn-red:disabled { background: #3a3d3c; color: #a7a29a; box-shadow: none; cursor: not-allowed; }
.btn-line { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(241, 234, 216, .35); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--cream); }
.btn-ghost { background: var(--surface-2); min-height: 44px; padding: 0 14px; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 30px -12px rgba(31, 174, 91, .6); }
.btn-wa:hover { background: #22c266; }
.btn-wa.off { opacity: .45; pointer-events: none; }
.btn.wide { width: 100%; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  padding: 10px max(16px, calc((100% - 1160px) / 2)); background: rgba(7, 9, 8, .86);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(140%) blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: .3px; }
.brand img { border-radius: 10px; }
.top-nav { display: none; gap: 26px; margin-inline-start: auto; }
.top-nav a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.top-nav a:hover { color: var(--cream); }
.top-cart { margin-inline-start: auto; position: relative; }
.top-cart .count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff;
  font: 600 13px/22px var(--body); text-align: center;
}
@media (min-width: 820px) { .top-nav { display: flex; } .top-cart { margin-inline-start: 8px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vmax; height: 70vmax; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 38, 46, .28), transparent 70%);
}
.hero-word {
  position: absolute; inset-inline: 0; bottom: -2vw; text-align: center; pointer-events: none; white-space: nowrap;
  font: 800 22vw/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(241, 234, 216, .07); direction: ltr;
}
.hero-grid { position: relative; display: grid; gap: 36px; align-items: center; }
.kicker { margin: 0 0 12px; color: var(--red-hi); font: 600 14px/1.4 var(--body); letter-spacing: .4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.5rem, 9vw, 4.8rem); font-weight: 800; letter-spacing: -.5px; }
h1 span { display: inline-block; }
h1 .accent { color: var(--cream); background: linear-gradient(90deg, var(--cream), #fff 40%, var(--cream)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { margin: 18px 0 28px; max-width: 34ch; color: var(--muted); font-size: 1.08rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stack { position: relative; width: min(440px, 88%); margin-inline: auto; aspect-ratio: 1 / 1.05; transform: translateY(var(--py, 0)); }
.hero-stack img { position: absolute; border-radius: 26px; object-fit: cover; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9); }
.card-a { inset: 4% 8% 6% 6%; width: 86%; height: 90%; transform: rotate(-3deg); z-index: 2; outline: 1px solid var(--line); }
.card-b, .card-c { width: 42%; height: auto; aspect-ratio: 1; z-index: 3; outline: 3px solid var(--bg); }
.card-b { inset-inline-end: -4%; bottom: -2%; transform: rotate(6deg); }
.card-c { inset-inline-start: -6%; top: 6%; transform: rotate(-9deg); width: 34%; z-index: 1; opacity: .9; }
.price-pin {
  position: absolute; z-index: 4; inset-inline-start: -2%; bottom: 10%; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; background: var(--red); color: #fff; line-height: 1.1;
  box-shadow: 0 16px 40px -12px var(--red-glow); transform: rotate(-8deg);
}
.price-pin b { font: 800 34px/1 var(--display); }
.price-pin small { font-size: 12px; opacity: .9; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-stack { width: 100%; }
}

/* ---------- perks ---------- */
.perks { border-block: 1px solid var(--line); background: linear-gradient(180deg, #0b0d0c, var(--bg)); }
.perks-row { list-style: none; margin-block: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
.perks li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.perks svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(200, 38, 46, .14); color: var(--red-hi); }
.perks b { font-weight: 600; font-size: 15px; }
.perks span { color: var(--muted); font-size: 13px; line-height: 1.4; }
@media (min-width: 860px) { .perks-row { grid-template-columns: repeat(4, 1fr); padding: 28px 0; } }

/* ---------- sections ---------- */
section { scroll-margin-top: 70px; }
.offers, .catalog, .sizes, .how { padding: 72px 0; }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); font-weight: 700; }
.sub { color: var(--muted); margin: 10px 0 0; max-width: 52ch; }
.fine { color: var(--muted); font-size: 13px; margin: 14px 0 0; text-align: center; }

/* ---------- offers ---------- */
.offer-grid { display: grid; gap: 16px; }
.offer { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.offer:hover { transform: translateY(-4px); border-color: rgba(241, 234, 216, .22); }
.offer h3 { font-size: 1.4rem; margin-bottom: 14px; }
.offer ul { list-style: none; margin: 0; padding: 0; }
.offer li { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.offer li:last-child { border-bottom: 0; }
.offer li b { font: 700 1.5rem/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.offer li b::after { content: " ج"; font: 500 13px var(--body); color: var(--muted); }
.offer li.best { color: var(--cream); }
.offer li.best b { color: var(--red-hi); }
.offer-hot { background: linear-gradient(160deg, rgba(200, 38, 46, .22), var(--surface) 55%); border-color: rgba(200, 38, 46, .45); }
.offer-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (min-width: 760px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- catalog ---------- */
.catalog { background: linear-gradient(180deg, var(--bg), #0c0e0d 30%, var(--bg)); }
.filters { display: grid; gap: 14px; margin-bottom: 8px; }
.seg { display: inline-flex; width: fit-content; max-width: 100%; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 10px 18px; min-height: 44px; border-radius: 999px; color: var(--muted); font-weight: 600; transition: background-color .25s, color .25s; }
.seg button small { opacity: .7; font-weight: 500; margin-inline-start: 2px; }
.seg button.on { background: var(--cream); color: #111; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 14px; transition: border-color .2s, color .2s, background-color .2s; }
.chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(241, 234, 216, .35); }
.chip.on { border-color: var(--cream); color: var(--cream); background: rgba(241, 234, 216, .06); }
.result-count { color: var(--muted); font-size: 14px; margin: 6px 0 16px; min-height: 1.4em; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cell[hidden] { display: none; }
.card {
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0; text-align: start;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.card-media { display: block; aspect-ratio: 1; overflow: hidden; background: #0d0f0e; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-n {
  position: absolute; top: 10px; inset-inline-start: 10px; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px;
  display: grid; place-items: center; background: rgba(7, 9, 8, .78); font: 700 15px/1 var(--display); backdrop-filter: blur(6px);
}
.card-info { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; flex: 1; }
.card-info b { font: 700 16px/1.3 var(--display); }
.card-info > span:not(.card-foot) { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; background: rgba(241, 234, 216, .08); color: var(--cream); font-size: 12px; font-weight: 500; }
.from { font: 700 15px/1 var(--display); color: var(--cream); }
.card-plus {
  position: absolute; top: 10px; inset-inline-end: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px var(--red-glow); transition: transform .3s var(--ease);
}
.card-plus svg { width: 18px; height: 18px; stroke-width: 2.4; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); border-color: rgba(241, 234, 216, .24); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .9); }
  .card:hover .card-media img { transform: scale(1.06); }
  .card:hover .card-plus { transform: rotate(90deg) scale(1.06); }
}
.card:active { transform: scale(.98); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- sizes ---------- */
.sizes-grid { display: grid; gap: 24px; align-items: start; }
.size-tool { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.size-tool label { display: block; font-weight: 600; margin-bottom: 10px; }
.weight-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.weight-row input {
  width: 140px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(241, 234, 216, .25);
  background: var(--bg); color: var(--text); font: 600 18px var(--body);
}
.weight-row input:focus { outline: none; border-color: var(--cream); box-shadow: 0 0 0 3px rgba(241, 234, 216, .15); }
.weight-row output { flex: 1; min-width: 160px; color: var(--muted); font-size: 15px; }
.weight-row output.hit { color: var(--cream); font: 700 22px/1.2 var(--display); }
.size-table { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.size-table li { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); transition: border-color .3s, background-color .3s, transform .3s var(--ease); }
.size-table b { display: block; font: 800 24px/1 var(--display); }
.size-table span { color: var(--muted); font-size: 13px; }
.size-table li.on { border-color: var(--red); background: rgba(200, 38, 46, .14); transform: translateY(-2px); }
@media (min-width: 900px) { .sizes-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; } .size-table { grid-template-columns: repeat(4, 1fr); } }

/* ---------- how ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { position: relative; padding: 22px 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--red); color: #fff; font: 800 20px/1 var(--display); margin-bottom: 12px; }
.steps b { display: block; font: 700 18px/1.3 var(--display); }
.steps p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + var(--bar-h)); }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.foot p { margin: 0; color: var(--muted); }
.foot p a { color: var(--cream); }

/* ---------- order bar ---------- */
.bar {
  position: fixed; z-index: 40; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; align-items: center; padding: 8px; max-width: 620px; margin-inline: auto;
  border-radius: 999px; background: rgba(24, 27, 26, .94); border: 1px solid rgba(241, 234, 216, .14);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .95); backdrop-filter: blur(12px);
  animation: barIn .45s var(--ease) both;
}
.bar[hidden] { display: none; }
.bar-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 50px; padding: 4px 16px; border: 0; background: transparent; text-align: start; border-radius: 999px; }
.bar-count { color: var(--muted); font-size: 13px; }
.bar-count b { color: var(--cream); }
.bar-total { font: 700 17px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bar .btn-wa { padding: 0 18px; }
.bar.bump { animation: bump .5s var(--ease); }
@keyframes barIn { from { transform: translateY(120%); opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.035); } }

/* ---------- sheets ---------- */
.sheet { padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.sheet::backdrop { background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); }
.sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.sheet-in {
  position: relative; width: 100%; max-height: 92dvh; overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px 26px 0 0;
  padding: 0 0 calc(20px + env(safe-area-inset-bottom)); animation: sheetUp .38s var(--ease) both;
}
.x {
  position: absolute; z-index: 3; top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; display: grid; place-items: center; background: rgba(7, 9, 8, .75); backdrop-filter: blur(6px);
}
.pick-media { aspect-ratio: 1; max-height: 46dvh; overflow: hidden; background: #0d0f0e; }
.pick-media img { width: 100%; height: 100%; object-fit: cover; }
.pick-body { padding: 18px 20px 4px; }
.pick-body h3 { font-size: 1.7rem; margin-top: 8px; }
.pick-desc { margin: 4px 0 0; color: var(--muted); }
.pick-price { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.pick-price b { color: var(--cream); font: 700 20px var(--display); }
.size-pick { border: 0; padding: 0; margin: 18px 0; }
.size-pick legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.size-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size-btns button { min-height: 52px; border-radius: 14px; border: 1px solid rgba(241, 234, 216, .22); background: var(--bg); font: 700 18px/1 var(--display); transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.size-btns button.on { background: var(--cream); color: #111; border-color: var(--cream); transform: translateY(-2px); }
.size-hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.size-hint a { color: var(--cream); }
.cart-in { padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
.cart-in h3 { font-size: 1.6rem; margin-bottom: 14px; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); animation: fadeIn .3s var(--ease) both; }
.cart-list img { border-radius: 12px; }
.cart-list b { display: block; font: 700 15px/1.3 var(--display); }
.cart-list span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.rm { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.rm:hover { color: var(--red-hi); background: rgba(200, 38, 46, .12); }
.cart-empty { color: var(--muted); margin: 4px 0 8px; }
.strap { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); }
.strap b { display: block; }
.strap span { color: var(--muted); font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 20px; }
.stepper output { min-width: 28px; text-align: center; font: 700 18px var(--display); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.cart-total b { font: 800 26px/1 var(--display); }
.cart-note { min-height: 0; margin: 0 0 14px; color: var(--cream); font-size: 14px; }
.cart-note:empty { margin-bottom: 10px; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
@media (min-width: 760px) {
  .sheet[open] { align-items: center; }
  .sheet-in { width: min(860px, 94vw); border-radius: 26px; padding-bottom: 20px; animation-name: pop; }
  [data-pick] .sheet-in { display: grid; grid-template-columns: 1fr 1fr; }
  [data-pick] .pick-media { max-height: none; height: 100%; }
  [data-pick] .pick-body { padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; }
  .cart-in { width: min(520px, 94vw); }
}
@keyframes pop { from { transform: scale(.96) translateY(10px); opacity: 0; } }

/* ---------- toast + fly ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--bar-h) + 20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 14px;
  background: var(--cream); color: #111; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: opacity .25s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.ghost { position: fixed; z-index: 70; border-radius: 18px; object-fit: cover; pointer-events: none; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); }

/* ---------- reveal on scroll ---------- */
.js .reveal, .js .cell { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .cell { transition-delay: calc(var(--i, 0) * 45ms); }
.js .reveal.in, .js .cell.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-delay: calc(var(--d, 0) * 1ms); }
.hero .reveal:nth-child(2) { --d: 90; } .hero .reveal:nth-child(3) { --d: 180; } .hero .reveal:nth-child(4) { --d: 270; }
.hero-stack { animation: stackIn 1s var(--ease) .15s both; }
@keyframes stackIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }

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