/* Spawn Geek: tema escuro com neon, pensado primeiro para o celular */
:root {
  --fundo: #0a0a12;
  --fundo-2: #12121e;
  --cartao: #161626;
  --borda: #262640;
  --texto: #f4f4fb;
  --mudo: #a3a3c2;
  --neon: #22e4ff;      /* ciano */
  --neon-2: #ff3dcb;    /* magenta */
  --lima: #b8ff4d;      /* preço */
  --raio: 16px;
  --fonte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: var(--fonte); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }

/* Logo em texto (não precisa de imagem, carrega na hora) */
.logo { display: inline-flex; gap: .18em; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: .02em; line-height: 1; }
.logo__a { color: var(--texto); }
.logo__b { color: var(--neon); text-shadow: 0 0 12px rgba(34, 228, 255, .7); }
.logo--grande { font-size: 40px; }
.logo--mini { font-size: 18px; }

/* Topo */
.topo {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(10, 10, 18, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda);
}
.busca { flex: 1 1 240px; display: flex; align-items: center; background: var(--fundo-2); border: 1px solid var(--borda); border-radius: 999px; }
.busca:focus-within { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(34, 228, 255, .15); }
.busca input {
  flex: 1; min-width: 0; height: 44px; padding: 0 0 0 16px; border: 0; background: none; color: var(--texto);
  font: inherit; font-size: 16px; /* 16px evita zoom automático no iPhone */
}
.busca input::placeholder { color: #7a7a99; }
.busca input:focus { outline: none; }
.busca button { width: 48px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--neon); cursor: pointer; }
.busca svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Chips de categoria (rolagem lateral) */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--borda); background: var(--fundo-2);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--mudo);
}
.chip.is-on { color: #051018; background: var(--neon); border-color: var(--neon); box-shadow: 0 0 16px rgba(34, 228, 255, .45); }

/* Seções */
.conteudo { max-width: 1200px; margin: 0 auto; padding: 4px 16px 32px; }
.secao { margin-top: 18px; }
.secao__titulo { margin: 0 0 14px; font-size: 22px; font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; }
.secao__titulo::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--neon), var(--neon-2)); }
.fogo { filter: drop-shadow(0 0 6px rgba(255, 120, 0, .6)); }

/* Em alta: trilho com rolagem lateral */
.trilho {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px;
  overflow-x: auto; margin: 0 -16px; padding: 4px 16px 12px; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.trilho::-webkit-scrollbar { display: none; }
.trilho .card { scroll-snap-align: start; }

/* Grade: 2 colunas no celular, 4 no computador */
.grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) {
  .grade { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .trilho { grid-auto-columns: 30%; }
}
@media (min-width: 1024px) {
  .grade { grid-template-columns: repeat(4, 1fr); }
  .trilho { grid-auto-columns: calc((100% - 54px) / 4); }
}

/* Card */
.card { min-width: 0; }
.card__link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card__link:hover, .card__link:focus-visible { border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon), 0 8px 30px rgba(34, 228, 255, .18); transform: translateY(-2px); }
.card__foto { position: relative; aspect-ratio: 4 / 5; background: var(--fundo-2); }
.card__foto img { width: 100%; height: 100%; object-fit: cover; }
.card__info { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 10px 10px 12px; }
.card__nome {
  margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__preco { margin: 0 0 8px; font-size: 18px; font-weight: 900; color: var(--lima); }
.card__preco small { display: block; font-size: 11px; font-weight: 600; color: var(--mudo); text-transform: uppercase; letter-spacing: .04em; }
.card__btn {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; border-radius: 12px; font-weight: 900; font-size: 15px;
  color: #051018; background: linear-gradient(90deg, var(--neon), #6af2ff);
}

/* Selos */
.selo {
  position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #fff; background: #333;
}
.selo--shopee { background: #ee4d2d; }
.selo--mercadolivre { background: #ffe600; color: #2d3277; }
.selo--tiktok { background: #000; box-shadow: -2px 0 0 #25f4ee, 2px 0 0 #fe2c55; }
.selo--amazon { background: #ff9900; color: #111; }
.selo--pod { background: #7c3aed; }
.selo--oficial { left: auto; right: 8px; background: var(--neon-2); }

/* Páginas, vazio */
.paginas { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; color: var(--mudo); }
.paginas a { padding: 12px 16px; border: 1px solid var(--borda); border-radius: 12px; font-weight: 700; text-decoration: none; color: var(--texto); }
.vazio { padding: 32px 0; color: var(--mudo); }

/* Texto (privacidade, 404) */
.texto { max-width: 720px; }
.texto h1 { margin: 24px 0 12px; font-size: 28px; line-height: 1.2; }
.texto h2 { margin: 28px 0 8px; font-size: 19px; color: var(--neon); }
.texto p, .texto li { color: #d4d4e6; }
.texto a { color: var(--neon); }
.texto__data { margin-top: 32px; font-size: 14px; color: var(--mudo) !important; }

/* Página /bio */
.bio { max-width: 480px; margin: 0 auto; padding: 36px 16px 24px; text-align: center; }
.bio__texto { margin: 14px 0 22px; color: var(--mudo); }
.bio__titulo { margin: 30px 0 12px; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--mudo); }
.bio__btn {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 18px;
  border-radius: var(--raio); border: 1px solid var(--borda); background: var(--cartao);
  font-weight: 800; font-size: 16px; text-decoration: none; color: var(--texto);
}
.bio__btn:hover { border-color: var(--neon); }
.bio__btn--principal {
  min-height: 62px; font-size: 18px; color: #051018; border: 0;
  background: linear-gradient(90deg, var(--neon), var(--neon-2)); box-shadow: 0 0 24px rgba(255, 61, 203, .35);
}
.bio__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bio__redes { display: grid; gap: 10px; }
.bio__btn--rede { border-color: var(--neon-2); }
.bio__destaques { display: grid; gap: 10px; text-align: left; }
.mini {
  display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 8px; border-radius: var(--raio); border: 1px solid var(--borda); background: var(--cartao); text-decoration: none;
}
.mini img { grid-row: span 2; width: 64px; height: 80px; object-fit: cover; border-radius: 10px; }
.mini__nome { align-self: end; font-weight: 700; font-size: 15px; line-height: 1.3; }
.mini__preco { align-self: start; font-weight: 900; color: var(--lima); }
.mini__preco small { font-weight: 600; color: var(--mudo); margin-left: 4px; }

/* Rodapé */
.rodape { margin-top: 24px; padding: 24px 16px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borda); text-align: center; font-size: 13px; color: var(--mudo); }
.rodape__aviso { max-width: 560px; margin: 0 auto 14px; padding: 10px 14px; border-radius: 12px; background: var(--fundo-2); }
.rodape__links { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; }
.rodape__links a { padding: 8px 0; font-weight: 700; color: var(--texto); }
.rodape__copy { margin: 0; }

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