/* PimPorts — tema escuro preto e vermelho (neon do logo) */
:root {
  --bg: #0a0909;
  --bg-2: #121010;
  --surface: #181414;
  --surface-2: #211b1b;
  --border: #2e2525;
  --text: #f4efef;
  --muted: #a89d9d;
  --red: #e3262b;
  --red-hover: #ff3b3f;
  --red-dark: #9e1418;
  /* Sem brilho neon (pedido do dono, 02/11/2026); o neon fica só no letreiro do topo. */
  --red-glow: none;
  --ok: #3ccf7a;
  --radius: 10px;
  --max: 1240px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Montserrat", var(--font);
  --strong: #fff;
  --header-bg: rgba(10, 9, 9, .92);
  --img-bg-a: #2a2222;
  --img-bg-b: #141111;
  --erro-text: #ffd6d7;
  --whats-texto: #25d366;
  color-scheme: dark;
}
/* Modo claro (botão sol/lua no topo; escolha salva em localStorage "pim-tema").
   O gramado do letreiro continua escuro nos dois modos. */
:root[data-theme="light"] {
  --bg: #f5f2f2;
  --bg-2: #ece7e7;
  --surface: #ffffff;
  --surface-2: #f3eeee;
  --border: #e0d6d6;
  --text: #1c1616;
  --muted: #675b5b;
  --red: #d71f25;
  --red-hover: #b3161b;
  --ok: #1f9d55;
  --strong: #120e0e;
  --header-bg: rgba(255, 255, 255, .92);
  --img-bg-a: #ffffff;
  --img-bg-b: #eee8e8;
  --erro-text: #8f1216;
  --whats-texto: #128c4a;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-hover); outline-offset: 2px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cabeçalho ---------- */
.topbar {
  background: var(--red-dark);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 16px;
}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(227, 38, 43, .35);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { flex-shrink: 0; display: inline-flex; align-items: center; }
/* Logo em texto: "Pim" branco + "Ports" vermelho, brilho leve para ler bem */
.logo-nome {
  display: inline-grid;
  grid-template-columns: auto auto;
  line-height: 1;
  font-family: var(--font-title);
}
.logo-nome .ln-pim, .logo-nome .ln-ports { font-size: 28px; font-weight: 800; letter-spacing: .01em; }
.logo-nome .ln-pim { color: var(--strong); }
.logo-nome .ln-ports { color: var(--red-hover); }
.logo-nome small {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  transition: color .15s, background .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--red-hover); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text);
}
.icon-btn:hover { background: var(--surface); }
/* Botão de tema: à esquerda da busca, com um respiro a mais. */
.tema-btn { margin-right: 8px; }
.tema-btn .sol { display: none; }
:root[data-theme="light"] .tema-btn .sol { display: block; }
:root[data-theme="light"] .tema-btn .lua { display: none; }
.icon-btn svg { width: 24px; height: 24px; }
.badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: var(--red-glow);
}
.menu-toggle { margin-left: -10px; margin-right: -12px; }

