/* تصميم قريب من الصورة: داكن + كروت زجاجية + زر واتساب أخضر */
:root{
  --bg:#0b1220;
  --panel:rgba(255,255,255,.04);
  --panel2:rgba(255,255,255,.02);
  --stroke:rgba(255,255,255,.12);
  --muted:rgba(255,255,255,.78);
  --accent:#22c55e;
  --accent2:#19c37d;
  --shadow:0 14px 34px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  color:#fff;
  background:
    radial-gradient(1200px 700px at 60% -10%, rgba(25,195,125,.18), transparent 60%),
    radial-gradient(900px 600px at 10% 10%, rgba(59,130,246,.14), transparent 55%),
    var(--bg);
}

.wrap{max-width:1100px;margin:0 auto;padding:0 18px}

.top{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.top__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0;
}
.brand h1{margin:0;font-size:34px;letter-spacing:.3px}
.brand p{margin:6px 0 0;color:var(--muted)}

.cartBtn{
  display:flex; align-items:center; gap:10px;
  border:1px solid rgba(25,195,125,.45);
  background: rgba(25,195,125,.12);
  color:#eafff6;
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.cartBtn__icon{font-size:18px}
.cartBtn__text{font-weight:800}
.cartBtn__badge{
  min-width:28px; height:22px; padding:0 8px;
  border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(34,197,94,.25);
  border:1px solid rgba(34,197,94,.55);
  font-weight:900;
}

.grid{
  padding:22px 0 34px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:18px;
}

.card{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: var(--shadow);
}
.card__img{
  height:190px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.card__img img{width:100%;height:100%;object-fit:cover;display:block}
.card__body{padding:14px 14px 16px}
.card__title{margin:0 0 6px;font-size:20px;font-weight:900}
.card__price{margin:0 0 10px;color:#9be7ff;font-weight:900;font-size:18px}
.card__desc{margin:0 0 14px;color:rgba(255,255,255,.78);line-height:1.55;min-height:44px}

.actions{display:flex;gap:10px}
.btn{
  flex:1;
  border-radius:14px;
  padding:12px 10px;
  font-weight:900;
  cursor:pointer;
  border:1px solid rgba(25,195,125,.55);
  background: rgba(25,195,125,.12);
  color:#eafff6;
  transition:.15s ease;
}
.btn:hover{transform:translateY(-1px);background: rgba(25,195,125,.18)}
.btn--ghost{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color:#fff;
}
.btn--ghost:hover{background: rgba(255,255,255,.08)}

/* Drawer */
.overlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  z-index:40;
}
.drawer{
  position:fixed; top:0; bottom:0; left:0;
  width:min(420px, 92vw);
  background: rgba(11,18,32,.92);
  border-right:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  transform: translateX(-105%);
  transition: transform .18s ease;
  z-index:50;
  display:flex; flex-direction:column;
}
.drawer.isOpen{transform: translateX(0)}
.drawer__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.drawer__head h2{margin:0;font-size:20px}
.iconBtn{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color:#fff;
  width:38px;height:38px;border-radius:12px;
  cursor:pointer;
}

.drawer__body{padding:14px 14px; overflow:auto; flex:1}
.items{display:flex;flex-direction:column;gap:12px}
.item{
  display:grid;
  grid-template-columns: 74px 1fr;
  gap:10px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.item img{width:74px;height:74px;border-radius:12px;object-fit:cover}
.item__title{margin:0;font-weight:900}
.item__meta{display:flex;justify-content:space-between;color:rgba(255,255,255,.78);margin-top:4px}
.qty{
  display:flex; align-items:center; gap:8px; margin-top:8px;
}
.qty button{
  width:34px;height:34px;border-radius:12px;cursor:pointer;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;font-weight:900;
}
.qty span{min-width:26px;text-align:center;font-weight:900}
.remove{
  margin-top:8px;
  border:none;
  background: transparent;
  color: rgba(255,255,255,.65);
  cursor:pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.remove:hover{color:#fff}

.empty{padding:26px 10px;text-align:center;color:rgba(255,255,255,.75)}
.empty__icon{font-size:34px}
.empty__title{margin-top:8px;font-size:18px;font-weight:900;color:#fff}
.empty__desc{margin-top:6px}

.drawer__foot{
  padding:14px 14px 16px;
  border-top:1px solid rgba(255,255,255,.10);
}
.totalRow{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.primary, .secondary{
  width:100%;
  border-radius:14px;
  padding:12px 12px;
  font-weight:900;
  cursor:pointer;
  border:1px solid rgba(25,195,125,.55);
}
.primary{background: rgba(34,197,94,.22); color:#eafff6}
.primary:hover{background: rgba(34,197,94,.28)}
.secondary{
  margin-top:10px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.16);
  color:#fff;
}
.secondary:hover{background: rgba(255,255,255,.09)}
.note{margin-top:10px;color:rgba(255,255,255,.6);font-size:12px;text-align:center}


.toast{
  position:fixed;
  bottom:18px;
  right:18px;
  z-index:60;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(25,195,125,.45);
  background: rgba(11,18,32,.92);
  backdrop-filter: blur(10px);
  color:#eafff6;
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  font-weight:900;
  opacity:0;
  transform: translateY(8px);
  transition:.18s ease;
  pointer-events:none;
}
.toast.show{opacity:1;transform: translateY(0)}
