/* ELORA — متجر إكسسوارات مصنوعة يدويًا
 * لغة التصميم: عاجي دافئ، حبر قهوة داكن، وردي ELORA، خطوط ذهبية رفيعة، وموتيف القوس.
 */

:root {
  --bg: #faf6f2; --bg-soft: #f2eae3; --surface: #ffffff; --text: #241c19; --muted: #7c706a;
  --border: #e9dfd7; --line: #f1e9e3; --hair: #d9c3a5;
  --rose: #d9b4bc; --rose-soft: #f6eaec; --rose-ink: #8c4d5c; --gold: #a8854f;
  --btn: #241c19; --btn-ink: #faf6f2; --sale: #a8434f; --sale-ink: #ffffff; --ok: #3d7a57;
  --ink-bg: #1e1715; --ink-text: #efe6e1; --ink-muted: #a89a92; --ink-line: #3a2f2b;
  --scrim: rgba(30, 20, 18, .45);
  --shadow-sm: 0 1px 2px rgba(60, 30, 25, .05);
  --shadow: 0 24px 60px -24px rgba(70, 35, 35, .28);
  --r-img: 6px; --r: 10px; --r-btn: 3px;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --f-head: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  --f-latin: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.22, .68, .16, 1);
  --hdr: 76px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141010; --bg-soft: #1c1716; --surface: #1f1918; --text: #f2eae5; --muted: #a99b93;
  --border: #342b28; --line: #2a2321; --hair: #6e5a40;
  --rose: #d9b4bc; --rose-soft: #2c2124; --rose-ink: #e6c0c8; --gold: #d3b07a;
  --btn: #f2eae5; --btn-ink: #141010; --sale: #e8909d; --sale-ink: #2a0f15; --ok: #82c7a0;
  --ink-bg: #0e0b0a; --ink-text: #efe6e1; --ink-muted: #9a8c85; --ink-line: #2c2422;
  --scrim: rgba(0, 0, 0, .64); --shadow-sm: none; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141010; --bg-soft: #1c1716; --surface: #1f1918; --text: #f2eae5; --muted: #a99b93;
    --border: #342b28; --line: #2a2321; --hair: #6e5a40;
    --rose: #d9b4bc; --rose-soft: #2c2124; --rose-ink: #e6c0c8; --gold: #d3b07a;
    --btn: #f2eae5; --btn-ink: #141010; --sale: #e8909d; --sale-ink: #2a0f15; --ok: #82c7a0;
    --ink-bg: #0e0b0a; --ink-text: #efe6e1; --ink-muted: #9a8c85; --ink-line: #2c2422;
    --scrim: rgba(0, 0, 0, .64); --shadow-sm: none; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body);
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; line-height: 1.35; margin: 0; text-wrap: balance; }
::selection { background: var(--rose); color: #241c19; }
:focus-visible { outline: 1.5px solid var(--rose-ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.latin { font-family: var(--f-latin); font-style: italic; font-weight: 500; letter-spacing: .02em; }
.i { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.xl { width: 44px; height: 44px; stroke-width: 1.1; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; top: -50px; right: 12px; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- أزرار ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 28px; border-radius: var(--r-btn); background: var(--btn); color: var(--btn-ink);
  font-weight: 500; font-size: .95rem; letter-spacing: .01em; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), background .35s, border-color .35s, opacity .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rose-ink);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: right; }
:root[data-theme="dark"] .btn:not(.btn-ghost):hover { color: #141010; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled::before { display: none; }
.btn .i { width: 18px; height: 18px; }
.btn-lg { height: 56px; padding: 0 34px; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--text); }
.btn-ghost::before { background: var(--text); }
.btn-ghost:hover { color: var(--bg); }
.btn-rose { background: var(--rose); color: #241c19; }
.btn-rose::before { background: var(--btn); }
.btn-rose:hover { color: var(--btn-ink); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap .3s var(--ease), color .2s; }
.link-arrow:hover { gap: 14px; color: var(--rose-ink); }
.link-arrow .i { width: 17px; height: 17px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  color: var(--text); transition: background .2s, color .2s;
}
.icon-btn:hover { color: var(--rose-ink); }
.icon-btn.sm { width: 40px; height: 40px; }
.icon-btn.sm .i { width: 18px; height: 18px; }
.icon-btn.ring { border: 1px solid var(--border); }
.icon-btn.ring:hover { border-color: var(--text); color: var(--text); }
.linklike { color: inherit; text-align: start; opacity: .75; transition: opacity .2s; }
.linklike:hover { opacity: 1; }
.count {
  position: absolute; top: 4px; left: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--rose-ink); color: var(--bg); font-size: .66rem; font-weight: 600; display: grid; place-items: center; line-height: 1;
}
.count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ---------- الشريط العلوي ---------- */
.announce { background: var(--ink-bg); color: var(--ink-text); text-align: center; font-size: .8rem; letter-spacing: .02em; padding: 9px 16px; min-height: 38px; }
.announce span { display: inline-block; transition: opacity .4s, transform .4s; }
.announce.promo { background: linear-gradient(90deg, #5c2a35, #8c4d5c, #5c2a35); color: #fff; font-weight: 500; }
.announce .cd { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 10px; direction: ltr; font-variant-numeric: tabular-nums; }
.announce .cd b { background: rgba(255,255,255,.16); border-radius: 3px; padding: 0 6px; font-weight: 600; }
.announce .cd i { font-style: normal; opacity: .8; font-size: .75rem; }
.announce span.out { opacity: 0; transform: translateY(-6px); }
.sample-banner { background: #fff4d6; color: #5a4300; text-align: center; font-size: .82rem; padding: 7px 16px; border-bottom: 1px solid #f0dfa8; }
:root[data-theme="dark"] .sample-banner { background: #33290f; color: #f5dc9a; border-color: #4f4118; }
.sample-banner code { background: rgba(0,0,0,.07); padding: 1px 6px; border-radius: 4px; font-size: .78rem; }

/* ---------- الترويسة ---------- */
.hdr {
  position: sticky; top: 0; z-index: 30; height: var(--hdr);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.3) blur(16px);
  -webkit-backdrop-filter: saturate(1.3) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, height .3s;
}
.hdr.scrolled { border-color: var(--border); }
.hdr-in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.hdr-side { display: flex; align-items: center; gap: 4px; min-width: 0; }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-word { font-family: var(--f-latin); font-size: 2rem; font-weight: 500; letter-spacing: .32em; margin-left: -.32em; color: var(--text); direction: ltr; line-height: 1; }
.brand-sub { font-family: var(--f-latin); font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); margin-top: 6px; direction: ltr; }
.hdr-nav { display: flex; gap: 2px; overflow: hidden; }
.hdr-nav a { position: relative; padding: 8px 12px; color: var(--text); font-size: .9rem; white-space: nowrap; }
.hdr-nav a::after { content: ""; position: absolute; right: 12px; left: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease); }
.hdr-nav a:hover::after { transform: scaleX(1); }
.hdr-actions { justify-self: end; display: flex; align-items: center; gap: 0; }
.only-m { display: none; }

/* ---------- الواجهة ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 90px; }
.hero::before {
  content: ""; position: absolute; top: -10%; left: -10%; width: 60%; height: 120%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rose) 30%, transparent), transparent 72%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; min-height: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--gold); font-size: 1.2rem; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--hair); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.28; font-weight: 300; letter-spacing: -.01em; }
.hero h1 em { display: block; font-style: normal; font-weight: 500; color: var(--rose-ink); }
.hero-sub { color: var(--muted); font-size: 1.1rem; margin: 24px 0 36px; max-width: 30em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 0; margin: 56px 0 0; padding: 26px 0 0; border-top: 1px solid var(--border); max-width: 460px; }
.hero-stats div { flex: 1; display: flex; flex-direction: column; padding-inline-end: 20px; }
.hero-stats div + div { padding-inline-start: 20px; border-inline-start: 1px solid var(--border); }
.hero-stats dt { font-family: var(--f-head); font-size: 1.9rem; font-weight: 300; line-height: 1.1; }
.hero-stats dd { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }

.hero-art { position: relative; height: 640px; display: grid; place-items: center; }
.arch-frame { position: absolute; width: 74%; height: 92%; border: 1px solid var(--hair); border-radius: 999px 999px 0 0; transform: translate(-22px, 22px); }
.arch { position: relative; width: 74%; height: 92%; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow); }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 6s linear; }
.arch img.on { opacity: 1; transform: scale(1); }
.hero-pick {
  position: absolute; right: -6px; bottom: 64px; z-index: 2; display: flex; align-items: center; gap: 14px; text-align: start;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 12px 14px 12px 20px; border-radius: var(--r); box-shadow: var(--shadow); min-width: 250px; max-width: 300px;
  transition: transform .3s var(--ease);
}
.hero-pick:hover { transform: translateY(-3px); }
.hero-pick img { width: 54px; height: 66px; object-fit: cover; border-radius: 4px; }
.hero-pick small { display: block; color: var(--gold); font-size: .72rem; letter-spacing: .02em; }
.hero-pick b { display: block; font-weight: 500; font-size: .95rem; line-height: 1.4; }
.hero-pick .price { font-size: .88rem; font-weight: 500; }
.hero-pick .i { width: 16px; height: 16px; margin-inline-start: auto; color: var(--muted); }
.hero-dots { position: absolute; left: 4%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.hero-dots button { position: relative; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--text); opacity: .45; transition: all .3s; }
.hero-dots button::after { content: ""; position: absolute; inset: -9px; }
.hero-dots .hero-pause { width: 14px; height: 14px; border: 0; border-radius: 0; opacity: .55; margin-top: 4px;
  background: linear-gradient(90deg, var(--text) 0 35%, transparent 35% 65%, var(--text) 65%) center / 9px 11px no-repeat; }
.hero-dots .hero-pause[aria-pressed="true"] { background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--text); width: 0; height: 0; }
.hero-dots .hero-pause:hover { opacity: 1; }
.wa-fab { transition: transform .35s var(--ease), opacity .3s; }
.wa-fab.away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.hero-dots button[aria-current="true"] { background: var(--text); opacity: 1; height: 26px; border-radius: 999px; }
.hero-seal {
  position: absolute; left: 3%; top: 6%; width: 116px; height: 116px; z-index: 2; color: var(--gold);
  animation: spin 24s linear infinite;
}
.hero-seal { direction: ltr; }
.hero-seal text { direction: ltr; unicode-bidi: normal; font-family: var(--f-latin); font-size: 11.5px; letter-spacing: .26em; fill: currentColor; text-transform: uppercase; }
.hero-seal .core { fill: var(--surface); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- شريط متحرك ---------- */
.marquee { border-block: 1px solid var(--border); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 30px; padding-inline-end: 30px; font-family: var(--f-head); font-weight: 300; font-size: 1.15rem; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: .75rem; }
@keyframes marquee { to { transform: translateX(50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- الأقسام ---------- */
.sec { padding: 110px 0 0; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 48px; position: relative; }
.sec-head .kicker { color: var(--gold); font-size: 1.15rem; margin-bottom: 4px; }
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 300; }
.sec-head::after { content: "✦"; color: var(--hair); font-size: .7rem; margin-top: 14px; letter-spacing: 0; }
.sec-head .rail-arrows { position: absolute; left: 0; bottom: 0; display: flex; gap: 8px; }
.sec-head.with-link { padding-bottom: 0; }
.sec-head .head-link { position: absolute; right: 0; bottom: 4px; font-size: .9rem; }

/* الفئات: أقواس */
.cat-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 22px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cat-img { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 999px 999px 4px 4px; overflow: hidden; background: var(--bg-soft); }
.cat-img::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255, 255, 255, .55); border-radius: inherit; opacity: 0; transition: opacity .4s; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cat:hover img { transform: scale(1.08); }
.cat:hover .cat-img::after { opacity: 1; }
.cat-label b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 1rem; }
.cat-label small { color: var(--muted); font-size: .78rem; }

/* الشريط الأفقي */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.small { grid-auto-columns: calc((100% - 5 * 18px) / 6); gap: 18px; }

/* الحكاية */
.story { margin-top: 110px; background: var(--bg-soft); }
.story-in { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 560px; }
.story-media { position: relative; overflow: hidden; }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-copy { padding: 80px 72px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.story-copy .kicker { color: var(--gold); font-size: 1.2rem; }
.story-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 300; }
.story-copy p { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 32em; }
.story-sign { font-family: var(--f-latin); font-style: italic; font-size: 2rem; color: var(--rose-ink); direction: ltr; margin-top: 4px; }

/* ---------- أدوات التصفية ---------- */
.toolbar { display: flex; flex-direction: column; gap: 22px; margin-bottom: 40px; }
.chips { display: flex; gap: 6px 26px; overflow-x: auto; scrollbar-width: none; justify-content: center; border-bottom: 1px solid var(--border); }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; padding: 10px 2px 14px; color: var(--muted); font-size: .95rem; transition: color .2s; }
.chip::after { content: ""; position: absolute; right: 0; left: 0; bottom: -1px; height: 2px; background: var(--text); transform: scaleX(0); transition: transform .35s var(--ease); }
.chip:hover { color: var(--text); }
.chip[aria-selected="true"] { color: var(--text); font-weight: 500; }
.chip[aria-selected="true"]::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.result-count { color: var(--muted); font-size: .88rem; margin-inline-end: auto; }
.select select {
  height: 42px; border-radius: var(--r-btn); border: 1px solid var(--border); background: transparent; padding: 0 16px 0 38px;
  appearance: none; -webkit-appearance: none; cursor: pointer; font-size: .9rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c706a' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center;
}
.select select option { background: var(--surface); color: var(--text); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; color: var(--muted); user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--border); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--text); }
.switch input:checked::after { transform: translateX(-16px); }

