:root{
  --bg:#0b1220;
  --muted:rgba(255,255,255,.65);
  --text:#eaf2ff;
  --accent:#14b8ff;
  --accent2:#8b5cf6;
  --stroke:rgba(255,255,255,.08);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(20,184,255,.18), transparent 60%),
              radial-gradient(1000px 600px at 80% 10%, rgba(139,92,246,.18), transparent 60%),
              var(--bg);
  color:var(--text);
  display:flex;
  min-height:100vh;
}
.sidebar{
  width:320px;
  padding:22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-right:1px solid var(--stroke);
}
.brand{
  display:flex; gap:12px; align-items:center;
  padding:14px; border:1px solid var(--stroke);
  border-radius:16px; background: rgba(0,0,0,.15);
  box-shadow: var(--shadow);
}
.logo{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#06101d; font-weight:900;
}
.title{font-weight:900}
.sub{font-size:12px;color:var(--muted)}
.btn{
  width:100%;
  margin-top:12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
  transition:.15s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.07);}
.btn.primary{
  background: linear-gradient(135deg, rgba(20,184,255,.9), rgba(139,92,246,.85));
  border:none;
  color:#06101d;
  font-weight:900;
}
.btn.small{width:auto; padding:10px 12px; border-radius:12px;}
.note{
  margin-top:18px; padding:14px;
  border-radius:16px; border:1px solid var(--stroke);
  background: rgba(0,0,0,.12);
}
.noteTitle{font-weight:900;margin-bottom:6px}
.noteText{font-size:12px;color:var(--muted);line-height:1.35}
.footer{margin-top:24px;font-size:12px;color:rgba(255,255,255,.35)}
.main{flex:1;padding:28px 28px 60px;}
.header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
h1{margin:0;font-size:34px}
.pill{padding:10px 14px;border-radius:999px;border:1px solid var(--stroke);background: rgba(255,255,255,.04);color:var(--muted);font-weight:800}
.products{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:16px;
}
.card{
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.16);
  border-radius:20px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cardTop{padding:16px;display:flex;justify-content:space-between;gap:12px}
.cardTitle{font-weight:900}
.cardCat{font-size:12px;color:var(--muted);margin-top:6px}
.badge{font-size:11px;padding:6px 10px;border-radius:999px;border:1px solid var(--stroke);background: rgba(255,255,255,.04);color:var(--muted);white-space:nowrap;height:fit-content}
.badge.low{color:#ffd3d3;border-color: rgba(239,68,68,.35);background: rgba(239,68,68,.10);}
.price{padding:0 16px 8px;font-weight:900;color: rgba(20,184,255,.95)}
.stock{padding:0 16px 14px;font-size:12px;color:var(--muted)}
.cardBottom{padding:14px 16px 16px;border-top:1px solid var(--stroke);display:flex;gap:10px}
.cardBottom .btn{margin:0;flex:1}

.cart{margin-top:22px;border:1px solid var(--stroke);border-radius:22px;background: rgba(0,0,0,.16);box-shadow: var(--shadow);padding:18px}
.hidden{display:none}
.cartTop{display:flex;justify-content:space-between;align-items:center;gap:12px}
.cartItems{margin-top:10px;display:flex;flex-direction:column;gap:10px}
.itemRow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border-radius:16px;border:1px solid var(--stroke);background: rgba(255,255,255,.03)}
.itemLeft{display:flex;flex-direction:column;gap:2px}
.itemName{font-weight:900}
.itemMeta{font-size:12px;color:var(--muted)}
.qtyControls{display:flex;align-items:center;gap:8px}
.qtyBtn{width:34px;height:34px;border-radius:12px;border:1px solid var(--stroke);background: rgba(255,255,255,.05);color:var(--text);cursor:pointer}
.qtyBtn:hover{background: rgba(255,255,255,.08)}
.qty{min-width:34px;text-align:center;font-weight:900}
.total{font-weight:900;margin-top:10px}
.sep{border:none;border-top:1px solid var(--stroke);margin:16px 0}
.muted{color:var(--muted);margin-top:6px}
.tiny{font-size:12px}
.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.formGrid label{font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:6px}
.formGrid label.full{grid-column:1/-1}
input{padding:12px 12px;border-radius:14px;border:1px solid var(--stroke);background: rgba(255,255,255,.04);color:var(--text);outline:none}
input:focus{border-color: rgba(20,184,255,.55); box-shadow: 0 0 0 4px rgba(20,184,255,.10)}
.sendRow{margin-top:12px;display:flex;align-items:center;gap:12px}
.status{font-size:12px;color:var(--muted)}
.status.ok{color: rgba(34,197,94,.95)}
.status.err{color: rgba(239,68,68,.95)}
@media (max-width: 920px){
  body{flex-direction:column}
  .sidebar{width:auto}
  .formGrid{grid-template-columns:1fr}
}
