/* دهشة: هوية داكنة فاخرة مع لمسة ذهبية */
:root {
  --bg: #0f0d0a;
  --bg-2: #17140f;
  --card: #1c1813;
  --line: #2e281f;
  --text: #f4efe6;
  --muted: #a99f8e;
  --gold: #e3b45c;
  --gold-2: #f6d38b;
  --danger: #ff7a6b;
  --ok: #57d39b;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --font: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.gold { color: var(--gold); }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

.topbar { background: linear-gradient(90deg, #3a2a10, #5a4114, #3a2a10); color: var(--gold-2); text-align: center; font-size: .85rem; padding: 7px 12px; }

/* الهيدر */
.header { position: sticky; top: 0; z-index: 20; background: rgba(15, 13, 10, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none !important; }
.logo-mark { color: var(--gold); font-size: 1.3rem; }
.logo-text { font-size: 1.6rem; font-weight: 800; letter-spacing: .5px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); text-decoration: none; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { background: var(--gold); color: #1a1205; min-width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .8rem; padding: 0 6px; }

/* البطل */
.hero { position: relative; overflow: hidden; background: radial-gradient(1000px 500px at 80% 10%, rgba(227, 180, 92, .14), transparent 60%), radial-gradient(800px 400px at 0% 100%, rgba(120, 80, 255, .08), transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 80px 0 70px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .3px; margin: 0 0 10px; font-size: .95rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.2; margin: 0 0 18px; font-weight: 900; }
.lead { font-size: 1.15rem; color: #d8cfbf; max-width: 34em; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: .92rem; }
.hero-trust li::before { content: "✓"; color: var(--ok); margin-inline-end: 6px; font-weight: 900; }
.hero-art { position: relative; aspect-ratio: 1; }
.orb { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(246, 211, 139, .35), rgba(227, 180, 92, .05) 60%, transparent 70%); filter: blur(8px); }
.hero-img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* الأزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 12px 22px; border-radius: 12px; font-weight: 800; text-decoration: none !important; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1205; border-color: transparent; box-shadow: 0 10px 30px -12px rgba(227, 180, 92, .7); }
.btn-ghost { background: transparent; }
.btn-small { white-space: nowrap; flex: none; padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn.loading { position: relative; color: transparent; }
.btn.loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 3px solid #1a1205; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; text-align: start; }
.link-btn:hover { color: var(--gold-2); }
.danger { color: var(--danger); font-size: .85rem; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); display: inline-grid; place-items: center; font-weight: 800; }

/* الأقسام */
.section { padding: 70px 0; }
.section h2 { font-size: 2rem; margin: 0 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.chip.active { background: var(--gold); color: #1a1205; border-color: var(--gold); }

/* بطاقات المنتجات */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); border-color: #4a3d28; box-shadow: var(--shadow); }
.card-media { position: relative; border: 0; padding: 0; background: #000; aspect-ratio: 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; right: 12px; background: rgba(15, 13, 10, .85); color: var(--gold-2); border: 1px solid #5a4520; font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.off { position: absolute; top: 12px; left: 12px; background: var(--danger); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; direction: ltr; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-cat { color: var(--muted); font-size: .8rem; margin: 0; }
.card-title { font-size: 1.12rem; margin: 2px 0 4px; }
.card-tag { color: #cfc5b3; font-size: .92rem; margin: 0 0 14px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-row { display: flex; align-items: baseline; gap: 8px; direction: ltr; }
.price { font-weight: 900; font-size: 1.25rem; color: var(--gold-2); }
.compare { color: var(--muted); font-size: .9rem; }

/* لماذا دهشة */
.why { background: var(--bg-2); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.why-card h3 { margin: 10px 0 6px; }
.why-card p { color: #cfc5b3; margin: 0; }
.why-icon { font-size: 1.8rem; }

/* الأسئلة */
.faq details { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px 18px; margin-top: 12px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { color: #cfc5b3; margin: 10px 0 0; }

/* الفوتر */
.footer { border-top: 1px solid var(--line); padding: 40px 0 20px; background: #0b0a08; }
.footer-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: start; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { color: var(--muted); }
.pay-badges { display: flex; gap: 8px; }
.pay-badges span { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-weight: 900; font-size: .8rem; color: #e6dccb; background: var(--card); }
.copy { margin-top: 26px; font-size: .85rem; }

/* نافذة المنتج */
.modal { border: 1px solid var(--line); background: var(--bg-2); color: var(--text); border-radius: 22px; padding: 0; width: min(920px, 100% - 24px); max-height: 92vh; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.pm { display: grid; grid-template-columns: 1fr 1fr; }
.pm-media { background: #000; }
.pm-media > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pm-thumbs { display: flex; gap: 8px; padding: 10px; }
.thumb { width: 60px; height: 60px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: none; }
.pm-info { padding: 32px 28px; display: flex; flex-direction: column; gap: 6px; }
.pm-info h3 { font-size: 1.7rem; margin: 0; }
.pm-tag { color: var(--gold-2); margin: 0; }
.pm-info .price-row { justify-content: flex-end; margin: 8px 0; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty input { width: 56px; text-align: center; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 6px; font: inherit; }
.qty-val { min-width: 22px; text-align: center; font-weight: 800; }

/* السلة الجانبية */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 40; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); background: var(--bg-2); border-inline-start: 1px solid var(--line); z-index: 50; display: flex; flex-direction: column; transform: translateX(-100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px; display: grid; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; font-size: 1.1rem; }
.agree { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); }
.agree input { accent-color: var(--gold); width: 18px; height: 18px; }
.secure-note { margin: 0; text-align: center; color: var(--muted); font-size: .82rem; }
.form-msg { margin: 0; color: var(--danger); font-size: .9rem; min-height: 1.2em; text-align: center; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.line-name { margin: 0; font-weight: 800; }
.line-info p { margin: 0; }
.line-end { display: grid; justify-items: end; gap: 6px; direction: ltr; }
.empty { text-align: center; padding: 50px 0; color: var(--muted); }

/* الإشعار */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); background: var(--card); border: 1px solid #5a4520; color: var(--text); padding: 12px 20px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* صفحات السياسات والنتيجة */
.page { padding: 60px 0; }
.page h1 { font-size: 2.2rem; }
.page h2 { margin-top: 34px; color: var(--gold-2); }
.page p, .page li { color: #d8cfbf; }
.result { text-align: center; padding: 100px 0; }
.result-icon { font-size: 3.4rem; }

@media (max-width: 880px) {
  .hero-in { grid-template-columns: 1fr; padding: 50px 0; }
  .hero-art { max-width: 360px; margin-inline: auto; width: 100%; }
  .why-grid { grid-template-columns: 1fr; }
  .pm { grid-template-columns: 1fr; }
  .nav { display: none; }
  .cart-btn { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* البحث والتصفح */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; min-width: min(340px, 100%); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; font-size: 16px; padding: 11px 0; outline: none; }
.search:focus-within { border-color: var(--gold); }
.filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.chip { flex: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.no-results { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
