/* ===== واجهة المتجر ===== */

/* ---------- شريط الإعلان + الهيدر ---------- */
.topbar { background: #fff; border-bottom: 1px solid #E1E7ED; color: var(--text); font-size: 13px; }
.topbar-in { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-in b { color: var(--ink); }
.topbar-message { color: var(--muted); text-align: center; }
.brochure { background: var(--ink); color: #fff; padding: 8px 16px; text-decoration: none !important; font-weight: 600; }
.brochure:hover { background: var(--hot); color: #fff; }
.announce { background: var(--hot); color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 0; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--steel); }
@media (min-width: 900px) { .site-header { position: sticky; top: 0; z-index: 60; } }
.hdr-main { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding-block: 15px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; margin-inline-end: auto; }
.brand-mark { width: 44px; height: 44px; border-radius: 11px; }
.brand-text b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.brand-text small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.search { position: relative; order: 5; flex: 1 1 100%; }
.search input { width: 100%; height: 46px; padding-inline: 16px 48px; border: 1px solid var(--steel); border-radius: 3px; background: var(--enamel); }
.search input:focus { outline: 3px solid rgba(11, 122, 118, .28); border-color: var(--teal); background: #fff; }
.search button { position: absolute; inset-block: 0; inset-inline-end: 0; width: 48px; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 10px; }
.hdr-track { display: none; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; font-size: 15px; }
.cart-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 4px; background: var(--hot); color: #fff; }
.cart-btn:hover { background: var(--ink-3); text-decoration: none; }
.cart-badge { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--hot); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--paper); }
.cart-badge.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.3); } }
@media (min-width: 760px) {
  .search { order: 0; flex: 1 1 auto; max-width: 520px; }
  .brand { margin-inline-end: 0; }
  .hdr-track { display: inline-flex; }
  .hdr-main { flex-wrap: nowrap; }
  .cart-btn { margin-inline-start: 0; }
}