/* ---------- بطاقة المنتج ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
.card { position: relative; display: flex; flex-direction: column; gap: 16px; }
.card-top { position: relative; }
.card.reveal { opacity: 0; transform: translateY(24px); }
.card.reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-img); overflow: hidden; background: var(--bg-soft); cursor: pointer; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; opacity: 0; }
.card-media img.loaded { opacity: 1; }
.card:hover .card-media img { transform: scale(1.06); }
.card.soldout .card-media img { filter: grayscale(.7); opacity: .65; }
.badges { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.badge { font-size: .7rem; font-weight: 500; letter-spacing: .02em; padding: 4px 10px; border-radius: 2px; background: var(--surface); color: var(--text); }
.badge.sale { background: var(--sale); color: var(--sale-ink); }
.badge.new { background: var(--text); color: var(--bg); }
.badge.low { background: var(--surface); color: var(--gold); }
.badge.out { background: var(--text); color: var(--bg); }
.wish {
  position: absolute; top: 10px; left: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(6px); transition: transform .25s var(--ease), color .2s, opacity .3s;
}
.wish:hover { transform: scale(1.1); }
.wish .i { width: 17px; height: 17px; }
.wish[aria-pressed="true"] { color: var(--sale); }
.wish[aria-pressed="true"] .i { fill: currentColor; }
.wish.pop { animation: bump .45s var(--ease); }
.quick {
  position: absolute; inset: auto 0 0 0; z-index: 2; height: 48px; border-radius: 0 0 var(--r-img) var(--r-img);
  background: color-mix(in srgb, var(--btn) 92%, transparent); color: var(--btn-ink); font-weight: 500; font-size: .88rem; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transform: translateY(101%); transition: transform .45s var(--ease), background .2s;
}
.card-top { overflow: hidden; border-radius: var(--r-img); }
.quick .i { width: 16px; height: 16px; }
.card:hover .quick, .quick:focus-visible { transform: none; }
.quick:hover { background: var(--rose-ink); }
.quick:disabled { background: var(--muted); }
.card-info { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 0 6px; }
.card-cat { color: var(--gold); font-size: .74rem; letter-spacing: .02em; }
.card-name { font-family: var(--f-body); font-weight: 400; font-size: 1rem; line-height: 1.55; cursor: pointer; transition: color .2s; }
.card-name:hover { color: var(--rose-ink); }
.price { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; font-weight: 500; font-size: .95rem; }
.price .old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: .85em; }
.price .from { color: var(--muted); font-weight: 400; font-size: .85em; }
.price .ask { color: var(--rose-ink); font-weight: 400; font-size: .9rem; }

.skel { position: relative; overflow: hidden; background: var(--bg-soft); }
.skel::after {
  content: ""; position: absolute; inset: 0; transform: translateX(100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 55%, transparent), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { transform: translateX(-100%); } }
.skel-card .card-media { cursor: default; }
.skel-line { height: 11px; border-radius: 4px; margin: 6px auto 0; }

.empty { text-align: center; color: var(--muted); padding: 64px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty p { margin: 0; }

/* ---------- لماذا ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--border); }
.why-item { padding: 44px 28px; text-align: center; }
.why-item + .why-item { border-inline-start: 1px solid var(--border); }
.why-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; border: 1px solid var(--hair); color: var(--gold); }
.why-ico .i { width: 26px; height: 26px; stroke-width: 1.2; }
.why-item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.why-item p { color: var(--muted); margin: 0; font-size: .9rem; }

.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testi { border: 1px solid var(--border); border-radius: var(--r); padding: 30px; margin: 0; }
.testi blockquote { margin: 0 0 16px; font-family: var(--f-head); font-weight: 300; font-size: 1.1rem; line-height: 1.7; }
.testi figcaption { color: var(--muted); font-size: .88rem; }

/* الأسئلة */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 4px; font-family: var(--f-head); font-weight: 400; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center/100% 1px no-repeat, linear-gradient(currentColor, currentColor) center/1px 100% no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 4px 26px; color: var(--muted); }

