/* VARIÁVEIS GERAIS */
:root {
    --cor-primaria: #FFBB00;
    --cor-fundo: #F7F7F7;
    --cor-rodape: #1A1A1A;
    --cor-texto: #000000;
    --cor-branco: #FFFFFF;
    --margem-desktop: 100px;
    --gap-padrao: 60px;
}

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* STICKY FOOTER (Impede o rodapé de voar em telas grandes) */
body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1; /* Faz o conteúdo principal empurrar o rodapé para baixo */
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

/* CONTAINER */
.container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 var(--margem-desktop);
}

/* TOP BAR (Barra de Avisos) */
.top-bar {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    overflow: hidden;
}

.top-bar-mensagens {
    position: relative;
    height: 20px;
}

.top-bar .msg {
    position: absolute;
    width: 100%;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.top-bar .msg.active {
    opacity: 1;
}

/* CABEÇALHO */
.header {
    background-color: var(--cor-fundo);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 100px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 45px;
}

.menu {
    display: flex;
    gap: 40px;
    font-weight: 500;
    align-items: center;
}

.menu a:hover, .icone-btn:hover {
    color: var(--cor-primaria);
}

.header-right {
    display: flex;
    gap: 30px;
    align-items: center;
    font-weight: 700;
}

.icone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

/* MODAL DE BUSCA */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 247, 247, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    pointer-events: all;
}

.search-content {
    width: 100%;
    max-width: 800px;
    padding: 40px;
    text-align: center;
    position: relative;
}

.fechar-busca {
    position: absolute;
    top: -40px;
    right: 20px;
    font-size: 2rem;
    font-weight: 300;
}

.search-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 900;
}

.search-content form {
    display: flex;
    gap: 10px;
}

.search-content input {
    flex: 1;
    padding: 20px;
    font-size: 1.2rem;
    border: 2px solid #000;
    border-radius: 8px;
    outline: none;
}

.search-content button[type="submit"] {
    background-color: var(--cor-primaria);
    color: #000;
    padding: 0 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
}

/* HERO SECTION (BANNERS) */
.hero {
    margin-top: 40px;
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1720 / 657;
    overflow: hidden;
    border-radius: 12px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: block;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CATEGORIAS */
.categorias {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-padrao);
    margin-top: var(--gap-padrao);
    margin-bottom: var(--gap-padrao);
}

.card-categoria {
    position: relative;
    aspect-ratio: 385 / 598;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.card-categoria:hover {
    transform: translateY(-10px);
}

.card-categoria img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.card-categoria::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.card-categoria h3 {
    position: relative;
    z-index: 2;
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--cor-branco);
    padding: 30px;
}

/* DESTAQUES (CARROSSEL SCROLL) */
.destaques {
    margin-bottom: var(--gap-padrao);
}

.titulo-secao {
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.carousel-destaques {
    display: flex;
    gap: var(--gap-padrao);
    overflow-x: hidden; /* Mudado para hidden para o JS controlar 100% */
    padding-bottom: 20px;
}
.carousel-destaques::-webkit-scrollbar { 
    display: none; 
}

.card-produto {
    flex: 0 0 calc(25% - (var(--gap-padrao) * 3 / 4));
    scroll-snap-align: start;
    background-color: var(--cor-branco);
    padding: 20px;
    text-align: left;
    transition: box-shadow 0.3s ease;
    border-radius: 8px;
}

.card-produto:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-produto img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-bottom: 20px;
}

.nome-produto {
    font-weight: 300;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.preco-produto {
    font-weight: 700;
    font-size: 1.2rem;
}

/* BOLINHAS DO CARROSSEL */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--cor-primaria);
    transform: scale(1.2);
}

/* GEO SECTION */
.geo {
    margin-bottom: 100px;
}

.geo-titulo {
    text-align: center;
    margin-bottom: 30px;
}

.geo-titulo h2 {
    font-weight: 300;
    font-size: 3rem;
}

.geo-titulo span {
    font-weight: 900;
}

.geo-texto {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
    font-size: 1.2rem;
}

/* RODAPÉ */
.rodape {
    background-color: var(--cor-rodape);
    color: var(--cor-branco);
    padding: 80px 0 20px 0;
}

.grid-rodape {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-padrao);
    margin-bottom: 60px;
}

.coluna-rodape h4 {
    font-weight: 700;
    margin-bottom: 15px; /* Reduzido para aproximar o título dos links */
}

/* Links normais do rodapé mais compactos */
.link-simples {
    display: block;
    color: #cccccc;
    margin-bottom: 8px; /* Reduzido o espaço entre um link e outro */
    font-weight: 300;
    font-size: 0.9rem;
}

.link-simples:hover {
    color: var(--cor-primaria);
}

