/* ==========================================================
   أصل المسك — ستايل المتجر
   ========================================================== */

:root {
  --bg: #0c0b09;
  --bg-2: #13110e;
  --bg-3: #1b1814;
  --ink: #f1ebdf;
  --mute: #a9a08e;
  --dim: #6f685a;
  --gold: #c8a45a;
  --gold-2: #e3c98b;
  --gold-ink: #17130b;
  --line: rgba(200, 164, 90, 0.22);
  --line-2: rgba(241, 235, 223, 0.09);
  --danger: #e0816f;
  --ok: #8fc79a;

  --f-display: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 32px);
  --hdr-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.locked { overflow: hidden; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.35; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--gold-2); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--gold-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: 0.55; pointer-events: none; }

.ibtn {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 2px; color: var(--ink); transition: color 0.2s;
}
.ibtn svg { width: 22px; height: 22px; }
.ibtn:hover { color: var(--gold-2); }

/* ---------- شريط الإعلان والهيدر ---------- */
.announce {
  background: var(--gold); color: var(--gold-ink);
  text-align: center; font-size: 13px; font-weight: 500; padding: 7px var(--pad);
}

.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12, 11, 9, 0.94);
  border-bottom: 1px solid var(--line-2);
}
@supports (backdrop-filter: blur(1px)) {
  .hdr { background: rgba(12, 11, 9, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.hdr-row { height: var(--hdr-h); display: flex; align-items: center; gap: 12px; }
.hdr-menu { margin-inline-start: -10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 28px; height: auto; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.1; }
.logo-txt b { font-family: var(--f-display); font-weight: 500; font-size: 19px; color: var(--gold-2); }
.logo-txt small { font-size: 9.5px; letter-spacing: 0.32em; color: var(--mute); direction: ltr; text-align: right; }
.hdr-nav { display: none; }
.hdr-act { margin-inline-start: auto; display: flex; gap: 2px; margin-inline-end: -8px; }
.cart-btn { position: relative; }
.cart-n {
  position: absolute; top: 4px; inset-inline-end: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--gold); color: var(--gold-ink);
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
}

.search { border-top: 1px solid var(--line-2); padding: 12px 0; }
.search-row { display: flex; gap: 8px; }
.search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 2px;
}
.search input:focus { border-color: var(--gold); outline: none; }

@media (min-width: 960px) {
  :root { --hdr-h: 76px; }
  .hdr-menu { display: none; }
  .hdr-nav { display: flex; gap: 30px; margin-inline-start: 48px; }
  .hdr-nav a { font-size: 14.5px; color: var(--mute); padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
  .hdr-nav a:hover, .hdr-nav a[aria-current] { color: var(--ink); border-color: var(--gold); }
  .logo img { width: 32px; }
  .logo-txt b { font-size: 21px; }
}

/* ---------- الألواح الجانبية (قائمة / سلة) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.6);
  opacity: 0; transition: opacity 0.25s;
}
.scrim.open { opacity: 1; }
.panel {
  position: fixed; top: 0; bottom: 0; z-index: 60;
  width: min(420px, 92vw); background: var(--bg-2);
  display: flex; flex-direction: column;
  transition: transform 0.28s var(--ease);
}
.panel-start { right: 0; transform: translateX(100%); border-left: 1px solid var(--line-2); }
.panel-end { left: 0; transform: translateX(-100%); border-right: 1px solid var(--line-2); }
.panel.open { transform: none; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line-2);
}
.panel-title { font-family: var(--f-display); font-size: 20px; }

.menu-list { display: flex; flex-direction: column; padding: 8px 20px; }
.menu-list a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 17px;
}
.menu-list small { color: var(--dim); font-size: 11px; letter-spacing: 0.12em; direction: ltr; }
.menu-wa { margin: auto 20px 24px; display: flex; align-items: center; gap: 10px; color: var(--gold-2); }
.menu-wa svg { width: 22px; height: 22px; }

.cart-body { flex: 1; overflow-y: auto; padding: 4px 20px; overscroll-behavior: contain; }
.cart-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line-2); }
.cart-foot:empty { display: none; }
.empty { text-align: center; padding: 56px 0; color: var(--mute); display: grid; gap: 16px; justify-items: center; }

.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.line-img { width: 76px; aspect-ratio: 1; background: var(--bg-3); overflow: hidden; display: block; }
.line-img img, .line-img .ph { width: 100%; height: 100%; object-fit: cover; }
.line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line-name { font-weight: 500; }
.line-meta { color: var(--mute); font-size: 13px; }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.line-price { font-weight: 500; font-variant-numeric: tabular-nums; }
.line-warn { color: var(--danger); font-size: 12.5px; }
.line-x { width: 28px; height: 28px; display: grid; place-items: center; color: var(--dim); }
.line-x svg { width: 16px; height: 16px; }
.line-x:hover { color: var(--ink); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 2px; }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--mute); }
.qty button:hover { color: var(--ink); }
.qty svg { width: 14px; height: 14px; }
.qty span { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }

.free-note { font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.free-note b { color: var(--gold-2); font-weight: 500; }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.sum b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-small { text-align: center; color: var(--dim); font-size: 12.5px; margin-top: 10px; }

/* ---------- عناوين الأقسام ---------- */
.sec { padding: 56px 0; }
.sec + .sec { padding-top: 8px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.kicker { font-size: 11px; letter-spacing: 0.28em; color: var(--gold); direction: ltr; text-align: right; text-transform: uppercase; display: block; margin-bottom: 6px; }
.sec-title { font-family: var(--f-display); font-size: clamp(24px, 4.4vw, 34px); }
.sec-sub { color: var(--mute); margin-top: 4px; font-size: 14.5px; }
.see-all { font-size: 14px; color: var(--gold-2); white-space: nowrap; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.see-all:hover { border-color: var(--gold-2); }

/* ---------- الصفحة الرئيسية: الواجهة ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line-2); overflow: hidden; }
.hero-grid { display: grid; gap: 36px; padding-block: 48px 56px; align-items: center; }
.hero h1 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(38px, 9vw, 76px); line-height: 1.35; padding-top: 0.1em;
}
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero-lead { color: var(--mute); font-size: clamp(15px, 2.2vw, 17px); max-width: 34em; margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; gap: 28px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts b { font-weight: 500; font-size: 14.5px; }
.hero-facts span { color: var(--dim); font-size: 12.5px; }

.hero-art {
  position: relative; aspect-ratio: 16 / 10; max-height: 560px; width: 100%;
  background: var(--bg-2); border: 1px solid var(--line-2);
  display: grid; place-items: center; overflow: hidden;
}
.hero-art.has-img { background-size: cover; background-position: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 18px; border: 1px solid var(--line);
  pointer-events: none;
}
.hero-art .emblem { width: 38%; max-width: 180px; max-height: 50%; object-fit: contain; opacity: 0.95; }
.hero-art .art-cap {
  position: absolute; bottom: 34px; inset-inline: 0; text-align: center;
  font-size: 11px; letter-spacing: 0.4em; color: var(--mute); direction: ltr;
}
.hero-art .art-num {
  position: absolute; top: 34px; inset-inline-start: 36px; font-family: var(--f-display);
  font-size: 13px; color: var(--gold);
}
.hero-art.has-img .emblem, .hero-art.has-img .art-cap, .hero-art.has-img .art-num { display: none; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; padding-block: 72px 80px; }
  .hero-art { aspect-ratio: 4 / 5; }
}

/* ---------- الأقسام الأربعة ---------- */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); }
.cat {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 18px 20px; min-height: 190px;
  border-bottom: 1px solid var(--line-2); border-inline-end: 1px solid var(--line-2);
  transition: background 0.25s;
}
.cat:hover { background: var(--bg-2); }
.cat-i { width: 44px; height: 44px; color: var(--gold); }
.cat-n { font-family: var(--f-display); font-size: 12px; color: var(--dim); position: absolute; top: 20px; inset-inline-end: 18px; }
.cat h3 { font-family: var(--f-display); font-size: 19px; margin-top: auto; }
.cat p { color: var(--mute); font-size: 13px; line-height: 1.6; }
.cat-go { font-size: 13px; color: var(--gold-2); }
@media (min-width: 900px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .cat { padding: 30px 26px 26px; min-height: 260px; }
  .cat h3 { font-size: 22px; }
  .cat p { font-size: 14px; }
}
@media (max-width: 400px) {
  .cat p { display: none; }
  .cat { min-height: 150px; }
}

/* ---------- كروت المنتجات ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 46%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 700px) { .rail { grid-auto-columns: 31%; gap: 20px; } }
@media (min-width: 1080px) { .rail { grid-auto-columns: calc(25% - 18px); gap: 24px; } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-2);
}
.card-media img:not(.ph img) { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card-media > img { transform: scale(1.035); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--bg-2); }
.ph img { width: 26%; max-width: 70px; height: auto; opacity: 0.55; }
.tag {
  position: absolute; top: 10px; inset-inline-start: 10px;
  background: var(--bg); color: var(--gold-2); border: 1px solid var(--line);
  font-size: 11.5px; padding: 2px 8px; border-radius: 2px;
}
.is-out .tag { color: var(--mute); }
.is-out .card-media > img, .is-out .ph img { opacity: 0.4; }
.card-body { padding-top: 12px; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.card-brand { font-size: 12px; color: var(--gold); }
.card-title { font-size: 15.5px; font-weight: 500; line-height: 1.45; }
.card-title a:hover { color: var(--gold-2); }
.card-size { font-size: 12.5px; color: var(--dim); }
.card-price { margin-top: 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.price-was { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.card-add {
  margin-top: 12px; height: 40px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 13.5px; color: var(--ink); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.card-add:hover:not(:disabled) { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.card-add:disabled { color: var(--dim); border-color: var(--line-2); }
.card-add.added { background: var(--gold); color: var(--gold-ink); }

/* هيكل مؤقت أثناء التحميل */
.skel .card-media, .skel .sk { background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
.skel .sk { height: 12px; margin-top: 10px; width: 70%; }
.skel .sk.s2 { width: 40%; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- الماركات ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line-2); }
.brands a {
  flex: 1 1 33%; min-width: 120px; padding: 22px 12px; text-align: center;
  border-bottom: 1px solid var(--line-2); color: var(--mute);
  font-size: 12.5px; letter-spacing: 0.22em; direction: ltr; transition: color 0.2s;
}
.brands a:hover { color: var(--gold-2); }
@media (min-width: 900px) { .brands a { flex-basis: 20%; padding: 28px 12px; } }

/* ---------- المميزات ---------- */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding: 40px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.perk b { display: block; font-weight: 500; margin-bottom: 2px; }
.perk span { color: var(--mute); font-size: 13.5px; }
.perk::before { content: ""; display: block; width: 22px; height: 1px; background: var(--gold); margin-bottom: 14px; }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(4, 1fr); padding: 48px 0; } }