/* إنستقرام */
.insta { margin-top: 110px; padding: 80px 0; text-align: center; border-top: 1px solid var(--border); }
.insta-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.insta .kicker { color: var(--gold); font-size: 1.15rem; }
.insta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 300; }
.insta p { color: var(--muted); margin: 0 0 12px; }
.insta .btn span { direction: ltr; }

/* ---------- التذييل ---------- */
.ftr { background: var(--ink-bg); color: var(--ink-text); }
main:has(> .insta[hidden]) + .ftr { margin-top: 110px; }
.ftr-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-block: 72px 44px; }
.ftr .brand-word { color: var(--ink-text); font-size: 2.4rem; display: inline-block; }
.ftr-brand p { color: var(--ink-muted); margin: 16px 0 22px; max-width: 26em; }
.ftr h3 { font-family: var(--f-head); font-size: .95rem; font-weight: 500; margin-bottom: 18px; color: var(--ink-text); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ftr ul a, .ftr ul button { color: var(--ink-muted); font-size: .92rem; transition: color .2s; opacity: 1; }
.ftr ul a:hover, .ftr ul button:hover { color: var(--ink-text); }
.ftr-social { display: flex; gap: 10px; }
.ftr-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink-line); display: grid; place-items: center; color: var(--ink-text); transition: background .25s, color .25s, border-color .25s; }
.ftr-social a:hover { background: var(--rose); border-color: var(--rose); color: #241c19; }
.ftr-bottom { border-top: 1px solid var(--ink-line); padding-block: 22px; color: var(--ink-muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ftr-bottom .latin { letter-spacing: .3em; text-transform: uppercase; font-style: normal; font-size: .75rem; direction: ltr; }

/* ---------- عناصر عائمة ---------- */
.wa-fab {
  position: fixed; left: 24px; bottom: 24px; z-index: 25; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .25s var(--ease);
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab .i { width: 27px; height: 27px; stroke-width: 1.7; }
.bnav { display: none; }

.toasts { position: fixed; z-index: 90; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--btn); color: var(--btn-ink);
  padding: 12px 14px 12px 20px; border-radius: var(--r-btn); box-shadow: var(--shadow); font-size: .9rem;
  animation: toastIn .4s var(--ease);
}
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast .i { width: 17px; height: 17px; color: var(--rose); }
.toast button { color: var(--rose); font-weight: 600; padding: 4px 10px; border-inline-start: 1px solid color-mix(in srgb, var(--btn-ink) 25%, transparent); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

.fly { position: fixed; z-index: 95; border-radius: 6px; object-fit: cover; pointer-events: none; box-shadow: var(--shadow); }

/* ---------- الطبقات ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: min(460px, 100%); background: var(--surface);
  display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .5s var(--ease);
}
.drawer.start { left: auto; right: 0; transform: translateX(100%); width: min(360px, 88%); }
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 1.25rem; font-weight: 400; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--border); padding: 18px 24px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.drawer-foot:empty { display: none; }

.ship-bar { border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; margin: 16px 0 4px; font-size: .88rem; display: block; }
.ship-bar .i { width: 18px; height: 18px; vertical-align: -4px; margin-inline-end: 6px; color: var(--gold); }
.ship-bar .track { height: 3px; border-radius: 999px; background: var(--line); margin-top: 12px; overflow: hidden; }
.ship-bar .fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose-ink), var(--rose)); transition: width .7s var(--ease); }
.ship-bar.done { color: var(--ok); }
.ship-bar.done .fill { background: var(--ok); }

.line { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 84px; height: 104px; border-radius: 4px; overflow: hidden; background: var(--bg-soft); cursor: pointer; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-top { display: flex; justify-content: space-between; gap: 8px; }
.line-name { font-weight: 500; font-size: .95rem; line-height: 1.5; cursor: pointer; }
.line-cat { color: var(--gold); font-size: .76rem; }
.line-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 8px; }
.line-bottom b { font-weight: 500; }
.line .rm { color: var(--muted); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.line .rm:hover { color: var(--sale); }
.line .rm .i { width: 16px; height: 16px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-btn); height: 36px; }
.stepper button { width: 34px; height: 100%; display: grid; place-items: center; }
.stepper button:hover { color: var(--rose-ink); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper .i { width: 14px; height: 14px; stroke-width: 1.8; }
.stepper output { min-width: 26px; text-align: center; font-weight: 500; font-size: .92rem; }
.stepper.lg { height: 56px; }
.stepper.lg button { width: 46px; }

.opt { display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; }
.opt input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--text); margin: 0; }
.opt .i { width: 19px; height: 19px; color: var(--gold); }
.opt small { color: var(--muted); margin-inline-start: auto; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; }
.coupon .btn { height: 48px; padding: 0 20px; }
.coupon-msg { font-size: .84rem; margin: 0; }
.coupon-msg.ok { color: var(--ok); }
.coupon-msg.err { color: var(--sale); }
.sum-row { display: flex; justify-content: space-between; color: var(--muted); font-size: .92rem; }
.sum-row.disc { color: var(--ok); }
.sum-row.total { color: var(--text); font-size: 1.15rem; font-weight: 500; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); }
.note { background: var(--bg-soft); border-radius: var(--r); padding: 11px 14px; font-size: .84rem; color: var(--muted); margin: 0; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: .88rem; font-weight: 500; }
.field > span small { color: var(--muted); font-weight: 400; }
.input, .field input, .field select, .field textarea, .coupon input {
  height: 50px; border: 1px solid var(--border); border-radius: var(--r-btn); background: transparent; padding: 0 16px; outline: none; width: 100%;
  transition: border-color .2s;
}
.field textarea { height: auto; padding: 13px 16px; resize: vertical; min-height: 84px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .coupon input:focus { border-color: var(--text); }
.field .err { color: var(--sale); font-size: .8rem; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--sale); }
.field.invalid .err { display: block; }

.empty-state { text-align: center; padding: 44px 10px 20px; color: var(--muted); }
.empty-state .ring { width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--hair); color: var(--gold); display: grid; place-items: center; margin: 0 auto 20px; }
.empty-state .ring .i { width: 36px; height: 36px; stroke-width: 1.1; }
.empty-state h3 { color: var(--text); font-size: 1.2rem; margin-bottom: 6px; }
.empty-state p { margin: 0 0 22px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; text-align: start; }
.mini-head { font-family: var(--f-head); margin-top: 36px; color: var(--text); font-size: 1.05rem; }

.order { border: 1px solid var(--border); border-radius: var(--r); padding: 16px; margin-top: 14px; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-id { font-weight: 600; direction: ltr; font-family: ui-monospace, monospace; font-size: .88rem; letter-spacing: .03em; }
.order-date { color: var(--muted); font-size: .8rem; }
.order-thumbs { display: flex; gap: 6px; margin: 12px 0; }
.order-thumbs img { width: 44px; height: 54px; object-fit: cover; border-radius: 4px; background: var(--bg-soft); }
.order-actions { display: flex; gap: 8px; }
.order-actions .btn { height: 40px; padding: 0 16px; font-size: .85rem; }

.menu-label { color: var(--gold); font-size: .8rem; margin: 22px 0 6px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 2px; border-bottom: 1px solid var(--line); font-family: var(--f-head); font-weight: 300; font-size: 1.1rem; text-align: start; }
.menu-list .i { width: 19px; height: 19px; color: var(--muted); }
.menu-list small { color: var(--muted); margin-inline-start: auto; font-family: var(--f-body); font-size: .8rem; }

/* ---------- النوافذ ---------- */
.modal { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 28px; pointer-events: none; }
.modal-card {
  pointer-events: auto; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); width: 100%;
  max-height: calc(100dvh - 56px); overflow: auto; opacity: 0; transform: translateY(24px);
  transition: opacity .35s var(--ease), transform .5s var(--ease); position: relative; overscroll-behavior: contain;
}
.modal.on .modal-card { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 16px; left: 16px; z-index: 3; background: var(--surface); }

.sheet-card { max-width: 1100px; }
.sheet { display: grid; grid-template-columns: 1.1fr 1fr; }
.sheet-media { position: relative; background: var(--bg-soft); min-height: 460px; overflow: hidden; cursor: zoom-in; border-start-start-radius: var(--r); border-end-start-radius: var(--r); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease-out; max-height: calc(100dvh - 56px); }
.sheet-media.zoomed { cursor: zoom-out; }
.sheet-media.zoomed img { transform: scale(2.1); }
.zoom-hint { position: absolute; bottom: 16px; right: 16px; display: flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 2px; font-size: .76rem; }
.zoom-hint .i { width: 15px; height: 15px; }
.sheet-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(6px); }
.sheet-nav.prev { right: 14px; }
.sheet-nav.next { left: 14px; }
.sheet-info { padding: 52px 44px 36px; display: flex; flex-direction: column; gap: 18px; }
.sheet-info .card-cat { font-size: .85rem; }
.sheet-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 300; }
.sheet-info .price { font-size: 1.4rem; justify-content: flex-start; font-weight: 400; }
.sheet-desc { color: var(--muted); margin: 0; padding-bottom: 6px; }
.stock-line { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ok); }
.stock-line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.stock-line.low { color: var(--gold); }
.stock-line.out { color: var(--sale); }
.buy-row { display: flex; gap: 10px; align-items: center; }
.buy-row .btn { flex: 1; height: 56px; }
.sub-actions { display: flex; gap: 22px; flex-wrap: wrap; padding: 4px 0; }
.sub-actions .btn { height: auto; padding: 4px 0; background: none; border: 0; color: var(--text); font-size: .88rem; gap: 7px; overflow: visible; }
.sub-actions .btn::before { display: none; }
.sub-actions .btn:hover { color: var(--rose-ink); }
.sub-actions .btn[aria-pressed="true"] { color: var(--sale); }
.sub-actions .btn[aria-pressed="true"] .i { fill: currentColor; }
.assure { display: grid; gap: 12px; margin: 4px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); list-style: none; }
.assure li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .88rem; }
.assure .i { width: 18px; height: 18px; color: var(--gold); }
.related { padding: 8px 44px 40px; border-top: 1px solid var(--border); }
.related h3 { font-size: 1.2rem; margin: 30px 0 20px; text-align: center; font-weight: 300; }
.related .rail { grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; }
.related .card-name { font-size: .9rem; }

