:root {
--header-bg-color: #64720c; /* VERDE MUSGO (Header/Banner) */
--body-bg-color: #d3ce92; /* BEGE CLARO (Resto da Página) */
--button-primary-color: #f17909; /* LARANJA (Botões/Ações) */
--button-hover-color: #c0650c; /* Laranja escuro para hover */
--text-light-color:  #f1edbf;
--text-dark-color: #050505;
--footer-bg-color: #f1eba4; /* Cor de fundo das seções e Rodapé */
--link-hover-color: #e27610; /* Laranja para links em hover */
}

/* Reset Básico */
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

body {
 font-family: "Rowdies", sans-serif;
 background-color: var(--body-bg-color);
 color: var(--text-dark-color);
 line-height: 1.6;
 min-height: 100vh;
 display: flex;
 flex-direction: column;
 overflow-x: hidden;
}

/* -------------------- HEADER & MENU ---------------------- */

header {
  background-color: var(--header-bg-color);
 
padding: 40px 0 20px 0; 
 width: 100%;
position: relative;
 z-index: 100;
}

/* Letreiro no Topo */
.top-scroller {
position: absolute; 
top: 0; 
left: 0;
 width: 100%;
 height: 35px;
background-color: #050505; color: var(--text-light-color);
overflow: hidden;
 white-space: nowrap;
display: flex; 
 align-items: center;
font-size: 0.9rem;
 font-weight: bold;
}
.scroller-content { display: inline-block; padding-left: 100%; animation: scroll-left 25s linear infinite; }
.scroller-content span { margin-right: 50px; }
@keyframes scroll-left { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }

/* Barra Principal */
.top-bar {
display: flex;
 justify-content: space-between;
  align-items: center;
 max-width: 1300px;
  margin: 0 auto;
   padding: 0 20px;
    height: 100px;
    overflow: hidden;
}
.logo-container img {
    position: relative;
    top: 60px;
    right: 60px;
    height: 250px; 
    transition: transform 0.3s ease; 
     }

.logo-container img:hover {  
transform: scale(1.05); 
 }

/* Menu de Categorias (Aparece na página de produtos, mas está no CSS global) */
.menu-categorias ul {
    display: flex; list-style: none; gap: 30px;
}
.menu-categorias ul li a {
    text-decoration: none; color: var(--text-light-color);
    font-size: 1.1rem; font-weight: 700;
    transition: color 0.3s ease;
}
.menu-categorias ul li a:hover {
    color: var(--link-hover-color);
}


/* Ações e Busca */
.actions {
display: flex; justify-content: flex-end; align-items: center; gap: 10px;
}
#btnLogin, #btnCarrinho {
width: 45px; height: 45px; border-radius: 50%; border: none;
 background-color: var(--button-primary-color);
 color: var(--text-light-color); cursor: pointer; font-size: 1.1rem;
 display: flex; align-items: center; justify-content: center;
 transition: background-color 0.3s, transform 0.2s;
}
.search-container {
display: flex; border-radius: 20px; overflow: hidden;
 border: 2px solid var(--button-primary-color);
 transition: box-shadow 0.3s;
}
.search-container:focus-within { box-shadow: 0 0 8px rgba(226, 118, 16, 0.5); }
#inputSearch {
 padding: 10px 18px; border: none; width: 250px; outline: none;
 font-size: 1rem;
}
#btnSearch {
 padding: 10px 15px; border: none;
 background-color: var(--button-primary-color);
 color: var(--text-light-color); cursor: pointer;
 transition: background-color 0.3s;
}
#btnLogin:hover, #btnCarrinho:hover { background-color: var(--button-hover-color); transform: scale(1.1); }
#btnSearch:hover { background-color: var(--button-hover-color); }


/* --------------------- MAIN CONTENT (Geral) ----------------------- */

main {
 padding: 20px;
 max-width: 1300px;
 margin: 0 auto;
  flex-grow: 1;
}

/* --------------------- BANNER (index.html) ----------------------- */

.main-banner {
 width: 100%; height: 650px; border-radius: 15px; overflow: hidden;
 box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); position: relative;
 background-color: var(--header-bg-color);
 background-size: cover; background-position: center;
 display: flex; align-items: center; justify-content: center;
flex-direction: column;
}
.banner-principal-conteudo {
 color: var(--text-light-color); max-width: 500px;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
 text-align: center;
}
.banner-principal-conteudo h1 { font-size: 3.5rem; margin-bottom: 10px; }
.banner-principal-conteudo p { font-size: 1.5rem; margin-bottom: 30px; }

