/* style.css */
:root{
  --bg:#0b1020;
  --card:#101a33;
  --card2:#0f1730;
  --text:#eaf0ff;
  --muted:#a9b6da;
  --primary:#6ae4ff;
  --primary2:#7c5cff;
  --danger:#ff5c7a;
  --ok:#38d996;
  --border:rgba(255,255,255,.10);
  --shadow:0 12px 30px rgba(0,0,0,.35);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(106,228,255,.18), transparent 55%),
    radial-gradient(900px 700px at 70% 90%, rgba(56,217,150,.12), transparent 60%),
    var(--bg);
  line-height:1.6;
}

a{color:inherit; text-decoration:none}
.container{width:min(1120px, 92%); margin-inline:auto}

.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(11,16,32,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header-grid{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap:14px;
  align-items:center;
  padding:14px 0;
}

.brand{display:flex; gap:12px; align-items:center; min-width:220px}
.logo{
  width:42px; height:42px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(106,228,255,.25), rgba(124,92,255,.22));
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight:800;
}
.brand-name{font-weight:800; letter-spacing:.2px}
.brand-sub{font-size:12px; color:var(--muted); margin-top:-2px}

.nav{display:flex; gap:10px; justify-content:center; flex-wrap:wrap}
.nav a{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
}
.nav a:hover{border-color:var(--border); color:var(--text)}
.nav a.active{
  color:var(--text);
  border-color:rgba(106,228,255,.35);
  background: rgba(106,228,255,.10);
}

.header-actions{
  display:flex; gap:10px; justify-content:flex-end; align-items:center;
}
.search-wrap{
  width:min(340px, 44vw);
  position:relative;
}
.search-wrap.large{width:min(520px, 100%)}
.search-wrap input{
  width:100%;
  padding:11px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
}
.search-wrap input::placeholder{color:rgba(233,240,255,.55)}
.search-wrap input:focus{border-color:rgba(106,228,255,.45); box-shadow:0 0 0 4px rgba(106,228,255,.10)}

.cart-btn{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
}
.cart-btn:hover{border-color:rgba(124,92,255,.45)}
.cart-icon{font-size:18px}
.cart-text{color:var(--muted); font-weight:650}
.badge{
  min-width:26px; height:22px;
  padding:0 8px;
  border-radius:999px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(124,92,255,.85), rgba(106,228,255,.85));
  color:#081022;
  font-weight:900;
  font-size:12px;
}

.hero{padding:34px 0 10px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}
.hero-content{
  padding:22px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.hero h1{margin:0 0 8px; font-size: clamp(24px, 3.2vw, 40px); line-height:1.2}
.hero p{margin:0 0 16px; color:var(--muted)}

.hero-actions{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  border-radius:14px;
  padding:10px 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  font-weight:750;
}
.btn:hover{border-color:rgba(106,228,255,.35)}
.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(106,228,255,.95));
  color:#071022;
}
.btn.primary:hover{filter:brightness(1.03)}
.btn.ghost{background: transparent}
.btn.full{width:100%}
.btn.small{padding:9px 12px; border-radius:12px; font-size:14px}

.hero-badges{display:flex; gap:10px; margin-top:16px; flex-wrap:wrap}
.pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color:var(--muted);
  font-size:13px;
}

.hero-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(16,26,51,.92), rgba(15,23,48,.92));
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex; flex-direction:column;
}
.hero-card-top{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px;
  border-bottom:1px solid var(--border);
}
.mini-logo{
  width:34px; height:34px;
  border-radius:12px;
  display:grid; place-items:center;
  border:1px solid var(--border);
  background: rgba(106,228,255,.10);
  font-weight:900;
}
.hero-card-title{font-weight:850; color:var(--muted)}
.hero-card-body{padding:16px; display:grid; gap:14px}
.stat{display:flex; align-items:baseline; justify-content:space-between; gap:10px}
.stat-num{font-size:26px; font-weight:950}
.stat-label{color:var(--muted)}
.divider{height:1px; background:var(--border)}
.hero-card-foot{padding:16px; border-top:1px solid var(--border)}