/* إتمام الطلب */
.co-card { max-width: 640px; }
.co { padding: 36px 36px 30px; }
.co h2 { font-size: 1.6rem; font-weight: 300; margin-bottom: 4px; }
.co-sub { color: var(--muted); margin: 0 0 26px; font-size: .92rem; }
.steps { display: flex; gap: 10px; margin-bottom: 30px; }
.step { flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: .8rem; color: var(--muted); }
.step::before { content: ""; height: 2px; background: var(--border); transition: background .5s; }
.step.done::before, .step.cur::before { background: var(--text); }
.step.cur { color: var(--text); font-weight: 500; }
.co-form { display: flex; flex-direction: column; gap: 18px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--r-btn); padding: 15px 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.radio-card:has(input:checked) { border-color: var(--text); background: var(--bg-soft); }
.radio-card input { accent-color: var(--text); width: 17px; height: 17px; margin: 0; }
.radio-card small { margin-inline-start: auto; color: var(--muted); }
.co-actions { display: flex; gap: 10px; margin-top: 8px; }
.co-actions .btn { flex: 1; height: 56px; }
.co-actions .btn-ghost { flex: 0 0 auto; }
.review-list { border: 1px solid var(--border); border-radius: var(--r); padding: 4px 16px; }
.review-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.review-item:last-child { border: 0; }
.review-item img { width: 46px; height: 56px; border-radius: 4px; object-fit: cover; background: var(--bg-soft); }
.review-item span { flex: 1; }
.review-item b { white-space: nowrap; font-weight: 500; }
.review-who { background: var(--bg-soft); border-radius: var(--r); padding: 14px 16px; font-size: .9rem; line-height: 1.9; }
.review-who b { font-weight: 500; }
.review-who .i { width: 16px; height: 16px; vertical-align: -3px; color: var(--gold); }
.review-who button { color: var(--rose-ink); font-weight: 500; float: left; text-decoration: underline; text-underline-offset: 3px; }
.success { text-align: center; padding: 16px 0 4px; }
.success .ring { width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; border: 1px solid var(--ok); color: var(--ok); animation: pop .7s var(--ease); }
.success .ring .i { width: 44px; height: 44px; stroke-width: 1.5; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.06); } }
.success h2 { font-size: 1.9rem; }
.success .oid { display: inline-block; direction: ltr; font-family: ui-monospace, monospace; border: 1px dashed var(--hair); padding: 7px 16px; border-radius: 3px; font-weight: 600; letter-spacing: .04em; margin: 10px 0 20px; }
.success p { color: var(--muted); margin: 0 0 6px; }
.success h2 { margin-bottom: 2px; }
.next-steps { list-style: none; counter-reset: s; margin: 6px auto 0; padding: 0; max-width: 430px; text-align: start; display: grid; gap: 12px; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: .93rem; }
.next-steps li::before { content: counter(s, arabic-indic); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--hair); color: var(--gold); display: grid; place-items: center; font-size: .82rem; }
.next-steps b { color: var(--text); font-weight: 500; }

