:root{
  --bg:#0b1220;
  --card:#101a32;
  --text:#e9eefc;
  --muted:#a9b6da;
  --line:#223055;
  --accent:#4ea1ff;
  --accent2:#ffd24d;
  --ok:#41d38b;
  --bad:#ff6b6b;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(1000px 600px at 20% 0%, #142451 0%, var(--bg) 55%);
  color:var(--text);
}

.container{max-width:1100px;margin:0 auto;padding:24px}
.header{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding-top:28px;padding-bottom:8px;
}
.badge{
  display:inline-flex;align-items:center;gap:10px;
  border:1px solid var(--line);
  padding:8px 12px;border-radius:999px;
  color:var(--muted);
  background: rgba(16,26,50,.5);
  font-size:14px;
}
h1{margin:12px 0 6px;font-size:40px;line-height:1.1}
.sub{margin:0;color:var(--muted)}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
  margin-top:20px;
}

.card{
  background: linear-gradient(180deg, rgba(16,26,50,.95), rgba(16,26,50,.75));
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.product{grid-column: span 12; display:grid; grid-template-columns: 420px 1fr;}
@media (max-width: 920px){
  .product{grid-template-columns: 1fr;}
  h1{font-size:32px}
}

.gallery{padding:14px; border-right:1px solid var(--line);}
@media (max-width: 920px){ .gallery{border-right:none; border-bottom:1px solid var(--line);} }

.main-img{
  width:100%; height:360px; object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
  background:#0a1020;
}
.thumbs{display:flex; gap:10px; margin-top:12px}
.thumb{
  border:1px solid var(--line);
  padding:0; border-radius:12px;
  background:transparent;
  cursor:pointer;
  overflow:hidden;
  width:76px; height:58px;
  opacity:.75;
}
.thumb img{width:100%; height:100%; object-fit:cover; display:block}
.thumb.active{outline:2px solid var(--accent); opacity:1}

.content{padding:18px 18px 16px}
h2{margin:6px 0 8px; font-size:22px}
.muted{color:var(--muted)}
.meta{display:flex; gap:10px; flex-wrap:wrap; margin:12px 0 14px}
.pill{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.12);
}

.actions{display:flex; gap:10px; align-items:center}

.btn{
  border:1px solid transparent;
  border-radius:14px;
  padding:12px 14px;
  cursor:pointer;
  font-weight:700;
  color:var(--text);
  background: rgba(255,255,255,.08);
}
.btn:hover{filter:brightness(1.05)}
.btn-primary{
  background: linear-gradient(90deg, var(--accent), #6fd0ff);
  color:#061022;
}
.btn-outline{
  border-color: var(--line);
  background: transparent;
}

.order{grid-column: span 12; padding:18px; margin-top:16px}
.order-head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap}
.form{margin-top:14px; display:flex; flex-direction:column; gap:12px}
label{display:flex; flex-direction:column; gap:8px; font-weight:600}
input,select,textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
textarea{resize:vertical; min-height:88px}

.row{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width: 720px){ .row{grid-template-columns:1fr;} }

.row-actions{align-items:center}
.hint{min-height:20px; color:var(--muted); font-weight:600}
.hint.ok{color:var(--ok)}
.hint.bad{color:var(--bad)}

.footer{padding:22px 0 10px; text-align:center}
