/* ==========================================================================
   سَنام — نظام التصميم (الإصدار الفاخر)
   طابع "دار عود": أسود دافئ، ذهب مطفي، وضوء كهرماني خافت كأنه جمر المبخرة.
   الهوية السعودية بلمسات: مثلثات السدو كفواصل، وخط المسيري للعناوين.
   ========================================================================== */

:root {
  --bg: #0d0b09;
  --bg-2: #120f0c;
  --surface: #17130f;
  --surface-2: #1f1a15;
  --surface-3: #2a231c;
  --ink: #f3ebdf;
  --ink-2: #cfc3b2;
  --muted: #8e8273;
  --line: #2b241d;
  --line-2: #3b3127;

  --gold: #c9a35c;
  --gold-2: #e3c88f;
  --gold-3: #8c6b33;
  --gold-soft: rgb(201 163 92 / 12%);
  --on-gold: #1a130b;
  --ember: #e0874a;

  --brand: var(--gold);
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --sale: #e8836a;
  --success: #86c9a0;
  --success-soft: rgb(134 201 160 / 12%);
  --danger: #f07a6c;
  --danger-soft: rgb(240 122 108 / 12%);

  --font: "IBM Plex Sans Arabic", "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif;
  --font-display: "El Messiri", "IBM Plex Sans Arabic", serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 26px;
  --shadow: 0 10px 40px rgb(0 0 0 / 45%);
  --shadow-lg: 0 30px 80px rgb(0 0 0 / 60%);
  --glow: 0 0 0 1px rgb(201 163 92 / 25%), 0 10px 40px rgb(201 163 92 / 10%);
  --ease: cubic-bezier(.22, .8, .24, 1);

  --container: 1200px;
  --header-h: 64px;
  --tabbar-h: calc(64px + env(safe-area-inset-bottom));
  color-scheme: dark;
}

@media (min-width: 1024px) {
  :root { --header-h: 78px; --tabbar-h: 0px; }
}

/* ---------- أساسيات ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--bg); }
body {
  margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.75;
  color: var(--ink); padding-bottom: var(--tabbar-h); overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgb(201 163 92 / 7%), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgb(224 135 74 / 4%), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .4em; font-weight: 600; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, .art { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgb(201 163 92 / 30%); color: #fff; }

:where(svg[aria-hidden="true"]:not(.art)) { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -0.22em; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 18px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
#main { outline: none; min-height: 70vh; }
.noscript { text-align: center; padding: 40px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
@media (max-width: 1023px) { .hide-mobile { display: none !important; } }

.pattern-line {
  height: 8px; background: var(--gold); opacity: .35;
  -webkit-mask: url("../img/pattern.svg") repeat-x center / 24px 8px;
          mask: url("../img/pattern.svg") repeat-x center / 24px 8px;
}

/* ---------- الهيدر ---------- */

.announce { background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-3)); color: var(--on-gold); text-align: center; font-size: 13px; padding: 7px 16px; font-weight: 600; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(13 11 9 / 72%);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgb(13 11 9 / 88%); }
.header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 0 0 1px rgb(201 163 92 / 35%); }
.logo__word { font-family: var(--font-display); font-size: 25px; font-weight: 700; color: var(--gold-2); letter-spacing: .5px; }

.nav { display: none; gap: 4px; margin-inline-start: 32px; }
.nav a { position: relative; padding: 8px 14px; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--gold-2); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
@media (min-width: 1024px) { .nav { display: flex; } }

