:root { --bg:#0b0d10; --card:#141821; --text:#f2f4f8; --muted:#b6c0d1; --accent:#ff2d2d; --line:#2a3140; }
* { box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text);
}
.topbar{
  position: sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; background: rgba(11,13,16,.9); backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:10px; }
.logo{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center; font-weight:800; letter-spacing:.5px;
  background: linear-gradient(135deg, #ff2d2d, #b60000);
}
.titles .h1{ font-size:16px; font-weight:800; }
.titles .h2{ font-size:12px; color:var(--muted); margin-top:1px; }
.wrap{ padding:14px; max-width:980px; margin:0 auto; }
.hint{ text-align:center; padding:22px 10px; color:var(--muted); }
.big{ font-size:22px; font-weight:900; color:var(--text); }
.small{ font-size:14px; color:var(--muted); margin-top:6px; }
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.card.error{ border-color: rgba(255,45,45,.45); }
.media{ background:#0f131a; border-bottom:1px solid var(--line); }
.media img{ width:100%; height:auto; display:block; max-height:55vh; object-fit:contain; }
.content{ padding:14px; }
.titleRow{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
h1{ margin:0; font-size:20px; line-height:1.2; }
.pill{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  padding:6px 10px; border-radius:999px;
  font-size:12px; color:var(--text); white-space:nowrap;
}
.priceRow{ margin-top:10px; padding:12px; border-radius:14px; background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); }
.priceLabel{ font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.price{ font-size:34px; font-weight:950; margin-top:6px; }
.muted{ color:var(--muted); }
.desc{ margin-top:14px; }
.desc h2{ margin:0 0 8px 0; font-size:14px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
#desc{ font-size:15px; line-height:1.45; }
#desc img{ max-width:100%; height:auto; }
#desc a{ color:#8bb7ff; }
.btn{
  border:1px solid rgba(255,255,255,.16); color:var(--text);
  background: rgba(255,255,255,.06); padding:10px 12px; border-radius:12px;
  font-weight:700;
}
.btn.ghost{ background:transparent; }
#scanInput{
  position: fixed;
  left:-1000px; top:-1000px;
  opacity:0;
}
@media (min-width: 860px){
  #product{ display:grid; grid-template-columns: 1fr 1fr; }
  .media{ border-bottom:0; border-right:1px solid var(--line); }
}
