/* =========================================================
   Sniper Tech — Design Tokens
   Palette: ink (#0B0F24) + navy (#2A3785) + signal orange (#F27022)
   Font: Readex Pro
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&display=swap');

:root{
  --bg: #F4F5F9;
  --bg-soft: #F8F9FB;
  --surface: #FFFFFF;
  --surface-2: #F1F3F8;
  --border: #E1E4EC;
  --border-soft: #ECEEF4;
  --text: #151936;
  --text-muted: #565C78;
  --text-dim: #8B90A8;

  --pearl: #F27022;      /* برتقالي سنايبر */
  --pearl-2: #2A3785;    /* كحلي سنايبر */
  --pearl-3: #FFB547;    /* برتقالي فاتح */
  --navy: #2A3785;
  --navy-dark: #1C2665;
  --orange: #F27022;
  --orange-dark: #D95D12;
  --danger: #E5342A;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow: 0 18px 44px -24px rgba(21,25,54,.28);
  --container: 1440px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:
    radial-gradient(circle at 12% 0%, rgba(242,112,34,.06), transparent 40%),
    radial-gradient(circle at 88% 8%, rgba(255,181,71,.045), transparent 38%),
    var(--bg);
  background-attachment:fixed;
  color:var(--text);
  font-family:'Readex Pro', sans-serif;
  line-height:1.7;
  direction:rtl;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,.display{
  font-family:'Readex Pro', sans-serif;
  font-weight:800;
  letter-spacing:0;
  margin:0;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
:focus-visible{ outline:2px solid var(--pearl); outline-offset:3px; border-radius:4px; }

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }

/* ---------- Top bar ---------- */
.topbar{
  background:linear-gradient(90deg, rgba(242,112,34,.12), rgba(42,55,133,.10));
  border-bottom:1px solid var(--border-soft);
  font-size:13px;
  color:var(--text-muted);
}
.topbar .container{ display:flex; justify-content:space-between; align-items:center; height:38px; }
.topbar a{ color:var(--pearl); }

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border-soft);
}
.nav .container{ display:flex; align-items:center; justify-content:space-between; height:74px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{
  width:38px; height:38px; border-radius:50%;
  background:conic-gradient(from 210deg, var(--pearl), var(--pearl-2), var(--pearl-3), var(--pearl));
  box-shadow:0 0 24px -4px rgba(242,112,34,.55);
  flex:none;
}
.brand-name{ font-family:'Readex Pro',sans-serif; font-weight:800; font-size:19px; }
.brand-name span{ color:var(--pearl); }
.brand-sub{ font-size:11px; color:var(--text-dim); margin-top:-2px; }

.nav-links{ display:flex; align-items:center; gap:8px; }
.nav-links a{
  padding:9px 16px; border-radius:999px; font-size:14.5px; color:var(--text-muted);
  transition:.2s;
}
.nav-links a:hover, .nav-links a.active{ color:var(--text); background:var(--surface-2); }

.nav-cta{
  position:relative;
  display:flex; align-items:center; gap:8px;
  background:var(--pearl); color:#FFFFFF; font-weight:700; font-size:14px;
  padding:10px 18px; border-radius:999px; border:none;
  box-shadow:0 8px 24px -8px rgba(242,112,34,.5);
  transition:transform .15s ease;
}
.nav-cta:hover{ transform:translateY(-1px); }

.nav-toggle{ display:none; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 24px; border-radius:999px; font-weight:700; font-size:15px;
  border:1px solid var(--border); background:var(--surface-2); color:var(--text);
  transition:.18s ease;
}
.btn:hover{ border-color:var(--pearl); color:var(--pearl); }
.btn-primary{
  background:linear-gradient(120deg, var(--pearl), #4FD3B8);
  color:#FFFFFF; border:none;
  box-shadow:0 10px 30px -10px rgba(242,112,34,.55);
}
.btn-primary:hover{ filter:brightness(1.06); color:#FFFFFF; transform:translateY(-1px); }
.btn-whatsapp{
  background:linear-gradient(120deg,#2FD06E,#1EA956); color:#FFFFFF; border:none;
  box-shadow:0 10px 30px -10px rgba(37,197,123,.55);
}
.btn-whatsapp:hover{ color:#FFFFFF; filter:brightness(1.05); }
.btn-ghost{ background:transparent; }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.45; cursor:not-allowed; }
.btn[disabled]:hover{ transform:none; border-color:var(--border); color:var(--text); }

/* ---------- Hero (signature) ---------- */
.hero{
  position:relative; overflow:hidden;
  padding:96px 0 84px;
  border-bottom:1px solid var(--border-soft);
}
.hero-orb{
  position:absolute; inset:auto -220px -260px auto; left:-160px; top:-160px;
  width:560px; height:560px; border-radius:50%;
  background:radial-gradient(circle at 32% 30%, rgba(242,112,34,.35), rgba(42,55,133,.16) 45%, transparent 70%);
  filter:blur(10px);
  animation:drift 14s ease-in-out infinite alternate;
}
.hero-ring{
  position:absolute; right:-120px; top:40px; width:420px; height:420px; border-radius:50%;
  background:conic-gradient(from 120deg, rgba(242,112,34,.18), rgba(42,55,133,.20), rgba(255,181,71,.14), rgba(242,112,34,.18));
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 90px), #000 calc(100% - 89px));
  mask:radial-gradient(farthest-side, transparent calc(100% - 90px), #000 calc(100% - 89px));
  opacity:.55;
}
@keyframes drift{ to{ transform:translate(20px,-24px) scale(1.05); } }
@media (prefers-reduced-motion: reduce){ .hero-orb{ animation:none; } }

.hero .container{ position:relative; z-index:2; display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; color:var(--pearl); background:rgba(242,112,34,.09);
  border:1px solid rgba(242,112,34,.28); padding:6px 14px; border-radius:999px; margin-bottom:18px;
}
.hero h1{ font-size:44px; line-height:1.28; }
.hero h1 em{ font-style:normal; color:var(--pearl); }
.hero p{ color:var(--text-muted); font-size:16.5px; max-width:52ch; margin-top:16px; }
.hero-actions{ display:flex; gap:12px; margin-top:30px; flex-wrap:wrap; }

.hero-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:26px; box-shadow:var(--shadow);
}
.hero-card-row{ display:flex; align-items:center; justify-content:space-between; padding:13px 0; border-bottom:1px dashed var(--border-soft); }
.hero-card-row:last-child{ border-bottom:none; }
.hero-card-row b{ color:var(--pearl-2); }

/* ---------- Sections ---------- */
.section{ padding:72px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:34px; gap:16px; flex-wrap:wrap; }
.section-head h2{ font-size:28px; }
.section-head p{ color:var(--text-muted); margin-top:8px; font-size:15px; }
.link-more{ color:var(--pearl); font-weight:700; font-size:14.5px; white-space:nowrap; }

/* Category cards */
.cats{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.cat-card{
  position:relative; border-radius:var(--radius-lg); padding:32px; min-height:180px;
  border:1px solid var(--border); overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end;
  background:var(--surface);
}
.cat-card .tag{ position:absolute; top:24px; left:24px; font-size:44px; opacity:.9; }
.cat-card h3{ font-size:22px; margin-bottom:6px; }
.cat-card p{ color:var(--text-muted); font-size:14px; margin:0 0 14px; }
.cat-card .go{ color:var(--pearl); font-weight:700; font-size:14px; }
.cat-card:hover{ border-color:var(--pearl); transition:.2s; }

/* Product grid */
.grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:20px; }
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column; transition:.2s ease;
}
.card:hover{ border-color:var(--pearl); transform:translateY(-3px); box-shadow:0 18px 36px -20px rgba(242,112,34,.35); }
.card-img{
  aspect-ratio:1/1; background:var(--surface-2); display:flex; align-items:center; justify-content:center;
  font-size:40px; border-bottom:1px solid var(--border-soft);
  overflow:hidden; margin:0; padding:0;
}
.card-img img{
  width:100%; height:100%; object-fit:cover !important; border-radius:0; display:block;
}
.card-body{ padding:16px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.badge{
  align-self:flex-start; font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:999px;
  background:rgba(242,112,34,.10); color:var(--pearl); border:1px solid rgba(242,112,34,.25);
}
.badge.physical{ background:rgba(42,55,133,.10); color:var(--pearl-2); border-color:rgba(42,55,133,.28); }
.card-title{ font-size:15.5px; font-weight:700; min-height:44px; }
.card-price{ font-family:'Readex Pro',sans-serif; font-weight:800; color:var(--text); font-size:17px; margin-top:auto; }
.card-price small{ color:var(--text-dim); font-weight:400; font-size:12px; }
.card-cta{ margin-top:6px; text-align:center; padding:10px; font-size:14px; }

/* Filters */
.filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:30px; }
.filter-btn{
  padding:9px 18px; border-radius:999px; border:1px solid var(--border); background:var(--surface);
  color:var(--text-muted); font-size:14px; font-weight:700;
}
.filter-btn.active{ background:var(--pearl); color:#FFFFFF; border-color:var(--pearl); }

/* Banners */
.banner{
  border-radius:var(--radius-lg); border:1px solid var(--border);
  background:linear-gradient(120deg, rgba(242,112,34,.10), rgba(42,55,133,.08));
  padding:34px 40px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.banner h3{ font-size:21px; }
.banner p{ color:var(--text-muted); margin-top:6px; font-size:14.5px; }

/* Steps */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.step{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; }
.step .n{ font-family:'Readex Pro',sans-serif; font-weight:800; color:var(--pearl); font-size:13px; margin-bottom:10px; }
.step h4{ font-size:16.5px; margin-bottom:8px; }
.step p{ color:var(--text-muted); font-size:14px; }

/* ---------- Product page ---------- */
.breadcrumbs{ color:var(--text-dim); font-size:13.5px; padding:20px 0; display:flex; gap:8px; align-items:center; }
.breadcrumbs a{ color:var(--text-muted); }
.breadcrumbs a:hover{ color:var(--pearl); }

.product-layout{ display:grid; grid-template-columns:.85fr 1.15fr; gap:44px; padding-bottom:80px; }
.product-media{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; font-size:96px;
  position:sticky; top:148px; height:fit-content;
}
.product-title{ font-size:28px; margin:14px 0 6px; }
.product-price{ font-family:'Readex Pro',sans-serif; font-weight:800; font-size:26px; color:var(--pearl); margin:10px 0 22px; }
.product-desc{ margin:22px 0; }
.product-desc h4{ font-size:15px; color:var(--text-muted); margin-bottom:12px; font-weight:700; }
.product-desc li{ position:relative; padding-right:22px; margin-bottom:10px; font-size:15px; color:var(--text); }
.product-desc li::before{
  content:''; position:absolute; right:0; top:9px; width:7px; height:7px; border-radius:50%;
  background:var(--pearl);
}

.order-panel{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:26px; margin-top:10px;
}
.order-panel h4{ font-size:16px; margin-bottom:16px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13.5px; color:var(--text-muted); margin-bottom:8px; font-weight:700; }
.field select, .field input{
  width:100%; padding:12px 14px; border-radius:var(--radius-sm); border:1px solid var(--border);
  background:var(--bg-soft); color:var(--text); font-family:inherit; font-size:14.5px;
}
.field select:focus, .field input:focus{ border-color:var(--pearl); }
.qty-row{ display:flex; align-items:center; gap:12px; }
.qty-btn{
  width:38px; height:38px; border-radius:10px; border:1px solid var(--border); background:var(--surface-2);
  display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; color:var(--text);
}
.qty-val{ min-width:32px; text-align:center; font-weight:700; }
.pay-options{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.pay-opt{
  border:1px solid var(--border); background:var(--surface-2); border-radius:var(--radius-sm);
  padding:12px 8px; text-align:center; font-size:13px; font-weight:700; color:var(--text-muted);
}
.pay-opt.active{ border-color:var(--pearl); color:var(--pearl); background:rgba(242,112,34,.08); }
.summary{ border-top:1px dashed var(--border-soft); margin-top:18px; padding-top:16px; }
.summary-row{ display:flex; justify-content:space-between; font-size:14.5px; color:var(--text-muted); padding:5px 0; }
.summary-row.total{ color:var(--text); font-weight:800; font-size:17px; padding-top:10px; border-top:1px solid var(--border-soft); margin-top:8px; }
.note{ font-size:12.5px; color:var(--text-dim); margin-top:14px; line-height:1.8; }
.hint{ font-size:12.5px; color:var(--danger); margin-top:8px; display:none; }

/* ---------- Footer ---------- */
.footer{ border-top:1px solid var(--border-soft); padding:52px 0 28px; background:var(--bg-soft); margin-top:60px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:36px; }
.footer h5{ font-size:14px; margin-bottom:16px; color:var(--text); }
.footer p, .footer a{ color:var(--text-muted); font-size:14px; }
.footer ul li{ margin-bottom:10px; }
.footer ul a:hover{ color:var(--pearl); }
.footer-bottom{ margin-top:40px; padding-top:20px; border-top:1px solid var(--border-soft); color:var(--text-dim); font-size:12.5px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

.whatsapp-fab{
  position:fixed; bottom:22px; left:22px; z-index:60;
  width:56px; height:56px; border-radius:50%; background:linear-gradient(135deg,#2FD06E,#1EA956);
  display:flex; align-items:center; justify-content:center; color:#FFFFFF;
  box-shadow:0 14px 30px -8px rgba(37,197,123,.6);
  transition:transform .2s ease;
}
.whatsapp-fab:hover{ transform:scale(1.07); }
.whatsapp-fab svg{ width:30px; height:30px; }

.empty{ text-align:center; padding:70px 20px; color:var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width:1500px){
  .grid{ grid-template-columns:repeat(4,1fr); }
}
@media (max-width:1150px){
  .grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:980px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-ring{ display:none; }
  .grid{ grid-template-columns:repeat(2,1fr); }
  .cats{ grid-template-columns:1fr; }
  .product-layout{ grid-template-columns:1fr; }
  .product-media{ position:relative; top:auto; aspect-ratio:16/10; }
  .footer-grid{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .nav-links{ display:none; }
  .hero{ padding:56px 0 48px; }
  .hero h1{ font-size:32px; }
  .grid{ grid-template-columns:1fr 1fr; gap:14px; }
  .pay-options{ grid-template-columns:1fr; }
  .section{ padding:52px 0; }
}

/* ---------- Cart badge / icon ---------- */
.nav-icon-btn{
  position:relative; display:flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:50%; border:1px solid var(--border);
  background:var(--surface-2); font-size:18px; flex:none;
}
.cart-badge{
  position:absolute; top:-7px; left:-7px; min-width:20px; height:20px; padding:0 5px;
  border-radius:999px; background:#e5342a; color:#fff; font-size:11px; font-weight:800;
  display:none; align-items:center; justify-content:center; border:2px solid var(--bg);
  box-shadow:0 4px 10px -3px rgba(229,52,42,.9);
}

/* ---------- Hero carousel (signature, animated) ---------- */
.hero{ padding:0; }
.hero-slider{ position:relative; overflow:hidden; min-height:480px; display:flex; align-items:center; }
.hero-slide{
  position:absolute; inset:0; display:flex; align-items:center; opacity:0; visibility:hidden;
  transform:translateX(24px); transition:opacity .6s ease, transform .6s ease, visibility .6s;
  padding:96px 0 84px;
}
.hero-slide.active{ opacity:1; visibility:visible; transform:translateX(0); position:relative; }
.hero-slide .container{ position:relative; z-index:2; display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; width:100%; }
.hero-slide-media{
  aspect-ratio:1/1; max-width:340px; margin:0 0 0 auto; border-radius:var(--radius-lg);
  background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
  font-size:110px; box-shadow:var(--shadow);
}
.hero-dots{ position:absolute; bottom:22px; right:50%; transform:translateX(50%); z-index:5; display:flex; gap:8px; }
.hero-dot{ width:8px; height:8px; border-radius:50%; background:var(--border); border:none; padding:0; transition:.2s; }
.hero-dot.active{ background:var(--pearl); width:22px; border-radius:5px; }
.hero-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5; width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.92); border:1px solid var(--border); color:var(--text); font-size:16px;
  display:flex; align-items:center; justify-content:center; backdrop-filter:blur(6px);
}
.hero-arrow.prev{ right:20px; }
.hero-arrow.next{ left:20px; }

/* ---------- Cart page ---------- */
.cart-layout{ display:grid; grid-template-columns:1.6fr 1fr; gap:34px; align-items:start; padding-bottom:80px; }
.cart-item{
  display:grid; grid-template-columns:76px 1fr auto; gap:16px; align-items:center;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:14px; margin-bottom:14px;
}
.cart-item-img{
  width:76px; height:76px; border-radius:var(--radius-sm); background:var(--surface-2);
  display:flex; align-items:center; justify-content:center; font-size:30px; overflow:hidden;
}
.cart-item-img img{ width:100%; height:100%; object-fit:cover; }
.cart-item-name{ font-weight:700; font-size:15px; margin-bottom:4px; }
.cart-item-price{ color:var(--text-muted); font-size:13.5px; }
.cart-item-actions{ display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.cart-item-remove{ color:var(--danger); font-size:12.5px; font-weight:700; background:none; border:none; }
.cart-item-email{
  grid-column:1 / -1; margin-top:4px; padding-top:12px; border-top:1px dashed var(--border-soft);
}
.cart-item-email label{ font-size:12.5px; color:var(--text-muted); display:block; margin-bottom:6px; font-weight:700; }
.cart-item-email input{
  width:100%; padding:10px 12px; border-radius:var(--radius-sm); border:1px solid var(--border);
  background:var(--bg-soft); color:var(--text); font-family:inherit; font-size:14px;
}
.cart-section-label{ font-size:13px; font-weight:800; color:var(--pearl-2); margin:22px 0 10px; }
.cart-section-label:first-child{ margin-top:0; }

/* ---------- Admin panel ---------- */
.admin-shell{ display:grid; grid-template-columns:220px 1fr; gap:28px; padding:28px 0 80px; }
.admin-tabs{ display:flex; flex-direction:column; gap:6px; position:sticky; top:96px; height:fit-content; }
.admin-tab{
  padding:12px 16px; border-radius:var(--radius-sm); font-weight:700; font-size:14.5px; color:var(--text-muted);
  border:1px solid transparent; text-align:right;
}
.admin-tab.active{ background:var(--surface-2); color:var(--pearl); border-color:var(--border); }
.admin-panel{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px; display:none; }
.admin-panel.active{ display:block; }
.admin-panel h3{ font-size:19px; margin-bottom:6px; }
.admin-panel > p.hint-text{ color:var(--text-muted); font-size:13.5px; margin-bottom:22px; }
.hint-text{ color:var(--text-muted); font-size:12.5px; }

.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-grid .full{ grid-column:1 / -1; }
.field-sm label{ display:block; font-size:13px; color:var(--text-muted); margin-bottom:7px; font-weight:700; }
.field-sm input, .field-sm select, .field-sm textarea{
  width:100%; padding:11px 13px; border-radius:var(--radius-sm); border:1px solid var(--border);
  background:var(--bg-soft); color:var(--text); font-family:inherit; font-size:14px;
}
.field-sm textarea{ min-height:110px; resize:vertical; line-height:1.9; }
.field-sm input:focus, .field-sm select:focus, .field-sm textarea:focus{ border-color:var(--pearl); }
.field-check{ display:flex; align-items:center; gap:8px; font-size:14px; color:var(--text-muted); }
.image-toggle{ display:flex; gap:8px; margin-bottom:10px; }
.image-toggle button{
  flex:1; padding:8px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface-2);
  color:var(--text-muted); font-size:13px; font-weight:700;
}
.image-toggle button.active{ border-color:var(--pearl); color:var(--pearl); }
.image-preview{
  width:100%; aspect-ratio:16/9; border-radius:var(--radius-sm); border:1px dashed var(--border);
  background:var(--bg-soft); display:flex; align-items:center; justify-content:center; overflow:hidden; font-size:34px; margin-top:10px;
}
.image-preview img{ width:100%; height:100%; object-fit:cover; }

.admin-list{ margin-top:24px; display:flex; flex-direction:column; gap:10px; }
.admin-row{
  display:flex; align-items:center; gap:14px; background:var(--bg-soft); border:1px solid var(--border-soft);
  border-radius:var(--radius-sm); padding:12px 14px;
}
.admin-row-thumb{ width:44px; height:44px; border-radius:8px; background:var(--surface-2); display:flex; align-items:center; justify-content:center; font-size:20px; overflow:hidden; flex:none; }
.admin-row-thumb img{ width:100%; height:100%; object-fit:cover; }
.admin-row-info{ flex:1; min-width:0; }
.admin-row-title{ font-weight:700; font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.admin-row-sub{ color:var(--text-dim); font-size:12.5px; margin-top:2px; }
.admin-row-actions{ display:flex; gap:8px; flex:none; }
.icon-btn{
  width:34px; height:34px; border-radius:8px; border:1px solid var(--border); background:var(--surface-2);
  display:flex; align-items:center; justify-content:center; font-size:14px; color:var(--text-muted);
}
.icon-btn:hover{ color:var(--pearl); border-color:var(--pearl); }
.icon-btn.danger:hover{ color:var(--danger); border-color:var(--danger); }

.admin-toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; gap:12px; flex-wrap:wrap; }
.admin-publish-bar{
  position:sticky; bottom:0; margin-top:30px; padding:18px 22px; border-radius:var(--radius-lg);
  background:linear-gradient(120deg, rgba(242,112,34,.14), rgba(42,55,133,.10)); border:1px solid var(--border);
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
}
.admin-publish-bar p{ font-size:13px; color:var(--text-muted); margin:0; max-width:60ch; }
.save-indicator{ font-size:12.5px; color:var(--text-dim); }
.save-indicator.saved{ color:var(--pearl); }

@media (max-width:900px){
  .admin-shell{ grid-template-columns:1fr; }
  .admin-tabs{ position:static; flex-direction:row; overflow-x:auto; }
  .form-grid{ grid-template-columns:1fr; }
  .cart-layout{ grid-template-columns:1fr; }
  .hero-slide .container{ grid-template-columns:1fr; }
  .hero-slide-media{ display:none; }
}

/* ---------- Admin lock screen ---------- */
#lock-screen{
  position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(circle at 20% 20%, rgba(242,112,34,.12), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(42,55,133,.10), transparent 45%),
    var(--bg);
  padding:20px;
}
.lock-card{
  width:100%; max-width:360px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:34px 28px; text-align:center; box-shadow:var(--shadow);
}
.lock-mark{ margin-bottom:22px; min-height:8px; }
.lock-mark img{ max-width:170px; max-height:110px; object-fit:contain; display:block; margin:0 auto; }
.lock-mark.as-text{ font-size:22px; font-weight:800; color:var(--pearl); }
.lock-card h3{ font-size:19px; margin-bottom:6px; }
.lock-card p{ color:var(--text-muted); font-size:13.5px; margin:0 0 20px; }
.lock-card input{
  width:100%; padding:13px 14px; border-radius:var(--radius-sm); border:1px solid var(--border);
  background:var(--bg-soft); color:var(--text); font-family:inherit; font-size:15px; text-align:center;
  letter-spacing:2px; margin-bottom:14px;
}
.lock-card input:focus{ border-color:var(--pearl); }
.lock-error{ display:none; color:var(--danger); font-size:13px; margin-top:12px; }

/* ---------- Full-image hero banners (added Sep 2026) ---------- */
.hero-slide--image{ padding:0; }
.hero-slide--image .hero-slide-media{ display:none; }
.hero-slide--image .hero-bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
}
.hero-slide--image .hero-scrim{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(270deg, rgba(5,12,22,0) 38%, rgba(5,12,22,.42) 74%, rgba(5,12,22,.78) 100%);
}
.hero-slide--image h1, .hero-slide--image p{ text-shadow:0 2px 14px rgba(0,0,0,.55); }
.hero-slide--image .container{ grid-template-columns:1fr; padding-top:90px; padding-bottom:80px; }

/* شريحة صورة فقط (بدون عنوان) — تظهر الصورة كاملة بدون أي قص */
.hero-slider--natural{ min-height:0; display:block; background:var(--bg); }
.hero-slider--natural .hero-slide{ padding:16px 0; display:block; width:100%; }
.hero-slider--natural .hero-dots{ bottom:6px; }
.hero-slide--bare{ padding:0; }
.hero-slide--bare .hero-bare-link{ display:block; line-height:0; width:100%; height:100%; }
/* الصورة تظهر كاملة بدون قص، وارتفاع البنر يتبع الصورة */
.hero-slider--natural .hero-slide--image .hero-bg{
  position:static; display:block; margin:0 auto;
  width:auto; max-width:100%; height:auto;
  max-height:min(46vh, 420px); object-fit:contain; border-radius:20px;
}
.hero-slider--natural .hero-slide--image .container{
  position:absolute; inset:0; display:flex; align-items:center; padding-top:0; padding-bottom:0;
}
@media (max-width:900px){
  .hero-slider--natural .hero-slide--image .container,
  .hero-slider--natural .hero-slide--image .hero-scrim{ display:none; }
}

/* زر "اطلب الآن" بنفس شكل زر الواتساب */
.nav-cta-wa{
  background:linear-gradient(120deg,#2FD06E,#1EA956); color:#FFFFFF;
  box-shadow:0 8px 24px -8px rgba(37,197,123,.55);
}
.nav-cta-wa:hover{ color:#FFFFFF; filter:brightness(1.05); }

/* ---------- ترقيم الصفحات ---------- */
.pager{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:34px; }
.page-btn{
  min-width:42px; padding:9px 15px; border-radius:999px;
  border:1px solid var(--border); background:var(--surface-2); color:var(--text);
  font-weight:700; font-size:14px; transition:.18s ease;
}
.page-btn:hover:not([disabled]){ border-color:var(--pearl); color:var(--pearl); }
.page-btn.active{ background:var(--pearl); color:#FFFFFF; border-color:var(--pearl); }
.page-btn[disabled]{ opacity:.4; cursor:not-allowed; }

/* ---------- بنر: صورة يسار + نص يمين ---------- */
.hero-slide--split{ padding:36px 0; }
.hero-slide--split .container{
  max-width:none; padding:0;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);
  gap:36px; align-items:center; width:100%;
}
/* النص باليمين — يحاذي حدود باقي الموقع */
.hero-slide--split .hero-copy{
  padding-right:max(24px, calc((100vw - 1440px) / 2 + 24px));
}
/* الصورة باليسار — ملتصقة بحافة الشاشة */
.hero-slide--split .hero-shot{
  display:flex; align-items:center; justify-content:flex-start;
  padding-left:clamp(18px, 3.2vw, 52px);
}
.hero-slide--split .hero-shot img{
  width:auto; height:auto; max-width:100%; max-height:min(62vh, 560px);
  border-radius:22px; display:block; box-shadow:0 18px 45px -22px rgba(21,25,54,.3);
}
.hero-slide--split h1{ font-size:38px; line-height:1.3; }
.hero-slide--split p{ margin-top:14px; }
@media (max-width:900px){
  .hero-slide--split{ padding:26px 0; }
  .hero-slide--split .container{ grid-template-columns:1fr; gap:20px; }
  .hero-slide--split .hero-copy{ padding:0 24px; }
  .hero-slide--split .hero-shot{ order:-1; }
  .hero-slide--split .hero-shot{ padding-left:16px; padding-right:16px; }
  .hero-slide--split .hero-shot img{ max-height:320px; border-radius:18px; }
  .hero-slide--split h1{ font-size:26px; }
}

/* اختيار منتجات مرتبطة بشريحة البنر */
.banner-products{
  margin-top:8px; max-height:200px; overflow-y:auto;
  border:1px solid var(--border); border-radius:12px; padding:10px;
  display:flex; flex-direction:column; gap:6px; background:var(--surface);
}
.bp-item{ display:flex; align-items:center; gap:9px; font-size:14px; cursor:pointer; }
.bp-item input{ width:16px; height:16px; accent-color:var(--pearl); }

.bp-toolbar{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:8px; }
.bp-toolbar input[type=search]{ flex:1 1 200px; min-width:160px; }
.bp-btn{ padding:8px 14px; font-size:13px; }

/* ---------- روابط التواصل الاجتماعي ---------- */
.social-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.social-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 16px; border-radius:999px; font-weight:700; font-size:13.5px;
  border:1px solid var(--border); background:var(--surface-2); color:var(--text);
  transition:.18s ease;
}
.social-btn span{
  width:20px; height:20px; border-radius:6px; display:inline-flex;
  align-items:center; justify-content:center; font-size:12px; color:#fff;
}
.social-btn.fb span{ background:#1877F2; }
.social-btn.ig span{ background:linear-gradient(45deg,#F58529,#DD2A7B,#8134AF); }
.social-btn:hover{ border-color:var(--pearl); color:var(--pearl); transform:translateY(-1px); }

/* ---------- معرض صور المنتج (لوحة التحكم) ---------- */
.gallery-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(96px,1fr)); gap:10px;
  margin-top:10px; padding:10px; border:1px solid var(--border); border-radius:12px; background:var(--surface);
}
.gallery-item{ position:relative; aspect-ratio:1/1; border-radius:10px; overflow:hidden; border:1px solid var(--border); }
.gallery-item.primary{ border-color:var(--pearl); box-shadow:0 0 0 2px rgba(242,112,34,.25); }
.gallery-item img{ width:100%; height:100%; object-fit:cover; display:block; }
.gallery-actions{ position:absolute; inset:auto 0 0 0; display:flex; gap:4px; justify-content:center; padding:4px; background:rgba(5,12,22,.72); }
.gallery-btn{ border:none; background:rgba(255,255,255,.14); color:#fff; border-radius:6px; padding:3px 7px; font-size:12px; cursor:pointer; }
.gallery-btn.danger{ background:rgba(239,68,68,.75); }
.gallery-tag{ font-size:11px; color:var(--pearl); font-weight:700; align-self:center; }

/* ---------- صور مصغّرة بصفحة المنتج ---------- */
.thumbs{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.thumb{
  width:72px; height:72px; border-radius:12px; overflow:hidden; padding:0;
  border:1px solid var(--border); background:var(--surface); cursor:pointer; transition:.18s ease;
}
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumb.active{ border-color:var(--pearl); box-shadow:0 0 0 2px rgba(242,112,34,.28); }

/* ---------- صندوق التقسيط ---------- */
.inst-box{
  margin-top:20px; padding:18px 20px; border-radius:16px;
  border:1px solid rgba(242,112,34,.35); background:rgba(242,112,34,.07);
}
.inst-box h4{ font-size:15.5px; margin-bottom:12px; color:var(--pearl); }
.inst-row{ display:flex; justify-content:space-between; gap:12px; padding:7px 0; font-size:14.5px; border-bottom:1px dashed var(--border-soft); }
.inst-row:last-of-type{ border-bottom:none; }
.inst-row b{ color:var(--text); }
.inst-note{ margin-top:10px; font-size:13px; color:var(--text-muted); }
.card-inst{ font-size:12.5px; color:var(--pearl); font-weight:700; margin-top:-4px; margin-bottom:8px; }

/* إظهار/إخفاء كود الدخول */
.lock-input-wrap{ position:relative; }
.lock-input-wrap input{ padding-left:44px !important; }
.lock-input-wrap button{
  position:absolute; left:8px; top:8px; width:32px; height:32px; border:none;
  background:transparent; color:var(--text-muted); font-size:16px; cursor:pointer; border-radius:8px;
}
.lock-input-wrap button:hover{ background:var(--surface-2); color:var(--pearl); }

/* تكبير صورة المنتج عند مرور الماوس (مثل أمازون) */
@media (hover:hover){
  .product-media{ overflow:hidden; cursor:zoom-in; }
  .product-media img{ transition:transform .18s ease; will-change:transform; }
  .product-media.zooming img{ transform:scale(2.3); transition:transform .08s linear; }
}

/* نوع/حالة الجهاز */
.card-cond{ font-size:12.5px; color:var(--text-muted); margin:-2px 0 6px; }
.product-cond{
  display:inline-block; margin:2px 0 8px; padding:4px 12px; border-radius:999px;
  background:var(--surface-2); border:1px solid var(--border); font-size:13px; color:var(--text-muted);
}

/* ---------- تخطيط المتجر مع شريط الأقسام ---------- */
.shop-layout{ display:grid; grid-template-columns:250px 1fr; gap:28px; align-items:start; }
.cat-sidebar{
  position:sticky; top:148px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); padding:18px 16px;
}
.cat-sidebar h4{ font-size:14px; color:var(--text-muted); margin-bottom:12px; font-weight:700; }
.cat-link{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:9px 12px; border-radius:10px; font-size:14px; color:var(--text);
  transition:.16s ease; margin-bottom:2px;
}
.cat-link span{ font-size:11.5px; color:var(--text-dim); background:var(--surface-2); padding:2px 8px; border-radius:999px; }
.cat-link:hover{ background:var(--surface-2); color:var(--pearl); }
.cat-link.active{ background:var(--pearl); color:#FFFFFF; font-weight:700; }
.cat-link.active span{ background:rgba(0,0,0,.15); color:#FFFFFF; }
.cat-link.sub{ font-size:13.5px; padding-right:26px; color:var(--text-muted); }
.cat-children{ display:none; }
.cat-children.open{ display:block; }
.cat-sidebar:hover .cat-children{ display:block; }
.cat-sep{ height:1px; background:var(--border); margin:10px 4px; }
.filter-btn.sub{ font-size:13px; opacity:.9; }

@media (max-width:980px){
  .shop-layout{ grid-template-columns:1fr; }
  .cat-sidebar{ position:static; }
  .cat-sidebar nav{ display:flex; flex-wrap:wrap; gap:8px; }
  .cat-link{ margin-bottom:0; border:1px solid var(--border); }
  .cat-children{ display:flex !important; flex-wrap:wrap; gap:8px; width:100%; }
  .cat-sep{ display:none; }
}

/* صور المنتجات: مربّعة ومرتبة بكل الواجهة — يظهر جزء مربع من الصورة بدون تصغير */
.product-media{ aspect-ratio:1/1 !important; padding:0; overflow:hidden; }
.product-media img{ width:100%; height:100%; object-fit:cover !important; border-radius:inherit; }
@media (max-width:980px){
  .product-media{ aspect-ratio:1/1 !important; }
}

/* =========================================================================
   تحسينات الهاتف
   ========================================================================= */
html{ -webkit-text-size-adjust:100%; }
body{ overflow-x:hidden; }
a, button{ -webkit-tap-highlight-color: rgba(242,112,34,.18); }

.card-title, .product-title, .cart-item-title{ overflow-wrap:anywhere; word-break:break-word; }
.card-body{ min-width:0; }

@media (max-width:900px){
  .nav .container{ position:relative; height:66px; gap:8px; }
  .nav-toggle{
    display:inline-flex !important; align-items:center; justify-content:center;
    width:40px; height:40px; border-radius:12px; border:1px solid var(--border);
    background:var(--surface-2); color:var(--text); font-size:17px; cursor:pointer; flex:none;
  }
  .nav-links{
    display:none; position:absolute; top:64px; right:0; left:0; z-index:80;
    background:var(--surface); border:1px solid var(--border); border-radius:16px;
    flex-direction:column; padding:8px; gap:2px; box-shadow:0 24px 48px -24px rgba(21,25,54,.22);
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:13px 14px; border-radius:12px; font-size:15px; }
  .brand-sub{ display:none; }
  .nav-cta{ padding:9px 13px; font-size:13px; }

  /* شريط الأقسام يصير شريط أفقي ينسحب */
  .cat-sidebar{ padding:12px; }
  .cat-sidebar h4{ margin-bottom:8px; }
  .shop-layout{ min-width:0; }
  .shop-layout > *{ min-width:0; }
  .cat-sidebar{ min-width:0; max-width:100%; overflow:hidden; }
  .cat-sidebar nav{ flex-wrap:nowrap; overflow-x:auto; width:100%; max-width:100%; padding-bottom:4px; -webkit-overflow-scrolling:touch; }
  .cat-sidebar nav::-webkit-scrollbar{ height:4px; }
  .cat-link{ white-space:nowrap; flex:none; }
  .cat-children{ display:contents !important; }

  /* أزرار صفحة المنتج تحت بعض وبعرض كامل */
  .order-panel .btn{ width:100%; flex:none !important; }
  .order-panel > div[style*="display:flex"]{ flex-direction:column; }

  /* مسافات أهدأ */
  .section{ padding:38px 0; }
  .container{ padding:0 16px; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:8px; }
  h2{ font-size:22px; }
  .grid{ gap:12px; }
  .card-body{ padding:12px 12px 14px; gap:6px; }
  .card-title{ font-size:14px; line-height:1.5; }
  .card-price{ font-size:15px; }
  .card-cta{ padding:10px 14px; font-size:13.5px; }
  .badge{ font-size:10.5px; padding:3px 8px; }

  /* زر الواتساب العائم ما يغطي المحتوى */
  .whatsapp-fab{ width:50px; height:50px; font-size:20px; bottom:16px; }
  body{ padding-bottom:72px; }

  .pager{ margin-top:24px; }
  .page-btn{ min-width:38px; padding:8px 12px; font-size:13px; }

  .footer-grid{ gap:26px; }
  .social-row{ margin-top:12px; }
}

@media (max-width:560px){
  .brand-name{ font-size:15.5px; white-space:nowrap; }
  .brand-mark{ width:32px !important; height:32px !important; }
  .nav-cta{ white-space:nowrap; padding:8px 12px; font-size:12.5px; }
  .nav .container{ gap:6px; height:60px; }
  .nav-icon-btn{ width:38px; height:38px; }
  .nav-toggle{ width:38px !important; height:38px !important; }
  .nav-links{ top:58px; }
}

@media (max-width:520px){
  .grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .card-title{ font-size:13px; }
  .nav-cta span, .nav-cta{ font-size:12.5px; }
  .product-title{ font-size:21px; }
  .product-price{ font-size:22px; }
  .inst-row{ font-size:13.5px; }
  .thumb{ width:60px; height:60px; }
}

/* =========================================================================
   البنر على الهاتف — الصورة لوحدها بشكل نظيف
   ========================================================================= */
.hero-shot-link{ display:block; line-height:0; width:100%; }

@media (max-width:900px){
  .hero-slider{ min-height:0 !important; display:block; }
  .hero-slide{ padding:14px 0 !important; }
  .hero-slide--split .container{ grid-template-columns:1fr !important; gap:0 !important; padding:0 16px !important; }
  .hero-slide--split .hero-copy{ display:none !important; }
  .hero-slide--split .hero-shot{ padding:0 !important; order:0; }
  .hero-slide--split .hero-shot img{
    width:100% !important; height:auto !important; max-height:none !important;
    border-radius:16px !important; box-shadow:0 12px 30px -18px rgba(21,25,54,.2);
  }
  .hero-arrow{ display:none !important; }
  .hero-dots{ bottom:2px; }
  .hero-slider--natural .hero-slide--image .hero-bg{ max-height:none !important; border-radius:16px; }

  /* فلاتر الأقسام بالرئيسية: شريط أفقي ينسحب */
  #home-filters{ flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; -webkit-overflow-scrolling:touch; margin-bottom:16px; }
  #home-filters .filter-btn{ white-space:nowrap; flex:none; }
}

/* أزرار الكروت تتحاذى بالأسفل مهما اختلف طول الاسم */
.card{ height:100%; }
.card-cta{ margin-top:auto; }

/* أسهم البنر: تمنع انعكاس الرمز بالاتجاه العربي */
.hero-arrow{ direction:ltr; unicode-bidi:isolate; font-size:15px; }

/* =========================================================================
   ترتيب المنطقة العلوية بالهاتف
   ========================================================================= */
@media (max-width:700px){
  .nav .container{ height:58px; gap:8px; }
  .brand-mark{ width:30px !important; height:30px !important; }
  .brand-name{ font-size:14.5px; }
  .nav-icon-btn, .nav-toggle{ width:36px !important; height:36px !important; font-size:15px; }
  .nav-links{ top:54px; }
  .breadcrumbs{ font-size:12px; padding:10px 0; }
  .section{ padding:26px 0; }
  .section-head{ margin-bottom:14px; }
  h1{ font-size:24px; }
  h2{ font-size:20px; }
  .section-head p, .page-sub{ font-size:13px; }
  .hero-slide{ padding:10px 0 !important; }
  .hero-dots{ bottom:0; }
  .hero-dot{ width:6px; height:6px; }
  .hero-dot.active{ width:18px; }
}

@media (max-width:480px){
  /* زر الطلب يصير أيقونة فقط حتى ما ياخذ مساحة */
  .nav-cta{ font-size:0 !important; padding:0 !important; width:36px; height:36px; justify-content:center; }
  .nav-cta::after{ content:"📱"; font-size:16px; }
  .brand-name{ font-size:13.5px; }
  .container{ padding:0 14px; }
}

@media (max-width:700px){
  .section-head{ gap:4px !important; margin-bottom:12px; }
  .section-head p{ margin:0; }
  .link-more{ font-size:13px; }
  #home-filters{ margin-top:4px; margin-bottom:14px; }
  .hero{ margin-bottom:2px; }
}

/* ضمان عدم تكسّر الشريط العلوي على الهواتف الضيقة */
.nav .container{ flex-wrap:nowrap; }
.brand{ min-width:0; overflow:hidden; }
.brand > div{ min-width:0; }
.brand-name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nav-cta{ white-space:nowrap; flex:none; }
.nav-icon-btn, .nav-toggle{ flex:none; }

@media (max-width:400px){
  .brand-name{ font-size:12.5px; }
  .brand-mark{ width:26px !important; height:26px !important; }
  .nav .container{ height:54px; gap:6px; }
  .nav-icon-btn, .nav-toggle, .nav-cta{ width:32px !important; height:32px !important; }
  .nav-links{ top:50px; }
  .container{ padding:0 12px; }
  .grid{ gap:9px; }
  .card-body{ padding:10px 10px 12px; }
  .card-title{ font-size:12.5px; }
  .card-price{ font-size:14px; }
  .card-cta{ padding:9px 10px; font-size:12.5px; }
}

/* نقاط البنر أكبر وأسهل بالضغط على الهاتف */
@media (max-width:900px){
  .hero-dots{ bottom:4px; gap:10px; padding:6px 10px; border-radius:999px; background:rgba(5,12,22,.45); backdrop-filter:blur(4px); }
  .hero-dot{ width:9px; height:9px; }
  .hero-dot.active{ width:26px; }
}

/* ---------- زر مشاركة المنتج ---------- */
.share-btn{
  position:absolute; top:12px; left:12px; z-index:5;
  width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(5,12,22,.62); color:#fff; border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(8px); cursor:pointer; transition:.18s ease;
  box-shadow:0 8px 20px -10px rgba(21,25,54,.2);
}
.share-btn:hover{ background:var(--pearl); color:#FFFFFF; border-color:var(--pearl); transform:translateY(-1px); }
.share-btn:active{ transform:scale(.94); }
.share-toast{
  position:absolute; top:62px; left:12px; z-index:6;
  background:var(--pearl); color:#FFFFFF; font-size:12.5px; font-weight:700;
  padding:7px 12px; border-radius:999px; opacity:0; pointer-events:none;
  transform:translateY(-6px); transition:.22s ease; white-space:nowrap;
}
.share-toast.show{ opacity:1; transform:translateY(0); }
@media (max-width:700px){
  .share-btn{ width:38px; height:38px; top:10px; left:10px; }
  .share-toast{ top:54px; left:10px; }
}

@media (max-width:900px){
  .product-layout{ gap:18px; padding-bottom:46px; }
  .breadcrumbs{ padding-bottom:6px; }
}

/* ===== إشعار التحديث اللحظي ===== */
.live-toast{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 24px);
  background: #111827;
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
  max-width: calc(100% - 32px);
  text-align: center;
}
.live-toast.show{ opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px){
  .live-toast{ bottom: 84px; font-size: .88rem; padding: 10px 16px; }
}


.filter-sep{
  display: inline-block; width: 1px; height: 22px;
  background: var(--border); margin: 0 6px; align-self: center;
}
.filter-btn.sub{ font-size: 13.5px; opacity: .95; }
@media (max-width: 560px){ .filter-sep{ display: none; } }

/* =========================================================================
   شريط الأقسام (سطر ثاني تحت شريط الموقع) — الأقسام الرئيسية فقط
   وكل قسم تنزل منه أقسامه الفرعية
   ========================================================================= */
.brand{ flex: none; }
.brand-name{ white-space: nowrap; }

.catbar{
  position: sticky; top: 74px; z-index: 45;
  background: rgba(7,11,20,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.catbar.hidden{ display: none; }
.catbar .container{ position: relative; }
.catbar-scroll{
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px; padding: 7px 0;
}
.nav-cat{ position: relative; }
.nav-cat-link{
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--text-muted); white-space: nowrap;
  transition: .2s; cursor: pointer;
}
.nav-cat-link:hover,
.nav-cat-link.active,
.nav-cat.active > .nav-cat-link{ color: var(--text); background: var(--surface-2); }
.nav-caret{ font-style: normal; font-size: 10px; opacity: .6; }

.nav-drop{
  position: absolute; top: calc(100% + 7px); right: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 6px; display: none; z-index: 210;
  box-shadow: 0 24px 48px -22px rgba(21,25,54,.22);
}
.nav-cat:hover > .nav-drop{ display: block; }
.nav-drop a{
  display: block; padding: 9px 12px; border-radius: 10px;
  font-size: 14px; white-space: nowrap; color: var(--text-muted);
}
.nav-drop a:hover, .nav-drop a.active{ color: var(--text); background: var(--surface-2); }

.catbar-subs{ display: none; }

@media (max-width: 900px){
  .catbar{ top: 64px; }
  .catbar-scroll{
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
    padding: 8px 0; gap: 6px;
  }
  .catbar-scroll::-webkit-scrollbar{ display: none; }
  .nav-cat-link{
    padding: 8px 13px; font-size: 13.5px;
    border: 1px solid var(--border); background: var(--surface);
  }
  .nav-cat:hover > .nav-drop{ display: none; }
  .nav-drop{ display: none !important; }
  .catbar-subs{
    display: none; flex-wrap: wrap; gap: 6px;
    padding: 0 0 9px; margin-top: -2px;
  }
  .catbar-subs.open{ display: flex; }
  .catbar-subs a{
    padding: 7px 12px; border-radius: 999px; font-size: 13px;
    color: var(--text-muted); background: var(--surface-2);
    border: 1px solid var(--border-soft); white-space: nowrap;
  }
  .catbar-subs a.active{ color: var(--text); background: var(--pearl); color: #FFFFFF; font-weight: 700; }
}
@media (max-width: 700px){ .catbar{ top: 58px; } }
@media (max-width: 480px){ .catbar{ top: 54px; } }
@media (max-width: 400px){ .catbar{ top: 50px; } }

/* ===== تبويب استيراد المنتجات بلوحة التحكم ===== */
#panel-import .admin-box{
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; background: var(--surface-2);
}
#panel-import .field-row{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
}
#panel-import .check-row{
  display: flex; align-items: center; gap: 9px; margin: 10px 0;
  font-size: 14.5px; cursor: pointer;
}
#panel-import .check-row input{ width: auto; }
#panel-import .admin-row{ margin-bottom: 6px; }
#panel-import #imp-preview{ max-height: 460px; overflow-y: auto; }


/* =========================================================================
   البحث — زر دائري يتمدد لخانة بحث مع نتائج حيّة
   ========================================================================= */
.catbar-row{ display: flex; align-items: center; gap: 10px; }
.catbar-row > .catbar-scroll{ flex: 1 1 auto; min-width: 0; }

.site-search{ position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }

.ss-toggle{
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.ss-toggle:hover{ background: var(--surface-2); color: var(--text); }
.site-search.open .ss-toggle{
  background: var(--pearl); color: #FFFFFF; border-color: var(--pearl);
  transform: scale(1.06);
}

.ss-form{
  display: flex; align-items: center;
  max-width: 0; opacity: 0; overflow: hidden;
  background: var(--surface); border: 1px solid transparent; border-radius: 999px;
  transition: max-width .34s cubic-bezier(.22,1,.36,1), opacity .22s ease, border-color .25s ease;
}
.site-search.open .ss-form{ max-width: 290px; opacity: 1; border-color: var(--border); }
.site-search.open .ss-form:focus-within{ border-color: var(--pearl); box-shadow: 0 0 0 3px rgba(242,112,34,.14); }
.ss-form input{
  width: 244px; flex: none; border: none; background: transparent; color: var(--text);
  font-family: inherit; font-size: 14px; padding: 9px 14px; outline: none;
}
.ss-form input::placeholder{ color: var(--text-dim); }
.ss-form input::-webkit-search-cancel-button{ -webkit-appearance: none; }
.ss-clear{
  flex: none; width: 26px; height: 26px; margin-inline-end: 5px; border: none;
  background: transparent; color: var(--text-dim); font-size: 14px; cursor: pointer;
  border-radius: 50%; display: none; align-items: center; justify-content: center;
}
.ss-clear:hover{ background: var(--surface-2); color: var(--text); }
.site-search.has-text .ss-clear{ display: inline-flex; }

/* النتائج الحيّة */
.ss-results{
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  width: 380px; max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 6px; z-index: 300; display: none;
  box-shadow: 0 28px 56px -22px rgba(21,25,54,.22);
}
.site-search.open .ss-results.show{ display: block; animation: ssIn .18s ease both; }
@keyframes ssIn{ from{ opacity:0; transform: translateY(-6px);} to{ opacity:1; transform:none;} }
.ss-item{
  display: flex; align-items: center; gap: 11px; padding: 8px;
  border-radius: 12px; color: var(--text-muted); transition: .15s;
}
.ss-item:hover, .ss-item.active{ background: var(--surface-2); color: var(--text); }
.ss-item .ss-thumb{
  width: 48px; height: 48px; border-radius: 11px; flex: none;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden;
}
.ss-item .ss-thumb.has-img{ background: #fff; border-color: transparent; }
.ss-item .ss-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.ss-item .ss-txt{ flex: 1; min-width: 0; }
.ss-item .ss-name{
  display: block; font-size: 13.5px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-item .ss-meta{ display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.ss-item .ss-price{
  flex: none; font-size: 13px; font-weight: 800; color: var(--pearl);
  white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
}
.ss-item .ss-price-old{
  font-size: 11.5px; font-weight: 600; color: #ff5f56;
  text-decoration: line-through; text-decoration-color: #ff5f56;
}
.ss-item .ss-off{ color: #E5342A; font-weight: 800; }
.ss-more{
  display: block; text-align: center; padding: 11px; margin-top: 4px;
  font-size: 13px; font-weight: 700; color: var(--pearl);
  border-top: 1px solid var(--border-soft);
}
.ss-more:hover{ background: var(--surface-2); border-radius: 10px; }
.ss-empty{ padding: 22px 16px; text-align: center; color: var(--text-dim); font-size: 13.5px; }

@media (max-width: 900px){
  .catbar-row{ flex-direction: row-reverse; gap: 8px; }
  /* نخلي مرجع التموضع هو الشريط نفسه مو الحاوية */
  .catbar .container{ position: static; }
  .site-search{ position: static; }
  .catbar.searching .container{ padding-bottom: 54px; }
  .site-search.open .ss-form{
    position: absolute; inset-inline: auto; left: 16px; right: 16px;
    top: calc(100% - 50px); max-width: none; width: auto; z-index: 260;
  }
  .ss-form input{ width: 100%; flex: 1 1 auto; min-width: 0; }
  .ss-results{ inset-inline: auto; left: 16px; right: 16px; width: auto; max-width: none; top: calc(100% + 8px); }
}

/* شريط نتائج البحث بصفحة المنتجات */
.search-note{
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px;
}
.search-note b{ color: var(--pearl); }

/* ===== بديل الصورة الناقصة ===== */
.img-ph{
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(242,112,34,.10), transparent 60%),
    linear-gradient(150deg, var(--surface-2), var(--surface));
  color: var(--text-dim); text-align: center; padding: 12px;
}
.img-ph-ic{ font-size: clamp(30px, 22%, 54px); line-height: 1; opacity: .85; }
.img-ph-tx{
  font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===== الخصم ===== */
.price-now{ color: inherit; }
.price-old{
  color: #ff5f56; font-size: .74em; font-weight: 600;
  margin-inline-start: 8px; text-decoration: line-through;
  text-decoration-color: #ff5f56; opacity: .95;
}
.disc-badge{
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3;
  background: #e5342a; color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 10px; border-radius: 999px; letter-spacing: .2px;
  box-shadow: 0 6px 16px -6px rgba(229,52,42,.9);
}
.card-img{ position: relative; }
.product-media .disc-badge{ top: 14px; inset-inline-start: 14px; font-size: 13px; padding: 6px 12px; }
.product-save{
  display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700;
  color: #E5342A; background: rgba(229,52,42,.12);
  border: 1px solid rgba(229,52,42,.35); border-radius: 999px; padding: 4px 12px;
}

/* ===== خانة اختيار مع بحث حي ===== */
.combo{ position: relative; }
.combo-list{
  position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 120;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 6px; max-height: 260px; overflow-y: auto; display: none;
  box-shadow: 0 24px 48px -22px rgba(21,25,54,.22);
}
.combo.open .combo-list{ display: block; }
.combo-opt{
  display: block; width: 100%; text-align: start; padding: 9px 12px;
  border: none; background: transparent; color: var(--text-muted);
  font-family: inherit; font-size: 14px; border-radius: 10px; cursor: pointer;
}
.combo-opt:hover, .combo-opt.active{ background: var(--surface-2); color: var(--text); }
.combo-empty{ padding: 14px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* ===== معلومات المكتب بالفوتر ===== */
.office-box{ margin-top: 10px; font-size: 13.5px; line-height: 1.8; }
.office-box .office-addr{ color: var(--text-muted); }
.office-map{
  display: inline-flex; align-items: center; gap: 7px; margin-top: 7px;
  color: var(--pearl); font-weight: 700; font-size: 13.5px;
}
.office-map:hover{ text-decoration: underline; }

/* ===== صندوق معلومات التوصيل بالسلة ===== */
.delivery-box{
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); padding: 14px 16px; margin-bottom: 14px;
}
.delivery-box h5{
  margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--text);
}
.delivery-box .field{ margin-bottom: 11px; }
.delivery-box .field:last-child{ margin-bottom: 0; }
.delivery-box textarea{
  width: 100%; resize: vertical; font-family: inherit; font-size: 14px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.delivery-box textarea:focus{ outline: none; border-color: var(--pearl); }

/* =========================================================================
   شريط التنويه المتحرك بأعلى الموقع — عدة حالات يفصلها شعار الموقع
   ========================================================================= */
.announce{
  position: relative; overflow: hidden;
  height: 44px;
  background: linear-gradient(90deg, #0d2a22, #10402f 45%, #0d2a22);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center;
  direction: ltr;              /* حتى يبدي الشريط من اليسار ويتحرك لليمين */
}
.announce.hidden{ display: none; }
.announce-track{
  display: flex; align-items: center; width: max-content;
  will-change: transform;
  animation-name: announceLoop;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes announceLoop{
  from{ transform: translateX(-50%); }
  to  { transform: translateX(0); }
}
.ann-item{
  white-space: nowrap; font-size: 14px; font-weight: 700;
  color: var(--pearl); padding: 0 6px;
  direction: rtl; unicode-bidi: isolate;
}
.ann-sep{
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin: 0 16px; border-radius: 50%;
  overflow: hidden; background: rgba(255,255,255,.06);
  border: 1px solid rgba(242,112,34,.35); font-size: 14px;
}
.ann-sep img{ width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@media (hover: hover) and (pointer: fine){
  .announce:hover .announce-track{ animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce){
  .announce-track{ animation: none; }
}
@media (max-width: 560px){
  .announce{ height: 38px; }
  .ann-item{ font-size: 12.5px; }
  .ann-sep{ width: 22px; height: 22px; margin: 0 11px; }
}

/* ===== فترة الضمان ===== */
.card-warranty{
  margin-top: 4px; font-size: 12px; font-weight: 700;
  color: var(--navy);
}
.product-warranty{
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--navy);
  background: rgba(42,55,133,.07); border: 1px solid rgba(42,55,133,.22);
  border-radius: 999px; padding: 5px 13px;
}
.cart-item-warranty{ margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--navy); }

#panel-settings textarea, #s-announce{
  width: 100%; resize: vertical; font-family: inherit; font-size: 14px;
  padding: 10px 12px; border-radius: 12px; line-height: 1.7;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
#panel-settings textarea:focus, #s-announce:focus{ outline: none; border-color: var(--pearl); }



/* =========================================================================
   SNIPER TECH — الهوية البصرية v2
   هيدر غامق (حبري) + شعار مفرّغ كبير + برتقالي "تصويب" + كروت نظيفة
   ========================================================================= */
:root{
  --ink: #0B0F24;
  --ink-2: #141A3A;
  --ink-3: #1D2550;
  --navy: #2A3785;
  --orange: #F27022;
  --orange-2: #FF8A3D;
  --orange-dark: #D65A0F;
  --bg: #F2F3F7;
  --text: #12162E;
  --text-muted: #5A6079;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 16px 40px -22px rgba(11,15,36,.35);
}
body{ background: var(--bg); font-family:'Readex Pro', sans-serif; font-weight:400; }
h1,h2,h3,h4,.display{ font-family:'Readex Pro', sans-serif; font-weight:700; }
::selection{ background: rgba(242,112,34,.25); }
:focus-visible{ outline-color: var(--orange); }

/* ---------- أزرار ---------- */
.btn{ border-radius: 6px; font-weight:600; }
.btn-primary{ background: var(--orange); color:#fff; box-shadow: 0 10px 22px -12px rgba(242,112,34,.8); }
.btn-primary:hover{ background: var(--orange-dark); color:#fff; filter:none; }
.btn:not(.btn-primary):not(.btn-whatsapp):hover{ border-color: var(--orange); color: var(--orange); }
.btn-whatsapp{ border-radius:6px; }

/* ---------- شريط التنويه ---------- */
.announce{ background: var(--orange); border:none; height:34px; }
.ann-item{ color:#fff; font-weight:500; font-size:13px; }
.ann-sep{ width:6px; height:6px; margin:0 18px; border-radius:50%; background:#fff; border:none; opacity:.85; }
.ann-sep img{ display:none; }

/* =========================================================================
   الهيدر الجديد
   ========================================================================= */
.sh{
  position: sticky; top: 0; z-index: 60;
  background: var(--ink);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.6);
}
.sh-row{
  display:flex; align-items:center; gap:28px;
  height: 96px;
}
.sh .brand{ flex:none; display:flex; align-items:center; overflow:visible; min-width:0; }
.brand-logo{
  display:block; height:62px; width:auto; max-width:280px;
  object-fit:contain; background:transparent; border-radius:0;
  filter: drop-shadow(0 0 18px rgba(242,112,34,.12));
}
.brand-name{ font-size:26px; font-weight:700; color:#fff; letter-spacing:1px; }
.brand-name span{ color: var(--orange); }

/* البحث: خانة عريضة دائماً ظاهرة */
.site-search.always{
  position:relative; flex:1 1 auto; max-width:620px; margin-inline:auto;
  display:flex; align-items:stretch; gap:0;
  background:#fff; border-radius:8px; height:48px;
  border:2px solid transparent; transition:border-color .2s;
}
.site-search.always:focus-within{ border-color: var(--orange); }
.site-search.always .ss-form{
  flex:1; max-width:none !important; opacity:1 !important; overflow:visible;
  background:transparent; border:none !important; box-shadow:none !important; border-radius:0;
  position:static !important; width:auto !important;
}
.site-search.always .ss-form input{ width:100%; flex:1; font-size:14.5px; padding:0 16px; height:44px; color:var(--text); }
.site-search.always .ss-toggle{
  width:56px; height:auto; border-radius:0 6px 6px 0; border:none;
  background: var(--orange); color:#fff; transform:none !important;
}
[dir="rtl"] .site-search.always .ss-toggle, .site-search.always .ss-toggle{ border-radius:6px 0 0 6px; }
.site-search.always .ss-toggle:hover{ background: var(--orange-dark); color:#fff; }
.site-search.always .ss-results{ top: calc(100% + 8px); inset-inline:0; width:auto; }
.site-search.always .ss-results.show{ display:block; animation: ssIn .18s ease both; }
.ss-item .ss-price{ color: var(--orange); }

.sh-actions{ display:flex; align-items:center; gap:14px; flex:none; }
.sh-call{
  display:flex; align-items:center; gap:10px; color:#fff;
}
.sh-call-ic{
  width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border:1.5px solid rgba(255,255,255,.2); color:#3DDC84;
}
.sh-call-tx{ display:flex; flex-direction:column; line-height:1.3; }
.sh-call-tx small{ font-size:11.5px; color: rgba(255,255,255,.55); }
.sh-call-tx b{ font-size:15px; font-weight:600; letter-spacing:.5px; text-align:right; }
.sh-call:hover .sh-call-ic{ border-color:#3DDC84; }

.sh-cart{
  position:relative; display:flex; align-items:center; gap:8px;
  height:46px; padding:0 18px; border-radius:8px;
  background: var(--orange); color:#fff; font-weight:600; font-size:14.5px;
  transition: background .2s;
}
.sh-cart:hover{ background: var(--orange-dark); }
.sh .cart-badge{
  top:-8px; left:-8px; background:#fff; color: var(--orange);
  border:2px solid var(--ink); box-shadow:none;
}
.sh .nav-toggle{ display:none; }

/* شريط الأقسام تحت الهيدر */
.catbar{
  position: static; top:auto;
  background: var(--ink-2);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: none; backdrop-filter:none;
}
.catbar.hidden{ display:block; }
.catbar-row{ display:flex; align-items:center; gap:6px; min-height:50px; }
.catbar .nav-links{ display:flex; gap:2px; flex:none; }
.catbar .nav-links a{
  color: rgba(255,255,255,.7); padding:14px 14px; border-radius:0; font-size:14px; font-weight:500;
  background:none !important; position:relative;
}
.catbar .nav-links a:hover, .catbar .nav-links a.active{ color:#fff; }
.catbar .nav-links a.active::after,
.catbar .nav-cat.active > .nav-cat-link::after,
.catbar .nav-cat-link.active::after{
  content:""; position:absolute; inset-inline:14px; bottom:0; height:3px; background: var(--orange); border-radius:3px 3px 0 0;
}
.catbar-div{ width:1px; height:22px; background: rgba(255,255,255,.14); margin:0 8px; flex:none; }
.catbar-scroll{ justify-content:flex-start; padding:0; gap:2px; flex:1; min-width:0; }
.catbar .nav-cat-link{
  position:relative; color:#fff; padding:14px 14px; border-radius:0; font-size:14px; font-weight:500;
  background:none !important;
}
.catbar .nav-cat-link:hover{ color: var(--orange-2); }
.nav-caret{ opacity:.5; }
.nav-drop{
  top:100%; border-radius:0 0 10px 10px; border:none; border-top:3px solid var(--orange);
  background:#fff; box-shadow: 0 24px 40px -20px rgba(11,15,36,.45);
}
.nav-drop a{ color: var(--text); border-radius:6px; }
.nav-drop a:hover, .nav-drop a.active{ color: var(--orange); background: rgba(242,112,34,.07); }

/* =========================================================================
   البنر
   ========================================================================= */
.hero{
  background: var(--ink);
  border:none; position:relative;
}
.hero::after{
  content:""; position:absolute; inset:auto 0 0 0; height:4px;
  background: linear-gradient(90deg, transparent, var(--orange) 30%, var(--orange) 70%, transparent);
  opacity:.9;
}
.hero-slide:not(.hero-slide--image):not(.hero-slide--split){
  background:
    radial-gradient(50% 80% at 18% 50%, rgba(242,112,34,.28), transparent 70%),
    radial-gradient(40% 60% at 90% 10%, rgba(42,55,133,.55), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding:84px 0 90px;
}
/* شبكة خفيفة بالخلفية */
.hero-slide:not(.hero-slide--image):not(.hero-slide--split)::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 90% at 30% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 90% at 30% 50%, #000, transparent);
}
.hero-orb, .hero-ring{ display:none; }
.hero h1{ color:#fff; font-size:50px; font-weight:700; line-height:1.25; }
.hero p{ color: rgba(255,255,255,.7); font-size:17px; }
.eyebrow{
  background:none; border:none; padding:0; border-radius:0;
  color: var(--orange); font-weight:600; letter-spacing:3px; font-size:13px;
}
.eyebrow::before{ content:""; width:28px; height:2px; background: var(--orange); display:inline-block; }
.hero .btn-primary{ padding:15px 30px; font-size:16px; }

/* شعار التصويب (crosshair) مكان الإيموجي */
.hero-slide-media{
  position:relative; background:none; border:none; box-shadow:none;
  width:340px; max-width:340px; aspect-ratio:1/1; border-radius:50%;
  font-size:110px; margin:0 auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
}
.hero-slide-media::before{
  content:""; position:absolute; inset:0; border-radius:50%;
  border:2px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle, rgba(242,112,34,.18) 0 34%, transparent 35%),
    radial-gradient(circle, transparent 0 58%, rgba(255,255,255,.1) 58.5% 59.5%, transparent 60%);
}
.hero-slide-media::after{
  content:""; position:absolute; inset:-14px; border-radius:50%;
  background:
    linear-gradient(var(--orange),var(--orange)) center top / 3px 44px no-repeat,
    linear-gradient(var(--orange),var(--orange)) center bottom / 3px 44px no-repeat,
    linear-gradient(var(--orange),var(--orange)) left center / 44px 3px no-repeat,
    linear-gradient(var(--orange),var(--orange)) right center / 44px 3px no-repeat;
  animation: aim 9s linear infinite;
}
@keyframes aim{ to{ transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .hero-slide-media::after{ animation:none; } }

.hero-arrow{
  top:50%; bottom:auto; transform:translateY(-50%);
  width:44px; height:44px; border-radius:6px;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); color:#fff;
}
.hero-arrow.prev{ right:18px; left:auto; }
.hero-arrow.next{ left:18px; right:auto; }
.hero-arrow:hover{ background: var(--orange); border-color: var(--orange); }
.hero-dots{ bottom:22px; }
.hero-dot{ background: rgba(255,255,255,.25); border-radius:2px; height:4px; width:18px; }
.hero-dot.active{ background: var(--orange); width:36px; border-radius:2px; }
.hero-slider--natural{ background: var(--ink); }
.hero-slider--natural .hero-slide--image .hero-bg{ border-radius:10px; }
.hero-slide--split{ background: var(--ink); }
.hero-slide--split .hero-shot img{ border-radius:10px; }

/* =========================================================================
   العناوين والأقسام
   ========================================================================= */
.section-head{ align-items:flex-end; border-bottom:1px solid #E1E3EB; padding-bottom:16px; margin-bottom:26px; }
.section-head h2{ color: var(--text); font-size:26px; font-weight:700; position:relative; }
.section-head h2::before{
  content:"◎ SNIPER"; display:block; font-size:11px; letter-spacing:3px; color: var(--orange);
  font-weight:600; margin-bottom:6px;
}
.section-head p{ color: var(--text-muted); }
.link-more{ color: var(--text); font-weight:600; border-bottom:2px solid var(--orange); padding-bottom:2px; }
.link-more:hover{ color: var(--orange); }

.filters{ gap:8px; }
.filter-btn{
  border-radius:6px; background:#fff; border:1px solid #E1E3EB; color: var(--text-muted);
  font-weight:500; padding:8px 16px;
}
.filter-btn:hover{ border-color: var(--text); color: var(--text); }
.filter-btn.active{ background: var(--ink); border-color: var(--ink); color:#fff; }
.filter-btn.sub.active{ background: var(--orange); border-color: var(--orange); }

/* =========================================================================
   كروت المنتجات
   ========================================================================= */
.grid{ gap:18px; }
.card{
  position:relative; background:#fff; border:1px solid #E6E8EF; border-radius:10px;
  box-shadow:none; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover{
  transform: translateY(-4px); border-color:#E6E8EF;
  box-shadow: 0 24px 40px -26px rgba(11,15,36,.45);
}
.card::before{
  content:""; position:absolute; top:0; inset-inline:0; height:3px; z-index:4;
  background: var(--orange); transform: scaleX(0); transform-origin:right; transition: transform .3s;
  border-radius:10px 10px 0 0;
}
.card:hover::before{ transform: scaleX(1); }
.card-img{
  background:#fff; border-bottom:none; aspect-ratio: 1/1; padding:14px;
}
.card-img img{ width:100%; height:100%; object-fit:contain !important; transition: transform .35s; }
.card:hover .card-img img{ transform: scale(1.05); }
.card-body{ padding:4px 16px 16px; gap:6px; }
.card-cat{ font-size:11.5px; color: var(--orange); font-weight:600; letter-spacing:.3px; }
.card-title{ font-size:14.5px; font-weight:500; min-height:44px; line-height:1.55; color: var(--text);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-title:hover{ color: var(--orange); }
.card-meta{ display:flex; flex-wrap:wrap; gap:6px; }
.card-meta span{ font-size:11.5px; color: var(--text-muted); background: var(--bg); padding:2px 8px; border-radius:4px; }
.card-foot{
  display:flex; align-items:flex-end; justify-content:space-between; gap:8px;
  margin-top:auto; padding-top:12px; border-top:1px dashed #E6E8EF;
}
.card-price{ margin:0; font-size:18px; font-weight:700; color: var(--text); display:flex; flex-direction:column; line-height:1.3; }
.card-price .price-old{ margin:0; font-size:12px; color:#9AA0B4; order:-1; }
.card-add{
  flex:none; display:inline-flex; align-items:center; gap:6px;
  height:40px; padding:0 12px; border-radius:6px; border:none;
  background: var(--ink); color:#fff; font-weight:600; font-size:13px; font-family:inherit;
  transition: background .2s, transform .15s;
}
.card-add:hover{ background: var(--orange); }
.card-add:active{ transform: scale(.94); }
.card-add.added{ background:#1EA956; }
.card-out{
  flex:none; height:40px; display:inline-flex; align-items:center; padding:0 12px;
  border-radius:6px; background:#F1F2F6; color:#9AA0B4; font-size:13px; font-weight:600;
}
.disc-badge{
  top:12px; inset-inline-start:12px; border-radius:4px; background: var(--orange);
  box-shadow:none; font-size:12px; padding:3px 8px;
}
.img-ph{ background: radial-gradient(70% 60% at 50% 40%, rgba(242,112,34,.09), transparent 70%), #fff; }

/* نفذت الكمية */
.card.is-soldout .card-img img, .card.is-soldout .card-img .img-ph{ filter: grayscale(1); opacity:.45; }
.card.is-soldout .card-price{ color:#9AA0B4; }
.soldout-ribbon{
  position:absolute; z-index:3; top:50%; inset-inline:0; transform: translateY(-50%);
  background: rgba(11,15,36,.88); color:#fff; text-align:center;
  font-weight:600; font-size:14px; padding:9px 0; letter-spacing:.5px;
}
.stock-pill{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; padding:5px 12px; border-radius:4px; margin:-8px 0 18px; }
.stock-pill.in{ color:#1EA956; background: rgba(30,169,86,.08); }
.stock-pill.out{ color:#fff; background: var(--ink); }
.soldout-panel{ border-top-color: var(--ink) !important; }
.soldout-tag{ display:inline-block; font-size:12px; font-weight:600; color:#fff; background: var(--ink); padding:2px 8px; border-radius:4px; margin:2px 0 4px; }
.cart-item.is-soldout{ opacity:.7; border-color: var(--ink); }

/* ترقيم الصفحات */
.page-btn{ border-radius:6px; background:#fff; border-color:#E1E3EB; }
.page-btn.active{ background: var(--ink); border-color: var(--ink); color:#fff; }
.page-btn:hover:not([disabled]){ border-color: var(--orange); color: var(--orange); }

/* خطوات الطلب */
.steps{ gap:0; background:#fff; border:1px solid #E6E8EF; border-radius:10px; overflow:hidden; }
.step{ background:none; border:none; border-radius:0; padding:28px; position:relative; }
.step + .step{ border-inline-start:1px solid #E6E8EF; }
.step .n{
  font-size:40px; font-weight:700; line-height:1; margin-bottom:14px;
  color: transparent; -webkit-text-stroke: 1.5px var(--orange);
}
.step h4{ color: var(--text); }
@media (max-width:980px){ .step + .step{ border-inline-start:none; border-top:1px solid #E6E8EF; } }

/* =========================================================================
   صفحة المنتج والسلة والمتجر
   ========================================================================= */
.breadcrumbs a:hover{ color: var(--orange); }
.product-media{ background:#fff; border:1px solid #E6E8EF; border-radius:12px; }
.product-media img{ object-fit:contain !important; padding:18px; background:#fff; }
.product-title{ color: var(--text); font-weight:700; line-height:1.4; }
.product-price{ color: var(--text); font-size:30px; }
.product-price .price-old{ color:#9AA0B4; }
.product-save{ color: var(--orange); background: rgba(242,112,34,.08); border-color: rgba(242,112,34,.3); border-radius:4px; }
.product-desc{ background:#fff; border:1px solid #E6E8EF; border-radius:10px; padding:18px 20px; }
.product-desc h4{ color: var(--text); }
.product-desc li::before{ background: var(--orange); width:6px; height:6px; border-radius:1px; transform: rotate(45deg); }
.product-warranty{ color: var(--navy); background: rgba(42,55,133,.06); border-color: rgba(42,55,133,.2); border-radius:4px; }
.product-cond{ border-radius:4px; }
.badge, .badge.physical{
  background:none; border:none; padding:0; color: var(--orange); font-weight:600; font-size:12.5px; border-radius:0;
}
.order-panel{ border:1px solid #E6E8EF; border-top:3px solid var(--orange); border-radius:10px; box-shadow:none; }
.thumb{ border-radius:8px; background:#fff; }
.thumb img{ object-fit:contain; padding:4px; }
.thumb.active{ border-color: var(--orange); box-shadow:none; }
.share-btn{ background:#fff; color: var(--text); border-color:#E6E8EF; box-shadow:none; }
.share-btn:hover{ background: var(--orange); color:#fff; border-color: var(--orange); }
.field select, .field input, .field-sm input, .field-sm select, .field-sm textarea{ background:#fff; border-radius:6px; }
.field select:focus, .field input:focus, .field-sm input:focus, .field-sm select:focus, .field-sm textarea:focus{
  outline:none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,112,34,.12);
}
.qty-btn{ background:#fff; border-radius:6px; }
.qty-btn:hover{ border-color: var(--orange); color: var(--orange); }
.cart-item{ border-color:#E6E8EF; border-radius:10px; }
.cart-item-img{ background:#fff; border:1px solid #EEF0F5; }
.cart-item-img img{ object-fit:contain; }
.cart-section-label{ color: var(--text); }
.delivery-box{ background: var(--bg); border-color:#E6E8EF; border-radius:10px; }
.delivery-box h5{ color: var(--text); }
.cat-sidebar{ border:1px solid #E6E8EF; border-radius:10px; }
.cat-sidebar h4{ color: var(--text); }
.cat-link{ border-radius:6px; }
.cat-link:hover{ color: var(--orange); background: rgba(242,112,34,.06); }
.cat-link.active{ background: var(--ink); color:#fff; }
.cat-link.active span{ background: var(--orange); color:#fff; }
.product-media, .cat-sidebar{ top: 170px; }

/* =========================================================================
   الفوتر
   ========================================================================= */
.footer{ background: var(--ink); border-top: none; color:#fff; position:relative; }
.footer::before{ content:""; position:absolute; top:0; inset-inline:0; height:4px; background: var(--orange); }
.footer h5{ color:#fff; font-size:15px; }
.footer p, .footer a, .footer li{ color: rgba(255,255,255,.62); }
.footer ul a:hover{ color: var(--orange); }
.footer-logo{ height:64px; width:auto; max-width:280px; object-fit:contain; margin-bottom:16px; background:none; padding:0; }
.footer-bottom{ border-top-color: rgba(255,255,255,.1); color: rgba(255,255,255,.45); }
.footer .office-addr{ color: rgba(255,255,255,.62); }
.footer .office-map{ color: var(--orange-2); }
.footer .social-btn{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color:#fff; border-radius:6px; }
.footer .social-btn:hover{ border-color: var(--orange); color:#fff; }
.whatsapp-fab{ color:#fff; }
.live-toast{ background: var(--ink); border-bottom:3px solid var(--orange); border-radius:8px; }

/* =========================================================================
   لوحة التحكم
   ========================================================================= */
.nav{ background: var(--ink); border-bottom:3px solid var(--orange); }
.nav .nav-links a{ color: rgba(255,255,255,.7); }
.nav .nav-links a:hover, .nav .nav-links a.active{ color:#fff; background: rgba(255,255,255,.08); }
.nav .brand-logo{ height:48px; }
.nav .save-indicator{ color: rgba(255,255,255,.55); }
.admin-tab.active{ background: var(--ink); color:#fff; border-color: var(--ink); }
.admin-tab:hover:not(.active){ color: var(--orange); }
.admin-panel{ border-color:#E6E8EF; border-radius:10px; }
.admin-row{ background:#fff; }
.image-toggle button{ background:#fff; border-radius:6px; }
.image-toggle button.active{ background: rgba(242,112,34,.08); }
.logo-preview{ aspect-ratio: 7/2; background: var(--ink); }
.logo-preview img{ object-fit:contain !important; padding:12px; }
.stock-check{ padding:12px 14px; border:1px dashed #E1E3EB; border-radius:8px; background:#fff; color: var(--text) !important; font-weight:600; }
.field-sm .field-check input, .field-check input{ width:auto; flex:none; }
#lock-screen{
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(242,112,34,.25), transparent 70%),
    var(--ink);
}
.lock-card{ border:none; border-top:3px solid var(--orange); background: var(--ink-2); border-radius:12px; }
.lock-card input{ background: var(--ink); border-color: rgba(255,255,255,.12); color:#fff; }
.lock-mark img{ max-width:260px; max-height:80px; }
.admin-publish-bar{ background:#fff; box-shadow: var(--shadow); border-radius:10px; }

/* =========================================================================
   الهاتف
   ========================================================================= */
@media (max-width: 1100px){
  .sh-call-tx{ display:none; }
  .sh-row{ gap:18px; }
}
@media (max-width: 900px){
  .sh-row{
    height:auto; padding-top:12px; padding-bottom:12px;
    display:grid; grid-template-columns: 1fr auto; gap:12px;
  }
  .sh .brand{ grid-column:1; grid-row:1; }
  .sh-actions{ grid-column:2; grid-row:1; gap:8px; }
  .site-search.always{ grid-column: 1 / -1; grid-row:2; max-width:none; width:100%; height:44px; margin:0; position:relative !important; }
  .site-search.always .ss-form input{ height:40px; }
  .site-search.always .ss-results{ position:absolute; left:0; right:0; top:calc(100% + 6px); width:auto; }
  .brand-logo{ height:46px; max-width:200px; }
  .sh-call{ display:none; }
  .sh-cart{ height:42px; padding:0 13px; }
  .sh .nav-toggle{
    display:inline-flex !important; width:42px !important; height:42px !important; border-radius:8px;
    background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); color:#fff !important;
    align-items:center; justify-content:center; font-size:18px;
  }
  .catbar-row{ position:relative; min-height:46px; }
  .catbar .nav-links{
    display:none; position:absolute; top:100%; right:0; left:0; z-index:90;
    flex-direction:column; background: var(--ink-2); border-radius:0 0 10px 10px; padding:6px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  }
  .catbar .nav-links.open{ display:flex; }
  .catbar .nav-links a{ padding:12px 14px; }
  .catbar .nav-links a.active::after{ display:none; }
  .catbar-div{ display:none; }
  .catbar-scroll{ overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; }
  .catbar-scroll::-webkit-scrollbar{ display:none; }
  .catbar .nav-cat-link{ padding:12px 12px; font-size:13.5px; border:none; white-space:nowrap; }
  .catbar-subs.open{ display:flex; padding:0 0 10px; }
  .catbar-subs a{ background: rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.12); border-radius:6px; }
  .catbar-subs a.active{ background: var(--orange); border-color: var(--orange); color:#fff; }
  .sh{ position: sticky; }
  .hero-slide:not(.hero-slide--image):not(.hero-slide--split){ padding:40px 0 48px !important; }
  .hero h1{ font-size:28px; }
  .hero p{ font-size:14.5px; }
  .product-media, .cat-sidebar{ top:auto; }
  .card-add span{ display:none; }
  .card-add{ width:40px; padding:0; justify-content:center; }
}
@media (max-width: 480px){
  .brand-logo{ height:38px; max-width:160px; }
  .sh-cart-tx{ display:none; }
  .sh-cart{ width:42px; padding:0; justify-content:center; }
  .card-body{ padding:2px 10px 12px; }
  .card-img{ padding:8px; }
  .card-price{ font-size:15px; }
  .card-add, .card-out{ height:36px; }
  .card-add{ width:36px; }
  .card-out{ padding:0 8px; font-size:12px; }
  .section-head h2{ font-size:21px; }
}
@media (max-width: 360px){
  .brand-logo{ height:32px; max-width:130px; }
}
@media (min-width: 901px){
  .hero-slide .container{ padding-inline: 84px; }
}

/* =========================================================================
   موقعنا + أزرار التواصل
   ========================================================================= */
.location[hidden]{ display:none; }
.loc-grid{ display:grid; grid-template-columns: 1.5fr 1fr; gap:18px; align-items:stretch; }
.loc-map{
  position:relative; min-height:380px; border-radius:12px; overflow:hidden;
  background: var(--ink-2); border:1px solid #E6E8EF;
}
.loc-map iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.loc-card{
  background: var(--ink); color:#fff; border-radius:12px; padding:26px;
  display:flex; flex-direction:column; gap:18px; position:relative; overflow:hidden;
}
.loc-card::before{
  content:""; position:absolute; width:260px; height:260px; left:-90px; bottom:-110px; border-radius:50%;
  border:2px dashed rgba(242,112,34,.25); pointer-events:none;
}
.loc-row{ display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.loc-ic{ width:40px; height:40px; flex:none; border-radius:8px; background: rgba(242,112,34,.14); display:flex; align-items:center; justify-content:center; font-size:18px; }
.loc-row small{ display:block; font-size:12px; color: rgba(255,255,255,.5); }
.loc-row b{ display:block; font-size:15px; font-weight:600; }
.loc-btn{ margin-top:16px; width:100%; }
.loc-social h5{ margin:0 0 12px; font-size:14px; font-weight:600; color: rgba(255,255,255,.75); }

.social-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.loc-social .social-row{ margin-top:0; }
.soc{
  width:44px; height:44px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center;
  color:#fff; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
  transition: transform .18s, background .18s, border-color .18s;
}
.soc:hover{ transform: translateY(-3px); border-color: transparent; }
.soc-whatsapp:hover{ background:#25D366; }
.soc-facebook:hover{ background:#1877F2; }
.soc-instagram:hover{ background: linear-gradient(45deg,#F58529,#DD2A7B,#8134AF); }
.soc-tiktok:hover{ background:#000; box-shadow: -2px -2px 0 #25F4EE, 2px 2px 0 #FE2C55; }
.soc-telegram:hover{ background:#229ED9; }
.soc-youtube:hover{ background:#FF0000; }
.soc-snapchat:hover{ background:#FFFC00; color:#000; }
@media (max-width: 900px){
  .loc-grid{ grid-template-columns:1fr; }
  .loc-map{ min-height:280px; }
  .loc-card{ padding:20px; }
}
@media (max-width: 900px){
  .hero-slide{ padding-bottom:30px !important; }
  .hero-dots{ bottom:8px; background:none; backdrop-filter:none; }
}
