/* ========== GLOBAL ========== */
:root{
  --bg:#0a0a0a;
  --card: rgba(255,255,255,.035);
  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.16);
  --text:#f2f2f2;
  --muted: rgba(255,255,255,.70);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* Top nav */
.nav{
  width:min(1200px, 96vw);
  margin: 18px auto 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.nav a{
  color: var(--muted);
  text-decoration:none;
}
.nav a:hover{ color: var(--text); }

.pillnav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pillnav a{
  border:1px solid var(--border);
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.03);
}

/* Scene wrapper for images */
.stage{
  width:min(1200px, 96vw);
  margin: 18px auto 40px;
}
.scene{
  position:relative;
  width:100%;
}
.bg{
  width:100%;
  display:block;
  border-radius:18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

/* ========== HOTSPOTS ========== */
/* Debug ON by default so you can align. When done, set outline/background to none/transparent. */
.hotspot{
  position:absolute;
  cursor:pointer;
  border-radius:16px;
  outline:none;
  background:transparent;
}

/* ===== OUTSIDE PAGE DOOR (edit these numbers) ===== */
.door{
  left: 75%;
  top: 33%;
  width: 10%;
  height: 35%;
}

/* ===== INSIDE PAGE HOTSPOTS (starting guesses – you MUST tweak) ===== */
/* Rule: cover torso/tabletop only (not stands) */
.m1{ left:3%;  top:38%; width:6%; height:19%; }
.m2{ left:12%; top:41%; width:4%; height:13%; }
.m3{ left:17%; top:40%; width:2%; height:13%; }
.m4{ left:25%; top:42%; width:7%; height:15%; }


.table{
  left: 40%;
  top: 55%;
  width: 20%;
  height: 25%;
  border-radius: 999px;
}

.m5{ left:67%; top:42%; width:7%; height:15%; }
.m6{ left:81%; top:41%; width:2%; height:13%; }
.m7{ left:85%; top:40%; width:4%; height:13%; }
.m8{ left: 92%; top: 37%; width: 6%; height: 17%; }

/* ========== PRODUCT PAGE (FIGS-like) ========== */
.product-wrap{
  width:min(1200px, 96vw);
  margin: 18px auto 60px;
}
.product-grid{
  display:grid;
  grid-template-columns: 90px 1fr 420px;
  gap:18px;
  align-items:start;
}
.card{
  border:1px solid var(--border);
  background: var(--card);
  border-radius:22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.thumbs{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.thumb{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius:14px;
  padding:6px;
  cursor:pointer;
}
.thumb img{ width:100%; display:block; border-radius:10px; }
.thumb.active{ border-color: rgba(255,255,255,.35); }

.hero{
  padding:18px;
}
.hero img{
  width:100%;
  height:min(78vh, 760px);
  object-fit:contain;
  display:block;
  border-radius:18px;
}

.panel{
  padding:18px;
}
.title{
  margin:2px 0 10px;
  font-size:30px;
  letter-spacing:.2px;
}
.price{
  font-size:18px;
  opacity:.9;
  margin-bottom:14px;
}

.section{ margin:18px 0; }
.label{ font-size:13px; opacity:.85; margin-bottom:10px; }
.muted{ opacity:.7; margin-left:6px; }

.swatches{ display:flex; gap:10px; flex-wrap:wrap; }
.swatch{
  width:28px; height:28px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  cursor:pointer;
}
.swatch.selected{ box-shadow: 0 0 0 2px rgba(255,255,255,.35); }

.grid-btns{ display:flex; flex-wrap:wrap; gap:10px; }
.pill{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
}
.pill.selected{
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.10);
}

textarea{
  width:100%;
  min-height:90px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  padding:12px;
  resize: vertical;
}

.cta{
  width:100%;
  margin-top: 8px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--border2);
  background: rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
  font-size:15px;
}
.cta:hover{ background: rgba(255,255,255,.16); }

.hint{ font-size:12px; opacity:.7; margin-top:10px; }

.details{ margin:10px 0 0; padding-left: 18px; opacity:.9; }
.details li{ margin:8px 0; }

/* ========== GALLERY PAGE ========== */
.gallery{
  width:min(1200px, 96vw);
  margin: 18px auto 60px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.gcard{
  border:1px solid var(--border);
  background: var(--card);
  border-radius:22px;
  overflow:hidden;
  text-decoration:none;
  color:var(--text);
}
.gcard img{
  width:100%;
  height:280px;
  object-fit:cover;
  display:block;
}
.gcard .ginfo{
  padding:14px;
}
.gcard .gtitle{ font-size:16px; margin:0 0 8px; }
.gcard .gprice{ opacity:.8; font-size:14px; }

@media (max-width: 980px){
  .product-grid{ grid-template-columns: 70px 1fr; }
  .panel{ grid-column: 1 / -1; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .gallery{ grid-template-columns: 1fr; }
}