.section{padding:26px 0}
.section.alt{
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 60%);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.section-head{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin-bottom:14px;
}
.section-head h2{margin:0; font-size:22px}
.link{color:var(--primary); font-weight:800}
.link:hover{text-decoration:underline}

.grid{display:grid; gap:14px}
.products-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background: rgba(16,26,51,.70);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-head{padding:14px 16px; border-bottom:1px solid var(--border)}
.card-title{margin:0; font-size:18px}
.card-body{padding:14px 16px}

.product-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.product-img{
  height:140px;
  background:
    radial-gradient(80px 80px at 30% 40%, rgba(106,228,255,.30), transparent 60%),
    radial-gradient(120px 120px at 70% 20%, rgba(124,92,255,.22), transparent 55%),
    radial-gradient(120px 120px at 50% 80%, rgba(56,217,150,.12), transparent 55%),
    rgba(255,255,255,.03);
  border-bottom:1px solid var(--border);
  display:grid;
  place-items:center;
  position:relative;
}
.product-img .tag{
  position:absolute;
  top:10px; inset-inline-start:10px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(7,16,34,.65);
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
}
.product-img .glyph{font-size:34px; opacity:.9}
.product-body{padding:12px 12px 14px; display:grid; gap:10px}
.product-name{margin:0; font-size:16px; font-weight:900}
.product-desc{margin:0; color:var(--muted); font-size:13px}
.product-foot{
  margin-top:auto;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.price{font-weight:950}
.price small{color:var(--muted); font-weight:800}
.icon-btn{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  cursor:pointer;
}
.icon-btn:hover{border-color:rgba(106,228,255,.35)}
.btn-add{
  padding:9px 12px;
  border-radius:14px;
  border:1px solid transparent;
  background: rgba(106,228,255,.14);
  color:var(--text);
  cursor:pointer;
  font-weight:900;
}
.btn-add:hover{background: rgba(106,228,255,.20)}
.btn-add.primaryish{
  background: linear-gradient(135deg, rgba(124,92,255,.90), rgba(106,228,255,.90));
  color:#071022;
}

.page-head h1{margin:0 0 6px}
.muted{color:var(--muted)}

.toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin: 14px 0;
  flex-wrap:wrap;
}

.empty{
  margin-top:16px;
  padding:22px;
  border:1px dashed rgba(255,255,255,.20);
  border-radius:var(--radius);
  background: rgba(255,255,255,.03);
  text-align:center;
}
.empty-icon{font-size:34px; margin-bottom:6px}

.features{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
.feature{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background: rgba(255,255,255,.03);
  padding:16px;
}
.feature-icon{font-size:26px}
.feature h3{margin:8px 0 6px}
.feature p{margin:0; color:var(--muted)}

.site-footer{
  border-top:1px solid var(--border);
  padding:18px 0;
  background: rgba(11,16,32,.55);
}
.footer-grid{
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  flex-wrap:wrap;
}
.footer-links{display:flex; gap:12px; flex-wrap:wrap}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--text); text-decoration:underline}
.footer-brand{display:flex; align-items:center; gap:10px; margin-bottom:6px}

.breadcrumbs{
  display:flex; gap:8px; align-items:center;
  color:var(--muted);
  margin-bottom:12px;
  flex-wrap:wrap;
}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs a:hover{color:var(--text); text-decoration:underline}

