:root{
  --bg:#0b1220;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --text:#e5e7eb;
  --muted:#a5b4fc;
  --muted2:#9ca3af;
  --brand:#60a5fa;
  --brand2:#34d399;
  --danger:#fb7185;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 24px;
  --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans Arabic", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(96,165,250,.25), transparent 60%),
    radial-gradient(800px 500px at 95% 10%, rgba(52,211,153,.20), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(251,113,133,.15), transparent 60%),
    var(--bg);
  color:var(--text);
  direction: rtl;
}

a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}

.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.62);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.navbar{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:12px}
.brand{display:flex; align-items:center; gap:10px}
.logo{
  width:42px; height:42px; border-radius:14px;
  background: linear-gradient(135deg, rgba(96,165,250,.95), rgba(52,211,153,.9));
  box-shadow: var(--shadow);
}
.brand h1{margin:0; font-size:18px; letter-spacing:.2px}
.brand p{margin:0; font-size:12px; color:var(--muted2)}
.navlinks{display:flex; gap:14px; align-items:center}
.navlinks a{font-size:13px; color:#d1d5db; opacity:.9}
.navlinks a:hover{opacity:1}

.btn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 14px;
  border-radius: 14px;
  display:inline-flex; align-items:center; gap:10px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18)}
.btn.primary{
  border:none;
  background: linear-gradient(135deg, rgba(96,165,250,.95), rgba(52,211,153,.92));
  color:#081020;
  font-weight:700;
}
.btn.primary:hover{filter: brightness(1.05)}
.btn.danger{border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.12)}
.badge{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border-radius: 999px;
  font-size:12px;
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  color:#e5e7eb;
}
.badge.promo{background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.25); color:#bbf7d0}
.badge.low{background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.25); color:#fecdd3}

.hero{
  padding: 44px 0 20px;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 980px){
  .heroGrid{grid-template-columns: 1fr; }
}
.card{
  background: var(--panel);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.heroMain{padding: 28px}
.kicker{color:#c7d2fe; font-size:13px; margin:0 0 10px}
.heroTitle{margin:0 0 10px; font-size:42px; line-height:1.15}
@media (max-width: 520px){ .heroTitle{font-size:34px} }
.heroDesc{margin:0 0 18px; color: #cbd5e1; line-height:1.7}
.heroActions{display:flex; flex-wrap:wrap; gap:10px}
.heroChips{margin-top:18px; display:flex; flex-wrap:wrap; gap:8px}
.heroSide{
  padding: 18px;
  display:flex; flex-direction:column; gap:12px;
}
.sideItem{padding:14px; border-radius: var(--radius); background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10)}
.sideItem h3{margin:0 0 6px; font-size:14px}
.sideItem p{margin:0; font-size:13px; color:#cbd5e1; line-height:1.6}

.section{padding: 26px 0}
.sectionHead{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin-bottom: 12px;
}
.sectionHead h2{margin:0; font-size:22px}
.sectionHead p{margin:0; color:#cbd5e1; font-size:13px}

.filters{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 10px; margin-top: 12px;
}
@media (max-width: 980px){
  .filters{grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .filters{grid-template-columns: 1fr; }
}
.input, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color: var(--text);
  outline:none;
}
.input::placeholder{color:#9ca3af}
select option{background:#0b1220; color:#e5e7eb}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2,1fr)} }
@media (max-width: 520px){ .grid{grid-template-columns: 1fr} }

.product{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.productImg{
  width:100%;
  height: 180px;
  object-fit: cover;
  display:block;
  background: rgba(255,255,255,.03);
}
.productBody{padding: 14px}
.productTop{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.productName{margin:0; font-size:15px}
.productMeta{margin:6px 0 10px; color:#cbd5e1; font-size:12px}
.price{font-weight:800; font-size:16px}
.small{font-size:12px; color:#cbd5e1}
.pills{display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px}
.pill{
  font-size:12px; color:#d1d5db;
  padding:6px 10px; border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}

.footer{
  padding: 30px 0;
  color:#cbd5e1;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 20px;
}
.footerGrid{display:grid; grid-template-columns: 1.2fr .8fr; gap: 14px}
@media (max-width: 980px){ .footerGrid{grid-template-columns:1fr} }
.footer a{opacity:.9}
.footer a:hover{opacity:1}
.footTitle{font-weight:800; margin:0 0 6px}
.footText{margin:0; line-height:1.7; font-size:13px}
.toast{
  position: fixed; bottom: 16px; right: 16px; left: 16px;
  max-width: 680px; margin: 0 auto;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(17,24,39,.92);
  border: 1px solid rgba(255,255,255,.10);
  display:none;
  box-shadow: var(--shadow);
}
.toast.show{display:block}
.toast .row{display:flex; justify-content:space-between; align-items:center; gap:10px}
kbd{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 12px;
  color: #e5e7eb;
}

/* Modal */
.modalBackdrop{
  position: fixed; inset:0; display:none; place-items:center; z-index:100;
  background: rgba(0,0,0,.55);
  padding: 18px;
}
.modalBackdrop.show{display:grid}
.modal{
  width: min(920px, 100%);
  border-radius: 22px;
  overflow:hidden;
}
.modalGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px){ .modalGrid{grid-template-columns:1fr} }
.modalMedia{background: rgba(255,255,255,.03)}
.modalMedia img{width:100%; height: 100%; object-fit:cover; display:block; max-height: 380px}
.modalBody{padding: 18px}
.modalBody h3{margin:0 0 8px}
.modalClose{float:left}
hr{border:none; border-top:1px solid rgba(255,255,255,.08); margin: 12px 0}