.success-note { max-width: 440px; margin: 18px auto 0 !important; }
.success-note b { color: var(--text); font-weight: 500; }
.success .ring.warn { border-color: var(--gold); color: var(--gold); }
.success .ring.sending { border-color: var(--border); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--rose-ink); animation: spin .9s linear infinite; }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; }

/* اختيار طريقة الإرسال */
.channel-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.channel-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r);
  cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.channel-card:hover { transform: translateY(-2px); }
.channel-card input { position: absolute; opacity: 0; pointer-events: none; }
.channel-card:has(input:checked) { border-color: var(--text); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--text); }
.channel-card:has(input:focus-visible) { outline: 1.5px solid var(--rose-ink); outline-offset: 3px; }
.channel-card b { font-weight: 500; font-size: .95rem; }
.channel-card small { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.channel-card em { position: absolute; top: 12px; left: 12px; font-style: normal; font-size: .68rem; background: var(--rose-ink); color: var(--bg); padding: 2px 8px; border-radius: 2px; }
.ch-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hair); color: var(--gold); margin-bottom: 6px; }
.ch-ico .i { width: 18px; height: 18px; }
.ch-ico.wa { color: #25d366; border-color: color-mix(in srgb, #25d366 40%, transparent); }

/* تتبّع حالة الطلب */
.track { list-style: none; margin: 18px auto 4px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 460px; position: relative; }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.track li::before { content: ""; position: absolute; top: 7px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.track li:first-child::before { display: none; }
.track li.done::before, .track li.cur::before { background: var(--ok); }
.track span { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); }
.track li.done span { background: var(--ok); border-color: var(--ok); }
.track li.cur span { border-color: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); animation: pulse 2s ease-in-out infinite; }
.track small { font-size: .74rem; color: var(--muted); }
.track li.cur small { color: var(--text); font-weight: 500; }
.track.compact { margin: 12px 0 6px; max-width: none; }
.track.compact span { width: 12px; height: 12px; }
.track.compact li::before { top: 5px; }
.track.compact small { font-size: .68rem; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ok) 8%, transparent); } }
.track-cancel { margin: 10px 0; color: var(--muted); font-size: .85rem; }
.order-via { color: var(--muted); font-size: .8rem; margin-top: 6px; }
@media (max-width: 480px) { .channel-cards { grid-template-columns: 1fr; } }