/* Ícones do rodapé alinhados e compactos */
.coluna-rodape .flex-icon {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    margin-bottom: 8px; /* Reduzido o espaço entre os contatos */
    color: #cccccc;
    font-weight: 300;
    font-size: 0.9rem;
}

.coluna-rodape .flex-icon svg {
    flex-shrink: 0;
    display: block;
}

.coluna-rodape .flex-icon span {
    display: block;
    line-height: 1;
    transform: translateY(1px);
}

.coluna-rodape .flex-icon:hover {
    color: var(--cor-primaria);
}

/* Reduzindo a altura interna do rodapé como um todo */
.rodape {
    background-color: var(--cor-rodape);
    color: var(--cor-branco);
    padding: 40px 0 20px 0; /* Antes era 80px no topo, agora caiu para 40px */
}

.grid-rodape {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-padrao);
    margin-bottom: 40px; /* Reduzido a distância até a linha de copyright */
}

.rodape-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.rodape-bottom p {
    font-size: 0.7rem;
    color: #888;
    font-weight: 300;
    display: block;
}

/* BOTÃO WHATSAPP FLUTUANTE E TOOLTIP */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 15px;
}

.whatsapp-tooltip {
    background-color: #fff;
    color: #000;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.whatsapp-tooltip.show {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float {
    background-color: #25D366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =========================================
   ESTILOS DAS PÁGINAS INTERNAS
   ========================================= */

.bg-amarelo {
    background-color: var(--cor-primaria) !important;
}

.em-breve-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.logo-em-breve {
    height: 60px;
    margin-bottom: 40px;
}

.em-breve-container h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #000;
}

.em-breve-container p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: #000;
}

.btn-whatsapp-preto {
    background-color: var(--cor-texto);
    color: var(--cor-branco);
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-whatsapp-preto:hover {
    transform: scale(1.05);
}

.link-voltar {
    font-weight: 700;
    text-decoration: underline;
    color: #000;
}

.pagina-texto {
    max-width: 900px;
    margin: 80px auto 120px auto;
    padding: 0 20px;
}

.pagina-texto h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
}

.pagina-texto h1 span {
    font-weight: 900;
    color: var(--cor-primaria);
}

.conteudo-geo p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

/* RESPONSIVIDADE (MOBILE) */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .header { height: 80px; }
    .menu { display: none; }
    .slider-container { aspect-ratio: 1 / 1; }
    .categorias { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .card-produto { flex: 0 0 calc(50% - 10px); }
    .grid-rodape { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
    .card-produto { flex: 0 0 80%; }
    .em-breve-container h1 { font-size: 2rem; }
    .pagina-texto h1 { font-size: 2rem; }
}

/* ESTILOS DA PÁGINA QUEM SOMOS */
.quem-somos-topo {
    text-align: center;
    margin-bottom: 50px;
}

.simbolo-quem-somos {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.pagina-texto h1 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
}

.viva-texto {
    font-weight: 500;
    color: var(--cor-texto);
}

.esporte-texto {
    font-weight: 900;
    color: var(--cor-primaria);
}

/* =========================================
   PÁGINA: PRODUTO TEMPLATE (Fundo Amarelo)
   ========================================= */

.secao-produto-detalhe {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding-top: 80px;
    padding-bottom: 120px;
}

/* Coluna 1: Miniaturas */
.galeria-miniaturas {
    width: 100px;
    height: 540px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.galeria-miniaturas::-webkit-scrollbar { 
    display: none; 
}

.miniatura {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background-color: var(--cor-branco);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.miniatura:hover, .miniatura.ativa {
    border-color: #000;
}

/* Coluna 2: Foto Grande */
.foto-grande-container {
    width: 540px;
    height: 540px;
    background-color: var(--cor-branco);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.foto-grande-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Coluna 3: Informações */
.info-produto-container {
    width: 540px;
    display: flex;
    flex-direction: column;
}

.info-produto-container h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
    line-height: 1.1;
    margin-bottom: 20px;
}

.preco-destaque {
    font-size: 2rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 30px;
}

.descricao-produto {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000;
    line-height: 1.6;
    margin-bottom: 40px;
}

.descricao-produto p {
    margin-bottom: 15px;
}

.btn-comprar-whats {
    background-color: #008000;
    color: var(--cor-branco);
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-comprar-whats:hover {
    background-color: #006600;
    transform: scale(1.02);
}

/* Responsividade da Página de Produto */
@media (max-width: 1200px) {
    .secao-produto-detalhe {
        flex-direction: column;
        align-items: center;
    }
    
    .galeria-miniaturas {
        width: 100%;
        height: 100px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .foto-grande-container, .info-produto-container {
        width: 100%;
        max-width: 540px;
    }
}