/* ---------- صفحة المتجر ---------- */
.page-head { padding: 36px 0 20px; border-bottom: 1px solid var(--line-2); }
.crumbs { font-size: 12.5px; color: var(--dim); margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin-inline: 6px; }
.page-title { font-family: var(--f-display); font-size: clamp(28px, 5vw, 42px); }
.page-sub { color: var(--mute); margin-top: 4px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 18px 0 4px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 2px;
  font-size: 13.5px; color: var(--mute); display: inline-flex; align-items: center;
}
.chip:hover { color: var(--ink); }
.chip[aria-current="true"] { border-color: var(--gold); color: var(--gold-2); }

.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 16px 0 26px; flex-wrap: wrap; }
.count { color: var(--mute); font-size: 13.5px; }
.tools { display: flex; gap: 8px; }
.select {
  height: 40px; padding: 0 12px 0 32px; border: 1px solid var(--line-2); border-radius: 2px;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a9a08e' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat left 12px center;
  appearance: none; -webkit-appearance: none; font-size: 13.5px; max-width: 46vw;
}
.select:focus { border-color: var(--gold); outline: none; }
.no-results { text-align: center; color: var(--mute); padding: 60px 0; display: grid; gap: 14px; justify-items: center; }

/* ---------- صفحة المنتج ---------- */
.pd { display: grid; gap: 28px; padding: 24px 0 56px; }
.pd-media { aspect-ratio: 1; background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; }
.pd-media img:not(.ph img) { width: 100%; height: 100%; object-fit: cover; }
.pd-media .ph img { width: 22%; }
.pd-brand { color: var(--gold); font-size: 13.5px; }
.pd h1 { font-family: var(--f-display); font-size: clamp(28px, 5vw, 40px); margin-top: 2px; }
.pd-size { color: var(--mute); margin-top: 2px; }
.pd-price { display: flex; gap: 12px; align-items: baseline; margin-top: 18px; }
.pd-price .price { font-size: 24px; }
.pd-price .price-was { font-size: 16px; }
.pd-stock { font-size: 13px; margin-top: 6px; color: var(--ok); }
.pd-stock.out { color: var(--danger); }
.pd-buy { display: flex; gap: 10px; margin-top: 24px; }
.pd-buy .qty button { width: 44px; height: 46px; }
.pd-buy .qty span { min-width: 34px; }
.pd-buy .btn { flex: 1; }
.pd-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--mute); font-size: 14px; }
.pd-wa svg { width: 18px; height: 18px; color: var(--gold); }
.pd-wa:hover { color: var(--ink); }
.pd-block { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.pd-block h2 { font-size: 13px; color: var(--dim); letter-spacing: 0.04em; margin-bottom: 8px; font-weight: 500; }
.pd-block p { color: var(--ink); }
.notes { display: flex; flex-wrap: wrap; gap: 8px; }
.notes span { border: 1px solid var(--line-2); padding: 4px 12px; font-size: 13.5px; border-radius: 2px; color: var(--mute); }
.pd-trust { display: grid; gap: 8px; margin-top: 26px; font-size: 13.5px; color: var(--mute); }
.pd-trust li { list-style: none; padding-inline-start: 18px; position: relative; }
.pd-trust li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.8em; width: 8px; height: 1px; background: var(--gold); }
.pd-trust { padding: 0; margin-bottom: 0; }
@media (min-width: 900px) {
  .pd { grid-template-columns: 1fr 1fr; gap: 64px; padding: 40px 0 80px; align-items: start; }
  .pd-info { position: sticky; top: calc(var(--hdr-h) + 24px); }
}