.levelbar { background: var(--ink); box-shadow: 0 2px 8px rgba(16, 42, 67, .12); }
.levelbar-in { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.levelbar-in::-webkit-scrollbar { display: none; }
.lv-link { display: inline-flex; align-items: center; gap: 6px; padding: 12px 15px; color: #D8E6F2; font-weight: 500; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; text-decoration: none !important; }
.lv-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.lv-link.is-active { color: #fff; border-bottom-color: var(--hot); }
.lv-link.is-hot { color: #FFB7A5; font-weight: 600; }
.lv-link.is-all { margin-inline-start: auto; color: #fff; font-weight: 600; }
.lv-link:focus-visible { outline-color: var(--amber); }

/* ---------- الهيرو + صينية الأدوات ---------- */
.hero { position: relative; overflow: hidden; background: #07131E; color: #fff; padding-block: 46px 52px; border-bottom: 0; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .8; background: repeating-linear-gradient(90deg, transparent 0 82px, rgba(38, 116, 184, .22) 83px 85px, transparent 86px 164px), linear-gradient(110deg, #050B12 0%, #0B2237 55%, #0C74B4 140%); }
.hero::after { content: ''; position: absolute; width: 38vw; height: 38vw; max-width: 500px; max-height: 500px; inset-inline-end: -8%; top: 8%; z-index: -1; border: 2px solid rgba(77, 185, 255, .35); border-radius: 50%; box-shadow: 0 0 0 34px rgba(77, 185, 255, .08), 0 0 0 70px rgba(77, 185, 255, .04); }
.hero-grid { display: grid; gap: 30px; align-items: center; }
.hero-copy h1 { font-size: clamp(28px, 5.2vw, 46px); line-height: 1.3; color: #fff; font-weight: 700; max-width: 18ch; }
.hero-copy p { margin-top: 14px; font-size: 18px; color: #D6E5F0; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-cta .btn { flex: 1 1 200px; }
.hero-cta .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.hero-cta .btn-primary:hover { background: var(--hot); color: #fff; border-color: var(--hot); }
@media (min-width: 900px) { .hero-cta .btn { flex: 0 0 auto; } }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } .hero { padding-block: 56px 64px; } }

.tray { display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .96); border: 0; border-radius: 5px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 4px 14px; color: var(--ink); text-decoration: none !important; border-inline-start: 1.5px dashed var(--steel-2); transition: background-color .18s; }
.slot:first-child { border-inline-start: 0; }
.slot-tool { width: 34px; height: 92px; transition: transform .22s ease, color .18s; }
.slot b { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; }
.slot small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.3; min-height: 1.3em; }
.slot:hover, .slot:focus-visible { background: var(--teal-soft); color: var(--teal-dark); }
.slot:hover .slot-tool, .slot:focus-visible .slot-tool { transform: translateY(-8px); }
.slot:focus-visible { outline-offset: -4px; }
.slot.is-off { opacity: .4; pointer-events: none; }
@media (min-width: 900px) { .slot-tool { width: 58px; height: 156px; } .slot { padding-top: 30px; padding-bottom: 20px; } .slot b { font-size: 19px; } }
@media (min-width: 520px) { .slot-tool { width: 44px; height: 118px; } .slot b { font-size: 17px; } .slot small { font-size: 12px; } .slot { padding-top: 24px; } }

/* ---------- شريط العروض السخنة ---------- */
.band-hot { background: var(--ink); color: #fff; padding-block: 34px 40px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(22px, 3.4vw, 30px); display: flex; align-items: center; gap: 10px; color: var(--ink); }
.sec-head.on-dark h2 { color: #fff; }
.ico-flame { color: #FF7A5C; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.on-dark .link-more { color: #FFD9A0; }
.offers-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(258px, 78%); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-color: var(--ink-3) transparent; }
.offers-row > * { scroll-snap-align: start; }
@media (min-width: 720px) { .offers-row { grid-auto-columns: minmax(250px, 1fr); } }

.ogrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.ocard { display: flex; flex-direction: column; background: var(--paper); color: var(--text); border-radius: 12px; overflow: hidden; }
.ocard-img { position: relative; display: block; background: #fff; border-bottom: 1px solid var(--steel); aspect-ratio: 1 / 1; }
.ocard-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.ocard-pct, .tag-hot { direction: ltr; unicode-bidi: isolate; }
.ocard-pct { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--hot); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; padding: 2px 10px; border-radius: 6px; }
.ocard-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; flex: 1; }
.ocard-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; background: var(--hot-soft); color: var(--hot-dark); font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.ocard-name { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.ocard-name a { color: var(--text); }
.ocard-prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ocard-prices strong { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--hot); line-height: 1.1; }
.ocard-prices span { color: var(--muted); font-size: 15px; }
.ocard-save { color: var(--green); font-weight: 600; font-size: 14px; margin-top: -4px; }
.ocard-timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: #D4E3E4; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-top: auto; }
.ocard .btn { margin-top: 4px; }
.ocard.is-out { opacity: .75; }

/* العداد التنازلي */
.cd { font-family: var(--font-display); font-variant-numeric: tabular-nums; direction: rtl; unicode-bidi: isolate; font-weight: 600; font-size: 18px; letter-spacing: .03em; color: var(--amber); }
.cd.is-urgent { color: #FF8E75; }
.cd.is-expired { color: var(--steel-2); font-size: 15px; letter-spacing: 0; font-family: var(--font-body); }
.pcard-timer .cd { color: var(--hot-dark); font-size: 15px; }
.pcard-timer .cd.is-expired { color: var(--muted); }

/* ---------- بطاقة المنتج والشبكة ---------- */
.sec { padding-block: 30px 36px; }
.lv-block { margin-bottom: 34px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.pcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--steel); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-img { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--steel); }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.tag { position: absolute; top: 8px; padding: 1px 9px; border-radius: 5px; font-size: 13px; font-weight: 700; line-height: 1.7; }
.tag-hot { inset-inline-start: 8px; background: var(--hot); color: #fff; font-family: var(--font-display); font-size: 15px; }
.tag-out { inset-inline-end: 8px; background: var(--ink); color: #fff; }
.tag-low { inset-inline-end: 8px; background: var(--amber-soft); color: var(--amber-dark); }
.pcard.is-out .pcard-img img { opacity: .5; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.pcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.chip { display: inline-block; background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; padding: 0 8px; border-radius: 4px; font-size: 12.5px; }
.pcard-name { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.5; min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name a { color: var(--text); }
.pcard-timer { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hot-dark); }
.pcard-body .btn { margin-top: auto; min-height: 42px; font-size: 14px; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.price-now { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.price-now.is-hot { color: var(--hot); }
.price-was { color: var(--muted); font-size: 14px; }
.price.lg .price-now { font-size: 36px; }
.price.lg .price-was { font-size: 17px; }

/* ---------- رؤوس الصفحات ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--steel); padding-block: 26px 22px; }
.page-head h1 { font-size: clamp(26px, 4.6vw, 38px); color: var(--ink); display: flex; align-items: center; gap: 10px; }
.page-head p { margin-top: 6px; color: var(--muted); max-width: 62ch; }
.head-hot { background: var(--ink); border-bottom: 0; }
.head-hot h1 { color: #fff; }
.head-hot p { color: #B9CFD1; }
.head-hot .ico-flame { color: #FF7A5C; }
.level-head-in { display: flex; align-items: center; gap: 22px; }
.lv-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(84px, 16vw, 150px); line-height: .78; color: var(--teal); -webkit-text-stroke: 1px var(--teal-dark); user-select: none; padding-block: 6px; animation: level-number-in .55s cubic-bezier(.2, .8, .2, 1) both; }
body[data-level="level2"] .lv-num { color: var(--blue); -webkit-text-stroke-color: #173C8F; }
body[data-level="level3"] .lv-num { color: var(--violet); -webkit-text-stroke-color: #45268A; }
body[data-level="level4"] .lv-num { color: var(--amber); -webkit-text-stroke-color: var(--amber-dark); }
body[data-level="level5"] .lv-num { color: var(--hot); -webkit-text-stroke-color: var(--hot-dark); }
@keyframes level-number-in { from { opacity: 0; transform: translateY(18px) scale(.82); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- شريط الفلاتر ---------- */
.toolbar { display: grid; gap: 14px; margin-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; border: 1.5px solid var(--steel-2); background: var(--paper); color: var(--text); border-radius: 999px; padding: 6px 16px; min-height: 38px; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tool-search { position: relative; flex: 1 1 240px; }
.tool-search .ico { position: absolute; inset-inline-start: 13px; top: 14px; color: var(--muted); }
.tool-search .input { padding-inline-start: 40px; }
.tools .select { width: auto; min-width: 170px; }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.more-wrap { display: flex; justify-content: center; margin-top: 26px; }

/* ---------- حالات فارغة / تحميل ---------- */
.state-box { text-align: center; padding: 44px 20px; background: var(--paper); border: 1.5px dashed var(--steel-2); border-radius: 12px; display: grid; gap: 12px; justify-items: center; }
.state-box.wide { grid-column: 1 / -1; }
.state-box h1, .state-box h2 { font-size: 22px; }
.state-box p { color: var(--muted); }
.empty-inline { color: var(--muted); padding: 10px 0; }
.skeleton-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .skeleton-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.skeleton-grid i { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); background: #E4EBEC; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- شريط CTA + مميزات ---------- */
.cta-band { background: var(--teal); color: #fff; padding-block: 34px; margin-top: 10px; }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-in h2 { font-size: clamp(22px, 3.4vw, 30px); }
.cta-in p { margin-top: 4px; color: #D7F0EE; }
.cta-band .btn-primary { background: #fff; color: var(--teal-dark); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }
.trust { display: grid; gap: 18px; padding-block: 34px; grid-template-columns: 1fr; }
.trust > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.trust .ico { grid-row: span 2; color: var(--teal); }
.trust b { font-family: var(--font-display); font-size: 17px; }
.trust span { color: var(--muted); font-size: 14px; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) {
  .topbar-in { justify-content: center; min-height: 42px; }
  .topbar-message, .brochure { display: none; }
}

/* ---------- صفحة المنتج ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumb-cur { color: var(--text); font-weight: 500; }
.pdp { display: grid; gap: 26px; }
@media (min-width: 820px) { .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.pdp-media { position: relative; background: #fff; border: 1px solid var(--steel); border-radius: 12px; aspect-ratio: 1 / 1; }
.pdp-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.pdp-media .tag-hot { top: 14px; inset-inline-start: 14px; font-size: 20px; padding: 2px 14px; }
.pdp-info { display: grid; gap: 14px; align-content: start; }
.pdp-info h1 { font-size: clamp(24px, 3.6vw, 34px); color: var(--ink); }
.pdp-desc { color: #2F454A; white-space: pre-line; }
.stock { font-weight: 600; font-size: 14.5px; }
.stock-ok { color: var(--green); }
.stock-low { color: var(--amber-dark); }
.stock-out { color: var(--hot-dark); }
.offer-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; }
.offer-box .ocard-badge { background: rgba(255, 255, 255, .12); color: #FFD3C8; }
.offer-left { display: inline-flex; align-items: center; gap: 10px; color: #CFE0E1; font-size: 14px; }
.offer-save { margin-inline-start: auto; color: #8EE6B4; font-weight: 600; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--steel-2); border-radius: var(--radius); background: #fff; }
.stepper button { width: 44px; min-height: 50px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper button:hover:not(:disabled) { background: var(--enamel); }
.qty-input { width: 52px; border: 0; text-align: center; font-weight: 700; font-size: 17px; background: transparent; -moz-appearance: textfield; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm button { width: 34px; min-height: 36px; }
.qty-val { min-width: 30px; text-align: center; font-weight: 700; }
.perks { display: grid; gap: 8px; color: var(--muted); font-size: 14.5px; padding-top: 6px; border-top: 1px solid var(--steel); }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks .ico { color: var(--teal); }
.sec-related { margin-top: 44px; }

/* ---------- السلة والدفع ---------- */
.cart-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 940px) { .cart-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; } .summary { position: sticky; top: 130px; } }
.clines { display: grid; gap: 10px; }
.cline { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px 14px; align-items: center; background: var(--paper); border: 1px solid var(--steel); border-radius: var(--radius); padding: 12px; }
.cline-img { grid-row: span 2; width: 76px; height: 76px; border: 1px solid var(--steel); border-radius: 6px; background: #fff; }
.cline-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cline-info { display: grid; gap: 4px; min-width: 0; }
.cline-name { color: var(--text); font-weight: 600; line-height: 1.5; }
.cline-total { font-family: var(--font-display); font-weight: 700; font-size: 18px; text-align: end; }
.cline.is-bad { background: var(--hot-soft); border-color: #F0B9AE; grid-template-columns: 1fr auto; }
.cline .stepper { justify-self: start; }
.cline > .icon-btn { justify-self: end; }
@media (min-width: 640px) { .cline { grid-template-columns: 76px 1fr auto 110px auto; } .cline-img { grid-row: auto; } .cline .stepper { justify-self: center; } }
.summary { background: var(--paper); border: 1px solid var(--steel); border-radius: 12px; padding: 20px; display: grid; gap: 12px; }
.summary h2 { font-size: 20px; }
.summary dl, .track-card dl { display: grid; gap: 8px; margin: 0; }
.summary dl > div, .track-card dl > div, .kv > div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt, .track-card dt, .kv dt { color: var(--muted); }
.summary dd, .track-card dd, .kv dd { margin: 0; font-weight: 600; }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1.5px solid var(--ink); padding-top: 12px; font-weight: 600; }
.sum-total strong { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.sum-lines { display: grid; gap: 8px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.sum-lines small { color: var(--muted); }
.form-error { color: var(--hot-dark); font-weight: 600; margin-bottom: 12px; }
.form-error:empty { display: none; }
.form-error:not(:empty) { background: var(--hot-soft); padding: 12px 14px; border-radius: 8px; }
.radios { display: grid; gap: 10px; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1.5px solid var(--steel-2); border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 600; }
.radio-card input { width: 20px; height: 20px; accent-color: var(--teal); }
.radio-card:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.pay-panel { margin-top: 14px; }
.pay-num { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--amber-soft); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.pay-num b { font-family: var(--font-display); font-size: 20px; letter-spacing: .04em; }
.receipt-preview img { max-height: 220px; border-radius: 8px; border: 1px solid var(--steel); }

/* ---------- النجاح والتتبع ---------- */
.success-card, .track-card { background: var(--paper); border: 1px solid var(--steel); border-radius: 14px; padding: 28px 22px; max-width: 640px; margin-inline: auto; display: grid; gap: 14px; }
.success-card { text-align: center; justify-items: center; }
.success-card h1 { font-size: 28px; }
.success-mark { width: 68px; height: 68px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.order-no { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; background: var(--enamel); border: 1.5px dashed var(--steel-2); border-radius: 10px; padding: 12px 18px; }
.order-no span { color: var(--muted); font-size: 14px; }
.order-no b { font-family: var(--font-display); font-size: 22px; letter-spacing: .06em; }
.kv { display: grid; gap: 8px; width: 100%; margin: 0; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.success-card .notice { width: 100%; text-align: start; justify-content: flex-start; }
.track-form { display: grid; gap: 4px; background: var(--paper); border: 1px solid var(--steel); border-radius: 12px; padding: 20px; }
.track-form .btn { justify-self: start; }
#track-error:not(:empty) { margin-top: 12px; background: var(--hot-soft); padding: 12px 14px; border-radius: 8px; }
#track-result { margin-top: 18px; }
.track-card { max-width: none; }
.track-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.track-head small { display: block; color: var(--muted); font-size: 13px; }
.track-head b { font-family: var(--font-display); font-size: 19px; }
.track-card h3 { font-size: 18px; margin-top: 8px; }
.steps { display: grid; gap: 0; margin: 6px 0; }
.step { position: relative; display: flex; gap: 14px; padding-bottom: 20px; color: var(--muted); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; inset-inline-start: 9px; top: 22px; bottom: 0; width: 2px; background: var(--steel); }
.step:last-child::before { display: none; }
.step .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--steel-2); background: var(--paper); margin-top: 2px; z-index: 1; }
.step b { display: block; font-weight: 600; }
.step small { display: block; font-size: 13px; }
.step.is-done, .step.is-current { color: var(--text); }
.step.is-done .dot { background: var(--teal); border-color: var(--teal); }
.step.is-done::before { background: var(--teal); }
.step.is-current .dot { border-color: var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); background: var(--paper); }
.history { display: grid; gap: 8px; }
.history li { display: grid; gap: 0; font-size: 14.5px; border-inline-start: 3px solid var(--steel); padding-inline-start: 12px; }
.history small { color: var(--muted); }

/* ---------- الفوتر + واتساب ---------- */
.site-footer { background: var(--ink); color: #C2D3D5; margin-top: auto; padding-top: 40px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; padding-bottom: 30px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot-brand { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.foot-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.site-footer p { font-size: 14.5px; max-width: 40ch; }
.site-footer ul { display: grid; gap: 8px; font-size: 14.5px; }
.site-footer a { color: #C2D3D5; }
.site-footer a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ico { margin-top: 5px; color: var(--amber); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 16px calc(16px + env(safe-area-inset-bottom)); font-size: 13.5px; color: #8FA9AC; }

/* زر واتساب في الهيدر (بدل الزر العائم الذي كان يغطي المحتوى) */
.wa-btn { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 10px; background: #128C4A; color: #fff; }
.wa-btn:hover { background: #0E7239; text-decoration: none; }

/* صف الشراء على الموبايل: زر "اشترِ الآن" بعرض كامل */
@media (max-width: 560px) {
  .buy-row > .btn-outline { flex: 1 1 100%; }
}

/* هيدر الموبايل: الشعار + واتساب + السلة في صف واحد */
@media (max-width: 480px) {
  .hdr-main { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text b { font-size: 18px; white-space: nowrap; }
  .wa-btn, .cart-btn { width: 44px; height: 44px; }
}
@media (max-width: 350px) {
  .brand-text b { font-size: 16px; }
  .brand-text small { display: none; }
}

/* رفع الإيصال: زر بنفس هوية التصميم بدل الزر الافتراضي للمتصفح */
input[type="file"].file { width: 100%; padding: 10px; border: 1.5px dashed var(--steel-2); border-radius: 10px; background: var(--paper); color: var(--muted); font: inherit; cursor: pointer; }
input[type="file"].file::file-selector-button { margin-inline-end: 12px; padding: 9px 16px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
input[type="file"].file:hover { border-color: var(--teal); }

/* الدفع على الموبايل: ملخص الطلب يظهر قبل النموذج */
@media (max-width: 939px) {
  body[data-page="checkout"] .cart-grid > .summary { order: -1; }
}