.header__actions { display: flex; gap: 4px; margin-inline-start: auto; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  transition: background .2s, color .2s, transform .15s var(--ease);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--surface-2); color: var(--gold-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--ghost { background: var(--surface-2); }
.icon-btn--ghost:hover { background: var(--surface-3); }

.dot-count {
  position: absolute; top: 3px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 700; line-height: 1;
  border: 2px solid var(--bg);
}
.dot-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ---------- الأزرار ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 26px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 15.5px;
  transition: transform .15s var(--ease), background .25s, box-shadow .25s, color .2s, border-color .2s, opacity .2s;
  white-space: nowrap; -webkit-user-select: none; user-select: none;
}
.btn svg { width: 20px; height: 20px; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--primary, .btn--brand, .btn--light {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #b48a45); color: var(--on-gold);
  box-shadow: 0 8px 24px rgb(201 163 92 / 22%), inset 0 1px 0 rgb(255 255 255 / 30%);
}
.btn--primary:hover:not(:disabled), .btn--brand:hover:not(:disabled), .btn--light:hover:not(:disabled) { box-shadow: 0 10px 32px rgb(201 163 92 / 35%), inset 0 1px 0 rgb(255 255 255 / 35%); filter: brightness(1.05); }
.btn--soft { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.btn--soft:hover:not(:disabled) { border-color: var(--gold-3); color: var(--gold-2); }
.btn--outline, .btn--glass { background: transparent; border-color: rgb(201 163 92 / 45%); color: var(--gold-2); }
.btn--outline:hover:not(:disabled), .btn--glass:hover { background: var(--gold-soft); border-color: var(--gold); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.btn .spinner { width: 18px; height: 18px; border-width: 2px; }

.link { color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; white-space: nowrap; }
.link:hover { color: var(--gold-2); }

.spinner { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid currentColor; border-inline-end-color: transparent; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader { display: grid; place-items: center; min-height: 60vh; color: var(--gold); }

/* ---------- الهيرو ---------- */

.hero { padding: 6px 0 0; }
.hero__card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 25% 80%, rgb(224 135 74 / 22%), transparent 60%),
    radial-gradient(50% 60% at 20% 100%, rgb(201 163 92 / 25%), transparent 70%),
    linear-gradient(170deg, #1d1712 0%, #110e0b 60%, #0b0907 100%);
  display: grid; align-items: center; padding: 34px 22px 0;
}
.hero__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .05;
  background: var(--gold);
  -webkit-mask: url("../img/pattern.svg") repeat center / 48px 16px; mask: url("../img/pattern.svg") repeat center / 48px 16px;
}
.hero__card::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.hero__text { position: relative; z-index: 1; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; border: 1px solid rgb(201 163 92 / 35%); background: rgb(201 163 92 / 8%); font-size: 12.5px; font-weight: 500; color: var(--gold-2); }
.hero__eyebrow svg { width: 13px; height: 13px; }
.hero h1 {
  font-size: clamp(38px, 10vw, 72px); font-weight: 700; margin: 16px 0 12px; line-height: 1.15;
  background: linear-gradient(180deg, #fff6e6 10%, var(--gold-2) 55%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { color: var(--ink-2); font-size: 16px; max-width: 30em; margin-bottom: 24px; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__visual { position: relative; display: grid; place-items: center; margin-top: 8px; --smoke: rgb(255 240 220 / 55%); }
.hero__visual::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(224 135 74 / 35%), transparent 65%); filter: blur(20px); top: 18%; }
.hero__visual .art { position: relative; width: min(280px, 78%); filter: drop-shadow(0 30px 40px rgb(0 0 0 / 60%)); }
@media (min-width: 860px) {
  .hero { padding-top: 22px; }
  .hero__card { grid-template-columns: 1.15fr .85fr; padding: 64px 64px; min-height: 520px; }
  .hero__visual { margin: 0; }
  .hero__visual .art { width: min(380px, 95%); }
  .hero__lead { font-size: 18px; }
}

/* ---------- المزايا ---------- */

.perks { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 16px 18px; margin-inline: -18px; }
.perks::-webkit-scrollbar { display: none; }
.perk { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--ink-2); }
.perk svg { width: 18px; height: 18px; color: var(--gold); }
@media (min-width: 900px) { .perks { justify-content: center; gap: 14px; margin: 0; padding-inline: 0; overflow: visible; } .perk { padding: 12px 22px; font-size: 14px; } }

/* ---------- الأقسام ---------- */

.section { padding: 30px 0; }
@media (min-width: 768px) { .section { padding: 56px 0; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0; color: var(--ink); }
.section-head h2::before { content: ""; display: block; width: 34px; height: 2px; margin-bottom: 10px; background: linear-gradient(90deg, var(--gold), transparent); }
.section-head p { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

/* ---------- التصنيفات ---------- */

.cats { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding: 4px 18px 8px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cat__img { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2) !important; border: 1px solid var(--line-2); transition: transform .25s var(--ease), box-shadow .25s; }
.cat__img .art { width: 84%; }
.cat:hover .cat__img { transform: translateY(-3px); box-shadow: var(--glow); }
.cat b { font-size: 13px; font-weight: 500; }
.cat span { display: none; }
@media (min-width: 900px) {
  .cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 0; padding: 0; overflow: visible; }
  .cat { width: auto; padding: 20px 10px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
  .cat__img { width: 100px; height: 100px; }
  .cat span { display: block; font-size: 12.5px; color: var(--muted); }
}

/* ---------- بطاقة المنتج ---------- */

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin-inline: -18px; padding: 2px 18px 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 760px) { .rail { grid-auto-columns: 30%; gap: 20px; } }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc(25% - 15px); margin: 0; padding-inline: 0; } }