/* ---------- الدفع ---------- */
.co { display: grid; gap: 32px; padding: 28px 0 64px; }
.co h2 { font-family: var(--f-display); font-size: 22px; margin-bottom: 16px; }
.fields { display: grid; gap: 14px; }
.fields-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .fields-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13.5px; color: var(--mute); margin-bottom: 6px; }
.field .opt { color: var(--dim); }
.input {
  width: 100%; height: 48px; padding: 0 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 2px;
  font-size: 16px;
}
textarea.input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a9a08e' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat left 14px center; }
.input:focus { border-color: var(--gold); outline: none; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 14px; padding: 12px 14px; border: 1px solid rgba(224, 129, 111, 0.35); border-radius: 2px; }
.pay-box { border: 1px solid var(--line); padding: 16px; border-radius: 2px; display: flex; gap: 14px; align-items: flex-start; }
.pay-box svg { width: 26px; height: 26px; color: var(--gold); flex: none; margin-top: 2px; }
.pay-box b { font-weight: 500; display: block; }
.pay-box span { color: var(--mute); font-size: 13.5px; }
.co-summary { background: var(--bg-2); border: 1px solid var(--line-2); padding: 20px; align-self: start; }
.co-lines { display: grid; gap: 14px; margin-bottom: 18px; }
.co-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.co-line .line-img { width: 54px; position: relative; }
.co-line .q { position: absolute; top: -6px; inset-inline-start: -6px; background: var(--mute); color: var(--bg); font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; text-align: center; line-height: 18px; font-weight: 600; }
.co-line small { display: block; color: var(--dim); font-size: 12.5px; }
.co-rows { border-top: 1px solid var(--line-2); padding-top: 14px; display: grid; gap: 8px; font-size: 14px; }
.co-rows div { display: flex; justify-content: space-between; }
.co-rows span { color: var(--mute); }
.co-rows .tot { border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 4px; font-size: 17px; }
.co-rows .tot b { font-size: 20px; font-weight: 600; }
.co-note { font-size: 12.5px; color: var(--dim); margin-top: 12px; text-align: center; }
.co-alt { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--mute); }
.co-alt a { color: var(--gold-2); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .co { grid-template-columns: 1.2fr 0.8fr; gap: 56px; padding: 40px 0 80px; }
  .co-summary { position: sticky; top: calc(var(--hdr-h) + 24px); padding: 26px; }
}

