:root {
  --bg: #0b0b0c;
  --card: #141416;
  --line: #2a2a2e;
  --text: #f5f5f3;
  --muted: #8d8d93;
  --green: #25d366;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 "IBM Plex Sans", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11,11,12,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.logo { font-family: "IBM Plex Mono", monospace; letter-spacing: .16em; font-weight: 600; }
.logo small { display: block; color: var(--muted); letter-spacing: .06em; font-size: 11px; margin-top: 2px; }

.banner { position: relative; width: 100%; aspect-ratio: 1920 / 1080; background: #111; overflow: hidden; }
.banner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.banner img.on { opacity: 1; }
.banner .dots {
  position: absolute; left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; gap: 8px;
}
.banner .dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; background: #fff6; cursor: pointer;
}
.banner .dots button.on { background: #fff; }

.section { padding: 42px 0 10px; }
.section h2 { margin: 0 0 18px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.card .b { opacity: 0; }
.card:hover .b.has { opacity: 1; }
.card:hover .a.swap { opacity: 0; }
.meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  display: flex; justify-content: space-between; gap: 8px; font-size: 13px;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; cursor: pointer; font: inherit;
}
.filters button.on { color: #fff; border-color: #fff; }

.page { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; padding: 36px 0 70px; }
.main-pic { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #111; }
.main-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 1px solid var(--line); background: #111; border-radius: 8px; overflow: hidden; cursor: pointer; }
.thumbs button.on { border-color: #fff; }
.thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.info h1 { margin: 0 0 8px; font-size: 34px; }
.price { font-size: 22px; margin-bottom: 14px; }
.desc { color: #d0d0d4; white-space: pre-wrap; }
.box { margin: 20px 0; }
.box h3 { margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button {
  background: #111; color: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; font: inherit;
}
.pills button.on { border-color: #fff; }
.wa {
  display: block; text-align: center; margin-top: 16px; background: var(--green); color: #062;
  font-weight: 700; border-radius: 999px; padding: 14px;
}
.empty { color: var(--muted); padding: 20px 0 50px; }
footer { border-top: 1px solid var(--line); padding: 22px 0 36px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .page { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
}
