:root{
  --bg:#070A0F;
  --card:#0F1724;
  --card2:#121B2A;
  --text:#E8EEF7;
  --muted:#9FB0C7;
  --line:rgba(255,255,255,.08);
  --accent:#FF8A1F;
  --accent2:#F6A24D;
  --ok:#2ECC71;
  --bad:#FF5D5D;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius:18px;
  --radius2:26px;
  --ring: 0 0 0 3px rgba(255,138,31,.18);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
*{box-sizing:border-box}
body{
  margin:0; color:var(--text);
  background:
    radial-gradient(1200px 700px at 75% 0%, rgba(255,138,31,.22), transparent 60%),
    radial-gradient(900px 600px at 15% 20%, rgba(76,139,255,.10), transparent 55%),
    var(--bg);
}
a{color:inherit; text-decoration:none}
.container{max-width:1200px; margin:0 auto; padding:18px}
.nav{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(12px);
  background: rgba(7,10,15,.55);
  border-bottom:1px solid var(--line);
}
.nav .row{display:flex; align-items:center; justify-content:space-between; gap:14px}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.4px}
.badgeLogo{
  width:38px; height:38px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(255,138,31,.95), rgba(255,138,31,.25));
  box-shadow: 0 10px 25px rgba(255,138,31,.15);
}
.navlinks{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.pill{
  padding:10px 14px; border-radius:999px;
  border:1px solid var(--line); background: rgba(255,255,255,.03);
  color:var(--text); font-weight:700; font-size:14px;
}
.pill.active{border-color:rgba(255,138,31,.45); box-shadow:var(--ring)}
.pill.orange{
  border:none;
  background: linear-gradient(180deg, var(--accent), #FF7A00);
  color:#111; font-weight:900;
}
.pill.gray{opacity:.9}
.pill .count{
  margin-left:8px; padding:2px 8px; border-radius:999px;
  background: rgba(0,0,0,.35); color: #fff; font-weight:800;
  border:1px solid rgba(255,255,255,.10);
}
.hero{padding:18px 0}
.h1{font-size:34px; margin:6px 0 4px}
.sub{color:var(--muted); margin:0}
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.panel .head{
  padding:16px 16px 10px; display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.panel .head h2{margin:0; font-size:18px}
.panel .body{padding:16px}
.grid{display:grid; gap:14px}
.grid.products{grid-template-columns:repeat(4, minmax(0,1fr))}
@media(max-width:1100px){.grid.products{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.grid.products{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.grid.products{grid-template-columns:repeat(1,1fr)}}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.imgbox{
  background: rgba(255,255,255,.04);
  aspect-ratio: 4/3;
  display:grid; place-items:center;
}
.imgbox img{width:100%; height:100%; object-fit:contain; display:block}
.card .cbody{padding:12px}
.title{font-weight:900; font-size:14px; line-height:1.25; min-height:36px}
.meta{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px}
.tag{
  font-size:12px; color:var(--muted);
  border:1px solid var(--line);
  padding:6px 8px; border-radius:999px;
  background: rgba(0,0,0,.18);
}
.tag.ok{border-color:rgba(46,204,113,.35); color:#CFF7DD}
.tag.bad{border-color:rgba(255,93,93,.35); color:#FFD1D1}
.priceRow{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px}
.price{font-weight:900}
.btnrow{display:flex; gap:8px; margin-top:10px}
.btn{
  flex:1;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
}
.btn:hover{box-shadow: var(--ring)}
.btn.primary{
  border:none;
  background: linear-gradient(180deg, var(--accent), #FF7A00);
  color:#111;
}
.filters{
  display:grid; gap:10px;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}
@media(max-width:900px){.filters{grid-template-columns: 1fr 1fr}}
.field{
  display:flex; flex-direction:column; gap:6px;
}
.label{font-size:12px; color:var(--muted); font-weight:700}
.input, .select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
}
.input:focus,.select:focus,textarea:focus{box-shadow: var(--ring); border-color:rgba(255,138,31,.35)}
.toggles{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}
.toggle{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  font-weight:800;
  color:var(--muted);
}
.switch{
  width:46px; height:26px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.08);
  position:relative; cursor:pointer;
}
.switch::after{
  content:""; position:absolute; top:3px; left:3px;
  width:18px; height:18px; border-radius:50%;
  background: rgba(255,255,255,.75);
  transition: all .18s ease;
}
.toggle.on{color:#EAF7FF; border-color: rgba(255,138,31,.28)}
.toggle.on .switch{background: rgba(255,138,31,.28); border-color: rgba(255,138,31,.35)}
.toggle.on .switch::after{left:23px; background:#fff}
.toast{
  position:fixed; right:16px; bottom:16px; z-index:50;
  background: rgba(15,23,36,.92);
  border:1px solid var(--line);
  color:var(--text);
  padding:12px 14px; border-radius:14px;
  box-shadow: var(--shadow);
  max-width:320px;
}
.modal{
  position:fixed; inset:0; display:none; place-items:center; z-index:60;
  background: rgba(0,0,0,.62);
  padding:18px;
}
.modal.open{display:grid}
.modal .box{
  width:min(980px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  background: #0B111B;
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.modal .top{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px; border-bottom:1px solid rgba(255,255,255,.10);
}
.modal .content{
  padding:14px; display:grid; place-items:center;
  max-height: calc(86vh - 54px);
}
.modal img{max-width:100%; max-height:100%; object-fit:contain}
.table{width:100%; border-collapse:collapse}
.table td,.table th{padding:10px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left}
.small{color:var(--muted); font-size:12px}

/* step2: qty stepper */
.qtyStepper{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.qtyStepper .qbtn{flex:0 0 36px;padding:10px 0;text-align:center}
.qtyStepper .qval{flex:0 0 auto;min-width:44px;text-align:center;font-weight:900}