/* خلفية "مسرح" للمنتج: ضوء كهرماني خلف القطعة */
.stage {
  background:
    radial-gradient(55% 45% at 50% 58%, rgb(224 150 80 / 22%), transparent 70%),
    radial-gradient(90% 70% at 50% 110%, rgb(201 163 92 / 14%), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media {
  position: relative; display: block; aspect-ratio: 1 / 1.12; overflow: hidden; border-radius: var(--r);
  border: 1px solid var(--line);
  background:
    radial-gradient(55% 45% at 50% 58%, rgb(224 150 80 / 22%), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color .3s, box-shadow .3s;
}
.card:hover .card__media { border-color: rgb(201 163 92 / 45%); box-shadow: var(--glow); }
.card__media .art { position: absolute; inset: 10%; width: 80%; height: 80%; transition: transform .7s var(--ease); filter: drop-shadow(0 18px 22px rgb(0 0 0 / 55%)); }
@media (hover: hover) { .card:hover .card__media .art { transform: scale(1.07) translateY(-2px); } }
.card__tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; z-index: 1; pointer-events: none; }
.tag { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.9; background: rgb(13 11 9 / 75%); color: var(--gold-2); border: 1px solid rgb(201 163 92 / 35%); backdrop-filter: blur(6px); }
.tag--sale { background: var(--sale); color: #1a0d08; border-color: transparent; }
.tag--out { background: var(--surface-3); color: var(--ink-2); border-color: var(--line-2); }

.fav { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: rgb(13 11 9 / 65%); color: var(--ink); backdrop-filter: blur(6px); transition: transform .2s var(--ease), color .2s; }
.fav svg { width: 18px; height: 18px; }
.fav:active { transform: scale(.9); }
.fav.is-on { color: var(--sale); }
.fav.is-on svg { animation: bump .4s var(--ease); }

.quick-add { position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--on-gold); box-shadow: 0 6px 18px rgb(0 0 0 / 45%); transition: transform .2s var(--ease); }
.quick-add svg { width: 19px; height: 19px; }
.quick-add:active { transform: scale(.9); }

.card__body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.card__title { font-size: 15px; font-weight: 500; margin: 0; line-height: 1.5; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__sub { font-size: 12.5px; color: var(--muted); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }

.price { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price__now { font-weight: 600; font-size: 15px; color: var(--gold-2); }
.price__was { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.price__from { font-size: 12px; color: var(--muted); }
.price--sale .price__now { color: var(--sale); }

.stars { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--ink-2); }
.stars svg { width: 13px; height: 13px; color: var(--gold); }
@media (min-width: 760px) { .card__title { font-size: 16px; } .price__now { font-size: 16px; } }

/* ---------- عرض التشكيلة والمقارنة ---------- */

.showcase { display: grid; gap: 16px; }
@media (min-width: 900px) { .showcase { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.show {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.show:hover { transform: translateY(-4px); border-color: rgb(201 163 92 / 45%); box-shadow: var(--glow); }
.show__media {
  position: relative; aspect-ratio: 16 / 11; display: grid; place-items: center;
  background: radial-gradient(50% 55% at 50% 60%, rgb(224 150 80 / 26%), transparent 70%), var(--surface-2) !important;
  border-bottom: 1px solid var(--line);
}
.show__media .art { width: 60%; transition: transform .7s var(--ease); filter: drop-shadow(0 20px 26px rgb(0 0 0 / 60%)); }
.show:hover .show__media .art { transform: scale(1.06); }
.show__media .tag { position: absolute; top: 14px; inset-inline-start: 14px; }
.show__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.show__body > b { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--gold-2); }
.show__sub { color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.show__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.show .notes-row .chip { pointer-events: none; }

.table-scroll { overflow-x: auto; margin-inline: -18px; padding-inline: 18px; }
.compare { width: 100%; min-width: 540px; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: 14px; }
.compare th, .compare td { padding: 16px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--gold-2); background: var(--surface-2); }
.compare tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; width: 90px; }
.compare td b { color: var(--gold-2); }
.strength { display: inline-flex; gap: 4px; }
.strength i { width: 18px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.strength i.on { background: linear-gradient(90deg, var(--gold), var(--ember)); }

/* ---------- لماذا نحن ---------- */

.mood { display: grid; gap: 12px; }
@media (min-width: 800px) { .mood { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.mood__item { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.mood__item h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.mood__item h3 svg { width: 22px; height: 22px; color: var(--gold); }
.mood__item p { color: var(--muted); font-size: 14px; margin: 0; }

.banner { position: relative; overflow: hidden; border-radius: var(--r-lg); display: grid; gap: 8px; align-items: center; padding: 28px 22px; background: radial-gradient(60% 90% at 15% 50%, rgb(201 163 92 / 18%), transparent 70%), var(--surface); border: 1px solid var(--line); }
.banner__kicker { font-size: 13px; color: var(--gold); font-weight: 600; }
.banner h2 { font-size: clamp(24px, 4vw, 34px); margin: 0; }
.banner p { color: var(--ink-2); margin: 0 0 14px; }
.banner .art { width: 170px; margin-inline: auto; }
@media (min-width: 760px) { .banner { grid-template-columns: 1.3fr 1fr; padding: 48px 56px; } .banner .art { width: 250px; } }

.notes { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
a.chip:hover, button.chip:hover { border-color: var(--gold-3); color: var(--gold-2); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.chip small { opacity: .65; font-size: 12px; }

/* ---------- المتجر ---------- */

.page-head { padding: 22px 0 8px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 0; color: var(--gold-2); }
.page-head p { color: var(--muted); margin: 4px 0 0; font-size: 14.5px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a:hover { color: var(--gold-2); }

.filterbar { position: sticky; top: var(--header-h); z-index: 20; background: rgb(13 11 9 / 90%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px 0 12px; margin-bottom: 8px; }
.filterbar__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; }
.filterbar__chips::-webkit-scrollbar { display: none; }
.filterbar__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.filterbar__count { color: var(--muted); font-size: 13.5px; }
.select-pill { position: relative; }
.select-pill select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 14px 6px 34px; min-height: 38px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.select-pill svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.shop-search { position: relative; margin: 8px 0 4px; }
.shop-search svg { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.shop-search .input { padding-inline-start: 46px; border-radius: 999px; }

/* ---------- الحقول ---------- */

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field .label { font-weight: 500; font-size: 14px; color: var(--ink-2); }
.field label small { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s; font-size: 16px;
}
.input::placeholder, .textarea::placeholder { color: #6e6457; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9.5 6 6 6-6' fill='none' stroke='%23c9a35c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; background-size: 18px; padding-left: 44px; }
.select option { background: var(--surface); color: var(--ink); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(201 163 92 / 14%); background: var(--surface); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input[dir="ltr"] { text-align: right; }
.field__error { color: var(--danger); font-size: 13px; }
.field__error:empty { display: none; }
.field__hint { color: var(--muted); font-size: 12.5px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin: 1px 0 0; flex-shrink: 0; }

/* ---------- صفحة المنتج ---------- */

.pdp { display: grid; gap: 20px; padding-bottom: 16px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 64px; padding-top: 20px; align-items: start; } }
.pdp > * { min-width: 0; }
.pdp__media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; margin-inline: -18px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 45% at 50% 58%, rgb(224 150 80 / 30%), transparent 70%),
    radial-gradient(90% 60% at 50% 120%, rgb(201 163 92 / 18%), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--bg)) !important;
}
.pdp__media .art { position: absolute; inset: 12%; width: 76%; height: 76%; filter: drop-shadow(0 30px 36px rgb(0 0 0 / 65%)); }
.pdp__media .fav { top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; }
.pdp__media .card__tags { top: auto; bottom: 18px; inset-inline-start: 18px; }
.pdp__back { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; background: rgb(13 11 9 / 65%); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
@media (min-width: 900px) { .pdp__media { margin: 0; border-radius: var(--r-lg); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 22px); } .pdp__back { display: none; } }
.pdp__cat { font-size: 13px; color: var(--gold); font-weight: 600; letter-spacing: .3px; }
.pdp h1 { font-size: clamp(32px, 5vw, 48px); margin: 4px 0 8px; color: var(--gold-2); }
.pdp__sub { color: var(--ink-2); font-size: 16px; margin-bottom: 10px; }
.pdp__rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.pdp__rating svg { width: 16px; height: 16px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 10px 0 22px; padding: 16px 0; border-block: 1px solid var(--line); }
.pdp__price .price__now { font-size: 32px; font-weight: 700; color: var(--gold-2); font-family: var(--font-display); }
.pdp__price .price__was { font-size: 16px; }
.pdp__save { font-size: 12.5px; font-weight: 600; color: var(--sale); background: rgb(232 131 106 / 12%); padding: 2px 12px; border-radius: 999px; }

.opt-label { font-weight: 500; font-size: 14px; margin-bottom: 10px; color: var(--ink-2); }
.options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.option span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 100px; min-height: 60px; padding: 8px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; font-size: 14px; line-height: 1.4; text-align: center; transition: border-color .2s, box-shadow .2s, background .2s; }
.option span small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.option input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-2); }
.option input:checked + span small { color: var(--gold); }
.option input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.option input:disabled + span { opacity: .35; text-decoration: line-through; }
.stock-note { font-size: 13px; color: var(--ember); font-weight: 500; min-height: 20px; margin: 6px 0 10px; }

.buy { display: flex; gap: 10px; align-items: stretch; }
.buy .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); height: 52px; flex-shrink: 0; }
.qty button { width: 44px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--ink); }
.qty button:hover:not(:disabled) { color: var(--gold-2); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty button svg { width: 17px; height: 17px; }
.qty output { min-width: 26px; text-align: center; font-weight: 600; }
.qty--sm { height: 36px; }
.qty--sm button { width: 32px; }
.qty--sm output { min-width: 20px; font-size: 14px; }

.buybar { position: fixed; inset-inline: 0; bottom: var(--tabbar-h); z-index: 35; display: flex; gap: 10px; align-items: center; padding: 10px 18px; background: rgb(18 15 12 / 94%); border-top: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translateY(120%); transition: transform .3s var(--ease); }
.buybar.is-visible { transform: none; }
.buybar__info { flex: 1; min-width: 0; line-height: 1.3; }
.buybar__info b { display: block; font-size: 16px; color: var(--gold-2); }
.buybar__info span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.buybar .btn { min-height: 46px; flex-shrink: 0; }
@media (min-width: 900px) { .buybar { display: none; } }

.assure { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0; padding: 0; list-style: none; }
.assure li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; line-height: 1.4; }
.assure svg { width: 20px; height: 20px; color: var(--gold); }

.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 600; font-size: 16px; }
.acc summary:hover { color: var(--gold-2); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 20px; height: 20px; transition: transform .25s var(--ease); color: var(--gold); }
.acc[open] summary svg { transform: rotate(180deg); }
.acc__body { padding-bottom: 18px; color: var(--ink-2); white-space: pre-line; }
.acc__body.desc { white-space: normal; }
.desc h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--gold-2); margin: 18px 0 6px; }
.desc p { margin: 0 0 4px; }
.desc ul { margin: 6px 0; padding-inline-start: 0; list-style: none; display: grid; gap: 8px; }
.desc li { position: relative; padding-inline-start: 20px; }
.desc li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .72em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.notes-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.notes-row .chip { min-height: 30px; padding: 2px 12px; font-size: 12.5px; }

/* ---------- التقييمات ---------- */

.reviews { padding: 12px 0 28px; }
.reviews__summary { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.reviews__avg { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1; color: var(--gold-2); }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.review__name { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.verified { font-size: 11.5px; font-weight: 500; color: var(--success); background: var(--success-soft); padding: 1px 8px; border-radius: 999px; }
.review p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.rate-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0; }
.rate-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-input label { cursor: pointer; color: var(--line-2); padding: 2px; }
.rate-input label svg { width: 30px; height: 30px; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: var(--gold); }

/* ---------- السلة ---------- */

.scrim { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / 60%); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s; }
.scrim.is-open { opacity: 1; }
.sheet { position: fixed; z-index: 61; inset-inline: 0; bottom: 0; max-height: 88vh; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg); transform: translateY(100%); transition: transform .4s var(--ease); visibility: hidden; }
.sheet.is-open { transform: none; visibility: visible; }
.sheet__grip { width: 42px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 10px auto 0; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 10px; }
.sheet__head h2 { margin: 0; font-size: 22px; color: var(--gold-2); }
.sheet__body { flex: 1; overflow-y: auto; padding: 0 18px 8px; overscroll-behavior: contain; }
.sheet__foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet__foot:empty { display: none; }
@media (min-width: 760px) {
  .sheet { inset-inline-start: auto; inset-inline-end: 0; top: 0; bottom: 0; width: 430px; max-height: none; border-radius: 0; border-block: 0; transform: translateX(-100%); }
  .sheet__grip { display: none; }
  .sheet__head { padding: 20px 22px 12px; }
  .sheet__body, .sheet__foot { padding-inline: 22px; }
}

.line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.thumb { width: 76px; height: 84px; border-radius: 14px; overflow: visible; display: grid; place-items: center; position: relative; border: 1px solid var(--line); background: radial-gradient(60% 50% at 50% 60%, rgb(224 150 80 / 25%), transparent 70%), var(--surface-2) !important; }
.thumb .art { width: 84%; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 50%)); }
.thumb--sm { width: 54px; height: 60px; border-radius: 12px; }
.line__info { display: flex; flex-direction: column; min-width: 0; }
.line__top { display: flex; justify-content: space-between; gap: 8px; }
.line__name { font-weight: 500; font-size: 15px; line-height: 1.4; }
.line__name:hover { color: var(--gold-2); }
.line__variant { font-size: 12.5px; color: var(--muted); }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.line__total { font-weight: 600; font-size: 15px; color: var(--gold-2); }
.line__remove { border: 0; background: none; color: var(--muted); height: 30px; width: 30px; display: grid; place-items: center; border-radius: 8px; flex-shrink: 0; }
.line__remove:hover { color: var(--danger); background: var(--danger-soft); }
.line__remove svg { width: 17px; height: 17px; }
.line__warn { font-size: 12.5px; color: var(--danger); }

