
:root{
  --bg:#0b1020; --surface:#0f172a; --muted:#94a3b8; --text:#e5e7eb;
  --brand:#7c3aed; --brand2:#22d3ee; --ok:#22c55e; --warn:#f59e0b;
  --radius:20px; --max:1150px; --shadow:0 14px 34px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #1d2546 0%, rgba(13,18,38,0) 60%),
              radial-gradient(1000px 700px at 120% 10%, #0b3754 0%, rgba(11,55,84,0) 60%),
              var(--bg);
  line-height:1.6;
}
.container{max-width:var(--max); margin-inline:auto; padding:0 20px}
a{color:var(--brand2); text-decoration:none}
a:hover{text-decoration:underline}

/* header */
header{position:sticky; top:0; z-index:30; backdrop-filter:saturate(140%) blur(8px);
  background:rgba(10,14,30,.55); border-bottom:1px solid rgba(255,255,255,.06)}
.nav{display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 0}
.brand{display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.2px}
.logo{width:38px; height:38px; border-radius:12px; background:
  radial-gradient(40px 40px at 70% 30%, rgba(255,255,255,.35), transparent),
  linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow:0 8px 24px rgba(124,58,237,.45)}
nav a{padding:8px 10px; border-radius:10px}
nav a.active{background:rgba(255,255,255,.08)}

.btn{display:inline-flex; align-items:center; gap:10px; background:linear-gradient(135deg, var(--brand), var(--brand2));
  color:white; padding:12px 16px; border-radius:14px; font-weight:700; box-shadow:var(--shadow); border:0; cursor:pointer}
.btn.alt{background:transparent; border:1px solid rgba(255,255,255,.18); color:#e5e7eb}

.hero{padding:70px 0 30px}
.headline{font-size:clamp(28px, 4vw, 48px); font-weight:800; line-height:1.15; letter-spacing:.2px}
.sub{color:var(--muted); font-size:clamp(15px,1.8vw,18px)}
.badges{display:flex; gap:12px; flex-wrap:wrap; margin:16px 0 22px}
.badge{border:1px solid rgba(255,255,255,.12); padding:6px 10px; border-radius:999px; font-weight:600; font-size:13px; background:rgba(255,255,255,.03)}

.card{background:rgba(16,23,42,.78); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow)}
.grid{display:grid; gap:18px}
.cols-2{grid-template-columns:2fr 1.1fr}
.cols-3{grid-template-columns:repeat(3,1fr)}
.section{padding:64px 0}
.section-title{font-size:30px; font-weight:800; margin:0 0 16px}
.muted{color:var(--muted)}

footer{padding:40px 0; border-top:1px solid rgba(255,255,255,.08); color:#9aa4b2; margin-top:40px}

/* pills / search */
.pills{display:flex; flex-wrap:wrap; gap:10px}
.pill{padding:8px 12px; border:1px solid rgba(255,255,255,.12); border-radius:999px; cursor:pointer; font-weight:600; font-size:13px; background:rgba(255,255,255,.03)}
.pill.active{background:linear-gradient(135deg, var(--brand), var(--brand2)); color:#fff; border-color:transparent}
.search{display:flex; gap:10px; align-items:center}
.search input{flex:1}

/* product grid */
.catalog{display:grid; grid-template-columns:repeat(2,1fr); gap:14px}
.product{display:flex; gap:12px; border-radius:16px; overflow:hidden; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.02)}
.product img{width:160px; height:120px; object-fit:cover; display:block}
.product-body{padding:12px; display:flex; flex-direction:column; gap:6px; flex:1}
.product .name{font-weight:800; margin:0}
.product .desc{color:var(--muted); margin:0; font-size:14px}
.product .bottom{display:flex; justify-content:space-between; align-items:center; gap:10px}

/* cart */
.cart-panel{position:sticky; top:86px; height:fit-content}
.cart-item{display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px dashed rgba(255,255,255,.12)}
.cart-item small{color:var(--muted)}
.row{display:flex; justify-content:space-between; align-items:center; gap:10px}
.label{color:#cbd5e1; font-size:13px; font-weight:600}
.warn{color:#facc15; font-weight:600}
.qty{display:inline-flex; align-items:center; gap:6px}
.qty button{background:transparent; border:1px solid rgba(255,255,255,.2); color:#fff; border-radius:8px; padding:2px 8px; cursor:pointer}

/* modal */
.modal{position:fixed; inset:0; background:rgba(0,0,0,.55); display:none; align-items:center; justify-content:center; padding:20px}
.modal.open{display:flex}
.modal .box{background:rgba(16,23,42,.98); border:1px solid rgba(255,255,255,.1); border-radius:16px; box-shadow:var(--shadow); width:min(640px, 96vw); padding:18px}
.modal .box h3{margin:0 0 6px}
.modal .actions{display:flex; gap:10px; justify-content:flex-end; margin-top:10px}

@media (max-width:980px){
  .cols-2{grid-template-columns:1fr}
  .catalog{grid-template-columns:1fr}
}