/* Gaveta lateral (menu de 3 traços): ligas que abrem a lista de times */
.gaveta-fundo {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.gaveta {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: min(340px, 88vw);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  box-shadow: 1px 0 0 rgba(227, 38, 43, .35);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.gaveta-aberta { overflow: hidden; }
.gaveta-aberta .gaveta-fundo { opacity: 1; visibility: visible; }
.gaveta-aberta .gaveta { transform: none; visibility: visible; }
.gaveta-topo {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 10px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-title);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.gaveta-links { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--border); }
.gaveta-links a, .gaveta-liga summary, .gaveta-liga a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  font-weight: 700;
  color: var(--muted);
}
.gaveta-links a:hover, .gaveta-liga a:hover, .gaveta-liga summary:hover { color: var(--text); background: var(--surface); }
.gaveta a[aria-current="page"] { color: var(--red-hover); }
.gaveta-liga { border-bottom: 1px solid var(--border); }
.gaveta-liga summary {
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 15px;
  min-height: 52px;
}
.gaveta-liga summary::-webkit-details-marker { display: none; }
.gaveta-liga summary span {
  margin-left: auto;
  font-family: var(--font);
  font-size: 12px;
  color: var(--muted);
}
.gaveta-liga summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.gaveta-liga[open] summary { color: var(--red-hover); }
.gaveta-liga[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.gaveta-liga ul { list-style: none; margin: 0; padding: 0 0 10px; }
.gaveta-liga a { min-height: 40px; padding-left: 32px; font-size: 15px; }
/* Busca (lupa no topo): campo + resultados enquanto digita */
.busca-painel { border-top: 1px solid var(--border); background: var(--bg-2); padding: 12px 0 16px; }
.busca-painel .container { max-width: 820px; }
.busca-form { display: flex; align-items: center; gap: 10px; }
.busca-form input::-webkit-search-cancel-button { display: none; }
.busca-form > svg { width: 22px; height: 22px; color: var(--muted); flex-shrink: 0; }
.busca-form input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 16px;
}
.busca-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 38, 43, .25); }
.busca-resultados:empty { display: none; }
.busca-resultados { margin-top: 12px; max-height: min(60vh, 520px); overflow-y: auto; }
.busca-times { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.busca-times .chip-time, .chips-times .chip-time { display: inline-flex; align-items: center; gap: 6px; }
.busca-lista { list-style: none; margin: 0; padding: 0; }
.busca-lista a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; }
.busca-lista a:hover, .busca-lista a:focus-visible { background: var(--surface); }
.busca-lista img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--surface-2); flex-shrink: 0; }
.busca-lista span { flex: 1; font-weight: 700; font-size: 15px; }
.busca-lista b { color: var(--red-hover); font-size: 14px; white-space: nowrap; }
.busca-todos { display: inline-block; margin: 8px 8px 0; color: var(--red-hover); font-weight: 800; }
.busca-vazio { margin: 0; color: var(--muted); }
/* Instagram do topo e do menu: mesmo visual do rodapé (ícone e texto no degradê do Instagram). */
.link-insta { display: inline-flex; align-items: center; gap: 8px; }
.link-insta .rs-icone { width: 24px; height: 24px; border-radius: 7px; }
.link-insta .rs-icone svg { width: 15px; height: 15px; }
/* No menu lateral o Instagram fica simples, como os outros links (pedido do dono). */
.link-insta-simples { display: inline-flex; align-items: center; gap: 6px; }
.link-insta-simples svg { width: 18px; height: 18px; }
.gaveta-liga a .escudo { width: 22px; height: 22px; object-fit: contain; }
.gaveta-liga .gaveta-todos { color: var(--red-hover); font-size: 14px; }