/* معاينة رسالة واتساب */
.wa-preview { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.wa-preview summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 500; font-size: .92rem; }
.wa-preview summary::-webkit-details-marker { display: none; }
.wa-preview summary .i { width: 18px; height: 18px; color: #25d366; }
.wa-preview summary small { color: var(--muted); font-weight: 400; margin-inline-start: auto; font-size: .78rem; }
.wa-preview summary::after { content: ""; width: 8px; height: 8px; border-left: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); margin-inline-start: 6px; transition: transform .3s var(--ease); }
.wa-preview[open] summary::after { transform: rotate(135deg); }
.wa-chat {
  padding: 18px 14px 20px; max-height: 420px; overflow-y: auto;
  background: #efe7dd radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1.4px) 0 0 / 14px 14px;
}
.wa-bubble {
  position: relative; margin-inline-start: auto; max-width: 92%; width: fit-content; background: #d9fdd3; color: #111b21;
  border-radius: 10px 0 10px 10px; padding: 10px 12px 12px; font-family: "Segoe UI", system-ui, sans-serif; font-size: .86rem; line-height: 1.65;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12); word-break: break-word;
}
.wa-bubble::before { content: ""; position: absolute; top: 0; right: -8px; border: 8px solid transparent; border-top-color: #d9fdd3; border-right: 0; }
.wa-bubble b { font-weight: 700; }
.wa-bubble i { color: #54656f; }
.wa-link { color: #027eb5; direction: ltr; unicode-bidi: isolate; }
:root[data-theme="dark"] .wa-chat { background: #0b141a radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1.4px) 0 0 / 14px 14px; }
:root[data-theme="dark"] .wa-bubble { background: #005c4b; color: #e9edef; }
:root[data-theme="dark"] .wa-bubble::before { border-top-color: #005c4b; }
:root[data-theme="dark"] .wa-bubble i { color: #a5c2bb; }
:root[data-theme="dark"] .wa-link { color: #53bdeb; }

/* البحث */
.search-ov { position: fixed; inset: 0; z-index: 80; background: var(--scrim); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.search-ov.on { opacity: 1; }
.search-panel { background: var(--surface); padding: 26px 0 30px; box-shadow: var(--shadow); transform: translateY(-24px); transition: transform .45s var(--ease); max-height: 88dvh; display: flex; flex-direction: column; }
.search-panel > * { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.search-ov.on .search-panel { transform: none; }
.search-field { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--text); padding: 0 4px 0 0; height: 60px; }
.search-field input { flex: 1; border: 0; background: none; outline: none; font-family: var(--f-head); font-weight: 300; font-size: 1.35rem; min-width: 0; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { overflow-y: auto; margin-top: 18px; }
.sr-label { color: var(--gold); font-size: .8rem; margin: 12px 4px 10px; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-chips .chip { border: 1px solid var(--border); padding: 7px 16px; border-radius: 999px; }
.sr-chips .chip::after { display: none; }
.sr-chips .chip:hover { border-color: var(--text); }
.sr-item { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: var(--r); width: 100%; text-align: start; }
.sr-item:hover, .sr-item.active { background: var(--bg-soft); }
.sr-item img { width: 52px; height: 64px; border-radius: 4px; object-fit: cover; background: var(--bg-soft); }
.sr-item div { flex: 1; min-width: 0; }
.sr-item b { display: block; font-weight: 500; }
.sr-item small { color: var(--gold); }
.sr-item .price { justify-content: flex-end; }
.sr-item mark { background: var(--rose-soft); color: var(--rose-ink); border-radius: 2px; padding: 0 2px; }

[hidden] { display: none !important; }

/* ---------- متجاوب ---------- */
@media (max-width: 1180px) {
  .cat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 22px; }
  .hdr-nav a { padding: 8px 8px; font-size: .85rem; }
}
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hdr-nav { display: none; }
  .only-m { display: inline-grid; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(3) { border-inline-start: 0; }
  .why-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .rail { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .story-copy { padding: 60px 44px; }
}
@media (max-width: 820px) {
  :root { --hdr: 64px; }
  .wrap { padding: 0 18px; }
  .hide-m { display: none; }
  .hdr-in { gap: 4px; grid-template-columns: 1fr auto 1fr; }
  .brand-word { font-size: 1.55rem; letter-spacing: .26em; margin-left: -.26em; }
  .brand-sub { display: none; }
  .hdr-actions #themeBtn { display: none; }
  .hdr .icon-btn { width: 40px; height: 40px; }
  .hero { padding: 14px 0 56px; }
  .hero-in { grid-template-columns: 1fr; gap: 30px; min-height: 0; }
  .hero-art { height: 500px; order: -1; }
  .arch, .arch-frame { width: 82%; height: 94%; }
  .arch-frame { transform: translate(-14px, 14px); }
  .hero-pick { right: 0; bottom: 34px; min-width: 0; max-width: 260px; padding: 10px 12px 10px 14px; }
  .hero-dots { left: 0; }
  .hero-seal { width: 88px; height: 88px; left: 0; top: 2%; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .eyebrow::before { display: none; }
  .hero-sub { margin: 16px 0 26px; }
  .hero-cta { justify-content: center; width: 100%; }
  .hero-cta .btn { flex: 1; }
  .hero-stats { margin-top: 34px; width: 100%; max-width: none; justify-content: center; }
  .hero-stats div { align-items: center; }
  .sec { padding-top: 76px; }
  .sec-head { margin-bottom: 32px; }
  .sec-head .rail-arrows, .sec-head .head-link { display: none; }
  .cat-row { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 30%; gap: 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin-inline: -18px; padding-inline: 18px; }
  .cat-row::-webkit-scrollbar { display: none; }
  .cat { scroll-snap-align: start; }
  .rail { grid-auto-columns: 46%; gap: 14px; margin-inline: -18px; padding-inline: 18px; scroll-padding-inline: 18px; }
  .rail.small { grid-auto-columns: 34%; }
  .story { margin-top: 76px; }
  .story-in { grid-template-columns: 1fr; min-height: 0; }
  .story-media { aspect-ratio: 4 / 3; }
  .story-copy { padding: 44px 22px 52px; align-items: center; text-align: center; }
  .chips { justify-content: flex-start; margin-inline: -18px; padding-inline: 18px; gap: 4px 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 12px; }
  .quick { inset: auto auto 8px 8px; width: 40px; height: 40px; border-radius: 50%; padding: 0; transform: none; }
  .quick span { display: none; }
  .quick .i { width: 18px; height: 18px; }
  .card-top { overflow: visible; }
  .card-name { font-size: .9rem; }
  .why-item { padding: 30px 14px; }
  .ftr-in { grid-template-columns: 1fr 1fr; gap: 34px; padding-block: 52px 30px; }
  .ftr-brand { grid-column: 1 / -1; }
  .bnav {
    position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
  }
  .bnav a, .bnav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 8px; font-size: .68rem; color: var(--muted); }
  .bnav .i { width: 21px; height: 21px; color: var(--text); }
  .bnav .count { top: 4px; left: calc(50% - 21px); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .wa-fab { bottom: calc(80px + env(safe-area-inset-bottom)); left: 16px; width: 50px; height: 50px; }
  .toasts { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .modal { padding: 0; align-items: end; }
  .modal-card { border-radius: 16px 16px 0 0; max-height: 94dvh; transform: translateY(48px); }
  .sheet { grid-template-columns: 1fr; }
  .sheet-media { border-radius: 16px 16px 0 0; min-height: 0; aspect-ratio: 4 / 5; max-height: 60dvh; }
  .sheet-media img { max-height: none; }
  .sheet-info { padding: 26px 20px 20px; gap: 14px; }
  .related { padding: 0 20px 28px; }
  .related .rail { grid-auto-columns: 42%; margin-inline: -20px; padding-inline: 20px; }
  .co { padding: 28px 20px calc(22px + env(safe-area-inset-bottom)); }
  .co-row { grid-template-columns: 1fr; }
  .search-panel { padding: 16px 0 20px; }
  .search-field input { font-size: 1.15rem; }
  .drawer-head, .drawer-body, .drawer-foot { padding-inline: 18px; }
}
@media (max-width: 420px) {
  .hero-art { height: 440px; }
  .hero-stats dt { font-size: 1.5rem; }
  .why-item h3 { font-size: 1rem; }
  .why-item p { font-size: .82rem; }
  .cat-row { grid-auto-columns: 36%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .card.reveal { opacity: 1; transform: none; }
}