.ship-meter { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 4px 0 8px; font-size: 13.5px; }
.ship-meter b { color: var(--gold-2); }
.ship-meter__bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.ship-meter__bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--ember)); transition: width .45s var(--ease); }

.totals { display: grid; gap: 8px; }
.totals__row { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.totals__row span:last-child { color: var(--ink); font-weight: 500; }
.totals__row--discount span:last-child { color: var(--success); }
.totals__row--grand { font-size: 18px; font-weight: 600; color: var(--ink); padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); }
.totals__row--grand span:last-child { font-weight: 700; color: var(--gold-2); }
.totals__note { font-size: 12.5px; color: var(--muted); }

/* ---------- البحث ---------- */

.search-overlay { position: fixed; inset: 0; z-index: 70; background: rgb(13 11 9 / 97%); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; overflow-y: auto; }
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__bar { position: sticky; top: 0; display: flex; align-items: center; gap: 12px; height: 72px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 1; }
.search-overlay__bar > svg { width: 22px; height: 22px; color: var(--gold); }
.search-overlay__bar input { flex: 1; border: 0; background: none; font-size: 19px; outline: none; min-width: 0; color: var(--ink); }
.search-overlay__bar input::placeholder { color: var(--muted); }
.search-overlay__bar input::-webkit-search-cancel-button { display: none; }
.search-overlay__body { padding-top: 18px; padding-bottom: 40px; }
.search-overlay h3 { font-size: 13px; color: var(--muted); font-weight: 500; margin: 8px 0 10px; }
.results { display: grid; gap: 4px; }
@media (min-width: 760px) { .results { grid-template-columns: 1fr 1fr; gap: 8px; } }
.result { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid transparent; }
.result:hover, .result:focus-visible { background: var(--surface); border-color: var(--line); }
.result b { display: block; font-weight: 500; font-size: 15px; }
.result span { font-size: 13px; color: var(--muted); }