@media (max-width: 860px) {
  .topbar { font-size: 11px; letter-spacing: 0; }
  .header-inner { gap: 8px; min-height: 64px; }
  .logo-nome .ln-pim, .logo-nome .ln-ports { font-size: 23px; }
  .logo-nome small { font-size: 8px; letter-spacing: .26em; }
  .menu-toggle { margin-right: 0; }
  .nav { display: none; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  white-space: nowrap;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); box-shadow: var(--red-glow); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { background: rgba(227, 38, 43, .12); color: var(--strong); }
.btn-block { width: 100%; }
.btn-whats { background: #1f9d55; border-color: #1f9d55; }
.btn-whats:hover { background: #25b864; border-color: #25b864; box-shadow: 0 0 18px rgba(37, 184, 100, .45); }
.link { color: var(--red-hover); font-weight: 700; }
.link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  /* Gramado à noite: faixas de corte da grama + linhas do campo bem apagadas + vinheta */
  background:
    radial-gradient(ellipse 75% 85% at 50% 50%, transparent 45%, rgba(0,0,0,.8) 100%),
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(255,255,255,.05), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='560' viewBox='0 0 1200 560'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='3'%3E%3Cline x1='600' y1='0' x2='600' y2='560'/%3E%3Ccircle cx='600' cy='280' r='120'/%3E%3Crect x='-2' y='130' width='150' height='300'/%3E%3Crect x='1052' y='130' width='150' height='300'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat,
    repeating-linear-gradient(90deg, #0b1a10 0 100px, #0e2014 100px 200px);
  border-bottom: 1px solid var(--border);
}
/* Letreiro sem neon (SVG vetorizado), tirado da foto original */
.hero-img {
  display: block;
  width: calc(100% - 32px);
  max-width: 860px;
  height: auto;
  margin: 0 auto;
  padding: 40px 0;
}
.hero-content {
  position: relative;
  margin-top: -24px;
  padding-bottom: 48px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.hero p { color: var(--muted); margin: 0 auto 24px; max-width: 560px; font-size: 17px; }
.hero .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) {
  .hero-img { padding: 24px 0; }
  .hero-content { margin-top: 0; padding-bottom: 32px; }
}

/* ---------- Faixa de vantagens ---------- */
.vantagens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 0;
}
.vantagem { display: flex; gap: 12px; align-items: center; }
.vantagem svg { width: 34px; height: 34px; flex-shrink: 0; color: var(--red); filter: drop-shadow(0 0 6px rgba(227, 38, 43, .6)); }
.vantagem strong { display: block; font-size: 15px; }
.vantagem span { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .vantagens { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .vantagens { grid-template-columns: 1fr; } }

/* ---------- Seções ---------- */
.secao { padding: 48px 0; }
.secao-titulo {
  font-family: var(--font-title);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  text-align: center;
  margin: 0 0 8px;
}
.secao-sub { text-align: center; color: var(--muted); margin: 0 0 28px; }

/* Abas de ligas (equivalente à grade "New Arrival / ligas" da referência) */
.abas {
  /* uma coluna por aba, todas na mesma linha (eram 7 colunas fixas para 8 abas) */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.aba {
  background: var(--surface);
  border: 0;
  border-right: 1px solid var(--border);
  padding: 14px 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.aba:last-child { border-right: 0; }
.aba:hover { color: var(--text); background: var(--surface-2); }
.aba[aria-selected="true"] { background: var(--red); color: #fff; }
@media (max-width: 960px) {
  .abas { display: flex; overflow-x: auto; scrollbar-width: none; }
  .aba { flex: 0 0 auto; padding: 12px 16px; }
}

/* ---------- Grade de produtos ---------- */
.grade {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .grade { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grade { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(227, 38, 43, .18); }
.card-img {
  position: relative;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 40%, var(--img-bg-a), var(--img-bg-b) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
/* Fotos reais ocupam o card inteiro; ilustrações SVG ficam com margem. */
.card-img.foto { padding: 0; }
.card-img.foto img { object-fit: cover; }
.card-img.foto .selo { top: 10px; left: 10px; }
.card-img .alt { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); opacity: 0; }
.card:hover .card-img .alt { opacity: 1; }
.card:hover .card-img .principal:not(:only-child) { opacity: 0; }
.selo {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 1;
}
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-time { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 6px; }
.escudo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.escudo-grande { width: 56px; height: 56px; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.produto-marcas { display: flex; align-items: center; gap: 12px; min-height: 0; }
.produto-marcas:empty { display: none; }
.produto-marcas .escudo-grande { margin-bottom: 4px; }
.marca {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--muted);
  background: var(--surface);
}
.card-nome { font-weight: 700; font-size: 15px; line-height: 1.35; margin: 0; }
.card-rodape { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.preco-label { color: var(--muted); font-size: 12px; display: block; }
.preco { color: var(--red-hover); font-weight: 800; font-size: 19px; }
.card-cart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}
.card:hover .card-cart { background: var(--red); border-color: var(--red); }
.card-cart svg { width: 20px; height: 20px; }

.vazio {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}
.vazio strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }

/* ---------- Cards de times ---------- */
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.time-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 160px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--border);
  transition: border-color .15s, box-shadow .15s;
}
.time-card:hover { border-color: var(--red); box-shadow: 0 0 24px rgba(227, 38, 43, .25); }
.time-card::before { content: ""; position: absolute; inset: 0; background: var(--padrao); opacity: .9; }
.time-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.25)); }
.time-card > * { position: relative; z-index: 1; }
.time-card > .escudo-grande {
  width: 76px;
  height: 76px;
  margin: 0 0 auto;
  padding-bottom: 12px;
  box-sizing: content-box;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .7));
  transform-origin: left top;
  transition: transform .2s;
}
.time-card:hover > .escudo-grande { transform: scale(1.06); }
/* Card sempre escuro (cor do clube + sombra): texto claro fixo nos dois temas. */
.time-card h3 { font-family: var(--font-title); font-size: 24px; line-height: 1.2; margin: 0; color: #f4efef; }
.time-card span { color: #c9bfbf; font-size: 14px; }

/* ---------- Sobre ---------- */
.sobre {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 40px;
}
.sobre h2 { font-family: var(--font-title); margin-top: 0; font-size: 28px; }
.sobre p { color: var(--muted); }
@media (max-width: 860px) { .sobre { padding: 24px; } }

/* ---------- Breadcrumb / cabeçalho de coleção ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }
.colecao-topo { border-left: 4px solid var(--red); padding-left: 16px; margin: 8px 0 24px; }
.colecao-topo h1 { font-family: var(--font-title); margin: 0 0 4px; font-size: clamp(24px, 3.4vw, 34px); }
.colecao-topo p { margin: 0; color: var(--muted); max-width: 760px; }
.chips-times { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chips-times:empty { display: none; }
.chip-time {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: border-color .15s, color .15s;
}
.chip-time:hover { border-color: var(--red); color: var(--text); }
.chip-time[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }
.ver-todas { grid-column: 1 / -1; text-align: center; margin-top: 8px; }
.barra-filtros { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.barra-filtros .total { color: var(--muted); font-size: 14px; }
.select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
}

/* ---------- Página de produto ---------- */
.produto { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding-bottom: 48px; }
@media (max-width: 900px) { .produto { grid-template-columns: 1fr; gap: 24px; } }
.galeria-principal {
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 40%, var(--img-bg-a), var(--img-bg-b) 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.galeria-principal img { width: 100%; height: 100%; object-fit: contain; }
.galeria-principal.foto { padding: 0; overflow: hidden; }
.galeria-principal.foto img { object-fit: cover; }
.item-img.foto { padding: 0; overflow: hidden; }
.item-img.foto img { object-fit: cover; }
.miniaturas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.miniatura {
  width: 84px;
  height: 84px;
  padding: 8px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.miniatura[aria-pressed="true"] { border-color: var(--red); }
.miniatura img { width: 100%; height: 100%; object-fit: contain; }
.miniatura:has(img[src$=".webp"]), .miniatura:has(img[src$=".jpg"]) { padding: 0; overflow: hidden; }
.miniatura:has(img[src$=".webp"]) img, .miniatura:has(img[src$=".jpg"]) img { object-fit: cover; }
@media (max-width: 480px) { .miniatura { width: 64px; height: 64px; } }

.produto-info h1 { font-family: var(--font-title); font-size: clamp(24px, 3vw, 32px); margin: 0 0 4px; line-height: 1.2; }
.produto-info .sub { color: var(--muted); margin: 0 0 16px; }
.preco-grande { font-size: 34px; font-weight: 800; color: var(--red-hover); }
.parcelas { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.opcao { margin: 20px 0; }
.opcao-titulo { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; display: flex; gap: 8px; }
.opcao-titulo em { font-style: normal; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-width: 64px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip:hover:not([disabled]) { border-color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--red); background: rgba(227, 38, 43, .14); color: var(--strong); box-shadow: inset 0 0 0 1px var(--red); }
.chip[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.chip small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }

.personalizar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.campos-personalizacao { display: none; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 14px; }
.campos-personalizacao.ativo { display: grid; }
.pers-preco { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.pers-preco b { color: var(--text); }
.pers-regra { margin: 8px 0 0 30px; font-size: 13px; color: var(--muted); }
.entrega { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.entrega svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--red); }
.entrega b { color: var(--text); }
.entrega a { color: var(--text); font-weight: 700; text-decoration: underline; }
.entrega a:hover, .aviso-catalogo a:hover { color: var(--red-hover); }

.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 13px; font-weight: 700; color: var(--muted); }
.campo input, .campo select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 46px;
  width: 100%;
}
.campo input:focus, .campo select:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(227, 38, 43, .25); }
.campo .ajuda { font-size: 12px; color: var(--muted); }

.qtd { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qtd button { width: 44px; height: 44px; background: var(--surface); border: 0; cursor: pointer; font-size: 20px; }
.qtd button:hover { background: var(--surface-2); }
.qtd input { width: 52px; height: 44px; text-align: center; background: var(--bg); border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); -moz-appearance: textfield; }
.qtd input::-webkit-inner-spin-button, .qtd input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qtd.pequena button { width: 34px; height: 34px; font-size: 16px; }
.qtd.pequena input { width: 40px; height: 34px; }

.acoes-compra { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
@media (max-width: 480px) { .acoes-compra { grid-template-columns: 1fr; } }
/* Aviso "site é catálogo" (home e coleção) */
.aviso-catalogo { display: flex; gap: 12px; align-items: flex-start; max-width: 820px; margin: 0 auto 24px;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--red);
  border-radius: var(--radius); color: var(--muted); font-size: 14px; line-height: 1.45; text-align: left; }
.aviso-catalogo svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--red); margin-top: 1px; }
.aviso-catalogo p { margin: 0; }
.aviso-catalogo b { color: var(--text); }
.aviso-catalogo a { color: var(--text); font-weight: 700; text-decoration: underline; white-space: nowrap; }
.colecao-topo + .aviso-catalogo { margin: 0 0 20px; max-width: none; }
.aviso { color: var(--red-hover); font-size: 14px; font-weight: 700; min-height: 22px; margin-top: 10px; }
.garantias { margin-top: 24px; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.garantias div { display: flex; gap: 10px; align-items: center; }
.garantias svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }

.tabs-info { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 32px; }
.tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs-nav button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 16px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: -1px;
}
.tabs-nav button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--red); }
.tab-painel { color: var(--muted); max-width: 860px; }
.tab-painel[hidden] { display: none; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th, .tabela td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.tabela th { color: var(--text); background: var(--surface); }

/* ---------- Carrinho ---------- */
.carrinho { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding-bottom: 48px; }
@media (max-width: 900px) { .carrinho { grid-template-columns: 1fr; } }
.pagina-titulo { font-family: var(--font-title); font-size: 28px; margin: 8px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.item-img { width: 96px; height: 96px; padding: 8px; background: var(--bg); border-radius: 8px; }
.item-img img { width: 100%; height: 100%; object-fit: contain; }
.item h3 { margin: 0 0 4px; font-size: 16px; }
.item-meta { font-size: 13px; color: var(--muted); }
.item-meta b { color: var(--text); font-weight: 700; }
.item-acoes { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.remover { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px 0; font-size: 13px; }
.remover:hover { color: var(--red-hover); }
.item-total { text-align: right; font-weight: 800; white-space: nowrap; }
.item-total small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
@media (max-width: 560px) {
  .item { grid-template-columns: 72px 1fr; }
  .item-img { width: 72px; height: 72px; }
  .item-total { grid-column: 2; text-align: left; }
}

.resumo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 100px;
}
.resumo h2 { margin: 0 0 16px; font-size: 20px; font-family: var(--font-title); }
.linha { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.linha.total { color: var(--text); font-weight: 800; font-size: 20px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }
.linha.total span:last-child { color: var(--red-hover); }
.frete-gratis { font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.frete-gratis b { color: var(--ok); }
.barra-frete { height: 6px; background: var(--border); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.barra-frete span { display: block; height: 100%; background: var(--red); box-shadow: var(--red-glow); }
.resumo .btn { margin-top: 12px; }
.resumo-itens { display: grid; gap: 10px; margin-bottom: 12px; }
.resumo-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.resumo-item span:first-child { color: var(--muted); }

/* ---------- Checkout ---------- */
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.form-grid .c6 { grid-column: span 6; }
.form-grid .c4 { grid-column: span 4; }
.form-grid .c3 { grid-column: span 3; }
.form-grid .c2 { grid-column: span 2; }
.form-grid .c1 { grid-column: span 1; }
@media (max-width: 600px) {
  .form-grid .c4, .form-grid .c3 { grid-column: span 6; }
  .form-grid .c2 { grid-column: span 4; }
  .form-grid .c1 { grid-column: span 2; }
}
.bloco { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.bloco h2 { margin: 0 0 16px; font-size: 18px; font-family: var(--font-title); display: flex; gap: 10px; align-items: center; }
.bloco h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.erros { background: rgba(227, 38, 43, .12); border: 1px solid var(--red); color: var(--erro-text); border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.erros ul { margin: 0; padding-left: 18px; }
.sucesso { text-align: center; max-width: 640px; margin: 24px auto 64px; }
.sucesso .numero { font-size: 28px; font-weight: 800; color: var(--red-hover); letter-spacing: .06em; text-shadow: var(--red-glow); }
.sucesso .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.status { display: inline-block; padding: 4px 12px; border-radius: 20px; background: rgba(227, 38, 43, .15); color: var(--red-hover); font-weight: 800; font-size: 14px; }

/* ---------- Ajuda (perguntas frequentes) ---------- */
.ajuda { max-width: 760px; }
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 24px; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  margin-left: auto;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.faq summary:hover { background: var(--surface-2); }
.faq details[open] summary { color: var(--red-hover); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details > :not(summary) { margin: 0 20px 14px; color: var(--muted); }
.faq details > :last-child { margin-bottom: 20px; }
.faq b { color: var(--text); }
.faq ol { padding-left: 20px; }
.faq .tabela { width: calc(100% - 40px); }
.ajuda-contato { text-align: center; margin-bottom: 48px; }
.ajuda-contato h2 { justify-content: center; margin-bottom: 4px; }
.ajuda-contato p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Rodapé ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: 48px; padding: 40px 0 24px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--text); margin: 0 0 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* Links do rodapé em negrito e na cor do texto, para destacar (pedido do dono, 07/11/2026). */
.footer ul a { color: var(--text); font-weight: 700; font-size: 15px; }
.footer a:hover { color: var(--red-hover); }
/* WhatsApp no verde do WhatsApp; Instagram no degradê do Instagram. */
.rodape-social { display: inline-flex; align-items: center; gap: 10px; }
.rs-icone { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.rs-icone svg { width: 17px; height: 17px; }
.rodape-whats .rs-icone { background: #25d366; border-radius: 50%; }
.rodape-whats .rs-texto { color: var(--whats-texto); }
.rodape-insta .rs-icone, .link-insta .rs-icone { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.rodape-insta .rs-texto, .link-insta .rs-texto { background: linear-gradient(90deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rodape-social:hover .rs-texto { text-decoration: underline; text-decoration-color: currentColor; }
.rodape-whats:hover .rs-texto { color: var(--whats-texto); }
.rodape-social:hover .rs-icone, .link-insta:hover .rs-icone { transform: scale(1.08); }
.rs-icone { transition: transform .15s; }
.footer .logo { margin-bottom: 12px; }
.copy { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 16px; text-align: center; font-size: 13px; }

/* Botão flutuante de WhatsApp (presente na referência) */
.whats-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1f9d55;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
  z-index: 60;
}
.whats-float:hover { background: #25b864; }
.whats-float svg { width: 30px; height: 30px; color: #fff; }

/* Toast de confirmação */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--surface-2);
  border: 1px solid var(--red);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: var(--red-glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
  max-width: calc(100vw - 32px);
}
.toast.visivel { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--red-hover); font-weight: 800; margin-left: 8px; }

.carregando { text-align: center; color: var(--muted); padding: 64px 16px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
