:root { --bg:#0f1115; --card:#151823; --muted:#8b93a7; --text:#e8ecf1; --accent:#5ac8fa; }
*{box-sizing:border-box} body{margin:0; font-family:system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, sans-serif; background:var(--bg); color:var(--text)}
.container{max-width:1100px; margin:0 auto; padding:24px}
header h1{margin:0 0 8px}
.muted{color:var(--muted)}
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px}
.card{background:var(--card); border:1px solid #23283a; border-radius:16px; overflow:hidden; display:flex; flex-direction:column}
.thumb{width:100%; height:180px; object-fit:cover; background:#0b0d12}
.card-body{padding:16px}
.card h2{margin:0 0 8px; font-size:18px}
.price{font-weight:700; margin:0 0 8px; color:var(--accent)}
.desc{margin:0 0 12px; color:#c6cbdb}
.stock{font-size:12px; padding:6px 10px; border-radius:999px; display:inline-block; border:1px solid #2a3046}
.stock.in{background:#143022; color:#bdf8d0; border-color:#204936}
.stock.out{background:#3b1a1a; color:#f5c4c4; border-color:#5a2b2b}
.footer{display:flex; justify-content:center}
button{background:var(--accent); color:#0a0a0a; border:none; padding:10px 16px; border-radius:10px; font-weight:700; cursor:pointer}
button:hover{filter:brightness(1.05)}
.gallery {display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px}
.gallery img{width:180px; height:180px; object-fit:cover; border-radius:12px; border:1px solid #2a3046}
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 9999;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #2a3046;
  background: #151823;
  color: #e8ecf1;
  cursor: pointer;
}
.lightbox-close:hover {
  filter: brightness(1.1);
}

/* Indicar que dá pra ampliar */
.gallery img {
  cursor: zoom-in;
}