/* =========================================================
   بُنيان | متجر — الهوية: أسود عميق + ذهبي رملي
   ========================================================= */

/* ---------- الخطوط (محلية بالكامل) ---------- */
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url(../fonts/cairo-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url(../fonts/cairo-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url(../fonts/cairo-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url(../fonts/cairo-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-weight: 800; font-display: swap; src: url(../fonts/cairo-arabic-800-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 800; font-display: swap; src: url(../fonts/cairo-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Aref Ruqaa"; font-weight: 700; font-display: swap; src: url(../fonts/aref-ruqaa-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Aref Ruqaa"; font-weight: 700; font-display: swap; src: url(../fonts/aref-ruqaa-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }

/* ---------- الرموز ---------- */
:root {
  --ink: #080808;
  --ink-900: #0d0c0b;
  --card: #141210;
  --card-2: #1b1814;
  --line: #2a241d;
  --gold: #D6A76C;
  --gold-light: #F0C58A;
  --gold-pale: #F7E3C2;
  --gold-deep: #A97C45;
  --ivory: #F3EADB;
  --muted: #A79A89;
  --danger: #f0a08a;
  --ok: #9fd5a8;
  --f-body: "Cairo", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-logo: "Aref Ruqaa", "Amiri", serif;
  --r: 16px;
  --nav-h: 76px;
  --gold-grad: linear-gradient(180deg, #F7E3C2 0%, #F0C58A 45%, #D6A76C 75%, #A97C45 100%);
  --btn-grad: linear-gradient(180deg, #F3D19E 0%, #E2B577 55%, #C99456 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ivory); font-family: var(--f-body); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(214, 167, 108, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-lg { margin-top: 40px; }
.mt-xl { margin-top: 72px; }
.pt-0 { padding-top: 0 !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.skip { position: absolute; top: -60px; right: 16px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }

.ic { width: 24px; height: 24px; flex-shrink: 0; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 32px; height: 32px; }
.ic-xl { width: 56px; height: 56px; }

.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .12em; }
.gold-line { display: block; height: 1px; width: 160px; margin: 18px auto; background: linear-gradient(90deg, transparent, rgba(214,167,108,.7), transparent); }
.eyebrow { color: var(--gold); font-size: .875rem; font-weight: 700; letter-spacing: .04em; }

/* ---------- الأزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 28px; border-radius: 12px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s; white-space: nowrap; }
.btn-gold { background: var(--btn-grad); color: #1a120a; box-shadow: 0 10px 30px -12px rgba(214,167,108,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(214,167,108,.75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-outline { border-color: rgba(214,167,108,.55); color: var(--gold-light); background: transparent; }
.btn-outline:hover { border-color: var(--gold); background: rgba(214,167,108,.1); }
.btn-sm { padding: 9px 18px; font-size: .9rem; border-radius: 10px; }
.btn.block { display: flex; width: 100%; }
.btn-link { display: block; text-align: center; color: var(--gold-light); margin-top: 14px; font-size: .95rem; }
.btn-link:hover { text-decoration: underline; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: transparent; border: 1px solid transparent; color: var(--ivory); cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.icon-btn:hover { color: var(--gold-light); background: rgba(214,167,108,.08); }

/* ---------- الشعار ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-ar { font-family: var(--f-logo); font-weight: 700; font-size: 2.1rem; color: var(--gold-light); padding-bottom: 8px; text-shadow: 0 0 16px rgba(214,167,108,.3); }
.logo-en { font-size: .55rem; letter-spacing: .5em; padding-inline-start: .5em; color: var(--gold); font-weight: 700; }
.logo-lg .logo-ar { font-size: 3rem; }
.logo-lg .logo-en { font-size: .72rem; }

/* ---------- الهيدر ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(8,8,8,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled { background: rgba(8,8,8,.85); border-bottom-color: rgba(214,167,108,.12); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.main-nav ul { display: flex; gap: 34px; }
.main-nav a { position: relative; font-weight: 600; font-size: .95rem; color: rgba(243,234,219,.85); padding: 8px 0; transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.main-nav a:hover, .main-nav a.on { color: var(--gold-light); }
.main-nav a:hover::after, .main-nav a.on::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(214,167,108,.25); color: var(--gold-light); transition: border-color .2s, background .2s; }
.cart-btn:hover { border-color: var(--gold); background: rgba(214,167,108,.08); }
.badge { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--ink); font-size: .72rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.menu-toggle { display: none; }
.mobile-nav { position: fixed; inset: 0; z-index: 70; background: rgba(8,8,8,.97); padding-bottom: env(safe-area-inset-bottom, 0px); padding-top: env(safe-area-inset-top, 0px); overflow-y: auto; }
.mobile-nav ul { margin-top: 24px; }
.mobile-nav ul a { display: block; padding: 16px 0; font-size: 1.4rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-nav ul a:hover { color: var(--gold-light); }

/* ---------- التنبيهات ---------- */
.alert { margin-top: 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid; }
.alert-success { border-color: rgba(159,213,168,.35); background: rgba(159,213,168,.08); color: var(--ok); }
.alert-error { border-color: rgba(240,160,138,.4); background: rgba(240,160,138,.08); color: #f6c3b5; margin-bottom: 20px; }

/* ---------- الهيرو ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(780px, calc(100svh - var(--nav-h))); margin-top: calc(var(--nav-h) * -1); padding-top: var(--nav-h); background: radial-gradient(ellipse at 38% 30%, #2a1e13, var(--ink) 70%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(8,8,8,.9) 0%, rgba(8,8,8,.45) 38%, transparent 65%), linear-gradient(0deg, var(--ink) 0%, transparent 28%); }
.hero-inner { padding-block: 72px 96px; }
.hero-copy { max-width: 560px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 99px; border: 1px solid rgba(214,167,108,.25); background: rgba(8,8,8,.4); color: var(--gold-light); font-size: .875rem; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.hero-title { margin-top: 20px; font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.4; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
.hero-sub { margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(243,234,219,.9); max-width: 34rem; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-in { animation: heroIn .9s cubic-bezier(.22,1,.36,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; }

/* ---------- شريط المميزات ---------- */
.features-strip { position: relative; margin-top: -48px; z-index: 2; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { display: flex; align-items: center; gap: 16px; padding: 22px 20px; border-radius: var(--r); background: rgba(20,18,16,.85); border: 1px solid rgba(214,167,108,.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.feature .ic { color: var(--gold-light); }
.feature h3 { font-size: 1.05rem; color: var(--gold-light); }
.feature p { font-size: .9rem; color: var(--muted); }

/* ---------- الأقسام ---------- */
.section { padding-block: 96px; }
.section-alt { background: linear-gradient(180deg, var(--ink-900), var(--ink)); border-block: 1px solid rgba(214,167,108,.08); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; margin-top: 6px; }
.page-head { padding-block: 56px 32px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }

/* ---------- بطاقات المنتجات ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-card { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); border: 1px solid rgba(214,167,108,.12); overflow: hidden; transition: transform .35s, border-color .35s, box-shadow .35s; }
.product-card:hover { transform: translateY(-6px); border-color: rgba(214,167,108,.45); box-shadow: 0 20px 50px -24px rgba(214,167,108,.4); }
.pc-media { position: relative; display: block; aspect-ratio: 1; background: var(--card-2); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover .pc-media img { transform: scale(1.05); }
.tag { position: absolute; top: 12px; right: 12px; padding: 3px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.tag-sale { background: var(--gold); color: var(--ink); }
.tag-out { background: rgba(8,8,8,.8); color: var(--muted); border: 1px solid var(--line); top: auto; bottom: 12px; }
.pc-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.pc-cat { font-size: .8rem; color: var(--gold); }
.pc-title { font-size: 1.05rem; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-title a:hover { color: var(--gold-light); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price strong { color: var(--gold-light); font-size: 1.1rem; }
.price del { color: var(--muted); font-size: .88rem; }
.add-btn { border-color: rgba(214,167,108,.35); color: var(--gold-light); width: 40px; height: 40px; }
.add-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 72px 16px; border: 1px dashed rgba(214,167,108,.25); border-radius: var(--r); }
.empty .ic { color: var(--gold); }
.empty h3 { font-size: 1.35rem; }
.empty .btn { margin-top: 8px; }

/* ---------- لماذا بنيان ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid rgba(214,167,108,.15); border-radius: var(--r); overflow: hidden; }
.why-grid li { display: flex; gap: 14px; padding: 28px 24px; background: rgba(20,18,16,.6); }
.why-grid li + li { border-inline-start: 1px solid rgba(214,167,108,.1); }
.why-grid .ic { color: var(--gold-light); margin-top: 4px; }
.why-grid h3 { font-size: 1.05rem; }
.why-grid p { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- الأسئلة الشائعة ---------- */
.faq { border: 1px solid rgba(214,167,108,.15); border-radius: var(--r); background: rgba(20,18,16,.6); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-light); }
.faq-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: transform .3s, border-color .3s, color .3s; flex-shrink: 0; }
.faq details[open] .faq-ic { transform: rotate(45deg); border-color: var(--gold); color: var(--gold-light); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- التذييل ---------- */
.site-footer { position: relative; border-top: 1px solid rgba(214,167,108,.3); background: var(--ink); }
.site-footer::before { content: ""; position: absolute; inset: -1px 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; padding-block: 64px; }
.footer-about { margin-top: 18px; max-width: 34ch; }
.site-footer h2 { font-size: 1rem; color: var(--gold-light); margin-bottom: 18px; }
.site-footer nav li + li, .contact-list li + li { margin-top: 12px; }
.site-footer nav a { color: var(--muted); transition: color .2s; }
.site-footer nav a:hover, .contact-list a:hover { color: var(--gold-light); }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .ic { color: var(--gold); width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 22px; color: var(--muted); font-size: .88rem; }

/* ---------- قائمة المنتجات ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 32px; }
.search-field { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-900); color: var(--muted); }
.search-field:focus-within { border-color: var(--gold); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; color: var(--ivory); outline: none; }
.field { width: 100%; min-width: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-900); color: var(--ivory); transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,167,108,.15); }
.field[aria-invalid="true"] { border-color: var(--danger); }
select.field { cursor: pointer; }
.toolbar select.field { width: auto; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pager a { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); }
.pager a:hover { border-color: var(--gold); }
.pager a.on { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 800; }

/* ---------- صفحة المنتج ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--gold-light); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-media { position: relative; border-radius: 20px; overflow: hidden; background: var(--card-2); border: 1px solid rgba(214,167,108,.15); aspect-ratio: 1; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.product-info h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
.price-lg strong { font-size: 1.8rem; }
.price-lg del { font-size: 1.05rem; }
.lead { font-size: 1.1rem; color: rgba(243,234,219,.88); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); } .stock.low { color: var(--gold-light); } .stock.out { color: var(--danger); }
.buy-form { display: flex; flex-wrap: wrap; gap: 12px; }
.grow { flex: 1 1 200px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-900); }
.qty input { width: 56px; text-align: center; border: 0; background: transparent; padding: 12px 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { display: grid; place-items: center; width: 44px; height: 48px; background: none; border: 0; color: var(--gold-light); cursor: pointer; }
.assurance { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-block: 16px; border-block: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.assurance li { display: flex; align-items: center; gap: 8px; }
.assurance .ic { color: var(--gold); }
.description h2 { font-size: 1.15rem; color: var(--gold-light); margin-bottom: 10px; }
.description { color: rgba(243,234,219,.88); }

/* ---------- السلة والدفع ---------- */
.card { background: var(--card); border: 1px solid rgba(214,167,108,.14); border-radius: var(--r); padding: 28px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 90px 110px 44px; align-items: center; gap: 18px; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid rgba(214,167,108,.12); }
.ci-img img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--card-2); }
.ci-name { font-weight: 700; }
.ci-name:hover { color: var(--gold-light); }
.ci-qty .field { text-align: center; padding: 10px; }
.ci-total { color: var(--gold-light); text-align: left; }
.warn { color: var(--danger); font-size: .88rem; }
.summary h2, .checkout-form h2 { font-size: 1.2rem; margin-bottom: 18px; }
.summary dl { margin: 0; display: grid; gap: 12px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.summary .total { padding-top: 14px; border-top: 1px solid var(--line); font-weight: 800; font-size: 1.15rem; }
.summary .total dd { color: var(--gold-light); }
.summary .btn { margin-top: 22px; }
.hint { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: rgba(214,167,108,.08); color: var(--gold-light); font-size: .9rem; }
.mini-lines { display: grid; gap: 10px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.checkout-form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.form-row label, .form-row legend { font-weight: 700; font-size: .95rem; padding: 0; }
.err { color: var(--danger); font-size: .88rem; }
.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; }
.pay-option { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.pay-option:has(input:checked) { border-color: var(--gold); background: rgba(214,167,108,.08); }
.pay-option input { accent-color: var(--gold); width: 18px; height: 18px; }

.success-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.success-ic { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(214,167,108,.4); background: rgba(214,167,108,.1); color: var(--gold-light); box-shadow: 0 0 40px -10px rgba(214,167,108,.6); }
.success-box h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
.bank-box { width: 100%; text-align: right; margin-top: 12px; }
.bank-box h2 { font-size: 1.1rem; color: var(--gold-light); margin-bottom: 10px; }
.pre { white-space: normal; direction: rtl; }
.row-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.big-404 { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1.2; }

/* ---------- الظهور عند التمرير ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- التجاوب ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid li + li { border-inline-start: 0; }
  .why-grid li:nth-child(even) { border-inline-start: 1px solid rgba(214,167,108,.1); }
  .why-grid li:nth-child(n+3) { border-top: 1px solid rgba(214,167,108,.1); }
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav, .hide-sm { display: none; }
  .menu-toggle { display: inline-grid; }
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .section { padding-block: 72px; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pc-body { padding: 12px; }
  .pc-title { font-size: .95rem; }
  .price strong { font-size: 1rem; }
  .features-grid { gap: 10px; }
  .feature { flex-direction: column; text-align: center; gap: 8px; padding: 16px 10px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid li { border-inline-start: 0 !important; }
  .why-grid li + li { border-top: 1px solid rgba(214,167,108,.1); }
  .hero { align-items: flex-start; min-height: 640px; }
  .hero-shade { background: linear-gradient(180deg, rgba(8,8,8,.85) 0%, rgba(8,8,8,.3) 50%, transparent 70%), linear-gradient(0deg, var(--ink) 0%, transparent 25%); }
  .hero-inner { padding-block: 40px 200px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px minmax(0, 1fr) 44px; grid-template-areas: "img info rm" "img qty total"; gap: 10px 14px; }
  .ci-img { grid-area: img; } .ci-img img { width: 72px; height: 72px; }
  .ci-info { grid-area: info; } .ci-qty { grid-area: qty; max-width: 90px; } .ci-total { grid-area: total; } .ci-remove { grid-area: rm; }
  .card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .toolbar select.field { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* تصحيحات دقيقة */
.form-row .pay-option { padding: 14px 16px; font-weight: 600; }
.product-page { padding-top: 32px; }

/* =========================================================
   v2: الحسابات، الطلب، الفاتورة
   ========================================================= */
.alert-info { border-color: rgba(214,167,108,.35); background: rgba(214,167,108,.08); color: var(--gold-light); }
.gold { color: var(--gold-light); }
.label { font-weight: 700; font-size: .95rem; }
.form-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mt-sm { margin-top: 14px; }
.btn-link.inline { display: inline; margin: 0; background: none; border: 0; cursor: pointer; padding: 0; font: inherit; }

/* الحالات (تظهر للعميل أيضًا) */
.status { display: inline-block; padding: 2px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; border: 1px solid; white-space: nowrap; }
.s-new { color: var(--gold-light); border-color: rgba(240,197,138,.4); background: rgba(240,197,138,.08); }
.s-contacted, .s-agreed { color: #e8c98f; border-color: rgba(232,201,143,.3); background: rgba(232,201,143,.06); }
.s-in_progress { color: #a9c8e8; border-color: rgba(169,200,232,.35); background: rgba(169,200,232,.07); }
.s-delivered { color: var(--ok); border-color: rgba(159,213,168,.35); background: rgba(159,213,168,.07); }
.s-cancelled { color: var(--danger); border-color: rgba(240,160,138,.35); background: rgba(240,160,138,.07); }

/* تسجيل الدخول */
.auth-page { display: grid; place-items: center; }
.auth-box { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.auth-box h1 { font-size: 1.6rem; }
.auth-box .alert { margin: 0; text-align: right; }
.auth-box .form-stack { text-align: right; }
.auth-ic { align-self: center; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(214,167,108,.35); color: var(--gold-light); background: rgba(214,167,108,.08); }
.btn-google { background: #fff; color: #1f1f1f; border-color: #fff; }
.btn-google:hover { background: #f1f1f1; transform: translateY(-2px); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--ink-900); border: 1px solid var(--line); }
.seg a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 9px; font-size: .92rem; color: var(--muted); font-weight: 600; }
.seg a.on { background: rgba(214,167,108,.14); color: var(--gold-light); }
.code-input { font-size: 1.7rem; letter-spacing: .5em; text-align: center; }
.auth-links { display: flex; justify-content: center; gap: 24px; font-size: .92rem; }
.auth-links .btn-link { color: var(--gold-light); }

/* الحساب */
.sub-title { font-size: 1.25rem; margin-bottom: 16px; }
.order-list { display: grid; gap: 12px; }
.order-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 18px; padding: 18px 20px; }

/* إتمام الطلب */
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: .95rem; font-weight: 800; margin-inline-end: 8px; vertical-align: middle; }
.q legend, .q > label { margin-bottom: 4px; }
.req { color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--ink-900); color: rgba(243,234,219,.85); font-size: .92rem; transition: border-color .2s, background .2s, color .2s; }
.chip:hover span { border-color: rgba(214,167,108,.5); }
.chip input:checked + span { border-color: var(--gold); background: rgba(214,167,108,.16); color: var(--gold-light); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.has-err .chips span { border-color: rgba(240,160,138,.5); }
.sticky-summary { position: sticky; top: calc(var(--nav-h) + 16px); }
.next-steps { margin: 18px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: .92rem; display: grid; gap: 6px; }
.next-steps li::marker { color: var(--gold); font-weight: 800; }

/* بعد الطلب */
.wa-box { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 12px; border-color: rgba(214,167,108,.35); }
.wa-box h2 { font-size: 1.2rem; color: var(--gold-light); }
.btn-wa { font-size: 1.1rem; padding: 16px 34px; }

/* كيف نعمل */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; padding: 0; }
.steps-grid li { padding: 26px 22px; border-radius: var(--r); background: rgba(20,18,16,.7); border: 1px solid rgba(214,167,108,.14); display: flex; flex-direction: column; gap: 8px; }
.steps-grid .step-n { width: 40px; height: 40px; font-size: 1.1rem; margin: 0 0 6px; }
.steps-grid h3 { font-size: 1.1rem; }
.steps-grid p { color: var(--muted); font-size: .93rem; }
.from { display: block; width: 100%; line-height: 1.2; }

/* الفاتورة */
.invoice-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.invoice { display: flex; flex-direction: column; gap: 24px; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.inv-meta { text-align: left; display: grid; gap: 4px; font-size: .95rem; }
.inv-meta h1 { font-size: 1.6rem; color: var(--gold-light); }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inv-table { width: 100%; border-collapse: collapse; }
.inv-table th { text-align: right; font-size: .85rem; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.inv-table td { padding: 14px 12px; border-bottom: 1px solid rgba(42,36,29,.7); }
.inv-table th:last-child, .inv-table td:last-child { text-align: left; }
.inv-table tfoot td { border: 0; font-weight: 800; font-size: 1.1rem; color: var(--gold-light); padding-top: 18px; }
.inv-sub { font-size: 1.1rem; color: var(--gold-light); margin-bottom: 10px; }
.req-list { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.req-list div { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 10px 14px; }
.req-list div + div { border-top: 1px solid var(--line); }
.req-list dt { color: var(--muted); }
.req-list dd { margin: 0; word-break: break-word; }
.inv-contact { padding: 18px; border-radius: 12px; background: rgba(214,167,108,.07); display: grid; gap: 4px; }
.inv-contact a { color: var(--gold-light); }

@media (max-width: 1024px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } .sticky-summary { position: static; } }
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr auto; }
  .inv-parties, .req-list div { grid-template-columns: 1fr; }
  .inv-meta { text-align: right; }
  .cart-item.no-qty { grid-template-areas: "img info rm" "img total total"; }
}

@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .no-print, .skip, .mobile-nav, body::before { display: none !important; }
  .section { padding: 0; }
  .card, .invoice { background: #fff; border: 0; color: #111; padding: 0; }
  .muted, .req-list dt, .inv-table th { color: #555; }
  .gold-text, .logo-ar, .inv-meta h1, .inv-sub, .inv-table tfoot td, .inv-contact a { color: #8a6a43 !important; -webkit-text-fill-color: #8a6a43; background: none; text-shadow: none; }
  .inv-contact { background: #f7f1e6; }
  .status { border-color: #999; color: #333; background: none; }
  .inv-table td, .req-list div + div, .inv-head, .req-list { border-color: #ddd; }
}

/* v3: الدخول عبر واتساب */
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-3 a { font-size: .85rem; padding: 10px 6px; }
.wa-login { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.wa-code { font-size: 2.4rem; font-weight: 800; letter-spacing: .18em; color: var(--gold-light); padding: 14px; border-radius: 14px; background: var(--ink-900); border: 1px dashed rgba(214,167,108,.45); user-select: all; }
.wa-wait { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold-light); font-weight: 600; }
.wa-wait.ok { color: var(--ok); }
.wa-wait.bad { color: var(--danger); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(214,167,108,.3); border-top-color: var(--gold-light); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* v4: الحسابات */
.auth-tabs a { font-size: .98rem; font-weight: 700; padding: 11px; }
.forgot { align-self: flex-start; color: var(--gold-light); margin-top: -6px; }
.alt-methods { display: grid; gap: 10px; }
.btn-wa-outline { border-color: rgba(159,213,168,.45); color: #bfe6c6; }
.btn-wa-outline:hover { border-color: #9fd5a8; background: rgba(159,213,168,.08); }
.kv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge-ok, .badge-warn { font-size: .75rem; font-weight: 700; padding: 1px 10px; border-radius: 99px; border: 1px solid; }
.badge-ok { color: var(--ok); border-color: rgba(159,213,168,.4); background: rgba(159,213,168,.08); }
.badge-warn { color: var(--gold-light); border-color: rgba(240,197,138,.4); background: rgba(240,197,138,.08); }
.check.small { font-size: .9rem; color: var(--muted); text-align: right; }
input[readonly].field { opacity: .8; cursor: not-allowed; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.auth-foot { display: grid; gap: 8px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
