:root {
  --bg: #050505;
  --panel: #0f0f10;
  --text: #f2f2f2;
  --muted: #b6b6b6;
  --accent: #ffffff;
  --border: #262626;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
}

.hero {
  position: relative;
  height: min(90vh, 720px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.92));
}

.topbar {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.btn {
  border: 1px solid #ffffff;
  color: #0a0a0a;
  background: #ffffff;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.btn.secondary {
  width: 100%;
  border-color: var(--border);
  color: var(--text);
  background: #111;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1rem 1.5rem;
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 8vw, 5rem);
  letter-spacing: 0.12em;
  font-weight: 900;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.catalogo {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.catalogo-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.catalogo-head h2 {
  margin: 0;
  letter-spacing: 0.08em;
}

.catalogo-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, #101010 0%, #0a0a0a 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 230px auto;
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #3d3d3d;
}

.thumb-wrap {
  width: 100%;
  background: #060606;
}

.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 0.95rem;
  display: grid;
  gap: 0.7rem;
}

.name {
  margin: 0;
  font-size: 1rem;
}

.price {
  margin: 0;
  color: var(--muted);
}

.viewer {
  width: min(980px, 94vw);
  border: 1px solid var(--border);
  background: #070707;
  color: var(--text);
  border-radius: 18px;
  padding: 1.2rem;
}

.viewer::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.close {
  border: 0;
  background: #1a1a1a;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  float: right;
}

.viewer-media {
  clear: both;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}

.viewer-media img,
.viewer-media video {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #000;
}

.viewer-info {
  margin-top: 0.9rem;
  color: var(--muted);
}

.payment {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.payment-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.zoom {
  width: min(1100px, 96vw);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #050505;
  color: var(--text);
  padding: 1rem 1.5rem;
  position: relative;
}

.zoom::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.zoom-content {
  clear: both;
  margin-top: 0.5rem;
}

.zoom-content img,
.zoom-content video {
  width: 100%;
  max-height: min(80vh, 720px);
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #000;
}

.zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.9);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.zoom-nav.prev {
  left: 0.6rem;
}

.zoom-nav.next {
  right: 0.6rem;
}

@media (max-width: 720px) {
  .card {
    grid-template-rows: 200px auto;
  }
}
