/* RESET E BASE PREMIUM DARK */
body.premium-dark {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #08080a;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* EFEITO DE FUNDO ANIMADO (GLOW PARTICLES) */
.bg-glow {
  position: fixed;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(241, 196, 15, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
  z-index: -1;
  animation: bgPulse 15s infinite alternate ease-in-out;
  pointer-events: none;
}
@keyframes bgPulse {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(2%, 2%); }
}

/* HEADER MINIMALISTA (Efeito Vidro) */
.header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 40px;
  background: rgba(8, 8, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo { font-weight: 800; font-size: 24px; color: #f1c40f; letter-spacing: -0.5px; text-shadow: 0 0 15px rgba(241, 196, 15, 0.4); }
#search, #categoria { 
  padding: 12px 18px; 
  border-radius: 8px; 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  background: rgba(255, 255, 255, 0.05); 
  color: #fff; 
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}
#search:focus, #categoria:focus { border-color: #f1c40f; outline: none; background: rgba(0,0,0,0.5); }
#search { flex: 1; max-width: 450px; }

/* BANNER SLIDER */
.banner { position: relative; width: 100%; overflow: hidden; height: auto; background: #000; }
.slides { display: flex; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); height: auto; }
.slides img { width: 100%; height: auto; display: block; object-fit: contain; }
.banner-fade { position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; background: linear-gradient(to top, #08080a, transparent); pointer-events: none; }

/* FAIXA DE LOGOMARCAS INFINITA */
.marcas-container {
  width: 100%;
  overflow: hidden;
  background: #0d0d11;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.marcas-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: scrollMarcas 60s linear infinite;
  white-space: nowrap;
}
.marca-item { padding-right: 60px; font-size: 16px; font-weight: 800; color: rgba(255, 255, 255, 0.3); letter-spacing: 2px; transition: 0.3s; }
.marca-item:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

@keyframes scrollMarcas {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

/* CARD FLUTUANTE DE ABAS (Glass + Glow) */
.nav-premium-container {
  display: flex;
  justify-content: center;
  margin-top: 30px; /* Agora ele desce e libera a visão das marcas */
  position: relative;
  z-index: 50;
  padding: 0 20px;
}

.nav-premium-card {
  display: flex;
  flex-direction: column; /* Coloca o título em cima das lojas */
  align-items: center; /* Centraliza tudo perfeitamente */
  justify-content: center;
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 40px;
  border-radius: 20px;
  border: 1px solid rgba(241, 196, 15, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  width: fit-content; /* O card agora se molda ao conteúdo, sem sobrar espaço */
  min-width: 600px;
  gap: 15px;
}

.nav-label { font-size: 14px; font-weight: 800; color: #f1c40f; text-transform: uppercase; letter-spacing: 1px; }
.tabs-premium { display: flex; gap: 10px; }
.tab-link {
  padding: 8px 18px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.4s ease;
}
.tab-link:hover { color: #ffffff; background: rgba(255,255,255,0.05); }
.tab-link.active { background: rgba(241, 196, 15, 0.15); color: #f1c40f; border-color: rgba(241, 196, 15, 0.4); box-shadow: inset 0 0 10px rgba(241, 196, 15, 0.1); }

/* PRODUTOS */
.produtos-section { padding: 60px 20px; max-width: 1400px; margin: 0 auto; }
.produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; justify-content: center; }

/* CARDS PREMIUM (Hover Cinematográfico) */
.card {
  background: rgba(32, 32, 36, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  backdrop-filter: blur(10px);
}
.card:hover { 
  transform: translateY(-10px); 
  border-color: rgba(241, 196, 15, 0.5); 
  box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 30px rgba(241, 196, 15, 0.15); 
}

.badge { position: absolute; top: 15px; left: 15px; background: linear-gradient(135deg, #f1c40f, #d4ac0d); color: #000; padding: 6px 14px; font-size: 11px; font-weight: 800; border-radius: 20px; z-index: 10; box-shadow: 0 4px 10px rgba(241, 196, 15, 0.3); }

.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 20px;
  display: block;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;

  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.card h3 { font-size: 16px; font-weight: 600; color: #fff; height: 45px; overflow: hidden; margin: 0 0 10px; line-height: 1.4; }

.stars-row { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
/* Estrela Base (Fundo Cinza) */
.star {
    display: inline-block;
    font-size: 16px;
    position: relative;
    color: #333; /* Cor da estrela vazia - um cinza escuro premium */
}

/* Preenchimento Dinâmico (Ouro) */
.star.filled {
    background: linear-gradient(90deg, #ffca28 var(--fill), #333 var(--fill));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rev-text { color: rgba(255, 255, 255, 0.4); font-size: 11px; margin-left: 5px; display: inline-block; transform: translateY(2px); }

.card-category { font-size: 11px; color: #70d6ff; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px; }

.card-footer { margin-top: auto; }
.price { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 15px; }

/* Subtítulo (Marca/Volume) */
.card-subtitle { 
    font-size: 13px; 
    color: rgba(255, 255, 255, 0.5); 
    margin: -5px 0 15px 0; 
    font-weight: 400; 
    display: block;
}

/* Estoque com visual de Escassez Premium */
.stock-row {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.35); /* Cinza uniforme e bem suave */
}

.stock-qty {
    color: rgba(255, 255, 255, 0.6); /* Um pouco mais claro que o texto, mas sem ser branco puro */
    font-weight: 700;
}

/* Destaque numérico da nota */
.rating-val {
    color: #ffca28;
    font-weight: 800;
    font-size: 14px;
    margin-right: 5px;
}

/* BOTÕES DOURADOS PREMIUM COM GLOW */
.card button, .gold-button {
  width: 100%; padding: 16px; border: none; 
  background: linear-gradient(135deg, #f1c40f, #d4ac0d); 
  color: #000; font-weight: 800; border-radius: 10px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(241, 196, 15, 0.2);
}
.card button:hover, .gold-button:hover {
  background: linear-gradient(135deg, #fff, #f4f4f4);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* MODAL DA GALERIA */
.foto-principal-modal {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3)); /* Traz a imagem para frente, dando profundidade */
}
/* MODAL DA GALERIA - VITRINE PREMIUM */
.modal-foto {
  display: none; 
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999; 
  justify-content: center; align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  box-sizing: border-box;
}

.modal-content-premium {
  background: rgba(15, 15, 18, 0.95);
  border-radius: 24px;
  width: 100%;
  max-width: 1000px;
  max-height: 85vh; /* Limita a altura para não cortar */
  position: relative;
  border: 1px solid rgba(241, 196, 15, 0.3);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

/* Ajuste para celulares */
@media (max-width: 768px) {
  .modal-content-premium { flex-direction: column; overflow-y: auto; }
  .modal-esquerda { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .modal-direita { overflow-y: visible !important; }
}

/* Lado Esquerdo: Imagem */
.modal-esquerda {
  flex: 1.2;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

/* Lado Direito: Informações */
.modal-direita {
  flex: 1;
  padding: 40px 30px;
  text-align: left;
  overflow-y: auto; /* A mágica que impede o corte: cria rolagem apenas no texto */
  display: flex;
  flex-direction: column;
}

/* Lente de Zoom */
.zoom-lens {
  position: absolute;
  border: 1px solid rgba(241, 196, 15, 0.5);
  width: 150px;
  height: 150px;
  background-repeat: no-repeat;
  visibility: hidden;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  z-index: 100;
}

.foto-principal-modal {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  cursor: crosshair;
  display: block;
  margin: 0 auto;
}

.fechar-modal { 
  position: absolute; top: 15px; right: 20px; 
  font-size: 32px; color: #fff; cursor: pointer; opacity: 0.5; transition: 0.3s;
  z-index: 101; line-height: 1;
}
.fechar-modal:hover { opacity: 1; color: #f1c40f; transform: rotate(90deg) scale(1.1); }

#modal-titulo-produto { font-size: 24px; color: #f1c40f; margin-bottom: 15px; font-weight: 800; line-height: 1.3; margin-top: 0; }
#modal-descricao { 
  color: #ccc; 
  font-size: 14px; 
  line-height: 1.6; 
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  white-space: pre-wrap;
}

.modal-cta { margin-top: auto; padding-top: 20px; width: 100%; }

/* MINIATURAS PREMIUM DO MODAL */
.miniaturas-row {
  display: flex; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; width: 100%;
}
.miniatura {
  width: 65px; height: 65px; object-fit: contain; background: #ffffff; border-radius: 10px;
  padding: 5px; cursor: pointer; border: 2px solid transparent; transition: all 0.3s ease;
}
.miniatura:hover { transform: translateY(-4px); border-color: rgba(241, 196, 15, 0.6); }
.miniatura.active { border-color: #f1c40f; box-shadow: 0 0 15px rgba(241, 196, 15, 0.3); }

/* --- EFEITOS PREMIUM PARA SELOS (ATIVAM NO HOVER DO CARD) --- */

/* 1. MAIS VENDIDO (Pulsação Suave) */
.card:hover .badge-mais-vendido {
    animation: pulse 1.5s infinite;
    background: #e74c3c !important;
}

/* 2. TIKTOK / TENDÊNCIA GLOBAL (Glow Neon) */
.card:hover .badge-tiktok, 
.card:hover .badge-tendencia {
    background: linear-gradient(45deg, #00f2ea, #ff0050) !important;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.6);
    animation: glow 1s alternate infinite;
}

/* 3. QUEM VIU, COMPROU (Reflexo de Luz) */
.card:hover .badge-quem-viu {
    position: relative;
    overflow: hidden;
    background: #8e44ad !important;
}
.card:hover .badge-quem-viu::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 20%; height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    animation: shine 1.5s infinite;
}

/* 4. QUERIDINHO DO MÊS / OPORTUNIDADE (Metalizado) */
.card:hover .badge-queridinho,
.card:hover .badge-oportunidade {
    background: linear-gradient(90deg, #d4af37, #f1c40f, #d4af37) !important;
    background-size: 200% auto !important;
    animation: metal 2s linear infinite;
    color: #000 !important;
}

/* 5. PARA PRESENTEAR (Destaque Fixo) */
.card:hover .badge-presente {
    background: #ff7675 !important;
    transform: scale(1.05);
    transition: 0.3s ease;
}

/* --- MOTORES DE ANIMAÇÃO --- */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(0, 242, 234, 0.4); }
    to { box-shadow: 0 0 20px rgba(255, 0, 80, 0.7); }
}

@keyframes shine {
    0% { left: -60%; }
    100% { left: 140%; }
}

@keyframes metal {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes blink-border {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* --- NOVOS SELOS: CAMPEÃO E TENDÊNCIA --- */

/* 6. CAMPEÃO DE VENDAS (Pulso de Fogo) */
.card:hover .badge-campeao {
    animation: pulseIntense 1s infinite;
    background: linear-gradient(135deg, #ff4b2b, #ff416c) !important;
    box-shadow: 0 0 20px rgba(255, 75, 43, 0.6);
}

/* 7. TENDÊNCIA (Brilho Cyan Fluido) */
.card:hover .badge-tendencia {
    background: #00d2ff !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    animation: glow 1.5s alternate infinite;
}

/* MOTOR DE ANIMAÇÃO DO CAMPEÃO */
@keyframes pulseIntense {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
    100% { transform: scale(1); filter: brightness(1); }
}