/* ---------- حالة الطلب ---------- */
.status { max-width: 620px; margin: 0 auto; padding: 56px 0 80px; text-align: center; }
.status-mark { width: 64px; height: 64px; margin: 0 auto 20px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--gold-2); }
.status-mark svg { width: 28px; height: 28px; }
.status h1 { font-family: var(--f-display); font-size: clamp(26px, 5vw, 36px); }
.status p { color: var(--mute); margin-top: 8px; }
.status .ref { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink); letter-spacing: 0.06em; }
.status-box { text-align: start; margin-top: 30px; border: 1px solid var(--line-2); padding: 20px; }
.status-actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- صفحات نصية ---------- */
.prose { max-width: 760px; padding: 20px 0 72px; }
.prose h2 { font-family: var(--f-display); font-size: 24px; margin: 36px 0 10px; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.prose p, .prose li { color: var(--mute); }
.prose ul { padding-inline-start: 20px; }

/* ---------- الفوتر ---------- */
.ftr { border-top: 1px solid var(--line-2); margin-top: 24px; background: var(--bg); }
.ftr-grid { display: grid; gap: 32px; padding-block: 48px 32px; grid-template-columns: 1fr 1fr; }
.ftr-brand { grid-column: 1 / -1; }
.ftr-brand p { color: var(--mute); font-size: 14px; margin-top: 14px; max-width: 30em; }
.ftr h4 { font-size: 12px; color: var(--dim); letter-spacing: 0.06em; margin-bottom: 12px; font-weight: 500; }
.ftr a:not(.logo) { display: block; color: var(--mute); font-size: 14px; padding: 4px 0; }
.ftr a:not(.logo):hover { color: var(--ink); }
.ftr .ltr { text-align: right; }
.ftr-pay { font-size: 14px; }
.ftr-small { font-size: 12.5px; color: var(--dim); margin-top: 6px; }
.ftr-social { display: flex; gap: 16px; margin-top: 12px; }
.ftr-bottom { border-top: 1px solid var(--line-2); padding-block: 18px 22px; font-size: 12.5px; color: var(--dim); }
@media (min-width: 900px) {
  .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding-block: 64px 40px; }
  .ftr-brand { grid-column: auto; }
}

.wa-fab {
  position: fixed; bottom: 18px; left: 18px; z-index: 30;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--gold-2);
  display: grid; place-items: center; transition: border-color 0.2s;
}
.wa-fab svg { width: 24px; height: 24px; }
.wa-fab:hover { border-color: var(--gold); }

.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 80;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 2px;
  font-size: 14px; font-weight: 500; transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.notice { background: var(--bg-2); border-bottom: 1px solid var(--line-2); color: var(--mute); font-size: 12.5px; text-align: center; padding: 6px var(--pad); }

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

.grid .no-results { grid-column: 1 / -1; }
.pd-crumbs { padding-top: 20px; margin-bottom: 0; }
.nf-logo { margin: 0 auto 20px; width: 56px; height: auto; }
.status .err a { color: var(--gold-2); }
.err a { color: var(--gold-2); border-bottom: 1px solid var(--line); }