/* ---------- حالات فارغة ---------- */

.empty { text-align: center; padding: 56px 16px; }
.empty__icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--gold-soft); border: 1px solid rgb(201 163 92 / 25%); color: var(--gold); }
.empty__icon svg { width: 32px; height: 32px; }
.empty h2 { font-size: 22px; color: var(--ink); }
.empty p { color: var(--muted); max-width: 28em; margin-inline: auto; }

/* ---------- إتمام الطلب ---------- */

.checkout { display: grid; gap: 16px; padding-bottom: 24px; }
@media (min-width: 980px) { .checkout { grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; } }
.checkout > * { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 18px; }
@media (min-width: 640px) { .panel { padding: 28px; } }
.panel + .panel { margin-top: 16px; }
.panel__title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 16px; }
.step { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--gold); color: var(--on-gold); font-size: 13px; font-weight: 700; }
@media (min-width: 980px) { .summary { position: sticky; top: calc(var(--header-h) + 22px); } }

.pay-options { display: grid; gap: 10px; }
.pay-option { position: relative; display: block; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option__box { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .2s, box-shadow .2s, background .2s; }
.pay-option__box > svg { width: 26px; height: 26px; color: var(--gold); }
.pay-option__box b { display: block; font-weight: 500; }
.pay-option__box small { color: var(--muted); font-size: 12.5px; }
.pay-option__radio { margin-inline-start: auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex-shrink: 0; }
.pay-option input:checked + .pay-option__box { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--gold-soft); }
.pay-option input:checked + .pay-option__box .pay-option__radio { border-color: var(--gold); background: radial-gradient(var(--gold) 42%, transparent 48%); }

