
:root{--bg:#0f1115;--card:#151924;--text:#e8ecf3;--muted:#a7b1c2;--brand:#5eead4;--accent:#38bdf8;}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.6}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:24px}
.grid{display:grid;gap:16px}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.card{background:var(--card);border:1px solid #22293a;border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.btn{display:inline-block;background:var(--brand);color:#082c2a;font-weight:700;border-radius:12px;padding:12px 16px;margin-right:8px}
.btn.secondary{background:transparent;border:1px solid var(--brand);color:var(--text)}
.badge{display:inline-block;padding:4px 8px;background:#1f2635;border:1px solid #2a3347;border-radius:999px;color:var(--muted);font-size:12px}
nav{position:sticky;top:0;background:rgba(15,17,21,.8);backdrop-filter:blur(8px);border-bottom:1px solid #22293a;z-index:20}
nav .container{display:flex;align-items:center;justify-content:space-between}
nav a.logo{font-weight:800;color:var(--text)}
nav .menu a{margin-left:14px;color:var(--muted)}
header.hero{padding:48px 0 16px}
.hero h1{font-size:34px;margin:0 0 6px}
.hero p{color:var(--muted);margin:0 0 16px}
.kv{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}
.kv img{width:100%;border-radius:16px;border:1px solid #22293a}
@media(max-width:900px){.kv{grid-template-columns:1fr}}
.ft{border-top:1px solid #22293a;margin-top:36px;padding:24px;color:var(--muted)}
.table{width:100%;border-collapse:separate;border-spacing:0 8px}
.table th,.table td{text-align:left;padding:10px 12px;background:#121725;border:1px solid #22293a}
.table th{color:#c7d2e0}
.table tr td:first-child,.table tr th:first-child{border-radius:10px 0 0 10px}
.table tr td:last-child,.table tr th:last-child{border-radius:0 10px 10px 0}
.faq dt{cursor:pointer;background:#121725;border:1px solid #22293a;margin:10px 0;padding:12px;border-radius:12px}
.faq dd{margin:0 0 8px 0;padding:0 12px 12px;display:none;color:var(--muted)}
.breadcrumbs{font-size:14px;color:var(--muted);margin:8px 0 16px}
img.resp{width:100%;height:auto;border-radius:12px;border:1px solid #22293a}
.small{font-size:14px;color:var(--muted)}
.hl{color:#fff}

/* --- Product gallery & pricing & urgency --- */
.price{display:flex;align-items:center;gap:10px;margin:8px 0 12px}
.price .old{color:#a7b1c2;text-decoration:line-through}
.price .new{font-size:22px;font-weight:800;color:#fff}
.stock{display:inline-block;background:#231d1d;border:1px solid #3a2c2c;border-radius:10px;padding:6px 10px;color:#fca5a5;margin:8px 0}
.timer{display:flex;align-items:center;gap:10px;background:#12201e;border:1px solid #1e3a35;border-radius:12px;padding:10px 12px;margin:10px 0;color:#a7f3d0}
.timer .num{font-weight:800;color:#d1fae5}
.gallery{display:grid;grid-template-columns:1fr;gap:10px}
.gallery .main img{width:100%;height:auto;border-radius:14px;border:1px solid #22293a}
.gallery .thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.gallery .thumbs img{width:100%;height:74px;object-fit:cover;border-radius:10px;border:2px solid #22293a;cursor:pointer;opacity:.9}
.gallery .thumbs img.active{border-color:#5eead4;opacity:1}
.desc{background:#111621;border:1px solid #22293a;border-radius:12px;padding:12px;margin-top:12px;color:#c7d2e0}
.badge.urgent{background:#2b1d1d;border-color:#4d2b2b;color:#fecaca}

/* --- Product page: gallery on top --- */
.kv.product{grid-template-columns:1fr}
 /* gallery block first */
.kv.product .main img{cursor:zoom-in}

/* --- Lightbox --- */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);display:none;align-items:center;justify-content:center;z-index:9999}
.lightbox.open{display:flex}
.lightbox img{max-width:92vw;max-height:86vh;border-radius:12px;border:1px solid #333}
.lightbox .close,.lightbox .prev,.lightbox .next{
  position:absolute;top:20px;background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);color:#fff;padding:10px 14px;border-radius:10px;cursor:pointer
}
.lightbox .close{right:20px}
.lightbox .prev{left:20px;top:50%;transform:translateY(-50%)}
.lightbox .next{right:20px;top:50%;transform:translateY(-50%)}

/* V3 RESET RESPONSIVE */
.kv.product{grid-template-columns:1fr; gap:18px}
.kv.product h1 + .gallery{margin-top:6px}
.gallery .main{position:relative}
@media(max-width: 700px){
  .gallery .main img{aspect-ratio:3/4; width:100%; height:auto; object-fit:cover}
  .gallery .thumbs{grid-template-columns:repeat(4,1fr)}
  .gallery .thumbs img{aspect-ratio:3/4; height:auto; object-fit:cover}
}
@media(min-width: 701px){
  .gallery .main img{width:100%; height:auto; max-height:640px; object-fit:contain}
  .gallery .thumbs{grid-template-columns:repeat(6,1fr)}
  .gallery .thumbs img{height:96px; object-fit:cover}
}
