/* ============================================================
   CLUBE KABUSCORP — ESTILO (inspirado em yeezy.com)
   Minimalismo total: fundo branco, texto preto, maiúsculas,
   tipografia de sistema, muito espaço em branco.
   ============================================================ */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #8a8a8a;
  --line: #e5e5e5;
  --accent: #c8102e; /* vermelho do clube */
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- CABEÇALHO ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.site-header .brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.site-header nav {
  display: flex;
  gap: 20px;
}

.site-header nav a:hover,
.cart-link:hover {
  color: var(--accent);
}

.cart-link .count {
  color: var(--accent);
}

/* ============================================================
   CABEÇALHO ESTILO YEEZY (grelha) — usado em todas as páginas
   ============================================================ */
.top {
  position: relative;
  padding: 16px 20px 14px;
}

/* Botão "+" (zoom) à esquerda / seta "<" de voltar */
.zoom-toggle,
.top .back {
  position: absolute;
  left: 16px;
  top: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 34px;
  line-height: 1;
  font-weight: 300;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 0;
  z-index: 5;
}

.zoom-toggle:hover,
.top .back:hover {
  color: var(--accent);
}

/* Carrinho à direita: número + saco */
.top .cart-link {
  position: absolute;
  right: 20px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 15px;
  z-index: 5;
}

.top .cart-link .bag {
  display: block;
}

.top .cart-link:hover {
  color: var(--accent);
}

/* Bloco central: logo + navegação */
.top-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.logo-mark img {
  height: 76px;
  width: auto;
  display: inline-block;
  margin-bottom: 12px;
}

.grid-nav {
  line-height: 1.5;
}

.grid-nav a {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #cfcfcf;
  margin: 0 8px;
  transition: color 0.15s ease;
}

.grid-nav a.active {
  color: var(--fg);
  font-weight: 700;
}

.grid-nav a:hover {
  color: var(--accent);
}

/* ---------- GRELHA DE PRODUTOS + ZOOM ("+") ---------- */
.product-grid {
  display: grid;
  gap: 30px 20px;
  padding: 30px 26px 80px;
}