.coupon { display: flex; gap: 8px; margin-top: 16px; }
.coupon .input { min-height: 48px; text-transform: uppercase; border-radius: 999px; }
.coupon .btn { min-height: 48px; }
.coupon-msg { font-size: 13px; margin: 6px 0 0; }
.coupon-msg.ok { color: var(--success); }
.coupon-msg.err { color: var(--danger); }
.coupon-msg:empty { display: none; }

.mini-lines { display: grid; gap: 14px; }
.mini-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.mini-line b { display: block; font-weight: 500; line-height: 1.4; }
.mini-line small { color: var(--muted); }
.qty-badge { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.checkout-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 46; display: flex; align-items: center; gap: 12px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); background: rgb(18 15 12 / 96%); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
.checkout-bar__total { line-height: 1.25; }
.checkout-bar__total span { font-size: 12px; color: var(--muted); display: block; }
.checkout-bar__total b { font-size: 19px; color: var(--gold-2); }
.checkout-bar .btn { flex: 1; }
@media (min-width: 980px) { .checkout-bar { display: none; } }
@media (max-width: 979px) {
  body.has-checkout-bar .tabbar, body.has-checkout-bar .help-fab { display: none; }
  body.has-checkout-bar { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.has-checkout-bar .footer { display: none; }
  .summary [data-submit] { display: none; }
}

.alert { padding: 14px 16px; border-radius: 14px; font-size: 14px; margin-bottom: 14px; background: var(--danger-soft); color: #f6b3aa; border: 1px solid rgb(240 122 108 / 25%); }
.alert--info { background: var(--gold-soft); color: var(--gold-2); border-color: rgb(201 163 92 / 25%); }
.alert--success { background: var(--success-soft); color: var(--success); border-color: rgb(134 201 160 / 25%); }
.alert ul { margin: 6px 0 0; padding-inline-start: 18px; }

/* ---------- نجاح الطلب والتتبع ---------- */

.done { max-width: 640px; margin: 0 auto; padding: 32px 0 40px; }
.done__head { text-align: center; margin-bottom: 20px; }
.done__icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: radial-gradient(circle, rgb(201 163 92 / 25%), transparent 70%); border: 1px solid rgb(201 163 92 / 45%); color: var(--gold-2); animation: pop .5s var(--ease); }
.done__icon svg { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.done h1 { font-size: clamp(26px, 4vw, 36px); color: var(--gold-2); }
.done__head p { color: var(--muted); }
.order-no { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--surface); border: 1px dashed rgb(201 163 92 / 45%); font-weight: 600; font-size: 18px; letter-spacing: .5px; color: var(--gold-2); }
.order-no button { border: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; }
.order-no button svg { width: 17px; height: 17px; }
.done__actions { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 560px) { .done__actions { grid-template-columns: 1fr 1fr; } }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 26px; bottom: 2px; inset-inline-start: 11px; width: 2px; background: var(--line-2); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline__dot { position: relative; z-index: 1; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); }
.timeline__dot svg { width: 13px; height: 13px; }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done .timeline__dot { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.timeline li.is-done::before { background: var(--gold-3); }
.timeline li.is-current { color: var(--ink); }
.timeline li.is-current .timeline__dot { border-color: var(--gold); box-shadow: 0 0 0 5px rgb(201 163 92 / 15%); }
.timeline li.is-cancelled .timeline__dot { background: var(--danger); border-color: var(--danger); color: #1a0d08; }
.timeline b { display: block; font-weight: 500; font-size: 14.5px; }
.timeline small { font-size: 12.5px; color: var(--muted); }

.pill { display: inline-block; padding: 2px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill--new, .pill--pending, .pill--open { background: rgb(227 200 143 / 14%); color: var(--gold-2); }
.pill--confirmed, .pill--preparing { background: rgb(120 160 230 / 14%); color: #a9c3f2; }
.pill--shipped, .pill--answered { background: rgb(180 140 230 / 14%); color: #cdb4f0; }
.pill--delivered, .pill--approved { background: var(--success-soft); color: var(--success); }
.pill--cancelled, .pill--hidden, .pill--closed { background: var(--danger-soft); color: var(--danger); }

.order-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; width: 100%; text-align: start; color: var(--ink); }
.order-card:hover { border-color: rgb(201 163 92 / 40%); }
.order-card__main { flex: 1; min-width: 0; }
.order-card__main b { display: block; font-weight: 600; }
.order-card__main span { font-size: 13px; color: var(--muted); }

/* ---------- الدعم الفني ---------- */

.support { max-width: 760px; margin: 0 auto; padding-bottom: 32px; }
.support-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.support-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.support-tabs button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); }
.support-channels { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 640px) { .support-channels { grid-template-columns: 1fr 1fr; } }
.channel { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.channel:hover { border-color: rgb(201 163 92 / 40%); }
.channel svg { width: 26px; height: 26px; color: var(--gold); }
.channel b { display: block; font-weight: 600; }
.channel span { font-size: 13px; color: var(--muted); }

.thread { display: grid; gap: 12px; margin: 16px 0; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 14.5px; line-height: 1.7; white-space: pre-line; }
.msg small { display: block; font-size: 11.5px; margin-bottom: 4px; opacity: .75; white-space: normal; }
.msg--customer { justify-self: start; background: var(--surface-2); border: 1px solid var(--line-2); border-start-start-radius: 6px; }
.msg--staff { justify-self: end; background: linear-gradient(180deg, rgb(201 163 92 / 18%), rgb(201 163 92 / 10%)); border: 1px solid rgb(201 163 92 / 35%); color: var(--ink); border-start-end-radius: 6px; }

.help-fab {
  position: fixed; z-index: 44; inset-inline-end: 16px; bottom: calc(var(--tabbar-h) + 16px);
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 16px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--on-gold); font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 50%), 0 0 0 1px rgb(255 255 255 / 15%) inset;
  transition: transform .2s var(--ease);
}
.help-fab svg { width: 22px; height: 22px; }
.help-fab:hover { transform: translateY(-2px); }
/* في الجوال الدعم موجود في الشريط السفلي، فالزر العائم للكمبيوتر فقط */
@media (max-width: 1023px) { .help-fab { display: none; } }
@media (min-width: 1024px) { .help-fab { bottom: 24px; inset-inline-end: 24px; } }

/* ---------- الفوتر ---------- */

.footer { background: linear-gradient(180deg, transparent, var(--bg-2) 30%); margin-top: 40px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 28px; padding-block: 36px 22px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; padding-block: 56px 32px; } .footer__brand { grid-column: auto; } }
.footer h3 { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 12px; letter-spacing: .5px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.footer a:hover { color: var(--gold-2); }
.footer__brand p { color: var(--muted); font-size: 14.5px; max-width: 26em; margin: 14px 0; }
.footer__social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__social a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 13.5px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-block: 18px 22px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- شريط الجوال ---------- */

.tabbar { display: none; }
@media (max-width: 1023px) {
  .tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom); background: rgb(13 11 9 / 92%); border-top: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; font-size: 11px; font-weight: 500; color: var(--muted); transition: color .2s; }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar .is-active { color: var(--gold-2); }
  .tabbar .is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); }
  .tabbar .dot-count { top: 6px; inset-inline-end: calc(50% - 20px); border-color: var(--bg); }
  .header__actions [data-open-cart] { display: none; }
  .toasts { bottom: calc(var(--tabbar-h) + 12px); }
}

/* ---------- التنبيهات ---------- */

.toasts { position: fixed; z-index: 90; bottom: 20px; inset-inline-start: 50%; transform: translateX(50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid rgb(201 163 92 / 30%); color: var(--ink); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; animation: toast-in .3s var(--ease); }
.toast svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.toast--error { border-color: rgb(240 122 108 / 40%); }
.toast--error svg { color: var(--danger); }
.toast a { margin-inline-start: auto; color: var(--gold-2); font-weight: 600; white-space: nowrap; }
.toast.is-leaving { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- رسومات المنتجات ---------- */

.art .smoke { stroke: var(--smoke, rgb(240 225 200 / 50%)); animation: smoke 5s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
.art .smoke:nth-of-type(2) { animation-delay: 1.6s; }
.art .smoke:nth-of-type(3) { animation-delay: 3.2s; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(8px) scaleY(.7); } 30% { opacity: .85; } 100% { opacity: 0; transform: translateY(-22px) scaleY(1.15) skewX(-6deg); } }
.art .ember { animation: ember 2.4s ease-in-out infinite alternate; }
@keyframes ember { to { opacity: .55; } }

.reveal { animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
