/* ============ GG Store: estilo dark/neon ============ */
:root {
  --bg: #0a0f0a;
  --bg-2: #101710;
  --bg-3: #182118;
  --border: #263426;
  --text: #eaf2e8;
  --muted: #9ab09a;
  --accent: #5a9e1f;      /* verde escuro da logo */
  --accent-2: #8dc63f;    /* verde claro da logo */
  --grad: linear-gradient(90deg, var(--accent), var(--accent-2));
  --radius: 6px;
  --pad-x: 10%;           /* espaçamento lateral padrão */
}

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

/* Base menor: todo texto em rem escala junto */
html { scroll-behavior: smooth; font-size: 13px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Sora', sans-serif; line-height: 1.2; }

/* Ícones SVG inline: seguem o tamanho e a cor do texto ao redor */
.ico {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
  flex-shrink: 0;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Promo bar (letreiro rolante) ---- */
.promo-bar {
  background: linear-gradient(90deg, #000000, #5a9e1f);
  color: #fff;
  padding: 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;
}
.promo-track {
  display: inline-flex;
  animation: marquee 18s linear infinite;
}
.promo-track span {
  padding: 0 40px;
  flex-shrink: 0;
}
.promo-bar:hover .promo-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.promo-bar code {
  position: relative;
  z-index: 0;
  background: transparent;
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  margin: 0 4px;
}
.promo-bar code::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 4px;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0%, transparent 60%, #8dc63f 80%, #ffffff 90%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: spin-border 2.5s linear infinite;
}
@keyframes spin-border {
  to { --angle: 360deg; }
}

/* ---- Header ---- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad-x);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,18,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.cart-count {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 0.8rem;
}

/* ---- Botões ---- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #0a0f0a;
  box-shadow: 0 0 24px rgba(141,198,63,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
}
.btn-discord,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  font-size: 0.85rem;
}
.btn-discord {
  background: #5865F2;
  color: #fff;
  border: 1px solid transparent;
}
.btn-discord svg { width: 15px; height: 15px; }
.btn-discord:hover { box-shadow: 0 0 18px rgba(88,101,242,0.5); }
.btn-ghost {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 80px var(--pad-x) 64px;
  text-align: center;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero-fade 18s infinite;
}
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
@keyframes hero-fade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  33%  { opacity: 1; }
  45%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,15,10,0.6), rgba(10,15,10,0.7) 70%, var(--bg));
}
.hero-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.hero-sub { color: var(--muted); font-size: 1rem; max-width: 520px; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Feature banner ---- */
.feature-banner {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 var(--pad-x) 40px;
  padding: 32px;
  /* meio translúcido para a teia do fundo aparecer através do banner */
  background: linear-gradient(135deg, rgba(16,23,16,0.6), rgba(24,33,24,0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-text { flex: 1; }
.feature-text h2 { font-size: 1.6rem; margin: 10px 0; }
.feature-text p:not(.badge) { color: var(--muted); margin-bottom: 20px; font-size: 0.9rem; max-width: 420px; }
.feature-art { color: var(--accent-2); }
.feature-art > svg { width: 110px; height: 110px; opacity: 0.7; }
.feature-art img {
  max-width: 460px;
  max-height: 280px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.feature-banner .card-price { margin-bottom: 20px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #fff;
  border: 1px solid var(--accent-2);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: 0.12em;
}
.badge svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---- Seções ---- */
.section { padding: 48px var(--pad-x); }

/* Moldura só na faixa do título + categorias, no estilo do banner NOVIDADE */
#produtos .section-head,
#assinaturas .section-head,
#compras .section-head {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16,23,16,0.35);
  padding: 10px 18px;
}
#compras .section-head { padding: 16px 18px; gap: 4px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.section-head.center { flex-direction: column; text-align: center; }
.section-head h2 { font-size: 1.6rem; }
.section-sub { color: var(--muted); }

/* ---- Filtros ---- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all .2s;
}
.filter:hover { color: var(--text); }
.filter.active {
  background: var(--grad);
  color: #0a0f0a;
  border-color: transparent;
  font-weight: 600;
}

/* ---- Grid de produtos ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.grid-empty { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 40px 0; }
.card {
  /* translúcido como o banner NOVIDADE: a teia do fundo aparece através */
  background: rgba(16,23,16,0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(141,198,63,0.2);
}
.card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-3), #1f2e1f);
  /* imagem recuada das bordas do card, com contorno próprio */
  margin: 12px 12px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.card-img-fallback { color: var(--muted); }
.card-img-fallback svg { width: 54px; height: 54px; }
.card-body { padding: 18px; }
.card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.card-body h3 { font-size: 1.1rem; margin: 6px 0 10px; }
.card-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.card-price .old { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }
.card-price .new { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.25rem; }
.card-price .per { color: var(--muted); font-size: 0.85rem; margin-left: 2px; }
.card .btn { width: 100%; text-align: center; }

.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; text-align: center; padding: 10px 12px; font-size: 0.88rem; }

/* ---- Modal de detalhes ---- */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  position: relative;
}
.modal::-webkit-scrollbar { display: none; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(10,15,10,0.7);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}
.modal-media { background: #000; }
.modal-media img { width: 100%; max-height: 340px; object-fit: cover; display: block; }
.modal-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.modal-emoji { text-align: center; padding: 40px 0; color: var(--muted); }
.modal-emoji svg { width: 80px; height: 80px; }
.modal-body { padding: 24px; }
.modal-body h3 { font-size: 1.35rem; margin: 6px 0 10px; }
.modal-desc { color: var(--muted); margin: 16px 0 22px; font-size: 0.95rem; }
.modal-desc a { color: var(--accent-2); }
.modal-desc img { max-width: 100%; border-radius: 6px; }
.modal-body .btn { width: 100%; text-align: center; }

/* ---- Últimas compras ---- */
.buys {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.buy {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16,23,16,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  animation: buy-in .5s ease;
}
/* entrada suave quando uma venda nova aparece */
@keyframes buy-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.buy img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.buy-info { min-width: 0; line-height: 1.25; }
.buy-info strong { display: block; font-size: 0.95rem; }
.buy-info span {
  display: block;
  color: var(--accent-2);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buy-info .buy-price {
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  margin-top: 2px;
}
.buy-info time { display: block; color: var(--muted); font-size: 0.78rem; }
/* aviso de entrega instantânea no fim da seção */
.buys-note {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.buys-note .ico { color: var(--accent-2); }
.buys-note strong { color: var(--text); }

/* ---- Vantagens ---- */
.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.perk {
  background: rgba(16,23,16,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.perk-ico { display: inline-flex; color: var(--accent-2); }
.perk-ico svg { width: 38px; height: 38px; }
.perk h3 { margin: 12px 0 8px; font-size: 1.05rem; }
.perk p { color: var(--muted); font-size: 0.9rem; }

/* ---- Rodapé ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px var(--pad-x) 26px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer h4 { font-family: 'Sora', sans-serif; margin-bottom: 14px; }
.footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color .2s;
}
.footer a:hover { color: var(--text); }

/* Ícones sociais nas cores oficiais de cada rede */
.social-discord .ico { color: #5865F2; }
.social-youtube .ico { color: #FF0000; }
.social-instagram .ico { color: #E4405F; }
.social-tiktok .ico { color: #25F4EE; filter: drop-shadow(1px 1px 0 #FE2C55); }
.footer p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.footer .logo { display: inline-block; margin-bottom: 4px; }
.copy { text-align: center; border-top: 1px solid var(--border); padding-top: 24px; font-size: 0.85rem; }

/* ---- Carrinho ---- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: min(380px, 90vw);
  height: 100vh;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: right .3s ease;
}
.cart-drawer.open { right: 0; }
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.cart-head button { background: none; border: none; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-empty { color: var(--muted); text-align: center; margin-top: 40px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
.cart-foot { padding: 20px; border-top: 1px solid var(--border); }
.cart-foot .btn { width: 100%; margin-top: 12px; }
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ---- Efeito de fundo (tela inteira) ---- */
/* Fica atrás de todo o conteúdo (z-index negativo) e não captura o mouse.
   Como cards e rodapé têm fundo opaco, o efeito só aparece nos espaços vazios. */
#webCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---- Responsivo ---- */
@media (max-width: 820px) {
  :root { --pad-x: 5%; } /* telas menores não têm sobra para respiro extra */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 16px var(--pad-x);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .feature-banner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