.product-grid[data-zoom="3"] {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid[data-zoom="2"] {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}

.product-grid[data-zoom="1"] {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-transform: none;
}

.grid-item .img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-grid[data-zoom="1"] .grid-item .img-wrap {
  aspect-ratio: 4 / 3;
}

.grid-item img {
  max-width: 76%;
  max-height: 76%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.grid-item:hover img {
  transform: scale(1.03);
}

.grid-item .code {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--fg);
}

/* ---------- HOME ANTIGA (mantida por compatibilidade) ---------- */
main {
  flex: 1;
}

.home-logo {
  text-align: center;
  padding: 46px 20px 0;
}

.home-logo img {
  width: 150px;
  height: auto;
  display: inline-block;
}

.index-list {
  list-style: none;
  text-align: center;
  padding: 8vh 20px 12vh;
}

.index-list .category {
  color: var(--muted);
  margin: 42px 0 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.index-list .category:first-child {
  margin-top: 10px;
}

.index-list li a {
  display: inline-block;
  padding: 4px 0;
  position: relative;
  transition: color 0.15s ease;
}

.index-list li a:hover {
  color: var(--accent);
}

.index-list li a .price {
  color: var(--muted);
  margin-left: 10px;
}

.index-list li a:hover .price {
  color: var(--accent);
}

/* ---------- PÁGINA DE PRODUTO ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 60px);
}

.product .gallery {
  display: flex;
  flex-direction: column;
}

.product .gallery img,
.product .gallery .ph {
  width: 100%;
  display: block;
}

.product .ph {
  aspect-ratio: 4 / 5;
  background: #f4f4f4;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--line);
}

/* Cada imagem da galeria + botão de ampliar */
.product .gallery .shot {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.product .gallery .shot img {
  cursor: zoom-in;
}

.zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #000;
  transition: all 0.15s ease;
}

.zoom-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.product .info {
  padding: 40px 34px;
  position: sticky;
  top: 60px;
  align-self: start;
}

.product .info h1 {
  font-size: 15px;
  font-weight: 700;
}

.product .info .price {
  margin-top: 10px;
  color: var(--muted);
}

.product .info .desc {
  margin-top: 22px;
  text-transform: none;
  letter-spacing: 0;
  max-width: 46ch;
  color: #333;
  line-height: 1.6;
  font-size: 13px;
}

.product .field {
  margin-top: 26px;
}

.product .field label {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 11px;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-options button {
  font: inherit;
  text-transform: uppercase;
  background: var(--bg);
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.size-options button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.size-options button.selected {
  background: var(--fg);
  color: var(--bg);
}

.btn-add {
  margin-top: 28px;
  width: 100%;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-add:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.back-link {
  display: inline-block;
  padding: 18px 22px;
  color: var(--muted);
}

.back-link:hover {
  color: var(--accent);
}

/* ---------- CARRINHO ---------- */
.cart {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 22px 80px;
  width: 100%;
}

.cart h1 {
  font-size: 15px;
  margin-bottom: 30px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cart-item .thumb {
  width: 64px;
  aspect-ratio: 4 / 5;
  background: #f4f4f4;
  object-fit: cover;
}

.cart-item .meta .name {
  font-weight: 700;
}

.cart-item .meta .sub {
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
}

.cart-item .remove {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  text-transform: uppercase;
}

.cart-item .remove:hover {
  color: var(--accent);
}

.cart-item .line-price {
  white-space: nowrap;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--fg);
  margin-top: 10px;
  font-weight: 700;
}

.cart-empty {
  color: var(--muted);
  padding: 40px 0;
}

.btn-checkout {
  display: block;
  width: 100%;
  text-align: center;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-checkout:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- RODAPÉ ---------- */
.site-footer {
  padding: 40px 22px;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ---------- NOTIFICAÇÃO ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--fg);
  color: var(--bg);
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- PÁGINA DE PRODUTO (galeria frente/verso + trocar artigo) ---------- */
.pdp {
  max-width: 760px;
  margin: 0 auto;
  padding: 4px 24px 24px;
  text-align: center;
  text-transform: none;
}

.pdp-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44vh;
  min-height: 260px;
}

.pdp-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.pdp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  transition: color 0.15s ease;
}

.pdp-arrow.left {
  left: 0;
}

.pdp-arrow.right {
  right: 0;
}

.pdp-arrow:hover {
  color: var(--accent);
}

.pdp-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 8px;
}

.pdp-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d3d3d3;
}

.pdp-dots span.on {
  background: var(--fg);
}

.pdp-code {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.pdp-price {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 15px;
}

.pdp-sizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pdp-sizes button {
  font: inherit;
  font-family: var(--mono);
  text-transform: uppercase;
  background: var(--bg);
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 8px 13px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.pdp-sizes button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pdp-sizes button.selected {
  background: var(--fg);
  color: var(--bg);
}

.pdp-add {
  margin-top: 14px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  transition: color 0.15s ease;
}

.pdp-add:hover {
  color: var(--accent);
}

.pdp-hint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* ---------- LIGHTBOX / AMPLIAÇÃO (estilo yeezy.com) ---------- */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
  overflow: hidden;
}

.zoom-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.zoom-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.18s ease;
  will-change: transform;
}

.zoom-img.zoomed {
  transform: scale(2.4);
  cursor: zoom-out;
  transition: transform 0.05s ease-out;
}

.zoom-close {
  position: fixed;
  top: 16px;
  right: 22px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  z-index: 101;
}

.zoom-close:hover {
  color: var(--accent);
}

.zoom-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  z-index: 101;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 720px) {
  .product {
    grid-template-columns: 1fr;
  }
  .product .info {
    position: static;
  }
}

/* ---------- VOLTAR AO SITE PRINCIPAL ---------- */
.site-back {
  display: block;
  background: var(--fg);
  color: var(--bg);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 9px 16px;
  transition: background 0.15s ease;
}
.site-back:hover {
  background: var(--accent);
}