.btn-destaque {
 display: inline-flex; align-items: center;
 background-color: var(--button-primary-color);
 color: var(--text-light-color); text-decoration: none;
font-size: 1.2rem; font-weight: bold;
 padding: 14px 40px; border-radius: 30px;
 border: 2px solid var(--button-primary-color);
 transition: all 0.3s ease-in-out;
  margin-top: 30px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.btn-destaque:hover { 
    background-color: transparent; 
    border-color: var(--text-light-color); 
    transform: translateY(-2px); 
}

.secao-destaques {
 margin-top: 40px; padding: 60px 40px;
 background-color: var(--footer-bg-color);
 border-radius: 15px;
 text-align: center;
 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.secao-destaques h2 {
    color: var(--header-bg-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.hover-container {
    position: relative;
    /* Garante que o container tenha a altura da imagem */
    height: 300px; /* Ajuste para a altura real das suas imagens */
    overflow: hidden;
}

/* Garante que ambas as imagens preencham o contêiner */
.hover-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantém a proporção da imagem */
    position: absolute;
    top: 0;
    left: 0;
    /* Adiciona uma transição suave ao sumir/aparecer */
    transition: opacity 0.3s ease-in-out; 
}

/* Oculta a imagem de hover por padrão */
.img-hover {
    opacity: 0; 
}

.btn-instagram-inline {
    /* Mantenha o estilo base do botão aqui (padding, cores, hover, etc.) */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--button-primary-color); 
    color: var(--text-light-color); 
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px solid var(--button-primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.btn-instagram-inline:hover {
    background-color: var(--header-bg-color); 
    color: white; 
    border-color: var(--header-bg-color);
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-instagram-inline i {
    /* 1. Define o tamanho do ícone */
    font-size: 1.3rem;
    
    /* 2. Aplica o gradiente de cores do Instagram como fundo */
    background-image: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    
    /* 3. Faz com que o fundo preencha APENAS o texto (o ícone) */
    -webkit-background-clip: text;
    
    /* 4. Torna o texto transparente para que o fundo seja visível */
    -webkit-text-fill-color: transparent;
    
    /* Regras de compatibilidade: */
    background-clip: text;
    color: transparent; /* Fallback */
}


/* EFEITO HOVER: Quando o mouse está sobre o contêiner... */
.hover-container {
    position: relative;
    width: 100%;
    
    /* TRUQUE DA PROPORÇÃO: Mantém um aspecto quadrado (1:1) */
    height: 0; 
    padding-top: 100%; /* 100% da largura é igual a um quadrado. Ajuste este valor se a proporção das suas fotos for diferente. */
    
    overflow: hidden; 
    /* Mantém o espaçamento ABAIXO de todo o bloco de imagem */
    margin-bottom: 15px; 
}

.hover-container .img-principal,
.hover-container .img-hover {
    width: 100%;
    height: 100%; /* Ocupa a altura dinâmica do container */
    object-fit: contain; /* Garante que a imagem se ajuste sem ser cortada */
    transition: opacity 0.3s ease-in-out; 
    position: absolute; 
    top: 0;
    left: 0;
}

.hover-container .img-hover {
    opacity: 0;
}

.produto-card:hover .hover-container .img-principal {
    opacity: 0; 
}

.produto-card:hover .hover-container .img-hover {
    opacity: 1;
}
/* --------------------- CATÁLOGO (produtos.html) - LAYOUT GRID ----------------------- */

.catalogo-secao {
    padding: 60px 20px; 
    max-width: 1300px;
    margin: 0 auto 40px auto;
    background-color: var(--footer-bg-color);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.catalogo-secao h2 {
    color: var(--header-bg-color);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}

.produtos-grid {
    display: grid;
    
    /* MUDANÇA AQUI: FORÇA 4 COLUNAS IGUAIS (lado a lado) */
    grid-template-columns: repeat(4, 1fr); 
    
    gap: 30px;
}

/* Regras do Card e Imagem */
.produto-card {
    background-color: var(--text-light-color);
    border-radius: 10px;
    overflow: hidden;
    /* Reduzimos o padding vertical para dar mais foco à horizontalidade */
    padding: 20px; 
    text-align: center;
    box-shadow: 0 4px 10px #64720c;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}
.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgb(243, 146, 1);
}

.preco{
color: #0505057e;
    text-decoration: line-through;
}



.produto-card img {
    width: 100%;
    height: auto;
    /* Altura máxima menor para que a imagem apareça mais na horizontal */
    max-height: 800px; 
    /* 'contain' garante que a imagem caiba no espaço definido */
    object-fit: contain; 
    margin-bottom: 15px;
}

.nome-produto {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark-color);
    margin-bottom: 5px;
}

.preco-produto {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--button-primary-color);
    margin-bottom: 15px;
}

.btn-comprar {
    background-color: var(--button-primary-color);
    color: var(--text-light-color);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 100%;
}
.btn-comprar:hover {
    background-color: var(--button-hover-color);
}
.whatsapp-flutuante {
    /* Posição Fixa na tela */
    position: fixed;
    bottom: 25px; /* Distância da parte inferior */
    right: 25px; /* Distância da lateral direita */
    z-index: 900; /* Garante que fique acima de quase tudo */
    
    /* Estilo do botão */
    background-color: #25d366; /* Verde do WhatsApp */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-flutuante:hover {
    background-color: #128c7e; /* Verde um pouco mais escuro no hover */
    transform: scale(1.1); /* Efeito de zoom */
}

/* Ajuste de responsividade para telas pequenas */
@media (max-width: 576px) {
    .whatsapp-flutuante {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 15px;
        right: 15px;
    }
}

/* Banner de Intervalo */
.banner-intervalo {
    margin: 40px auto;
    max-width: 1300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 0px 0px 15px rgba(236, 116, 4, 0.952);
}
.banner-intervalo img {
    width: 100%;
    display: block;
    height: auto;
}


/* -------------------- FOOTER ---------------------- */

footer {
 background-color: var(--footer-bg-color);
 color: var(--text-dark-color);
 padding: 40px 20px 0; 
 border-top: 5px solid var(--header-bg-color);
font-family: Arial, sans-serif;
}

.footer-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 40px;
max-width: 1200px;
 margin: auto;
padding-bottom: 30px;
}

.footer-col h3, .footer-col h4 {
margin-bottom: 15px;
color: var(--button-primary-color);
font-family: "Rowdies", sans-serif;
font-size: 1.1rem;
}

.footer-col p, .footer-col a {
font-size: 14px;
color: var(--text-dark-color);
text-decoration: none;
line-height: 1.5;
transition: color 0.3s;
}
.footer-col a:hover { color: var(--link-hover-color); }

.footer-col ul { list-style: none; padding: 0; margin-top: 5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col i { margin-right: 8px; color: var(--button-primary-color); }

.footer-col.info h4:nth-of-type(2),
.footer-col.links-legal h4:nth-of-type(2) { margin-top: 25px; }

.cartoes {
display: flex; flex-wrap: wrap; align-items: center;
gap: 8px; margin-top: 15px;
}
.cartoes img { width: 40px; }

/* Barra Inferior (Social e Copyright) */
.footer-bottom-bar {
 display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 20px auto 0;
padding: 15px 0;
 border-top: 1px solid #c0c0c0;
 font-size: 13px;
}
.footer-bottom-bar .social-icons { display: flex; gap: 20px; }
.footer-bottom-bar .social-icons a { font-size: 1.5rem; color: var(--text-dark-color); transition: color 0.3s; }
.footer-bottom-bar .social-icons a:hover { color: var(--button-primary-color); }
.footer-bottom-bar p { color: #555; margin: 0; }


/* -------------------- MODAL (Login/Registro) ---------------------- */

.overlay {
    position: fixed;
     top: 0; 
     left: 0;
     width: 100%;
      height: 100%;
    background: rgba(0, 0, 0, 0.8); 
    display: none;
    justify-content: center;
     align-items: center;
      z-index: 1000;
}
.modal {
    background: #fff;
     padding: 40px;
     border-radius: 10px;
    width: 90%;
     max-width: 400px;
     position: relative;
    box-shadow: 0 2px 30px rgb(248, 122, 4);
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.modal h2 { color: var(--button-primary-color); text-align: center; margin-bottom: 25px; }
.modal form { display: flex; flex-direction: column; gap: 15px; }
.modal input { 
    padding: 12px; border: 1px solid #ddd; border-radius: 5px; 
    font-size: 1rem; transition: border-color 0.3s;
}
.modal input:focus { border-color: var(--button-primary-color); outline: none; }
.modal button.btn-modal { 
    background-color: var(--button-primary-color); color: var(--text-light-color);
    padding: 12px; border: none; border-radius: 5px; cursor: pointer;
    font-weight: bold; transition: background-color 0.3s, transform 0.2s;
}
.modal button.btn-modal:hover { background-color: var(--button-hover-color); transform: translateY(-1px); }
.modal .fechar { 
    position: absolute; top: 15px; right: 15px; 
    background: none; border: none; font-size: 1.5rem; color: #555; cursor: pointer;
}

/* ---------------- RESPONSIVIDADE GERAL ------------------ */

@media (max-width: 992px) {
    .menu-categorias { 
    display: none; }
}

@media (max-width: 768px) {
    /* Header: layout de duas linhas no tablet */
    .top-bar {
     flex-direction: column; 
     gap: 15px; 
     padding: 0 10px;
     }

    .search-container {
         width: 70%;
         }
    .top-bar .actions { 
    width: 100%; justify-content: center; 
}

    /* Banner (index.html) */
    .main-banner {
     height: 450px; 
    }
    .banner-principal-conteudo h1 { 
        font-size: 2.5rem;
     }
    .btn-destaque {
         font-size: 1rem; padding: 10px 30px;
         }

    /* Catálogo (produtos.html) - Tablet: 2 ou 3 colunas */
    .produtos-grid { 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px;
}

    /* Footer: 2 Colunas */
    .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 20px; }

    /* Barra Inferior em linhas no Mobile */
    .footer-bottom-bar { flex-direction: column;
     gap: 10px;
     text-align: center; }
    .footer-bottom-bar .social-icons { order: 1; }
    .footer-bottom-bar p { order: 2; }
}

@media (max-width: 576px) {
    /* Header Mobile */
    .logo-container img { height: 60px; }
    .top-bar { padding: 0 5px; }
    .search-container { width: 60%; }
    .actions { justify-content: space-around; }
    #inputSearch { width: 100px; padding: 8px 10px; }
    #btnSearch, #btnLogin, #btnCarrinho {
        position: relative;
         width: 35px;
         height: 35px; 
         font-size: 0.9rem; }

    /* Banner Mobile */
    .main-banner { height: 350px; }
    .banner-principal-conteudo h1 { font-size: 2rem; }
    .btn-destaque { font-size: 0.9rem; padding: 10px 20px; }

    /* Catálogo (produtos.html) - Mobile: 1 coluna */
    .produtos-grid { grid-template-columns: 1fr; gap: 15px; }
    .catalogo-secao { padding: 30px 10px; }

    /* Footer: 1 Coluna */
    .footer-container { grid-template-columns: 1fr; gap: 25px; text-align: center; }
    .footer-col ul { text-align: center; }
    .cartoes { justify-content: center; }
}

@media (max-width: 576px) {
    /* Header Mobile */

    /* MANTENHA ESTA REGRA */
    .logo-container img {
        position: relative;
        top: -25px;
        right: 0px; 
        height: 270px; }
    
    /* Ajusta a barra principal */
    .top-bar { 
        flex-direction: column; 
        gap: 10px; 
        padding: 0 30px; 
        height: 150px;
    }
    
    /* NOVO: Ajusta o container de Ações para forçar a visualização lado a lado */
    .actions { 
         position: relative;
        bottom: 216px;
        width: 100%; /* Ocupa a largura total */
        display: flex; /* Garante que os itens estejam lado a lado */
        justify-content: space-between; /* Distribui o espaço entre os elementos */
        align-items: center; 
    }
    
    /* NOVO: Força o campo de busca a ocupar apenas uma parte do espaço (ex: 75%) */
    .search-container {
        grid-area: busca; 
        width: 100%; 
        max-width: none;
        display: flex;
        align-items: center; /* Remove qualquer limitação prévia */
    }
    
      #inputSearch { 
        width: 100%; /* O input ocupa o restante do espaço */
        padding: 8px 10px; 
    }
    
    /* 3. Garante que o botão de busca tenha um tamanho fixo */
    #btnSearch {
        /* Garante que o botão não seja esmagado */
        flex-shrink: 0; 
        padding: 8px 12px;
    }
    /* NOVO: Garante que os botões de Ação sejam pequenos o suficiente */
    #btnLogin, #btnCarrinho { 
        width: 35px; 
        height: 35px; 
        font-size: 0.9rem; 
        flex-shrink: 0; /* IMPEDE QUE O CAMPO DE BUSCA OS ESMAGUE */
    }
    
    /* Restante das regras de mobile... */
    .produtos-grid { grid-template-columns: 1fr; gap: 15px; }
    .catalogo-secao { padding: 30px 10px; }
    .footer-container { grid-template-columns: 1fr; gap: 25px; text-align: center; }
    .footer-bottom-bar { flex-direction: column; gap: 10px; text-align: center; }
}