.product-details{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:start;
}
.product-gallery{
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background: rgba(255,255,255,.03);
}
.product-gallery .big{
  height:280px;
  display:grid; place-items:center;
  background:
    radial-gradient(120px 120px at 25% 30%, rgba(106,228,255,.30), transparent 60%),
    radial-gradient(180px 180px at 70% 20%, rgba(124,92,255,.22), transparent 55%),
    radial-gradient(180px 180px at 50% 85%, rgba(56,217,150,.12), transparent 55%),
    rgba(255,255,255,.02);
}
.product-gallery .big .glyph{font-size:62px}
.product-gallery .bar{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px;
  border-top:1px solid var(--border);
}
.product-info{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background: rgba(16,26,51,.55);
  padding:16px;
  box-shadow: var(--shadow);
}
.product-info h1{margin:0 0 8px}
.kv{display:grid; gap:10px; margin:12px 0}
.kv .row{display:flex; justify-content:space-between; gap:12px; align-items:center}
.note{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(106,228,255,.22);
  background: rgba(106,228,255,.07);
  color:var(--muted);
  font-size:13px;
}

.cart-layout{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:14px;
  align-items:start;
}
.summary .row{display:flex; justify-content:space-between; gap:10px; margin:8px 0}
.cart-item{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.cart-item:last-child{border-bottom:0}
.cart-item .title{font-weight:950}
.cart-item .meta{color:var(--muted); font-size:13px}
.cart-controls{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end;
}
.qty{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--border);
  border-radius:14px;
  padding:6px 8px;
  background: rgba(255,255,255,.04);
}
.qty button{
  width:30px; height:30px;
  border-radius:10px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
}
.qty button:hover{border-color:rgba(106,228,255,.35)}
.qty input{
  width:48px;
  text-align:center;
  border:0;
  outline:none;
  background: transparent;
  color:var(--text);
  font-weight:900;
}
.remove{
  border:1px solid rgba(255,92,122,.35);
  background: rgba(255,92,122,.10);
}
.remove:hover{border-color:rgba(255,92,122,.60)}

.checkout-layout{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  align-items:start;
}

.form{display:grid; gap:12px}
.field{display:grid; gap:6px}
label{color:var(--muted); font-weight:800; font-size:13px}
input, textarea{
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:11px 12px;
  outline:none;
}
textarea{resize:vertical; min-height:110px}
input:focus, textarea:focus{
  border-color:rgba(106,228,255,.45);
  box-shadow:0 0 0 4px rgba(106,228,255,.10);
}

.success{
  padding:18px;
  border-radius:var(--radius);
  border:1px solid rgba(56,217,150,.35);
  background: rgba(56,217,150,.08);
  text-align:center;
}
.success-icon{font-size:34px; margin-bottom:8px}
.success-actions{display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:10px}

.mini-items{display:grid; gap:10px; max-height:280px; overflow:auto; padding-inline-end:4px}
.mini-item{
  display:flex; justify-content:space-between; gap:10px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius:14px;
  padding:10px;
}
.mini-item .name{font-weight:900}
.mini-item .meta{color:var(--muted); font-size:12px}

.toast{
  position:fixed;
  bottom:16px;
  inset-inline-start:16px;
  z-index:999;
  background: rgba(7,16,34,.88);
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  gap:10px;
  max-width:min(460px, 92vw);
}
.toast .dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--primary);
}
.toast .msg{color:var(--text); font-weight:800}
.toast .sub{color:var(--muted); font-size:12px; margin-top:1px}

@media (max-width: 980px){
  .header-grid{grid-template-columns: 1fr; justify-items:stretch}
  .brand{justify-content:center}
  .nav{justify-content:center}
  .header-actions{justify-content:center}
  .hero-grid{grid-template-columns: 1fr}
  .products-grid{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .features{grid-template-columns: 1fr}
  .product-details{grid-template-columns: 1fr}
  .cart-layout{grid-template-columns: 1fr}
  .checkout-layout{grid-template-columns: 1fr}
}

@media (max-width: 520px){
  .search-wrap{width:100%}
  .cart-text{display:none}
  .products-grid{grid-template-columns: 1fr}
  .hero-content{padding:16px}
}
