/* ==============================================
   GUIA COMERCIAL — style.css
   Estrutura:
   1. Variáveis e Reset
   2. Navbar
   3. Dropdown
   4. Botão Instagram
   5. Menu Mobile (Hamburguer)
   6. Hero Section
   7. Overlay
   8. Barra de Busca
   9. Quick Cards
   10. Responsividade (Media Queries)
   ============================================== */


/* -----------------------------------------------
   VARIÁVEIS GLOBAIS E RESET BÁSICO
   As variáveis (--nome) permitem alterar cores e
   tamanhos em um só lugar, refletindo em todo o site.
   ----------------------------------------------- */
:root {
    --cor-primaria: #E1306C;
    --cor-primaria-escura: #bc1888;
    --cor-texto: #333333;
    --cor-texto-muted: #666666;
    --cor-fundo: #f4f4f4;
    --altura-navbar: 80px;
    --sombra-suave: 0 2px 12px rgba(0, 0, 0, 0.08);
    --sombra-media: 0 4px 20px rgba(0, 0, 0, 0.15);
    --borda-radius: 10px;

    /* Transições com curvas mais naturais */
    --transicao: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transicao-lenta: 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    --transicao-elastica: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Scroll suave nativo para âncoras HTML */
html {
    scroll-behavior: smooth;
}

/* Reset: remove margens e paddings padrão do navegador
   e garante que border + padding sejam incluídos na largura total */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fonte base para todo o site */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    /* Evita que o conteúdo fique atrás da navbar fixa */
    padding-top: var(--altura-navbar);
}

/* Remove estilos padrão de todos os links */
a {
    text-decoration: none;
    color: inherit;
}


/* ===========   NAVBAR — barra de navegação fixa no topo ===========*/
.navbar {
    display: flex;
    justify-content: space-between; /* Logo | Menu | Ações */
    align-items: center;
    padding: 0 5%;                  /* Espaçamento lateral responsivo */
    height: var(--altura-navbar);
    background: #ffffff;
    position: fixed;                /* Fica no topo mesmo ao rolar */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;                  /* Fica acima de outros elementos */
    box-shadow: var(--sombra-suave);
}

/* Logo: "Guia" em cinza + "Comercial" em rosa */
.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--cor-texto);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--cor-primaria);
}

/* Menu central: links lado a lado */
.menu-central {
    display: flex;
    align-items: center;
    gap: 4px; /* Espaço entre os itens */
}

.menu-central a {
    color: #444;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transicao), background var(--transicao);
}

/* Efeito hover e foco nos links do menu */
.menu-central a:hover,
.menu-central a:focus-visible {
    color: var(--cor-primaria);
    background-color: rgba(225, 48, 108, 0.06);
    outline: none;
}

/* Agrupa Instagram + hamburguer no lado direito */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ===========   DROPDOWN — menu de categorias ===========*/

.dropdown {
    position: relative; /* Ancora o .dropdown-content */
    display: inline-block;
}

/* O botão do dropdown herda o visual dos links do menu */
.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #444;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    font-family: inherit; /* Herda a fonte do body */
    transition: color var(--transicao), background var(--transicao);
}

.dropdown-btn:hover,
.dropdown-btn:focus-visible {
    color: var(--cor-primaria);
    background-color: rgba(225, 48, 108, 0.06);
    outline: none;
}

/* Setinha do dropdown — gira 180° quando o menu abre */
.chevron {
    font-size: 11px;
    display: inline-block;
    transition: transform var(--transicao);
}

/* Quando o dropdown está ativo (hover ou focus), a setinha vira */
.dropdown:hover .chevron,
.dropdown:focus-within .chevron {
    transform: rotate(180deg);
}

/* Caixa flutuante com as opções */
.dropdown-content {
    display: none;              /* Oculto por padrão */
    position: absolute;
    top: calc(90% + 4px);     /* Logo abaixo do botão */
    left: 0;
    background-color: #ffffff;
    min-width: 140px;
    border: 0.5px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: var(--sombra-media);
    overflow: hidden;
    z-index: 100;
    /* Animação de entrada sutil */
    animation: fadeDown 0.8s ease;
}

/* Exibe o dropdown ao passar o mouse ou focar no elemento pai */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

/* Animação que faz o dropdown "aparecer de cima" */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Links dentro do dropdown */
.dropdown-content a {
    display: block;
    padding: 11px 18px;
    color: #444;
    font-size: 14px;
    transition: background var(--transicao), color var(--transicao);
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
    background-color: rgba(225, 48, 108, 0.06);
    color: var(--cor-primaria);
    outline: none;
}


/* -----------------------------------------------
   BOTÃO INSTAGRAM
   ----------------------------------------------- */
.btn-insta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    /* Gradiente característico do Instagram */
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
    font-size: 20px;
    transition: transform var(--transicao), box-shadow var(--transicao);
    box-shadow: 0 3px 10px rgba(225, 48, 108, 0.2);
}

.btn-insta-icon:hover {
    transform: scale(1.1) rotate(-5deg); /* Efeito de "pulo" no hover */
    box-shadow: 0 6px 16px rgba(225, 48, 108, 0.35);
}

/* Garante que o ícone FA fique centralizado */
.btn-insta-icon i {
    line-height: 0;
}


/* -----------------------------------------------
   MENU MOBILE (HAMBURGUER)
   O botão aparece só no mobile. Ao clicar, o menu
   desliza para baixo.
   ----------------------------------------------- */

/* Botão hamburguer — 3 barrinhas */
.hamburger {
    display: none;              /* Oculto no desktop */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background var(--transicao);
}

.hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Cada "barra" do hamburguer */
.hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--cor-texto);
    border-radius: 2px;
    transition: transform var(--transicao), opacity var(--transicao);
}

/* Animação do hamburguer → X quando o menu está aberto.
   A classe .ativo é adicionada via JavaScript. */
.hamburger.ativo .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.ativo .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.ativo .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menu lateral/dropdown do mobile — oculto por padrão */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;            /* Fica sobre o conteúdo */
    top: var(--altura-navbar);  /* Começa logo abaixo da navbar */
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 999;
    /* Animação de deslize */
    animation: slideDown 0.25s ease;
}

/* Quando a classe .aberto é adicionada via JS, o menu aparece */
.mobile-menu.aberto {
    display: flex;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Links dentro do menu mobile */
.mobile-menu a {
    padding: 14px 5%;
    font-weight: 500;
    font-size: 15px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    transition: background var(--transicao), color var(--transicao);
}

.mobile-menu a:last-child {
    border-bottom: none; /* Remove borda no último item */
}

.mobile-menu a:hover {
    background-color: rgba(225, 48, 108, 0.05);
    color: var(--cor-primaria);
}


/* ===========   HERO — seção principal de destaque ===========*/

.hero {
    /* Altura total da tela menos a navbar */
    height: calc(100vh - var(--altura-navbar));
    width: 100%;
    /* Substitua pelo caminho da sua imagem */
    background: url('../img/img_section_hero.png') no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Conteúdo centralizado do hero */
.hero-content {
    position: relative;
    z-index: 2;             /* Fica acima do overlay */
    color: #ffffff;
    text-align: center;
    width: 90%;
    max-width: 800px;
    /* Animação de entrada suave */
    animation: heroEntrada 0.7s ease both;
}

@keyframes heroEntrada {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem); /* Tamanho fluido — maior em telas maiores */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    color: var(--cor-primaria);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 30px;
    opacity: 0.88;
}


/* -----------------------------------------------
   OVERLAY — camada escura sobre a imagem do hero
   Melhora o contraste e a legibilidade do texto.
   ----------------------------------------------- */
.overlay {
    position: absolute;
    inset: 0; /* Equivale a: top:0; right:0; bottom:0; left:0 */
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}


/* -----------------------------------------------
   BARRA DE BUSCA
   ----------------------------------------------- */
.search-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    max-width: 580px;
    margin: 0 auto 36px;
    transition: box-shadow var(--transicao);
}

/* Destaque ao focar na barra de busca */
.search-container:focus-within {
    box-shadow: 0 4px 24px rgba(225, 48, 108, 0.3);
}

.search-container input {
    flex: 1;                /* Ocupa todo o espaço disponível */
    border: none;
    padding: 14px 22px;
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
    color: var(--cor-texto);
    background: transparent;
    font-family: inherit;
}

/* Texto do placeholder */
.search-container input::placeholder {
    color: #aaa;
}

.search-container button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cor-primaria);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-family: inherit;
    transition: background var(--transicao), transform 0.1s;
    white-space: nowrap; /* Impede quebra de linha no texto do botão */
}

.search-container button:hover {
    background: var(--cor-primaria-escura);
}

/* Efeito de "pressionar" o botão ao clicar */
.search-container button:active {
    transform: scale(0.97);
}


/* -----------------------------------------------
   QUICK CARDS — atalhos de categoria no hero
   ----------------------------------------------- */
.quick-cards {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap; /* Quebra linha em telas menores */
}

.q-card {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Fundo semitransparente com efeito "vidro" (glassmorphism) */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    /* Desfoque no fundo — requer suporte do navegador */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--transicao), transform var(--transicao), border-color var(--transicao);
    /* Permite navegação por teclado visualmente coerente */
    outline-offset: 3px;
}

.q-card:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px); /* Leve elevação no hover */
}

/* Foco via teclado — mantém acessibilidade sem outline padrão feio */
.q-card:focus-visible {
    outline: 2px solid #fff;
    background: rgba(255, 255, 255, 0.22);
}

/* Efeito de clique */
.q-card:active {
    transform: translateY(-1px);
}

/* Ícones dentro do card */
.q-card i {
    font-size: 14px;
    opacity: 0.9;
}

/* =========== SEÇÃO DE DESTAQUES ===========*/

.destaques {
    padding: 100px 5%;
    background-color: #f8f9fa; /* Fundo levemente cinza para destacar os cards brancos */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    /* display: block garante que text-align: center funcione corretamente
       mesmo quando o elemento é redefinido como inline-block nas animações */
    display: block;
    width: 100%;
}

.section-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 60px;
    display: block;
    width: 100%;
}

/* GRID RESPONSIVO: Ajusta colunas automaticamente conforme o tamanho da tela */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centraliza cards ímpares automaticamente */
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 0;





    /*
    display: grid;
     O 'minmax' diz: no mínimo 250px, no máximo 1 fração do espaço */
    /* Isso permite que os cards fiquem menores para caberem 4 em 1200px */
    /*grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 25px;
    max-width: 1300px;  Aumentei um pouco para caber os 4 confortavelmente 
    margin: 0 auto;
    padding: 20px 0;*/
}

/* ESTILO DO CARD */
.card-lojista {
    flex: 0 0 calc(25% - 19px); /* 4 colunas descontando os gaps */
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;


    /* background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; */
    
    /*display: flex;          Adicione isso */
    /*flex-direction: column; /* Adicione isso */
}

.card-lojista:hover {
    transform: translateY(-10px); /* Efeito de levitação */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Foto de Capa */
.card-header {
    height: 160px;
    position: relative;
    overflow: hidden; /* Isso impede a imagem de sair das bordas no hover */
}
/* A imagem de capa propriamente dita */
.card-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Efeito de zoom apenas na imagem */
.card-lojista:hover .card-banner {
    transform: scale(1.1);
}
/* Ajuste do conteúdo para o logo flutuar */
.card-content {
    padding: 20px;
    padding-top: 10px; /* Reduzi um pouco o padding aqui porque o margin do nome já resolve */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

/* O círculo do Logo */
.logo-wrapper {
    position: absolute;
    width: 80px;
    height: 80px;
    top: -40px; /* Sobe metade do logo para cima da imagem */
    left: 50%;
    transform: translateX(-50%); /* Centraliza horizontalmente */
    
    background-color: #fff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Ajuste o título para não bater no logo que subiu */
.lojista-nome {
    margin-top: 50px; /* Abre espaço para o logo que está flutuando */
    font-size: 1.2rem;
    color: #333;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

/* Etiqueta de Aberto/Fechado */
.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}
.status-badge.aberto { background-color: #2ecc71; }

/* Logo do Cliente Circular */
.logo-wrapper {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
}


/* Informações de Horário e Endereço */
.horario-info {
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza o conjunto ícone + texto */
    gap: 8px;                /* Espaço entre o ícone e o texto */
    font-size: 0.9rem;
    color: var(--cor-texto-muted);
    margin-bottom: 10px;
    background: #f9f9f9;     /* Um fundo bem leve ajuda a destacar */
    padding: 5px;
    border-radius: 8px;
}
    color: #2ecc71; font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; }
.horario-info i { margin-right: 5px; color: #3498db; }

.endereco { font-size: 0.85rem; color: #888; margin-bottom: 15px; }

.descricao { 
    font-size: 0.95rem; 
    color: #666; 
    line-height: 1.5; 
    margin-bottom: 20px; 

    flex-grow: 1;            /* ESTE É O SEGREDO: ela estica para ocupar o vazio */
    
    /* Mantém o limite de 3 linhas para ficar elegante */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BOTÕES DE AÇÃO */
.card-footer {
    display: flex;
    flex-direction: column;  /* badge embaixo do botão, sem amassar */
    align-items: center;
    gap: 10px;
    border-top: 1px solid #f1f1f1;
    padding-top: 15px;
    width: 100%;
    margin-top: auto;
}

.btn-social {
    width: 45px;
    height: 45px;
    border-radius: 12px; /* Bordas levemente arredondadas (estilo App) */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

/* Cores atenuadas para um visual mais moderno */
.btn-social.insta { background: #fdf2f5; color: #E1306C; }
.btn-social.whats { background: #e7f9ed; color: #25D366; }
.btn-social.maps { background: #f0f4ff; color: #4285F4; }

.btn-social:hover { transform: scale(1.1); filter: brightness(0.95); }

.status-badge.aberto { 
    background-color: #2ecc71; /* Verde */
}

.status-badge.fechado { 
    background-color: #e74c3c; /* Vermelho */
}


/* ==============================================
   ESTILOS DO MODAL DE DETALHES
   ============================================== */

/* Camada de fundo que escurece a tela */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fundo preto com 85% de opacidade */
    display: none; /* Começa escondido, o JS muda para 'flex' */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Garante que fique acima de qualquer elemento */
    padding: 20px;
}

/* Caixa branca do conteúdo */
.modal-content {
    background: #fff;
    width: 100%;
    max-width: 550px;
    max-height: 90vh; /* Não ultrapassa 90% da altura da tela */
    border-radius: 20px;
    position: relative;
    overflow-y: auto; /* Permite scroll se o texto for longo */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: abrirModalAnim 0.3s ease-out;
}


/* Animação buttons detalhes */
.btn-detalhes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Espaço entre o ícone e o texto */
    
    background: #3498db; /* Cor azul moderna */
    color: #ffffff !important;
    
    padding: 10px 20px;
    border-radius: 50px; /* Bordas arredondadas (estilo pílula) */
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%; /* Faz o botão ocupar a largura do card */
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Efeito ao passar o mouse (Hover) */
.btn-detalhes:hover {
    background: #2980b9; /* Azul um pouco mais escuro */
    transform: translateY(-3px); /* Sobe levemente */
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Efeito ao clicar */
.btn-detalhes:active {
    transform: translateY(-1px);
}

/* Animação suave de entrada */
@keyframes abrirModalAnim {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Botão de Fechar (X) */
.btn-fechar {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.btn-fechar:hover {
    background: #e74c3c;
}

/* Header do Modal (Banner e Logo) */
.modal-header {
    position: relative;
    height: 180px;
}

#modalBanner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-logo-wrapper {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#modalLogo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Corpo do Modal */
.modal-body {
    padding: 50px 25px 25px;
    text-align: center;
}

#modalNome {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.categoria-badge {
    background: #f1f2f6;
    color: #57606f;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Grade de informações (Horário e Endereço) */
.modal-info-grid {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #444;
}

.info-item i {
    color: #3498db;
    width: 20px;
}

.modal-desc {
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Botões de Ação */
.modal-acoes {
    display: flex;
    gap: 10px;
}

.btn-acao {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-acao:active { transform: scale(0.98); }

.btn-acao.whats { background: #25D366; color: white; }
.btn-acao.insta { background: #833AB4; color: white; }
.btn-acao.maps { background: #4285F4; color: white; }

 
/* ==============================================
   SECTION NOTÍCIAS
   ============================================== */
 
.noticias {
  padding: 100px 5%;
  background-color: #ffffff;
  scroll-margin-top: 80px;
}
 
/* Layout principal: lista à esquerda, destaque à direita */
.noticias-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}
 
/* ── COLUNA ESQUERDA: lista ── */
.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}
 
.noticias-lista::-webkit-scrollbar { width: 4px; }
.noticias-lista::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.noticias-lista::-webkit-scrollbar-thumb { background: var(--cor-primaria); border-radius: 4px; }
 
/* Card da lista */
.noticia-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
 
.noticia-item:hover {
  background: #fff0f5;
  border-color: var(--cor-primaria);
  transform: translateX(4px);
}
 
.noticia-item.ativo {
  background: #fff0f5;
  border-color: var(--cor-primaria);
}
 
.noticia-item img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
 
.noticia-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.noticia-item-categoria {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cor-primaria);
  letter-spacing: 0.5px;
}
 
.noticia-item-titulo {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cor-texto);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.noticia-item-data {
  font-size: 0.75rem;
  color: var(--cor-texto-muted);
}
 
/* ── COLUNA DIREITA: destaque ── */
.noticia-destaque {
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  animation: fadeInDestaque 0.35s ease;
}
 
@keyframes fadeInDestaque {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.destaque-imagem-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
}
 
.destaque-imagem-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
 
.noticia-destaque:hover .destaque-imagem-wrap img {
  transform: scale(1.03);
}
 
.destaque-corpo {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.destaque-categoria {
  display: inline-block;
  background: var(--cor-primaria);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}
 
.destaque-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.35;
  margin: 0;
}
 
.destaque-data {
  font-size: 0.82rem;
  color: var(--cor-texto-muted);
  margin: 0;
}
 
.destaque-resumo {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.destaque-btn-ler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: fit-content;
  margin-top: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}
 
.destaque-btn-ler:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.4);
}
 
/* ── MODAL DA NOTÍCIA COMPLETA ── */
.modal-noticia-content {
  background: #fff;
  border-radius: 20px;
  max-width: 720px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative; /* garante que o btn-fechar se posicione corretamente */
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}

/* Botão fechar do modal de notícia — fica sobre a imagem */
#fecharModalNoticia {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
}

/* Botão "Voltar" fixo no rodapé do modal — confortável para o polegar no mobile */
.btn-voltar-noticia {
  display: none; /* visível apenas no mobile via media query */
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 48px);
  margin: 0 24px 28px;
  padding: 14px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.btn-voltar-noticia:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .btn-voltar-noticia {
    display: flex;
  }
}
 
.modal-noticia-imagem {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  display: block;
}
 
.modal-noticia-corpo {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.modal-noticia-corpo h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.3;
  margin: 0;
}
 
.modal-noticia-texto {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.8;
  white-space: pre-line;
}
 


















/* =========== RESPONSIVIDADE ===========*/

/* -----------------------------------------------
    Media Queries
   Ajustes para tablets e celulares.
   Lógica "mobile-first" adaptada:
   o CSS base funciona no desktop, e aqui
   fazemos os ajustes para telas menores.
   ----------------------------------------------- */

/* ==== telas 1200px ==== */
@media (min-width: 1200px) {
    .cards-grid {
        /* Forçamos 4 colunas exatas em telas bem largas */
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==== telas 1024px ==== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-content h1 { font-size: 2.8rem; }
}


/* Tablet: telas até 992px */
@media (max-width: 992px) {
    /* Reduz um pouco o espaçamento lateral da navbar */
    .navbar {
        padding: 0 4%;
    }

    /* Esconde o menu central e mostra o hamburguer */
    .menu-central {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Carrossel horizontal para tablets e celulares (abaixo de 900px) */
@media (max-width: 900px) {
    /* Container vira trilho de scroll horizontal */
    .cards-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 24px 40px 24px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start; /* Alinha do início no carrossel */
    }
 
    /* Card ocupa ~80% da tela — mostra a borda do próximo (dica visual) */
    .card-lojista {
        flex: 0 0 80%;
        max-width: 360px;
        scroll-snap-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
 
    /* Esconde a barra de scroll feia */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }
 
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }

    /* ── NOTÍCIAS MOBILE: painel destaque some, lista vira feed ── */

    /* Oculta o painel de destaque — clique abre direto o modal */
    .noticia-destaque {
        display: none !important;
    }

    /* Layout vira coluna única */
    .noticias-layout {
        grid-template-columns: 1fr;
    }

    /* Lista ocupa toda a largura, sem altura máxima nem scroll vertical */
    .noticias-lista {
        display: flex;
        flex-direction: column;
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
        padding-right: 0;
        gap: 0;
    }

    /* Card compacto estilo feed de notícias */
    .noticia-item {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 14px;
        align-items: center;
        background: #fff;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 14px 4px;
        transform: none !important; /* remove o translateX do hover */
    }

    .noticia-item:first-child {
        border-top: 1px solid #eee;
    }

    /* Remove borda lateral colorida do item ativo (não faz sentido no feed) */
    .noticia-item.ativo,
    .noticia-item:hover {
        border-color: #eee;
        background: #fff;
        border-left: none;
    }

    /* Imagem maior e com proporção fixa */
    .noticia-item img {
        width: 110px;
        height: 75px;
        border-radius: 8px;
        object-fit: cover;
    }

    /* Título em destaque com a cor primária, igual à imagem de referência */
    .noticia-item-titulo {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--cor-primaria);
        -webkit-line-clamp: 3;
        line-height: 1.4;
    }

    .noticia-item-categoria {
        font-size: 0.68rem;
    }

    .noticia-item-data {
        font-size: 0.72rem;
    }
}

/* Mobile: telas até 600px */
@media (max-width: 600px) {
    /* Barra de busca empilhada verticalmente */
    .search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        gap: 8px;
    }

    .search-container input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .search-container button {
        width: 100%;
        justify-content: center;
        padding: 14px;
        border-radius: 12px;
    }

    /* Cards menores para caber bem na tela */
    .q-card {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    /* Navbar mais compacta */
    .navbar {
        padding: 0 4%;
    }
       .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title { font-size: 2rem;
    }
}

/* Aplicando funcion scroll */
@media (max-width: 500px) {
    /* 1. O PAI (Container dos cards) */
    .cards-grid {
        display: flex !important;       /* Muda de Grid para Flex para alinhar lado a lado */
        flex-wrap: nowrap !important;   /* IMPEDIR que os cards pulem para baixo */
        overflow-x: auto;               /* Habilita o scroll lateral */
        scroll-snap-type: x mandatory;  /* Efeito de "ímã" ao deslizar */
        gap: 20px;                      /* Espaço entre os cards */
        padding: 20px 20px 40px 20px;   /* Respiro nas laterais e embaixo */
        -webkit-overflow-scrolling: touch; /* Scroll suave no iPhone/iOS */
    }

    /* 2. O FILHO (O Card individual) */
    .card-lojista {
        flex: 0 0 85%;                  /* Não estica, não encolhe, ocupa 85% da largura */
        scroll-snap-align: center;       /* Faz o card parar sempre centralizado */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra mais leve no mobile */
    }

    /* 3. Estética: Esconder a barra de rolagem feia (opcional) */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ajuste de textos para telas pequenas */
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }
}

/* Mobile pequeno: telas até 380px (ex: iPhone SE) */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    .q-card {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .cards-grid {
        grid-template-columns: 1fr; /* Um card por linha para não esmagar a info */
    }
    .card-lojista { max-width: 320px; margin: 0 auto; } /* Centraliza o card único */
}



/* ==============================================
   MODAL DE "NÃO ENCONTRADO"
   ============================================== */

.modal-nao-encontrado {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 20px 28px; /* topo alto: espaço para o btn X */
  max-width: 440px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  box-sizing: border-box;
}

/* Botão X — sempre fixo no canto, nunca some */
.btn-fechar-nao-encontrado {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.07);
  color: #555;
  border: none;
  width: 32px;
  height: 32px;
  min-width: 32px;   /* nunca encolhe */
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 5;
  line-height: 1;
}

.btn-fechar-nao-encontrado:hover {
  background: #e74c3c;
  color: #fff;
}

/* Ícone lupa — tamanho controlado */
.nao-encontrado-icone {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
  animation: pulseIcon 1.5s ease infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* Título */
.nao-encontrado-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Texto — palavra longa não vaza */
.nao-encontrado-texto {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Badge verde — linha única, texto fixo sem o termo buscado */
.nao-encontrado-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #a9dfbf;
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 100%;          /* nunca ultrapassa o modal */
  box-sizing: border-box;
}

.nao-encontrado-info span {
  white-space: nowrap;      /* texto do badge sempre em uma linha */
}

/* Subtítulo das sugestões */
.nao-encontrado-sugestao-titulo {
  font-size: 0.86rem;
  color: #888;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Grid de tags de sugestão */
.sugestoes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Tag individual — nunca quebra em duas linhas */
.sugestao-tag {
  background: #f4f4f4;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.sugestao-tag:hover {
  background: var(--cor-primaria);
  color: #fff;
  border-color: var(--cor-primaria);
  transform: translateY(-2px);
}

/* Botão principal de voltar */
.btn-voltar-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225,48,108,0.3);
}

.btn-voltar-principal:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225,48,108,0.4);
}

/* ── Telas muito pequenas (< 400px) ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    width: 96%;
    padding: 44px 14px 24px;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2rem; }
  .nao-encontrado-titulo { font-size: 1.1rem; }
  .nao-encontrado-texto  { font-size: 0.82rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.86rem;
    padding: 12px 18px;
  }
}

/* ── Responsividade específica do modal não encontrado ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    padding: 40px 18px 24px;
    width: 96%;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2.2rem; }
  .nao-encontrado-titulo { font-size: 1.15rem; }
  .nao-encontrado-texto  { font-size: 0.85rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.88rem;
    padding: 12px 20px;
  }
}

/* ==============================================
   BOTÃO FLUTUANTE — VOLTAR AO TOPO
   ============================================== */

.btn-voltar-topo {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

/* Aparece após rolar 300px */
.btn-voltar-topo.visivel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-voltar-topo:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.55);
}

@media (max-width: 900px) {
  .btn-voltar-topo {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}


/* ==============================================
   FOOTER — Rodapé
   ============================================== */

.footer {
  background-color: #111318;  /* Fundo escuro — contraste com o restante da página */
  color: #ccc;
  padding-top: 0;
}

/* Linha gradiente decorativa no topo do footer */
.footer-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-primaria-escura), var(--cor-primaria));
  background-size: 200% auto;
  animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Container principal — grid de 4 colunas no desktop */
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 64px 5% 48px;
}

/* ── COLUNA 1: Brand ── */
.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--cor-primaria);
}

.footer-descricao {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #999;
  margin-bottom: 24px;
  max-width: 280px;
}

/* Ícones de redes sociais */
.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--cor-primaria);
  transform: translateY(-3px);
  color: #fff;
}

.social-link.whatsapp:hover {
  background: #25D366;
}

/* ── COLUNAS 2 e 3: Links de navegação ── */
.footer-col-titulo {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

/* Linha decorativa abaixo do título de cada coluna */
.footer-col-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--cor-primaria);
  padding-left: 6px;
}

/* ── COLUNA 4: CTA para lojistas ── */
.footer-cta-texto {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #999;
  margin-bottom: 20px;
}

.footer-btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}

.footer-btn-whats:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ── Linha inferior: copyright e crédito ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 5%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}

.footer-credito strong {
  color: #aaa;
  font-weight: 600;
}

.footer-credito strong span {
  color: var(--cor-primaria);
}

/* ── RESPONSIVIDADE ── */

/* Tablet: 2 colunas */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 5% 36px;
  }

  /* Brand ocupa largura total no topo */
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-descricao {
    max-width: 100%;
  }
}

/* Mobile: coluna única */
@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 5% 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}


/* ==============================================
   ANIMAÇÕES GLOBAIS — Guia Comercial
   Intensidade: Moderada
   ============================================== */

/* ── 1. HERO — entrada escalonada dos elementos ──
   Cada elemento filho aparece com delay progressivo,
   dando a sensação de "construção" da tela           */

.hero-content h1 {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.1s;
}

.hero-content p {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.3s;
  opacity: 0; /* começa invisível até a animação rodar */
  animation-fill-mode: forwards;
}

.search-container {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.quick-cards {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.7s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ── 2. SCROLL REVEAL — cards e seções
   Elementos começam invisíveis e sobem ao entrar
   na viewport (controlado via JS + IntersectionObserver) */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform; /* sugere ao browser usar GPU para estas props */
}

.reveal.visivel {
  will-change: auto; /* libera o recurso após a animação terminar */
}

.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para filhos dentro de um grid */
.reveal-group .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.35s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.45s; }
.reveal-group .reveal:nth-child(6) { transition-delay: 0.55s; }

/* ── 3. BOTÕES — micro-interações ao hover/active ──
   Feedback visual imediato que torna a UI mais viva  */

/* Botão de busca */
#btnBuscar {
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
#btnBuscar:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(225,48,108,0.4); }
#btnBuscar:active { transform: scale(0.97); }

/* Quick-cards de categoria */
.q-card {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.q-card:hover  { transform: translateY(-4px) scale(1.04); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.q-card:active { transform: scale(0.97); }

/* Cards de lojista */
.card-lojista {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lojista:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }

/* Botão "Ver detalhes" dentro do card */
.btn-detalhes {
  transition: background 0.2s, color 0.2s, letter-spacing 0.2s;
}
.card-lojista:hover .btn-detalhes {
  letter-spacing: 0.5px;
}

/* Links do footer */
.footer-links a {
  transition: color 0.2s, padding-left 0.25s;
}

/* Botão voltar ao topo */
.btn-voltar-topo {
  transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
}

/* ── 4. MODAIS — entrada e saída suaves ──          */

/* Overlay: fade in */
.modal-overlay {
  animation: none; /* reseta qualquer animação anterior */
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Quando o modal é exibido via JS (display:flex),
   a animação é aplicada nos filhos diretos         */
.modal-overlay[style*="flex"] {
  animation: modalOverlayIn 0.25s ease both;
}

.modal-overlay[style*="flex"] .modal-content,
.modal-overlay[style*="flex"] .modal-noticia-content,
.modal-overlay[style*="flex"] .modal-nao-encontrado {
  animation: modalSlideUp 0.3s ease both;
}

/* ── 5. SEÇÃO TÍTULOS — linha cresce ao entrar na viewport ── */

.section-title {
  position: relative;
  /* Mantém block para respeitar text-align: center do container */
  display: block;
  width: 100%;
}

/* Linha decorativa gerada via pseudo-elemento centralizado */
.section-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  background: var(--cor-primaria);
  border-radius: 2px;
  margin: 8px auto 0; /* auto nas laterais centraliza a linha */
  transition: width 0.6s ease;
}

.section-title.visivel::after {
  width: 60px;
}

/* ── 6. NOTÍCIA DESTAQUE — já tem fadeInDestaque, reforça ── */
.noticia-item {
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

/* ── 7. NAVBAR LINKS — underline deslizante ── */
.menu-central a,
.menu-central .dropdown-btn {
  position: relative;
}

.menu-central a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.menu-central a:hover::after {
  width: 100%;
}

/* ── 8. IMAGEM DO CARD — zoom suave ao hover ── */
.card-banner {
  transition: transform 0.4s ease;
}
.card-lojista:hover .card-banner {
  transform: scale(1.06);
}

/* ── 9. FOOTER SOCIAL — bounce ao hover ── */
.social-link {
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
}
.social-link:hover {
  transform: translateY(-4px) scale(1.12);
}

/* ── 10. BADGE ABERTO/FECHADO — pulso sutil no "Aberto Agora" ── */
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(39,174,96,0); }
}

.status-badge.aberto {
  animation: pulseBadge 2.5s ease infinite;
}

/* Badge de intervalo de almoço — tom laranja/âmbar */
.status-badge.almoco {
  background: #f39c12;
  color: #fff;
}

/* ── Respeita preferência do usuário por menos movimento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==============================================
   BOTÃO DE LOCALIZAÇÃO — Hero Section
   ============================================== */

.btn-localizacao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-localizacao:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-localizacao:active {
  transform: scale(0.97);
}

/* Estado: buscando localização */
.btn-localizacao.buscando {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.btn-localizacao.buscando i {
  animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Estado: localização ativa — destaque em verde */
.btn-localizacao.ativo {
  background: rgba(39, 174, 96, 0.25);
  border-color: #2ecc71;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(39,174,96,0.25);
}

/* Badge de distância nos cards */
.distancia-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--cor-primaria);
  border: 1.5px solid rgba(225, 48, 108, 0.3);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.12);
  animation: heroEntrada 0.4s ease both; /* aparece suavemente */
  letter-spacing: 0.2px;
}

.distancia-badge i {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* Responsivo — botão menor no mobile */
@media (max-width: 500px) {
  .btn-localizacao {
    padding: 10px 20px;
    font-size: 0.88rem;
  }
}


/* ==============================================
   SECTION ENCARTES — Bento Grid
   ============================================== */

.encartes {
  padding: 100px 0 80px;
  background: #f0f2f5;
  overflow: hidden;
  scroll-margin-top: 80px;
}

/* ── BENTO GRID — estrutura principal ── */
.bento-grid {
  display: grid;
  /* 8 colunas: grandes ocupam 4 cada (metade), médios ocupam 2 cada (4 por linha) */
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 0 8px;
}

/* ── TAMANHOS DOS CARDS ──
   Grid de 8 colunas:
   [ grande (4) ][ grande (4) ]   → linha 1 e 2
   [ med(2) ][ med(2) ][ med(2) ][ med(2) ] → linha 3
*/
.bento-card.bento-grande  { grid-column: span 4; grid-row: span 2; }
.bento-card.bento-medio   { grid-column: span 2; grid-row: span 1; }

/* ── CARD BASE ── */
.bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.bento-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.bento-card:active { transform: scale(0.98); }

/* ── IMAGEM DE FUNDO ── */
.bento-imagem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.bento-card:hover .bento-imagem { transform: scale(1.06); }

/* ── OVERLAY DE COR ── */
.bento-overlay {
  position: absolute;
  inset: 0;
  background: var(--cor-encarte, rgba(0,0,0,0.55));
  opacity: 0.85;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-card:hover .bento-overlay { opacity: 0.75; }

/* ── CONTEÚDO ── */
.bento-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;           /* médios: padding mais compacto */
  pointer-events: none;
}

.bento-grande .bento-info { padding: 28px; }
.bento-medio  .bento-info { padding: 14px; }

.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 50px;
  margin-bottom: 5px;
  width: fit-content;
  /* impede que o nome longo do lojista quebre o layout */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bento-titulo {
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6); /* sombra mais forte */
}

.bento-grande .bento-titulo { font-size: 1.5rem; }
.bento-medio  .bento-titulo {
  font-size: 0.95rem;
  /* garante que o título nunca some */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-produto {
  font-size: 1rem;          /* médios: texto decorativo menor */
  font-weight: 900;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.1;
  margin-bottom: 10px;
  /* limita a 2 linhas para não empurrar o título */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-grande .bento-produto {
  font-size: 3rem;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.bento-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: fit-content;
  pointer-events: auto;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Botão maior apenas nos grandes */
.bento-grande .bento-btn {
  padding: 9px 18px;
  font-size: 0.82rem;
  gap: 6px;
}

.bento-btn:hover {
  background: var(--cor-primaria);
  color: #fff;
  transform: translateY(-2px);
}

.bento-btn:active { transform: scale(0.96); }

/* ── PALETA AUTOMÁTICA DE CORES ──
   Tons suavizados com mais escuro e menos saturação
   para garantir legibilidade do texto sobre as imagens */
.bento-card[data-cor="0"] { --cor-encarte: rgba(160,  28,  75, 0.88); } /* rosa escuro   */
.bento-card[data-cor="1"] { --cor-encarte: rgba(18,   58, 160, 0.88); } /* azul escuro   */
.bento-card[data-cor="2"] { --cor-encarte: rgba(10,  110,  55, 0.88); } /* verde escuro  */
.bento-card[data-cor="3"] { --cor-encarte: rgba(180,  65,   8, 0.88); } /* laranja escuro*/
.bento-card[data-cor="4"] { --cor-encarte: rgba(80,   25, 160, 0.88); } /* roxo escuro   */
.bento-card[data-cor="5"] { --cor-encarte: rgba(10,   85,  80, 0.88); } /* teal escuro   */

/* ── TABLET (≤ 900px): grandes metade, médios 2 por linha ── */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 175px;
    gap: 12px;
  }

  .bento-card.bento-grande { grid-column: span 2; grid-row: span 2; }
  .bento-card.bento-medio  { grid-column: span 1; grid-row: span 1; }
}

/* ── MOBILE (≤ 580px) ── */
@media (max-width: 580px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 10px;
  }

  .bento-card.bento-grande { grid-column: span 2; grid-row: span 2; }
  .bento-card.bento-medio  { grid-column: span 1; grid-row: span 1; }

  .bento-grande .bento-titulo { font-size: 1.2rem; }
  .bento-grande .bento-produto { font-size: 2rem; }
  .bento-medio  .bento-titulo { font-size: 0.88rem; }
  .bento-medio  .bento-produto { font-size: 1.2rem; }
  .bento-grande .bento-info { padding: 18px; }
  .bento-info { padding: 12px; }
  .bento-btn { padding: 7px 14px; font-size: 0.78rem; }
}

/* ==============================================
   SECTION NOTÍCIAS
   ============================================== */
 
.noticias {
  padding: 100px 5%;
  background-color: #ffffff;
  scroll-margin-top: 80px;
}
 
/* Layout principal: lista à esquerda, destaque à direita */
.noticias-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}
 
/* ── COLUNA ESQUERDA: lista ── */
.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}
 
.noticias-lista::-webkit-scrollbar { width: 4px; }
.noticias-lista::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.noticias-lista::-webkit-scrollbar-thumb { background: var(--cor-primaria); border-radius: 4px; }
 
/* Card da lista */
.noticia-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
 
.noticia-item:hover {
  background: #fff0f5;
  border-color: var(--cor-primaria);
  transform: translateX(4px);
}
 
.noticia-item.ativo {
  background: #fff0f5;
  border-color: var(--cor-primaria);
}
 
.noticia-item img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
 
.noticia-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.noticia-item-categoria {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cor-primaria);
  letter-spacing: 0.5px;
}
 
.noticia-item-titulo {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cor-texto);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.noticia-item-data {
  font-size: 0.75rem;
  color: var(--cor-texto-muted);
}
 
/* ── COLUNA DIREITA: destaque ── */
.noticia-destaque {
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  animation: fadeInDestaque 0.35s ease;
}
 
@keyframes fadeInDestaque {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.destaque-imagem-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
}
 
.destaque-imagem-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
 
.noticia-destaque:hover .destaque-imagem-wrap img {
  transform: scale(1.03);
}
 
.destaque-corpo {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.destaque-categoria {
  display: inline-block;
  background: var(--cor-primaria);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}
 
.destaque-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.35;
  margin: 0;
}
 
.destaque-data {
  font-size: 0.82rem;
  color: var(--cor-texto-muted);
  margin: 0;
}
 
.destaque-resumo {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.destaque-btn-ler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: fit-content;
  margin-top: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}
 
.destaque-btn-ler:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.4);
}
 
/* ── MODAL DA NOTÍCIA COMPLETA ── */
.modal-noticia-content {
  background: #fff;
  border-radius: 20px;
  max-width: 720px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative; /* garante que o btn-fechar se posicione corretamente */
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}

/* Botão fechar do modal de notícia — fica sobre a imagem */
#fecharModalNoticia {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
}

/* Botão "Voltar" fixo no rodapé do modal — confortável para o polegar no mobile */
.btn-voltar-noticia {
  display: none; /* visível apenas no mobile via media query */
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 48px);
  margin: 0 24px 28px;
  padding: 14px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.btn-voltar-noticia:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .btn-voltar-noticia {
    display: flex;
  }
}
 
.modal-noticia-imagem {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  display: block;
}
 
.modal-noticia-corpo {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.modal-noticia-corpo h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.3;
  margin: 0;
}
 
.modal-noticia-texto {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.8;
  white-space: pre-line;
}
 


















/* =========== RESPONSIVIDADE ===========*/

/* -----------------------------------------------
    Media Queries
   Ajustes para tablets e celulares.
   Lógica "mobile-first" adaptada:
   o CSS base funciona no desktop, e aqui
   fazemos os ajustes para telas menores.
   ----------------------------------------------- */

/* ==== telas 1200px ==== */
@media (min-width: 1200px) {
    .cards-grid {
        /* Forçamos 4 colunas exatas em telas bem largas */
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==== telas 1024px ==== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-content h1 { font-size: 2.8rem; }
}


/* Tablet: telas até 992px */
@media (max-width: 992px) {
    /* Reduz um pouco o espaçamento lateral da navbar */
    .navbar {
        padding: 0 4%;
    }

    /* Esconde o menu central e mostra o hamburguer */
    .menu-central {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Carrossel horizontal para tablets e celulares (abaixo de 900px) */
@media (max-width: 900px) {
    /* Container vira trilho de scroll horizontal */
    .cards-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 24px 40px 24px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start; /* Alinha do início no carrossel */
    }
 
    /* Card ocupa ~80% da tela — mostra a borda do próximo (dica visual) */
    .card-lojista {
        flex: 0 0 80%;
        max-width: 360px;
        scroll-snap-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
 
    /* Esconde a barra de scroll feia */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }
 
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }

    /* ── NOTÍCIAS MOBILE: painel destaque some, lista vira feed ── */

    /* Oculta o painel de destaque — clique abre direto o modal */
    .noticia-destaque {
        display: none !important;
    }

    /* Layout vira coluna única */
    .noticias-layout {
        grid-template-columns: 1fr;
    }

    /* Lista ocupa toda a largura, sem altura máxima nem scroll vertical */
    .noticias-lista {
        display: flex;
        flex-direction: column;
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
        padding-right: 0;
        gap: 0;
    }

    /* Card compacto estilo feed de notícias */
    .noticia-item {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 14px;
        align-items: center;
        background: #fff;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 14px 4px;
        transform: none !important; /* remove o translateX do hover */
    }

    .noticia-item:first-child {
        border-top: 1px solid #eee;
    }

    /* Remove borda lateral colorida do item ativo (não faz sentido no feed) */
    .noticia-item.ativo,
    .noticia-item:hover {
        border-color: #eee;
        background: #fff;
        border-left: none;
    }

    /* Imagem maior e com proporção fixa */
    .noticia-item img {
        width: 110px;
        height: 75px;
        border-radius: 8px;
        object-fit: cover;
    }

    /* Título em destaque com a cor primária, igual à imagem de referência */
    .noticia-item-titulo {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--cor-primaria);
        -webkit-line-clamp: 3;
        line-height: 1.4;
    }

    .noticia-item-categoria {
        font-size: 0.68rem;
    }

    .noticia-item-data {
        font-size: 0.72rem;
    }
}

/* Mobile: telas até 600px */
@media (max-width: 600px) {
    /* Barra de busca empilhada verticalmente */
    .search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        gap: 8px;
    }

    .search-container input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .search-container button {
        width: 100%;
        justify-content: center;
        padding: 14px;
        border-radius: 12px;
    }

    /* Cards menores para caber bem na tela */
    .q-card {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    /* Navbar mais compacta */
    .navbar {
        padding: 0 4%;
    }
       .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title { font-size: 2rem;
    }
}

/* Aplicando funcion scroll */
@media (max-width: 500px) {
    /* 1. O PAI (Container dos cards) */
    .cards-grid {
        display: flex !important;       /* Muda de Grid para Flex para alinhar lado a lado */
        flex-wrap: nowrap !important;   /* IMPEDIR que os cards pulem para baixo */
        overflow-x: auto;               /* Habilita o scroll lateral */
        scroll-snap-type: x mandatory;  /* Efeito de "ímã" ao deslizar */
        gap: 20px;                      /* Espaço entre os cards */
        padding: 20px 20px 40px 20px;   /* Respiro nas laterais e embaixo */
        -webkit-overflow-scrolling: touch; /* Scroll suave no iPhone/iOS */
    }

    /* 2. O FILHO (O Card individual) */
    .card-lojista {
        flex: 0 0 85%;                  /* Não estica, não encolhe, ocupa 85% da largura */
        scroll-snap-align: center;       /* Faz o card parar sempre centralizado */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra mais leve no mobile */
    }

    /* 3. Estética: Esconder a barra de rolagem feia (opcional) */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ajuste de textos para telas pequenas */
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }
}

/* Mobile pequeno: telas até 380px (ex: iPhone SE) */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    .q-card {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .cards-grid {
        grid-template-columns: 1fr; /* Um card por linha para não esmagar a info */
    }
    .card-lojista { max-width: 320px; margin: 0 auto; } /* Centraliza o card único */
}



/* ==============================================
   MODAL DE "NÃO ENCONTRADO"
   ============================================== */

.modal-nao-encontrado {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 20px 28px; /* topo alto: espaço para o btn X */
  max-width: 440px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  box-sizing: border-box;
}

/* Botão X — sempre fixo no canto, nunca some */
.btn-fechar-nao-encontrado {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.07);
  color: #555;
  border: none;
  width: 32px;
  height: 32px;
  min-width: 32px;   /* nunca encolhe */
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 5;
  line-height: 1;
}

.btn-fechar-nao-encontrado:hover {
  background: #e74c3c;
  color: #fff;
}

/* Ícone lupa — tamanho controlado */
.nao-encontrado-icone {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
  animation: pulseIcon 1.5s ease infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* Título */
.nao-encontrado-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Texto — palavra longa não vaza */
.nao-encontrado-texto {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Badge verde — linha única, texto fixo sem o termo buscado */
.nao-encontrado-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #a9dfbf;
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 100%;          /* nunca ultrapassa o modal */
  box-sizing: border-box;
}

.nao-encontrado-info span {
  white-space: nowrap;      /* texto do badge sempre em uma linha */
}

/* Subtítulo das sugestões */
.nao-encontrado-sugestao-titulo {
  font-size: 0.86rem;
  color: #888;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Grid de tags de sugestão */
.sugestoes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Tag individual — nunca quebra em duas linhas */
.sugestao-tag {
  background: #f4f4f4;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.sugestao-tag:hover {
  background: var(--cor-primaria);
  color: #fff;
  border-color: var(--cor-primaria);
  transform: translateY(-2px);
}

/* Botão principal de voltar */
.btn-voltar-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225,48,108,0.3);
}

.btn-voltar-principal:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225,48,108,0.4);
}

/* ── Telas muito pequenas (< 400px) ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    width: 96%;
    padding: 44px 14px 24px;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2rem; }
  .nao-encontrado-titulo { font-size: 1.1rem; }
  .nao-encontrado-texto  { font-size: 0.82rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.86rem;
    padding: 12px 18px;
  }
}

/* ── Responsividade específica do modal não encontrado ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    padding: 40px 18px 24px;
    width: 96%;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2.2rem; }
  .nao-encontrado-titulo { font-size: 1.15rem; }
  .nao-encontrado-texto  { font-size: 0.85rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.88rem;
    padding: 12px 20px;
  }
}

/* ==============================================
   BOTÃO FLUTUANTE — VOLTAR AO TOPO
   ============================================== */

.btn-voltar-topo {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

/* Aparece após rolar 300px */
.btn-voltar-topo.visivel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-voltar-topo:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.55);
}

@media (max-width: 900px) {
  .btn-voltar-topo {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}


/* ==============================================
   FOOTER — Rodapé
   ============================================== */

.footer {
  background-color: #111318;  /* Fundo escuro — contraste com o restante da página */
  color: #ccc;
  padding-top: 0;
}

/* Linha gradiente decorativa no topo do footer */
.footer-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-primaria-escura), var(--cor-primaria));
  background-size: 200% auto;
  animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Container principal — grid de 4 colunas no desktop */
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 64px 5% 48px;
}

/* ── COLUNA 1: Brand ── */
.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--cor-primaria);
}

.footer-descricao {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #999;
  margin-bottom: 24px;
  max-width: 280px;
}

/* Ícones de redes sociais */
.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--cor-primaria);
  transform: translateY(-3px);
  color: #fff;
}

.social-link.whatsapp:hover {
  background: #25D366;
}

/* ── COLUNAS 2 e 3: Links de navegação ── */
.footer-col-titulo {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

/* Linha decorativa abaixo do título de cada coluna */
.footer-col-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--cor-primaria);
  padding-left: 6px;
}

/* ── COLUNA 4: CTA para lojistas ── */
.footer-cta-texto {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #999;
  margin-bottom: 20px;
}

.footer-btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}

.footer-btn-whats:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ── Linha inferior: copyright e crédito ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 5%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}

.footer-credito strong {
  color: #aaa;
  font-weight: 600;
}

.footer-credito strong span {
  color: var(--cor-primaria);
}

/* ── RESPONSIVIDADE ── */

/* Tablet: 2 colunas */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 5% 36px;
  }

  /* Brand ocupa largura total no topo */
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-descricao {
    max-width: 100%;
  }
}

/* Mobile: coluna única */
@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 5% 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}


/* ==============================================
   ANIMAÇÕES GLOBAIS — Guia Comercial
   Intensidade: Moderada
   ============================================== */

/* ── 1. HERO — entrada escalonada dos elementos ──
   Cada elemento filho aparece com delay progressivo,
   dando a sensação de "construção" da tela           */

.hero-content h1 {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.1s;
}

.hero-content p {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.3s;
  opacity: 0; /* começa invisível até a animação rodar */
  animation-fill-mode: forwards;
}

.search-container {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.quick-cards {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.7s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ── 2. SCROLL REVEAL — cards e seções
   Elementos começam invisíveis e sobem ao entrar
   na viewport (controlado via JS + IntersectionObserver) */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform; /* sugere ao browser usar GPU para estas props */
}

.reveal.visivel {
  will-change: auto; /* libera o recurso após a animação terminar */
}

.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para filhos dentro de um grid */


/* ── 3. BOTÕES — micro-interações ao hover/active ──
   Feedback visual imediato que torna a UI mais viva  */

/* Botão de busca */
#btnBuscar {
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
#btnBuscar:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(225,48,108,0.4); }
#btnBuscar:active { transform: scale(0.97); }

/* Quick-cards de categoria */
.q-card {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.q-card:hover  { transform: translateY(-4px) scale(1.04); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.q-card:active { transform: scale(0.97); }

/* Cards de lojista */
.card-lojista {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lojista:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }

/* Botão "Ver detalhes" dentro do card */
.btn-detalhes {
  transition: background 0.2s, color 0.2s, letter-spacing 0.2s;
}
.card-lojista:hover .btn-detalhes {
  letter-spacing: 0.5px;
}

/* Links do footer */
.footer-links a {
  transition: color 0.2s, padding-left 0.25s;
}

/* Botão voltar ao topo */
.btn-voltar-topo {
  transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
}

/* ── 4. MODAIS — entrada e saída suaves ──          */

/* Overlay: fade in */
.modal-overlay {
  animation: none; /* reseta qualquer animação anterior */
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Quando o modal é exibido via JS (display:flex),
   a animação é aplicada nos filhos diretos         */
.modal-overlay[style*="flex"] {
  animation: modalOverlayIn 0.25s ease both;
}

.modal-overlay[style*="flex"] .modal-content,
.modal-overlay[style*="flex"] .modal-noticia-content,
.modal-overlay[style*="flex"] .modal-nao-encontrado {
  animation: modalSlideUp 0.3s ease both;
}

/* ── 5. SEÇÃO TÍTULOS — linha cresce ao entrar na viewport ── */

.section-title {
  position: relative;
  /* Mantém block para respeitar text-align: center do container */
  display: block;
  width: 100%;
}

/* Linha decorativa gerada via pseudo-elemento centralizado */
.section-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  background: var(--cor-primaria);
  border-radius: 2px;
  margin: 8px auto 0; /* auto nas laterais centraliza a linha */
  transition: width 0.6s ease;
}

.section-title.visivel::after {
  width: 60px;
}

/* ── 6. NOTÍCIA DESTAQUE — já tem fadeInDestaque, reforça ── */
.noticia-item {
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

/* ── 7. NAVBAR LINKS — underline deslizante ── */
.menu-central a,
.menu-central .dropdown-btn {
  position: relative;
}

.menu-central a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.menu-central a:hover::after {
  width: 100%;
}

/* ── 8. IMAGEM DO CARD — zoom suave ao hover ── */
.card-banner {
  transition: transform 0.4s ease;
}
.card-lojista:hover .card-banner {
  transform: scale(1.06);
}

/* ── 9. FOOTER SOCIAL — bounce ao hover ── */
.social-link {
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
}
.social-link:hover {
  transform: translateY(-4px) scale(1.12);
}

/* ── 10. BADGE ABERTO/FECHADO — pulso sutil no "Aberto Agora" ── */
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(39,174,96,0); }
}

.status-badge.aberto {
  animation: pulseBadge 2.5s ease infinite;
}

/* Badge de intervalo de almoço — tom laranja/âmbar */
.status-badge.almoco {
  background: #f39c12;
  color: #fff;
}

/* ── Respeita preferência do usuário por menos movimento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==============================================
   BOTÃO DE LOCALIZAÇÃO — Hero Section
   ============================================== */

.btn-localizacao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-localizacao:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-localizacao:active {
  transform: scale(0.97);
}

/* Estado: buscando localização */
.btn-localizacao.buscando {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.btn-localizacao.buscando i {
  animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Estado: localização ativa — destaque em verde */
.btn-localizacao.ativo {
  background: rgba(39, 174, 96, 0.25);
  border-color: #2ecc71;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(39,174,96,0.25);
}

/* Badge de distância nos cards */
.distancia-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--cor-primaria);
  border: 1.5px solid rgba(225, 48, 108, 0.3);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.12);
  animation: heroEntrada 0.4s ease both; /* aparece suavemente */
  letter-spacing: 0.2px;
}

.distancia-badge i {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* Responsivo — botão menor no mobile */
@media (max-width: 500px) {
  .btn-localizacao {
    padding: 10px 20px;
    font-size: 0.88rem;
  }
}


/* ==============================================
   SECTION NOTÍCIAS
   ============================================== */
 
.noticias {
  padding: 100px 5%;
  background-color: #ffffff;
  scroll-margin-top: 80px;
}
 
/* Layout principal: lista à esquerda, destaque à direita */
.noticias-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}
 
/* ── COLUNA ESQUERDA: lista ── */
.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}
 
.noticias-lista::-webkit-scrollbar { width: 4px; }
.noticias-lista::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.noticias-lista::-webkit-scrollbar-thumb { background: var(--cor-primaria); border-radius: 4px; }
 
/* Card da lista */
.noticia-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
 
.noticia-item:hover {
  background: #fff0f5;
  border-color: var(--cor-primaria);
  transform: translateX(4px);
}
 
.noticia-item.ativo {
  background: #fff0f5;
  border-color: var(--cor-primaria);
}
 
.noticia-item img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
 
.noticia-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.noticia-item-categoria {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cor-primaria);
  letter-spacing: 0.5px;
}
 
.noticia-item-titulo {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cor-texto);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.noticia-item-data {
  font-size: 0.75rem;
  color: var(--cor-texto-muted);
}
 
/* ── COLUNA DIREITA: destaque ── */
.noticia-destaque {
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  animation: fadeInDestaque 0.35s ease;
}
 
@keyframes fadeInDestaque {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.destaque-imagem-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
}
 
.destaque-imagem-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
 
.noticia-destaque:hover .destaque-imagem-wrap img {
  transform: scale(1.03);
}
 
.destaque-corpo {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.destaque-categoria {
  display: inline-block;
  background: var(--cor-primaria);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}
 
.destaque-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.35;
  margin: 0;
}
 
.destaque-data {
  font-size: 0.82rem;
  color: var(--cor-texto-muted);
  margin: 0;
}
 
.destaque-resumo {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.destaque-btn-ler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: fit-content;
  margin-top: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}
 
.destaque-btn-ler:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.4);
}
 
/* ── MODAL DA NOTÍCIA COMPLETA ── */
.modal-noticia-content {
  background: #fff;
  border-radius: 20px;
  max-width: 720px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative; /* garante que o btn-fechar se posicione corretamente */
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}

/* Botão fechar do modal de notícia — fica sobre a imagem */
#fecharModalNoticia {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
}

/* Botão "Voltar" fixo no rodapé do modal — confortável para o polegar no mobile */
.btn-voltar-noticia {
  display: none; /* visível apenas no mobile via media query */
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 48px);
  margin: 0 24px 28px;
  padding: 14px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.btn-voltar-noticia:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .btn-voltar-noticia {
    display: flex;
  }
}
 
.modal-noticia-imagem {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  display: block;
}
 
.modal-noticia-corpo {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.modal-noticia-corpo h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.3;
  margin: 0;
}
 
.modal-noticia-texto {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.8;
  white-space: pre-line;
}
 


















/* =========== RESPONSIVIDADE ===========*/

/* -----------------------------------------------
    Media Queries
   Ajustes para tablets e celulares.
   Lógica "mobile-first" adaptada:
   o CSS base funciona no desktop, e aqui
   fazemos os ajustes para telas menores.
   ----------------------------------------------- */

/* ==== telas 1200px ==== */
@media (min-width: 1200px) {
    .cards-grid {
        /* Forçamos 4 colunas exatas em telas bem largas */
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==== telas 1024px ==== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-content h1 { font-size: 2.8rem; }
}


/* Tablet: telas até 992px */
@media (max-width: 992px) {
    /* Reduz um pouco o espaçamento lateral da navbar */
    .navbar {
        padding: 0 4%;
    }

    /* Esconde o menu central e mostra o hamburguer */
    .menu-central {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Carrossel horizontal para tablets e celulares (abaixo de 900px) */
@media (max-width: 900px) {
    /* Container vira trilho de scroll horizontal */
    .cards-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 24px 40px 24px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start; /* Alinha do início no carrossel */
    }
 
    /* Card ocupa ~80% da tela — mostra a borda do próximo (dica visual) */
    .card-lojista {
        flex: 0 0 80%;
        max-width: 360px;
        scroll-snap-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
 
    /* Esconde a barra de scroll feia */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }
 
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }

    /* ── NOTÍCIAS MOBILE: painel destaque some, lista vira feed ── */

    /* Oculta o painel de destaque — clique abre direto o modal */
    .noticia-destaque {
        display: none !important;
    }

    /* Layout vira coluna única */
    .noticias-layout {
        grid-template-columns: 1fr;
    }

    /* Lista ocupa toda a largura, sem altura máxima nem scroll vertical */
    .noticias-lista {
        display: flex;
        flex-direction: column;
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
        padding-right: 0;
        gap: 0;
    }

    /* Card compacto estilo feed de notícias */
    .noticia-item {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 14px;
        align-items: center;
        background: #fff;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 14px 4px;
        transform: none !important; /* remove o translateX do hover */
    }

    .noticia-item:first-child {
        border-top: 1px solid #eee;
    }

    /* Remove borda lateral colorida do item ativo (não faz sentido no feed) */
    .noticia-item.ativo,
    .noticia-item:hover {
        border-color: #eee;
        background: #fff;
        border-left: none;
    }

    /* Imagem maior e com proporção fixa */
    .noticia-item img {
        width: 110px;
        height: 75px;
        border-radius: 8px;
        object-fit: cover;
    }

    /* Título em destaque com a cor primária, igual à imagem de referência */
    .noticia-item-titulo {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--cor-primaria);
        -webkit-line-clamp: 3;
        line-height: 1.4;
    }

    .noticia-item-categoria {
        font-size: 0.68rem;
    }

    .noticia-item-data {
        font-size: 0.72rem;
    }
}

/* Mobile: telas até 600px */
@media (max-width: 600px) {
    /* Barra de busca empilhada verticalmente */
    .search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        gap: 8px;
    }

    .search-container input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .search-container button {
        width: 100%;
        justify-content: center;
        padding: 14px;
        border-radius: 12px;
    }

    /* Cards menores para caber bem na tela */
    .q-card {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    /* Navbar mais compacta */
    .navbar {
        padding: 0 4%;
    }
       .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title { font-size: 2rem;
    }
}

/* Aplicando funcion scroll */
@media (max-width: 500px) {
    /* 1. O PAI (Container dos cards) */
    .cards-grid {
        display: flex !important;       /* Muda de Grid para Flex para alinhar lado a lado */
        flex-wrap: nowrap !important;   /* IMPEDIR que os cards pulem para baixo */
        overflow-x: auto;               /* Habilita o scroll lateral */
        scroll-snap-type: x mandatory;  /* Efeito de "ímã" ao deslizar */
        gap: 20px;                      /* Espaço entre os cards */
        padding: 20px 20px 40px 20px;   /* Respiro nas laterais e embaixo */
        -webkit-overflow-scrolling: touch; /* Scroll suave no iPhone/iOS */
    }

    /* 2. O FILHO (O Card individual) */
    .card-lojista {
        flex: 0 0 85%;                  /* Não estica, não encolhe, ocupa 85% da largura */
        scroll-snap-align: center;       /* Faz o card parar sempre centralizado */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra mais leve no mobile */
    }

    /* 3. Estética: Esconder a barra de rolagem feia (opcional) */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ajuste de textos para telas pequenas */
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }
}

/* Mobile pequeno: telas até 380px (ex: iPhone SE) */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    .q-card {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .cards-grid {
        grid-template-columns: 1fr; /* Um card por linha para não esmagar a info */
    }
    .card-lojista { max-width: 320px; margin: 0 auto; } /* Centraliza o card único */
}



/* ==============================================
   MODAL DE "NÃO ENCONTRADO"
   ============================================== */

.modal-nao-encontrado {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 20px 28px; /* topo alto: espaço para o btn X */
  max-width: 440px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  box-sizing: border-box;
}

/* Botão X — sempre fixo no canto, nunca some */
.btn-fechar-nao-encontrado {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.07);
  color: #555;
  border: none;
  width: 32px;
  height: 32px;
  min-width: 32px;   /* nunca encolhe */
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 5;
  line-height: 1;
}

.btn-fechar-nao-encontrado:hover {
  background: #e74c3c;
  color: #fff;
}

/* Ícone lupa — tamanho controlado */
.nao-encontrado-icone {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
  animation: pulseIcon 1.5s ease infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* Título */
.nao-encontrado-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Texto — palavra longa não vaza */
.nao-encontrado-texto {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Badge verde — linha única, texto fixo sem o termo buscado */
.nao-encontrado-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #a9dfbf;
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 100%;          /* nunca ultrapassa o modal */
  box-sizing: border-box;
}

.nao-encontrado-info span {
  white-space: nowrap;      /* texto do badge sempre em uma linha */
}

/* Subtítulo das sugestões */
.nao-encontrado-sugestao-titulo {
  font-size: 0.86rem;
  color: #888;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Grid de tags de sugestão */
.sugestoes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Tag individual — nunca quebra em duas linhas */
.sugestao-tag {
  background: #f4f4f4;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.sugestao-tag:hover {
  background: var(--cor-primaria);
  color: #fff;
  border-color: var(--cor-primaria);
  transform: translateY(-2px);
}

/* Botão principal de voltar */
.btn-voltar-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225,48,108,0.3);
}

.btn-voltar-principal:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225,48,108,0.4);
}

/* ── Telas muito pequenas (< 400px) ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    width: 96%;
    padding: 44px 14px 24px;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2rem; }
  .nao-encontrado-titulo { font-size: 1.1rem; }
  .nao-encontrado-texto  { font-size: 0.82rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.86rem;
    padding: 12px 18px;
  }
}

/* ── Responsividade específica do modal não encontrado ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    padding: 40px 18px 24px;
    width: 96%;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2.2rem; }
  .nao-encontrado-titulo { font-size: 1.15rem; }
  .nao-encontrado-texto  { font-size: 0.85rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.88rem;
    padding: 12px 20px;
  }
}

/* ==============================================
   BOTÃO FLUTUANTE — VOLTAR AO TOPO
   ============================================== */

.btn-voltar-topo {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

/* Aparece após rolar 300px */
.btn-voltar-topo.visivel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-voltar-topo:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.55);
}

@media (max-width: 900px) {
  .btn-voltar-topo {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}


/* ==============================================
   FOOTER — Rodapé
   ============================================== */

.footer {
  background-color: #111318;  /* Fundo escuro — contraste com o restante da página */
  color: #ccc;
  padding-top: 0;
}

/* Linha gradiente decorativa no topo do footer */
.footer-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-primaria-escura), var(--cor-primaria));
  background-size: 200% auto;
  animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Container principal — grid de 4 colunas no desktop */
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 64px 5% 48px;
}

/* ── COLUNA 1: Brand ── */
.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--cor-primaria);
}

.footer-descricao {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #999;
  margin-bottom: 24px;
  max-width: 280px;
}

/* Ícones de redes sociais */
.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--cor-primaria);
  transform: translateY(-3px);
  color: #fff;
}

.social-link.whatsapp:hover {
  background: #25D366;
}

/* ── COLUNAS 2 e 3: Links de navegação ── */
.footer-col-titulo {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

/* Linha decorativa abaixo do título de cada coluna */
.footer-col-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--cor-primaria);
  padding-left: 6px;
}

/* ── COLUNA 4: CTA para lojistas ── */
.footer-cta-texto {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #999;
  margin-bottom: 20px;
}

.footer-btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}

.footer-btn-whats:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ── Linha inferior: copyright e crédito ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 5%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}

.footer-credito strong {
  color: #aaa;
  font-weight: 600;
}

.footer-credito strong span {
  color: var(--cor-primaria);
}

/* ── RESPONSIVIDADE ── */

/* Tablet: 2 colunas */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 5% 36px;
  }

  /* Brand ocupa largura total no topo */
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-descricao {
    max-width: 100%;
  }
}

/* Mobile: coluna única */
@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 5% 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}


/* ==============================================
   ANIMAÇÕES GLOBAIS — Guia Comercial
   Intensidade: Moderada
   ============================================== */

/* ── 1. HERO — entrada escalonada dos elementos ──
   Cada elemento filho aparece com delay progressivo,
   dando a sensação de "construção" da tela           */

.hero-content h1 {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.1s;
}

.hero-content p {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.3s;
  opacity: 0; /* começa invisível até a animação rodar */
  animation-fill-mode: forwards;
}

.search-container {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.quick-cards {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.7s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ── 2. SCROLL REVEAL — cards e seções
   Elementos começam invisíveis e sobem ao entrar
   na viewport (controlado via JS + IntersectionObserver) */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform; /* sugere ao browser usar GPU para estas props */
}

.reveal.visivel {
  will-change: auto; /* libera o recurso após a animação terminar */
}

.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para filhos dentro de um grid */


/* ── 3. BOTÕES — micro-interações ao hover/active ──
   Feedback visual imediato que torna a UI mais viva  */

/* Botão de busca */
#btnBuscar {
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
#btnBuscar:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(225,48,108,0.4); }
#btnBuscar:active { transform: scale(0.97); }

/* Quick-cards de categoria */
.q-card {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.q-card:hover  { transform: translateY(-4px) scale(1.04); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.q-card:active { transform: scale(0.97); }

/* Cards de lojista */
.card-lojista {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lojista:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }

/* Botão "Ver detalhes" dentro do card */
.btn-detalhes {
  transition: background 0.2s, color 0.2s, letter-spacing 0.2s;
}
.card-lojista:hover .btn-detalhes {
  letter-spacing: 0.5px;
}

/* Links do footer */
.footer-links a {
  transition: color 0.2s, padding-left 0.25s;
}

/* Botão voltar ao topo */
.btn-voltar-topo {
  transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
}

/* ── 4. MODAIS — entrada e saída suaves ──          */

/* Overlay: fade in */
.modal-overlay {
  animation: none; /* reseta qualquer animação anterior */
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Quando o modal é exibido via JS (display:flex),
   a animação é aplicada nos filhos diretos         */
.modal-overlay[style*="flex"] {
  animation: modalOverlayIn 0.25s ease both;
}

.modal-overlay[style*="flex"] .modal-content,
.modal-overlay[style*="flex"] .modal-noticia-content,
.modal-overlay[style*="flex"] .modal-nao-encontrado {
  animation: modalSlideUp 0.3s ease both;
}

/* ── 5. SEÇÃO TÍTULOS — linha cresce ao entrar na viewport ── */

.section-title {
  position: relative;
  /* Mantém block para respeitar text-align: center do container */
  display: block;
  width: 100%;
}

/* Linha decorativa gerada via pseudo-elemento centralizado */
.section-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  background: var(--cor-primaria);
  border-radius: 2px;
  margin: 8px auto 0; /* auto nas laterais centraliza a linha */
  transition: width 0.6s ease;
}

.section-title.visivel::after {
  width: 60px;
}

/* ── 6. NOTÍCIA DESTAQUE — já tem fadeInDestaque, reforça ── */
.noticia-item {
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

/* ── 7. NAVBAR LINKS — underline deslizante ── */
.menu-central a,
.menu-central .dropdown-btn {
  position: relative;
}

.menu-central a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.menu-central a:hover::after {
  width: 100%;
}

/* ── 8. IMAGEM DO CARD — zoom suave ao hover ── */
.card-banner {
  transition: transform 0.4s ease;
}
.card-lojista:hover .card-banner {
  transform: scale(1.06);
}

/* ── 9. FOOTER SOCIAL — bounce ao hover ── */
.social-link {
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
}
.social-link:hover {
  transform: translateY(-4px) scale(1.12);
}

/* ── 10. BADGE ABERTO/FECHADO — pulso sutil no "Aberto Agora" ── */
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(39,174,96,0); }
}

.status-badge.aberto {
  animation: pulseBadge 2.5s ease infinite;
}

/* Badge de intervalo de almoço — tom laranja/âmbar */
.status-badge.almoco {
  background: #f39c12;
  color: #fff;
}

/* ── Respeita preferência do usuário por menos movimento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==============================================
   BOTÃO DE LOCALIZAÇÃO — Hero Section
   ============================================== */

.btn-localizacao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-localizacao:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-localizacao:active {
  transform: scale(0.97);
}

/* Estado: buscando localização */
.btn-localizacao.buscando {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.btn-localizacao.buscando i {
  animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Estado: localização ativa — destaque em verde */
.btn-localizacao.ativo {
  background: rgba(39, 174, 96, 0.25);
  border-color: #2ecc71;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(39,174,96,0.25);
}

/* Badge de distância nos cards */
.distancia-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--cor-primaria);
  border: 1.5px solid rgba(225, 48, 108, 0.3);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.12);
  animation: heroEntrada 0.4s ease both; /* aparece suavemente */
  letter-spacing: 0.2px;
}

.distancia-badge i {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* Responsivo — botão menor no mobile */
@media (max-width: 500px) {
  .btn-localizacao {
    padding: 10px 20px;
    font-size: 0.88rem;
  }
}


/* ==============================================
   SECTION NOTÍCIAS
   ============================================== */
 
.noticias {
  padding: 100px 5%;
  background-color: #ffffff;
  scroll-margin-top: 80px;
}
 
/* Layout principal: lista à esquerda, destaque à direita */
.noticias-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}
 
/* ── COLUNA ESQUERDA: lista ── */
.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}
 
.noticias-lista::-webkit-scrollbar { width: 4px; }
.noticias-lista::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.noticias-lista::-webkit-scrollbar-thumb { background: var(--cor-primaria); border-radius: 4px; }
 
/* Card da lista */
.noticia-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
 
.noticia-item:hover {
  background: #fff0f5;
  border-color: var(--cor-primaria);
  transform: translateX(4px);
}
 
.noticia-item.ativo {
  background: #fff0f5;
  border-color: var(--cor-primaria);
}
 
.noticia-item img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
 
.noticia-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.noticia-item-categoria {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cor-primaria);
  letter-spacing: 0.5px;
}
 
.noticia-item-titulo {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cor-texto);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.noticia-item-data {
  font-size: 0.75rem;
  color: var(--cor-texto-muted);
}
 
/* ── COLUNA DIREITA: destaque ── */
.noticia-destaque {
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  animation: fadeInDestaque 0.35s ease;
}
 
@keyframes fadeInDestaque {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.destaque-imagem-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
}
 
.destaque-imagem-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
 
.noticia-destaque:hover .destaque-imagem-wrap img {
  transform: scale(1.03);
}
 
.destaque-corpo {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.destaque-categoria {
  display: inline-block;
  background: var(--cor-primaria);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}
 
.destaque-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.35;
  margin: 0;
}
 
.destaque-data {
  font-size: 0.82rem;
  color: var(--cor-texto-muted);
  margin: 0;
}
 
.destaque-resumo {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.destaque-btn-ler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: fit-content;
  margin-top: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}
 
.destaque-btn-ler:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.4);
}
 
/* ── MODAL DA NOTÍCIA COMPLETA ── */
.modal-noticia-content {
  background: #fff;
  border-radius: 20px;
  max-width: 720px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative; /* garante que o btn-fechar se posicione corretamente */
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}

/* Botão fechar do modal de notícia — fica sobre a imagem */
#fecharModalNoticia {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
}

/* Botão "Voltar" fixo no rodapé do modal — confortável para o polegar no mobile */
.btn-voltar-noticia {
  display: none; /* visível apenas no mobile via media query */
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 48px);
  margin: 0 24px 28px;
  padding: 14px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.btn-voltar-noticia:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .btn-voltar-noticia {
    display: flex;
  }
}
 
.modal-noticia-imagem {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  display: block;
}
 
.modal-noticia-corpo {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.modal-noticia-corpo h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.3;
  margin: 0;
}
 
.modal-noticia-texto {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.8;
  white-space: pre-line;
}
 


















/* =========== RESPONSIVIDADE ===========*/

/* -----------------------------------------------
    Media Queries
   Ajustes para tablets e celulares.
   Lógica "mobile-first" adaptada:
   o CSS base funciona no desktop, e aqui
   fazemos os ajustes para telas menores.
   ----------------------------------------------- */

/* ==== telas 1200px ==== */
@media (min-width: 1200px) {
    .cards-grid {
        /* Forçamos 4 colunas exatas em telas bem largas */
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==== telas 1024px ==== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-content h1 { font-size: 2.8rem; }
}


/* Tablet: telas até 992px */
@media (max-width: 992px) {
    /* Reduz um pouco o espaçamento lateral da navbar */
    .navbar {
        padding: 0 4%;
    }

    /* Esconde o menu central e mostra o hamburguer */
    .menu-central {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Carrossel horizontal para tablets e celulares (abaixo de 900px) */
@media (max-width: 900px) {
    /* Container vira trilho de scroll horizontal */
    .cards-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 24px 40px 24px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start; /* Alinha do início no carrossel */
    }
 
    /* Card ocupa ~80% da tela — mostra a borda do próximo (dica visual) */
    .card-lojista {
        flex: 0 0 80%;
        max-width: 360px;
        scroll-snap-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
 
    /* Esconde a barra de scroll feia */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }
 
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }

    /* ── NOTÍCIAS MOBILE: painel destaque some, lista vira feed ── */

    /* Oculta o painel de destaque — clique abre direto o modal */
    .noticia-destaque {
        display: none !important;
    }

    /* Layout vira coluna única */
    .noticias-layout {
        grid-template-columns: 1fr;
    }

    /* Lista ocupa toda a largura, sem altura máxima nem scroll vertical */
    .noticias-lista {
        display: flex;
        flex-direction: column;
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
        padding-right: 0;
        gap: 0;
    }

    /* Card compacto estilo feed de notícias */
    .noticia-item {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 14px;
        align-items: center;
        background: #fff;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 14px 4px;
        transform: none !important; /* remove o translateX do hover */
    }

    .noticia-item:first-child {
        border-top: 1px solid #eee;
    }

    /* Remove borda lateral colorida do item ativo (não faz sentido no feed) */
    .noticia-item.ativo,
    .noticia-item:hover {
        border-color: #eee;
        background: #fff;
        border-left: none;
    }

    /* Imagem maior e com proporção fixa */
    .noticia-item img {
        width: 110px;
        height: 75px;
        border-radius: 8px;
        object-fit: cover;
    }

    /* Título em destaque com a cor primária, igual à imagem de referência */
    .noticia-item-titulo {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--cor-primaria);
        -webkit-line-clamp: 3;
        line-height: 1.4;
    }

    .noticia-item-categoria {
        font-size: 0.68rem;
    }

    .noticia-item-data {
        font-size: 0.72rem;
    }
}

/* Mobile: telas até 600px */
@media (max-width: 600px) {
    /* Barra de busca empilhada verticalmente */
    .search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        gap: 8px;
    }

    .search-container input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .search-container button {
        width: 100%;
        justify-content: center;
        padding: 14px;
        border-radius: 12px;
    }

    /* Cards menores para caber bem na tela */
    .q-card {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    /* Navbar mais compacta */
    .navbar {
        padding: 0 4%;
    }
       .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title { font-size: 2rem;
    }
}

/* Aplicando funcion scroll */
@media (max-width: 500px) {
    /* 1. O PAI (Container dos cards) */
    .cards-grid {
        display: flex !important;       /* Muda de Grid para Flex para alinhar lado a lado */
        flex-wrap: nowrap !important;   /* IMPEDIR que os cards pulem para baixo */
        overflow-x: auto;               /* Habilita o scroll lateral */
        scroll-snap-type: x mandatory;  /* Efeito de "ímã" ao deslizar */
        gap: 20px;                      /* Espaço entre os cards */
        padding: 20px 20px 40px 20px;   /* Respiro nas laterais e embaixo */
        -webkit-overflow-scrolling: touch; /* Scroll suave no iPhone/iOS */
    }

    /* 2. O FILHO (O Card individual) */
    .card-lojista {
        flex: 0 0 85%;                  /* Não estica, não encolhe, ocupa 85% da largura */
        scroll-snap-align: center;       /* Faz o card parar sempre centralizado */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra mais leve no mobile */
    }

    /* 3. Estética: Esconder a barra de rolagem feia (opcional) */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ajuste de textos para telas pequenas */
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }
}

/* Mobile pequeno: telas até 380px (ex: iPhone SE) */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    .q-card {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .cards-grid {
        grid-template-columns: 1fr; /* Um card por linha para não esmagar a info */
    }
    .card-lojista { max-width: 320px; margin: 0 auto; } /* Centraliza o card único */
}



/* ==============================================
   MODAL DE "NÃO ENCONTRADO"
   ============================================== */

.modal-nao-encontrado {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 20px 28px; /* topo alto: espaço para o btn X */
  max-width: 440px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  box-sizing: border-box;
}

/* Botão X — sempre fixo no canto, nunca some */
.btn-fechar-nao-encontrado {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.07);
  color: #555;
  border: none;
  width: 32px;
  height: 32px;
  min-width: 32px;   /* nunca encolhe */
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 5;
  line-height: 1;
}

.btn-fechar-nao-encontrado:hover {
  background: #e74c3c;
  color: #fff;
}

/* Ícone lupa — tamanho controlado */
.nao-encontrado-icone {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
  animation: pulseIcon 1.5s ease infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* Título */
.nao-encontrado-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Texto — palavra longa não vaza */
.nao-encontrado-texto {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Badge verde — linha única, texto fixo sem o termo buscado */
.nao-encontrado-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #a9dfbf;
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 100%;          /* nunca ultrapassa o modal */
  box-sizing: border-box;
}

.nao-encontrado-info span {
  white-space: nowrap;      /* texto do badge sempre em uma linha */
}

/* Subtítulo das sugestões */
.nao-encontrado-sugestao-titulo {
  font-size: 0.86rem;
  color: #888;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Grid de tags de sugestão */
.sugestoes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Tag individual — nunca quebra em duas linhas */
.sugestao-tag {
  background: #f4f4f4;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.sugestao-tag:hover {
  background: var(--cor-primaria);
  color: #fff;
  border-color: var(--cor-primaria);
  transform: translateY(-2px);
}

/* Botão principal de voltar */
.btn-voltar-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225,48,108,0.3);
}

.btn-voltar-principal:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225,48,108,0.4);
}

/* ── Telas muito pequenas (< 400px) ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    width: 96%;
    padding: 44px 14px 24px;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2rem; }
  .nao-encontrado-titulo { font-size: 1.1rem; }
  .nao-encontrado-texto  { font-size: 0.82rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.86rem;
    padding: 12px 18px;
  }
}

/* ── Responsividade específica do modal não encontrado ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    padding: 40px 18px 24px;
    width: 96%;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2.2rem; }
  .nao-encontrado-titulo { font-size: 1.15rem; }
  .nao-encontrado-texto  { font-size: 0.85rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.88rem;
    padding: 12px 20px;
  }
}

/* ==============================================
   BOTÃO FLUTUANTE — VOLTAR AO TOPO
   ============================================== */

.btn-voltar-topo {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

/* Aparece após rolar 300px */
.btn-voltar-topo.visivel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-voltar-topo:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.55);
}

@media (max-width: 900px) {
  .btn-voltar-topo {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}


/* ==============================================
   FOOTER — Rodapé
   ============================================== */

.footer {
  background-color: #111318;  /* Fundo escuro — contraste com o restante da página */
  color: #ccc;
  padding-top: 0;
}

/* Linha gradiente decorativa no topo do footer */
.footer-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-primaria-escura), var(--cor-primaria));
  background-size: 200% auto;
  animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Container principal — grid de 4 colunas no desktop */
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 64px 5% 48px;
}

/* ── COLUNA 1: Brand ── */
.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--cor-primaria);
}

.footer-descricao {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #999;
  margin-bottom: 24px;
  max-width: 280px;
}

/* Ícones de redes sociais */
.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--cor-primaria);
  transform: translateY(-3px);
  color: #fff;
}

.social-link.whatsapp:hover {
  background: #25D366;
}

/* ── COLUNAS 2 e 3: Links de navegação ── */
.footer-col-titulo {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

/* Linha decorativa abaixo do título de cada coluna */
.footer-col-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--cor-primaria);
  padding-left: 6px;
}

/* ── COLUNA 4: CTA para lojistas ── */
.footer-cta-texto {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #999;
  margin-bottom: 20px;
}

.footer-btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}

.footer-btn-whats:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ── Linha inferior: copyright e crédito ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 5%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}

.footer-credito strong {
  color: #aaa;
  font-weight: 600;
}

.footer-credito strong span {
  color: var(--cor-primaria);
}

/* ── RESPONSIVIDADE ── */

/* Tablet: 2 colunas */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 5% 36px;
  }

  /* Brand ocupa largura total no topo */
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-descricao {
    max-width: 100%;
  }
}

/* Mobile: coluna única */
@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 5% 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}


/* ==============================================
   ANIMAÇÕES GLOBAIS — Guia Comercial
   Intensidade: Moderada
   ============================================== */

/* ── 1. HERO — entrada escalonada dos elementos ──
   Cada elemento filho aparece com delay progressivo,
   dando a sensação de "construção" da tela           */

.hero-content h1 {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.1s;
}

.hero-content p {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.3s;
  opacity: 0; /* começa invisível até a animação rodar */
  animation-fill-mode: forwards;
}

.search-container {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.quick-cards {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.7s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ── 2. SCROLL REVEAL — cards e seções
   Elementos começam invisíveis e sobem ao entrar
   na viewport (controlado via JS + IntersectionObserver) */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform; /* sugere ao browser usar GPU para estas props */
}

.reveal.visivel {
  will-change: auto; /* libera o recurso após a animação terminar */
}

.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para filhos dentro de um grid */


/* ── 3. BOTÕES — micro-interações ao hover/active ──
   Feedback visual imediato que torna a UI mais viva  */

/* Botão de busca */
#btnBuscar {
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
#btnBuscar:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(225,48,108,0.4); }
#btnBuscar:active { transform: scale(0.97); }

/* Quick-cards de categoria */
.q-card {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.q-card:hover  { transform: translateY(-4px) scale(1.04); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.q-card:active { transform: scale(0.97); }

/* Cards de lojista */
.card-lojista {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lojista:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }

/* Botão "Ver detalhes" dentro do card */
.btn-detalhes {
  transition: background 0.2s, color 0.2s, letter-spacing 0.2s;
}
.card-lojista:hover .btn-detalhes {
  letter-spacing: 0.5px;
}

/* Links do footer */
.footer-links a {
  transition: color 0.2s, padding-left 0.25s;
}

/* Botão voltar ao topo */
.btn-voltar-topo {
  transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
}

/* ── 4. MODAIS — entrada e saída suaves ──          */

/* Overlay: fade in */
.modal-overlay {
  animation: none; /* reseta qualquer animação anterior */
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Quando o modal é exibido via JS (display:flex),
   a animação é aplicada nos filhos diretos         */
.modal-overlay[style*="flex"] {
  animation: modalOverlayIn 0.25s ease both;
}

.modal-overlay[style*="flex"] .modal-content,
.modal-overlay[style*="flex"] .modal-noticia-content,
.modal-overlay[style*="flex"] .modal-nao-encontrado {
  animation: modalSlideUp 0.3s ease both;
}

/* ── 5. SEÇÃO TÍTULOS — linha cresce ao entrar na viewport ── */

.section-title {
  position: relative;
  /* Mantém block para respeitar text-align: center do container */
  display: block;
  width: 100%;
}

/* Linha decorativa gerada via pseudo-elemento centralizado */
.section-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  background: var(--cor-primaria);
  border-radius: 2px;
  margin: 8px auto 0; /* auto nas laterais centraliza a linha */
  transition: width 0.6s ease;
}

.section-title.visivel::after {
  width: 60px;
}

/* ── 6. NOTÍCIA DESTAQUE — já tem fadeInDestaque, reforça ── */
.noticia-item {
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

/* ── 7. NAVBAR LINKS — underline deslizante ── */
.menu-central a,
.menu-central .dropdown-btn {
  position: relative;
}

.menu-central a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.menu-central a:hover::after {
  width: 100%;
}

/* ── 8. IMAGEM DO CARD — zoom suave ao hover ── */
.card-banner {
  transition: transform 0.4s ease;
}
.card-lojista:hover .card-banner {
  transform: scale(1.06);
}

/* ── 9. FOOTER SOCIAL — bounce ao hover ── */
.social-link {
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
}
.social-link:hover {
  transform: translateY(-4px) scale(1.12);
}

/* ── 10. BADGE ABERTO/FECHADO — pulso sutil no "Aberto Agora" ── */
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(39,174,96,0); }
}

.status-badge.aberto {
  animation: pulseBadge 2.5s ease infinite;
}

/* Badge de intervalo de almoço — tom laranja/âmbar */
.status-badge.almoco {
  background: #f39c12;
  color: #fff;
}

/* ── Respeita preferência do usuário por menos movimento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==============================================
   BOTÃO DE LOCALIZAÇÃO — Hero Section
   ============================================== */

.btn-localizacao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-localizacao:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-localizacao:active {
  transform: scale(0.97);
}

/* Estado: buscando localização */
.btn-localizacao.buscando {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.btn-localizacao.buscando i {
  animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Estado: localização ativa — destaque em verde */
.btn-localizacao.ativo {
  background: rgba(39, 174, 96, 0.25);
  border-color: #2ecc71;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(39,174,96,0.25);
}

/* Badge de distância nos cards */
.distancia-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--cor-primaria);
  border: 1.5px solid rgba(225, 48, 108, 0.3);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.12);
  animation: heroEntrada 0.4s ease both; /* aparece suavemente */
  letter-spacing: 0.2px;
}

.distancia-badge i {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* Responsivo — botão menor no mobile */
@media (max-width: 500px) {
  .btn-localizacao {
    padding: 10px 20px;
    font-size: 0.88rem;
  }
}


/* ==============================================
   SECTION NOTÍCIAS
   ============================================== */
 
.noticias {
  padding: 100px 5%;
  background-color: #ffffff;
  scroll-margin-top: 80px;
}
 
/* Layout principal: lista à esquerda, destaque à direita */
.noticias-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}
 
/* ── COLUNA ESQUERDA: lista ── */
.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}
 
.noticias-lista::-webkit-scrollbar { width: 4px; }
.noticias-lista::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.noticias-lista::-webkit-scrollbar-thumb { background: var(--cor-primaria); border-radius: 4px; }
 
/* Card da lista */
.noticia-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
 
.noticia-item:hover {
  background: #fff0f5;
  border-color: var(--cor-primaria);
  transform: translateX(4px);
}
 
.noticia-item.ativo {
  background: #fff0f5;
  border-color: var(--cor-primaria);
}
 
.noticia-item img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
 
.noticia-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.noticia-item-categoria {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cor-primaria);
  letter-spacing: 0.5px;
}
 
.noticia-item-titulo {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cor-texto);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.noticia-item-data {
  font-size: 0.75rem;
  color: var(--cor-texto-muted);
}
 
/* ── COLUNA DIREITA: destaque ── */
.noticia-destaque {
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  animation: fadeInDestaque 0.35s ease;
}
 
@keyframes fadeInDestaque {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.destaque-imagem-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
}
 
.destaque-imagem-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
 
.noticia-destaque:hover .destaque-imagem-wrap img {
  transform: scale(1.03);
}
 
.destaque-corpo {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.destaque-categoria {
  display: inline-block;
  background: var(--cor-primaria);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}
 
.destaque-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.35;
  margin: 0;
}
 
.destaque-data {
  font-size: 0.82rem;
  color: var(--cor-texto-muted);
  margin: 0;
}
 
.destaque-resumo {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.destaque-btn-ler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: fit-content;
  margin-top: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}
 
.destaque-btn-ler:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.4);
}
 
/* ── MODAL DA NOTÍCIA COMPLETA ── */
.modal-noticia-content {
  background: #fff;
  border-radius: 20px;
  max-width: 720px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative; /* garante que o btn-fechar se posicione corretamente */
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}

/* Botão fechar do modal de notícia — fica sobre a imagem */
#fecharModalNoticia {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
}

/* Botão "Voltar" fixo no rodapé do modal — confortável para o polegar no mobile */
.btn-voltar-noticia {
  display: none; /* visível apenas no mobile via media query */
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 48px);
  margin: 0 24px 28px;
  padding: 14px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.btn-voltar-noticia:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .btn-voltar-noticia {
    display: flex;
  }
}
 
.modal-noticia-imagem {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  display: block;
}
 
.modal-noticia-corpo {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.modal-noticia-corpo h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.3;
  margin: 0;
}
 
.modal-noticia-texto {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.8;
  white-space: pre-line;
}
 


















/* =========== RESPONSIVIDADE ===========*/

/* -----------------------------------------------
    Media Queries
   Ajustes para tablets e celulares.
   Lógica "mobile-first" adaptada:
   o CSS base funciona no desktop, e aqui
   fazemos os ajustes para telas menores.
   ----------------------------------------------- */

/* ==== telas 1200px ==== */
@media (min-width: 1200px) {
    .cards-grid {
        /* Forçamos 4 colunas exatas em telas bem largas */
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==== telas 1024px ==== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-content h1 { font-size: 2.8rem; }
}


/* Tablet: telas até 992px */
@media (max-width: 992px) {
    /* Reduz um pouco o espaçamento lateral da navbar */
    .navbar {
        padding: 0 4%;
    }

    /* Esconde o menu central e mostra o hamburguer */
    .menu-central {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Carrossel horizontal para tablets e celulares (abaixo de 900px) */
@media (max-width: 900px) {
    /* Container vira trilho de scroll horizontal */
    .cards-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 24px 40px 24px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start; /* Alinha do início no carrossel */
    }
 
    /* Card ocupa ~80% da tela — mostra a borda do próximo (dica visual) */
    .card-lojista {
        flex: 0 0 80%;
        max-width: 360px;
        scroll-snap-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
 
    /* Esconde a barra de scroll feia */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }
 
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }

    /* ── NOTÍCIAS MOBILE: painel destaque some, lista vira feed ── */

    /* Oculta o painel de destaque — clique abre direto o modal */
    .noticia-destaque {
        display: none !important;
    }

    /* Layout vira coluna única */
    .noticias-layout {
        grid-template-columns: 1fr;
    }

    /* Lista ocupa toda a largura, sem altura máxima nem scroll vertical */
    .noticias-lista {
        display: flex;
        flex-direction: column;
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
        padding-right: 0;
        gap: 0;
    }

    /* Card compacto estilo feed de notícias */
    .noticia-item {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 14px;
        align-items: center;
        background: #fff;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 14px 4px;
        transform: none !important; /* remove o translateX do hover */
    }

    .noticia-item:first-child {
        border-top: 1px solid #eee;
    }

    /* Remove borda lateral colorida do item ativo (não faz sentido no feed) */
    .noticia-item.ativo,
    .noticia-item:hover {
        border-color: #eee;
        background: #fff;
        border-left: none;
    }

    /* Imagem maior e com proporção fixa */
    .noticia-item img {
        width: 110px;
        height: 75px;
        border-radius: 8px;
        object-fit: cover;
    }

    /* Título em destaque com a cor primária, igual à imagem de referência */
    .noticia-item-titulo {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--cor-primaria);
        -webkit-line-clamp: 3;
        line-height: 1.4;
    }

    .noticia-item-categoria {
        font-size: 0.68rem;
    }

    .noticia-item-data {
        font-size: 0.72rem;
    }
}

/* Mobile: telas até 600px */
@media (max-width: 600px) {
    /* Barra de busca empilhada verticalmente */
    .search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        gap: 8px;
    }

    .search-container input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .search-container button {
        width: 100%;
        justify-content: center;
        padding: 14px;
        border-radius: 12px;
    }

    /* Cards menores para caber bem na tela */
    .q-card {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    /* Navbar mais compacta */
    .navbar {
        padding: 0 4%;
    }
       .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title { font-size: 2rem;
    }
}

/* Aplicando funcion scroll */
@media (max-width: 500px) {
    /* 1. O PAI (Container dos cards) */
    .cards-grid {
        display: flex !important;       /* Muda de Grid para Flex para alinhar lado a lado */
        flex-wrap: nowrap !important;   /* IMPEDIR que os cards pulem para baixo */
        overflow-x: auto;               /* Habilita o scroll lateral */
        scroll-snap-type: x mandatory;  /* Efeito de "ímã" ao deslizar */
        gap: 20px;                      /* Espaço entre os cards */
        padding: 20px 20px 40px 20px;   /* Respiro nas laterais e embaixo */
        -webkit-overflow-scrolling: touch; /* Scroll suave no iPhone/iOS */
    }

    /* 2. O FILHO (O Card individual) */
    .card-lojista {
        flex: 0 0 85%;                  /* Não estica, não encolhe, ocupa 85% da largura */
        scroll-snap-align: center;       /* Faz o card parar sempre centralizado */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra mais leve no mobile */
    }

    /* 3. Estética: Esconder a barra de rolagem feia (opcional) */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ajuste de textos para telas pequenas */
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }
}

/* Mobile pequeno: telas até 380px (ex: iPhone SE) */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    .q-card {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .cards-grid {
        grid-template-columns: 1fr; /* Um card por linha para não esmagar a info */
    }
    .card-lojista { max-width: 320px; margin: 0 auto; } /* Centraliza o card único */
}



/* ==============================================
   MODAL DE "NÃO ENCONTRADO"
   ============================================== */

.modal-nao-encontrado {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 20px 28px; /* topo alto: espaço para o btn X */
  max-width: 440px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  box-sizing: border-box;
}

/* Botão X — sempre fixo no canto, nunca some */
.btn-fechar-nao-encontrado {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.07);
  color: #555;
  border: none;
  width: 32px;
  height: 32px;
  min-width: 32px;   /* nunca encolhe */
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 5;
  line-height: 1;
}

.btn-fechar-nao-encontrado:hover {
  background: #e74c3c;
  color: #fff;
}

/* Ícone lupa — tamanho controlado */
.nao-encontrado-icone {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
  animation: pulseIcon 1.5s ease infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* Título */
.nao-encontrado-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Texto — palavra longa não vaza */
.nao-encontrado-texto {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Badge verde — linha única, texto fixo sem o termo buscado */
.nao-encontrado-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #a9dfbf;
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 100%;          /* nunca ultrapassa o modal */
  box-sizing: border-box;
}

.nao-encontrado-info span {
  white-space: nowrap;      /* texto do badge sempre em uma linha */
}

/* Subtítulo das sugestões */
.nao-encontrado-sugestao-titulo {
  font-size: 0.86rem;
  color: #888;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Grid de tags de sugestão */
.sugestoes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Tag individual — nunca quebra em duas linhas */
.sugestao-tag {
  background: #f4f4f4;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.sugestao-tag:hover {
  background: var(--cor-primaria);
  color: #fff;
  border-color: var(--cor-primaria);
  transform: translateY(-2px);
}

/* Botão principal de voltar */
.btn-voltar-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225,48,108,0.3);
}

.btn-voltar-principal:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225,48,108,0.4);
}

/* ── Telas muito pequenas (< 400px) ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    width: 96%;
    padding: 44px 14px 24px;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2rem; }
  .nao-encontrado-titulo { font-size: 1.1rem; }
  .nao-encontrado-texto  { font-size: 0.82rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.86rem;
    padding: 12px 18px;
  }
}

/* ── Responsividade específica do modal não encontrado ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    padding: 40px 18px 24px;
    width: 96%;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2.2rem; }
  .nao-encontrado-titulo { font-size: 1.15rem; }
  .nao-encontrado-texto  { font-size: 0.85rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.88rem;
    padding: 12px 20px;
  }
}

/* ==============================================
   BOTÃO FLUTUANTE — VOLTAR AO TOPO
   ============================================== */

.btn-voltar-topo {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

/* Aparece após rolar 300px */
.btn-voltar-topo.visivel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-voltar-topo:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.55);
}

@media (max-width: 900px) {
  .btn-voltar-topo {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}


/* ==============================================
   FOOTER — Rodapé
   ============================================== */

.footer {
  background-color: #111318;  /* Fundo escuro — contraste com o restante da página */
  color: #ccc;
  padding-top: 0;
}

/* Linha gradiente decorativa no topo do footer */
.footer-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-primaria-escura), var(--cor-primaria));
  background-size: 200% auto;
  animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Container principal — grid de 4 colunas no desktop */
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 64px 5% 48px;
}

/* ── COLUNA 1: Brand ── */
.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--cor-primaria);
}

.footer-descricao {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #999;
  margin-bottom: 24px;
  max-width: 280px;
}

/* Ícones de redes sociais */
.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--cor-primaria);
  transform: translateY(-3px);
  color: #fff;
}

.social-link.whatsapp:hover {
  background: #25D366;
}

/* ── COLUNAS 2 e 3: Links de navegação ── */
.footer-col-titulo {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

/* Linha decorativa abaixo do título de cada coluna */
.footer-col-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--cor-primaria);
  padding-left: 6px;
}

/* ── COLUNA 4: CTA para lojistas ── */
.footer-cta-texto {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #999;
  margin-bottom: 20px;
}

.footer-btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}

.footer-btn-whats:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ── Linha inferior: copyright e crédito ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 5%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}

.footer-credito strong {
  color: #aaa;
  font-weight: 600;
}

.footer-credito strong span {
  color: var(--cor-primaria);
}

/* ── RESPONSIVIDADE ── */

/* Tablet: 2 colunas */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 5% 36px;
  }

  /* Brand ocupa largura total no topo */
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-descricao {
    max-width: 100%;
  }
}

/* Mobile: coluna única */
@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 5% 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}


/* ==============================================
   ANIMAÇÕES GLOBAIS — Guia Comercial
   Intensidade: Moderada
   ============================================== */

/* ── 1. HERO — entrada escalonada dos elementos ──
   Cada elemento filho aparece com delay progressivo,
   dando a sensação de "construção" da tela           */

.hero-content h1 {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.1s;
}

.hero-content p {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.3s;
  opacity: 0; /* começa invisível até a animação rodar */
  animation-fill-mode: forwards;
}

.search-container {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.quick-cards {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.7s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ── 2. SCROLL REVEAL — cards e seções
   Elementos começam invisíveis e sobem ao entrar
   na viewport (controlado via JS + IntersectionObserver) */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform; /* sugere ao browser usar GPU para estas props */
}

.reveal.visivel {
  will-change: auto; /* libera o recurso após a animação terminar */
}

.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para filhos dentro de um grid */


/* ── 3. BOTÕES — micro-interações ao hover/active ──
   Feedback visual imediato que torna a UI mais viva  */

/* Botão de busca */
#btnBuscar {
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
#btnBuscar:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(225,48,108,0.4); }
#btnBuscar:active { transform: scale(0.97); }

/* Quick-cards de categoria */
.q-card {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.q-card:hover  { transform: translateY(-4px) scale(1.04); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.q-card:active { transform: scale(0.97); }

/* Cards de lojista */
.card-lojista {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lojista:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }

/* Botão "Ver detalhes" dentro do card */
.btn-detalhes {
  transition: background 0.2s, color 0.2s, letter-spacing 0.2s;
}
.card-lojista:hover .btn-detalhes {
  letter-spacing: 0.5px;
}

/* Links do footer */
.footer-links a {
  transition: color 0.2s, padding-left 0.25s;
}

/* Botão voltar ao topo */
.btn-voltar-topo {
  transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
}

/* ── 4. MODAIS — entrada e saída suaves ──          */

/* Overlay: fade in */
.modal-overlay {
  animation: none; /* reseta qualquer animação anterior */
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Quando o modal é exibido via JS (display:flex),
   a animação é aplicada nos filhos diretos         */
.modal-overlay[style*="flex"] {
  animation: modalOverlayIn 0.25s ease both;
}

.modal-overlay[style*="flex"] .modal-content,
.modal-overlay[style*="flex"] .modal-noticia-content,
.modal-overlay[style*="flex"] .modal-nao-encontrado {
  animation: modalSlideUp 0.3s ease both;
}

/* ── 5. SEÇÃO TÍTULOS — linha cresce ao entrar na viewport ── */

.section-title {
  position: relative;
  /* Mantém block para respeitar text-align: center do container */
  display: block;
  width: 100%;
}

/* Linha decorativa gerada via pseudo-elemento centralizado */
.section-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  background: var(--cor-primaria);
  border-radius: 2px;
  margin: 8px auto 0; /* auto nas laterais centraliza a linha */
  transition: width 0.6s ease;
}

.section-title.visivel::after {
  width: 60px;
}

/* ── 6. NOTÍCIA DESTAQUE — já tem fadeInDestaque, reforça ── */
.noticia-item {
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

/* ── 7. NAVBAR LINKS — underline deslizante ── */
.menu-central a,
.menu-central .dropdown-btn {
  position: relative;
}

.menu-central a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.menu-central a:hover::after {
  width: 100%;
}

/* ── 8. IMAGEM DO CARD — zoom suave ao hover ── */
.card-banner {
  transition: transform 0.4s ease;
}
.card-lojista:hover .card-banner {
  transform: scale(1.06);
}

/* ── 9. FOOTER SOCIAL — bounce ao hover ── */
.social-link {
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
}
.social-link:hover {
  transform: translateY(-4px) scale(1.12);
}

/* ── 10. BADGE ABERTO/FECHADO — pulso sutil no "Aberto Agora" ── */
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(39,174,96,0); }
}

.status-badge.aberto {
  animation: pulseBadge 2.5s ease infinite;
}

/* Badge de intervalo de almoço — tom laranja/âmbar */
.status-badge.almoco {
  background: #f39c12;
  color: #fff;
}

/* ── Respeita preferência do usuário por menos movimento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==============================================
   BOTÃO DE LOCALIZAÇÃO — Hero Section
   ============================================== */

.btn-localizacao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-localizacao:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-localizacao:active {
  transform: scale(0.97);
}

/* Estado: buscando localização */
.btn-localizacao.buscando {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.btn-localizacao.buscando i {
  animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Estado: localização ativa — destaque em verde */
.btn-localizacao.ativo {
  background: rgba(39, 174, 96, 0.25);
  border-color: #2ecc71;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(39,174,96,0.25);
}

/* Badge de distância nos cards */
.distancia-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--cor-primaria);
  border: 1.5px solid rgba(225, 48, 108, 0.3);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.12);
  animation: heroEntrada 0.4s ease both; /* aparece suavemente */
  letter-spacing: 0.2px;
}

.distancia-badge i {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* Responsivo — botão menor no mobile */
@media (max-width: 500px) {
  .btn-localizacao {
    padding: 10px 20px;
    font-size: 0.88rem;
  }
}


/* ==============================================
   SECTION NOTÍCIAS
   ============================================== */
 
.noticias {
  padding: 100px 5%;
  background-color: #ffffff;
  scroll-margin-top: 80px;
}
 
/* Layout principal: lista à esquerda, destaque à direita */
.noticias-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}
 
/* ── COLUNA ESQUERDA: lista ── */
.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}
 
.noticias-lista::-webkit-scrollbar { width: 4px; }
.noticias-lista::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.noticias-lista::-webkit-scrollbar-thumb { background: var(--cor-primaria); border-radius: 4px; }
 
/* Card da lista */
.noticia-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
 
.noticia-item:hover {
  background: #fff0f5;
  border-color: var(--cor-primaria);
  transform: translateX(4px);
}
 
.noticia-item.ativo {
  background: #fff0f5;
  border-color: var(--cor-primaria);
}
 
.noticia-item img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
 
.noticia-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.noticia-item-categoria {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cor-primaria);
  letter-spacing: 0.5px;
}
 
.noticia-item-titulo {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cor-texto);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.noticia-item-data {
  font-size: 0.75rem;
  color: var(--cor-texto-muted);
}
 
/* ── COLUNA DIREITA: destaque ── */
.noticia-destaque {
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  animation: fadeInDestaque 0.35s ease;
}
 
@keyframes fadeInDestaque {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.destaque-imagem-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
}
 
.destaque-imagem-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
 
.noticia-destaque:hover .destaque-imagem-wrap img {
  transform: scale(1.03);
}
 
.destaque-corpo {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.destaque-categoria {
  display: inline-block;
  background: var(--cor-primaria);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}
 
.destaque-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.35;
  margin: 0;
}
 
.destaque-data {
  font-size: 0.82rem;
  color: var(--cor-texto-muted);
  margin: 0;
}
 
.destaque-resumo {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.destaque-btn-ler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: fit-content;
  margin-top: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}
 
.destaque-btn-ler:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.4);
}
 
/* ── MODAL DA NOTÍCIA COMPLETA ── */
.modal-noticia-content {
  background: #fff;
  border-radius: 20px;
  max-width: 720px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative; /* garante que o btn-fechar se posicione corretamente */
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}

/* Botão fechar do modal de notícia — fica sobre a imagem */
#fecharModalNoticia {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
}

/* Botão "Voltar" fixo no rodapé do modal — confortável para o polegar no mobile */
.btn-voltar-noticia {
  display: none; /* visível apenas no mobile via media query */
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 48px);
  margin: 0 24px 28px;
  padding: 14px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.btn-voltar-noticia:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .btn-voltar-noticia {
    display: flex;
  }
}
 
.modal-noticia-imagem {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  display: block;
}
 
.modal-noticia-corpo {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.modal-noticia-corpo h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.3;
  margin: 0;
}
 
.modal-noticia-texto {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.8;
  white-space: pre-line;
}
 


















/* =========== RESPONSIVIDADE ===========*/

/* -----------------------------------------------
    Media Queries
   Ajustes para tablets e celulares.
   Lógica "mobile-first" adaptada:
   o CSS base funciona no desktop, e aqui
   fazemos os ajustes para telas menores.
   ----------------------------------------------- */

/* ==== telas 1200px ==== */
@media (min-width: 1200px) {
    .cards-grid {
        /* Forçamos 4 colunas exatas em telas bem largas */
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==== telas 1024px ==== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-content h1 { font-size: 2.8rem; }
}


/* Tablet: telas até 992px */
@media (max-width: 992px) {
    /* Reduz um pouco o espaçamento lateral da navbar */
    .navbar {
        padding: 0 4%;
    }

    /* Esconde o menu central e mostra o hamburguer */
    .menu-central {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Carrossel horizontal para tablets e celulares (abaixo de 900px) */
@media (max-width: 900px) {
    /* Container vira trilho de scroll horizontal */
    .cards-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 24px 40px 24px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start; /* Alinha do início no carrossel */
    }
 
    /* Card ocupa ~80% da tela — mostra a borda do próximo (dica visual) */
    .card-lojista {
        flex: 0 0 80%;
        max-width: 360px;
        scroll-snap-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
 
    /* Esconde a barra de scroll feia */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }
 
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }

    /* ── NOTÍCIAS MOBILE: painel destaque some, lista vira feed ── */

    /* Oculta o painel de destaque — clique abre direto o modal */
    .noticia-destaque {
        display: none !important;
    }

    /* Layout vira coluna única */
    .noticias-layout {
        grid-template-columns: 1fr;
    }

    /* Lista ocupa toda a largura, sem altura máxima nem scroll vertical */
    .noticias-lista {
        display: flex;
        flex-direction: column;
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
        padding-right: 0;
        gap: 0;
    }

    /* Card compacto estilo feed de notícias */
    .noticia-item {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 14px;
        align-items: center;
        background: #fff;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 14px 4px;
        transform: none !important; /* remove o translateX do hover */
    }

    .noticia-item:first-child {
        border-top: 1px solid #eee;
    }

    /* Remove borda lateral colorida do item ativo (não faz sentido no feed) */
    .noticia-item.ativo,
    .noticia-item:hover {
        border-color: #eee;
        background: #fff;
        border-left: none;
    }

    /* Imagem maior e com proporção fixa */
    .noticia-item img {
        width: 110px;
        height: 75px;
        border-radius: 8px;
        object-fit: cover;
    }

    /* Título em destaque com a cor primária, igual à imagem de referência */
    .noticia-item-titulo {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--cor-primaria);
        -webkit-line-clamp: 3;
        line-height: 1.4;
    }

    .noticia-item-categoria {
        font-size: 0.68rem;
    }

    .noticia-item-data {
        font-size: 0.72rem;
    }
}

/* Mobile: telas até 600px */
@media (max-width: 600px) {
    /* Barra de busca empilhada verticalmente */
    .search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        gap: 8px;
    }

    .search-container input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .search-container button {
        width: 100%;
        justify-content: center;
        padding: 14px;
        border-radius: 12px;
    }

    /* Cards menores para caber bem na tela */
    .q-card {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    /* Navbar mais compacta */
    .navbar {
        padding: 0 4%;
    }
       .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title { font-size: 2rem;
    }
}

/* Aplicando funcion scroll */
@media (max-width: 500px) {
    /* 1. O PAI (Container dos cards) */
    .cards-grid {
        display: flex !important;       /* Muda de Grid para Flex para alinhar lado a lado */
        flex-wrap: nowrap !important;   /* IMPEDIR que os cards pulem para baixo */
        overflow-x: auto;               /* Habilita o scroll lateral */
        scroll-snap-type: x mandatory;  /* Efeito de "ímã" ao deslizar */
        gap: 20px;                      /* Espaço entre os cards */
        padding: 20px 20px 40px 20px;   /* Respiro nas laterais e embaixo */
        -webkit-overflow-scrolling: touch; /* Scroll suave no iPhone/iOS */
    }

    /* 2. O FILHO (O Card individual) */
    .card-lojista {
        flex: 0 0 85%;                  /* Não estica, não encolhe, ocupa 85% da largura */
        scroll-snap-align: center;       /* Faz o card parar sempre centralizado */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra mais leve no mobile */
    }

    /* 3. Estética: Esconder a barra de rolagem feia (opcional) */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ajuste de textos para telas pequenas */
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }
}

/* Mobile pequeno: telas até 380px (ex: iPhone SE) */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    .q-card {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .cards-grid {
        grid-template-columns: 1fr; /* Um card por linha para não esmagar a info */
    }
    .card-lojista { max-width: 320px; margin: 0 auto; } /* Centraliza o card único */
}



/* ==============================================
   MODAL DE "NÃO ENCONTRADO"
   ============================================== */

.modal-nao-encontrado {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 20px 28px; /* topo alto: espaço para o btn X */
  max-width: 440px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  box-sizing: border-box;
}

/* Botão X — sempre fixo no canto, nunca some */
.btn-fechar-nao-encontrado {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.07);
  color: #555;
  border: none;
  width: 32px;
  height: 32px;
  min-width: 32px;   /* nunca encolhe */
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 5;
  line-height: 1;
}

.btn-fechar-nao-encontrado:hover {
  background: #e74c3c;
  color: #fff;
}

/* Ícone lupa — tamanho controlado */
.nao-encontrado-icone {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
  animation: pulseIcon 1.5s ease infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* Título */
.nao-encontrado-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Texto — palavra longa não vaza */
.nao-encontrado-texto {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Badge verde — linha única, texto fixo sem o termo buscado */
.nao-encontrado-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #a9dfbf;
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 100%;          /* nunca ultrapassa o modal */
  box-sizing: border-box;
}

.nao-encontrado-info span {
  white-space: nowrap;      /* texto do badge sempre em uma linha */
}

/* Subtítulo das sugestões */
.nao-encontrado-sugestao-titulo {
  font-size: 0.86rem;
  color: #888;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Grid de tags de sugestão */
.sugestoes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Tag individual — nunca quebra em duas linhas */
.sugestao-tag {
  background: #f4f4f4;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.sugestao-tag:hover {
  background: var(--cor-primaria);
  color: #fff;
  border-color: var(--cor-primaria);
  transform: translateY(-2px);
}

/* Botão principal de voltar */
.btn-voltar-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225,48,108,0.3);
}

.btn-voltar-principal:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225,48,108,0.4);
}

/* ── Telas muito pequenas (< 400px) ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    width: 96%;
    padding: 44px 14px 24px;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2rem; }
  .nao-encontrado-titulo { font-size: 1.1rem; }
  .nao-encontrado-texto  { font-size: 0.82rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.86rem;
    padding: 12px 18px;
  }
}

/* ── Responsividade específica do modal não encontrado ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    padding: 40px 18px 24px;
    width: 96%;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2.2rem; }
  .nao-encontrado-titulo { font-size: 1.15rem; }
  .nao-encontrado-texto  { font-size: 0.85rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.88rem;
    padding: 12px 20px;
  }
}

/* ==============================================
   BOTÃO FLUTUANTE — VOLTAR AO TOPO
   ============================================== */

.btn-voltar-topo {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

/* Aparece após rolar 300px */
.btn-voltar-topo.visivel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-voltar-topo:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.55);
}

@media (max-width: 900px) {
  .btn-voltar-topo {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}


/* ==============================================
   FOOTER — Rodapé
   ============================================== */

.footer {
  background-color: #111318;  /* Fundo escuro — contraste com o restante da página */
  color: #ccc;
  padding-top: 0;
}

/* Linha gradiente decorativa no topo do footer */
.footer-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-primaria-escura), var(--cor-primaria));
  background-size: 200% auto;
  animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Container principal — grid de 4 colunas no desktop */
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 64px 5% 48px;
}

/* ── COLUNA 1: Brand ── */
.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--cor-primaria);
}

.footer-descricao {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #999;
  margin-bottom: 24px;
  max-width: 280px;
}

/* Ícones de redes sociais */
.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--cor-primaria);
  transform: translateY(-3px);
  color: #fff;
}

.social-link.whatsapp:hover {
  background: #25D366;
}

/* ── COLUNAS 2 e 3: Links de navegação ── */
.footer-col-titulo {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

/* Linha decorativa abaixo do título de cada coluna */
.footer-col-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--cor-primaria);
  padding-left: 6px;
}

/* ── COLUNA 4: CTA para lojistas ── */
.footer-cta-texto {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #999;
  margin-bottom: 20px;
}

.footer-btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}

.footer-btn-whats:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ── Linha inferior: copyright e crédito ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 5%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}

.footer-credito strong {
  color: #aaa;
  font-weight: 600;
}

.footer-credito strong span {
  color: var(--cor-primaria);
}

/* ── RESPONSIVIDADE ── */

/* Tablet: 2 colunas */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 5% 36px;
  }

  /* Brand ocupa largura total no topo */
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-descricao {
    max-width: 100%;
  }
}

/* Mobile: coluna única */
@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 5% 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}


/* ==============================================
   ANIMAÇÕES GLOBAIS — Guia Comercial
   Intensidade: Moderada
   ============================================== */

/* ── 1. HERO — entrada escalonada dos elementos ──
   Cada elemento filho aparece com delay progressivo,
   dando a sensação de "construção" da tela           */

.hero-content h1 {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.1s;
}

.hero-content p {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.3s;
  opacity: 0; /* começa invisível até a animação rodar */
  animation-fill-mode: forwards;
}

.search-container {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.quick-cards {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.7s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ── 2. SCROLL REVEAL — cards e seções
   Elementos começam invisíveis e sobem ao entrar
   na viewport (controlado via JS + IntersectionObserver) */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform; /* sugere ao browser usar GPU para estas props */
}

.reveal.visivel {
  will-change: auto; /* libera o recurso após a animação terminar */
}

.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para filhos dentro de um grid */


/* ── 3. BOTÕES — micro-interações ao hover/active ──
   Feedback visual imediato que torna a UI mais viva  */

/* Botão de busca */
#btnBuscar {
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
#btnBuscar:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(225,48,108,0.4); }
#btnBuscar:active { transform: scale(0.97); }

/* Quick-cards de categoria */
.q-card {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.q-card:hover  { transform: translateY(-4px) scale(1.04); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.q-card:active { transform: scale(0.97); }

/* Cards de lojista */
.card-lojista {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lojista:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }

/* Botão "Ver detalhes" dentro do card */
.btn-detalhes {
  transition: background 0.2s, color 0.2s, letter-spacing 0.2s;
}
.card-lojista:hover .btn-detalhes {
  letter-spacing: 0.5px;
}

/* Links do footer */
.footer-links a {
  transition: color 0.2s, padding-left 0.25s;
}

/* Botão voltar ao topo */
.btn-voltar-topo {
  transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
}

/* ── 4. MODAIS — entrada e saída suaves ──          */

/* Overlay: fade in */
.modal-overlay {
  animation: none; /* reseta qualquer animação anterior */
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Quando o modal é exibido via JS (display:flex),
   a animação é aplicada nos filhos diretos         */
.modal-overlay[style*="flex"] {
  animation: modalOverlayIn 0.25s ease both;
}

.modal-overlay[style*="flex"] .modal-content,
.modal-overlay[style*="flex"] .modal-noticia-content,
.modal-overlay[style*="flex"] .modal-nao-encontrado {
  animation: modalSlideUp 0.3s ease both;
}

/* ── 5. SEÇÃO TÍTULOS — linha cresce ao entrar na viewport ── */

.section-title {
  position: relative;
  /* Mantém block para respeitar text-align: center do container */
  display: block;
  width: 100%;
}

/* Linha decorativa gerada via pseudo-elemento centralizado */
.section-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  background: var(--cor-primaria);
  border-radius: 2px;
  margin: 8px auto 0; /* auto nas laterais centraliza a linha */
  transition: width 0.6s ease;
}

.section-title.visivel::after {
  width: 60px;
}

/* ── 6. NOTÍCIA DESTAQUE — já tem fadeInDestaque, reforça ── */
.noticia-item {
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

/* ── 7. NAVBAR LINKS — underline deslizante ── */
.menu-central a,
.menu-central .dropdown-btn {
  position: relative;
}

.menu-central a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.menu-central a:hover::after {
  width: 100%;
}

/* ── 8. IMAGEM DO CARD — zoom suave ao hover ── */
.card-banner {
  transition: transform 0.4s ease;
}
.card-lojista:hover .card-banner {
  transform: scale(1.06);
}

/* ── 9. FOOTER SOCIAL — bounce ao hover ── */
.social-link {
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
}
.social-link:hover {
  transform: translateY(-4px) scale(1.12);
}

/* ── 10. BADGE ABERTO/FECHADO — pulso sutil no "Aberto Agora" ── */
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(39,174,96,0); }
}

.status-badge.aberto {
  animation: pulseBadge 2.5s ease infinite;
}

/* Badge de intervalo de almoço — tom laranja/âmbar */
.status-badge.almoco {
  background: #f39c12;
  color: #fff;
}

/* ── Respeita preferência do usuário por menos movimento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==============================================
   BOTÃO DE LOCALIZAÇÃO — Hero Section
   ============================================== */

.btn-localizacao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-localizacao:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-localizacao:active {
  transform: scale(0.97);
}

/* Estado: buscando localização */
.btn-localizacao.buscando {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.btn-localizacao.buscando i {
  animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Estado: localização ativa — destaque em verde */
.btn-localizacao.ativo {
  background: rgba(39, 174, 96, 0.25);
  border-color: #2ecc71;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(39,174,96,0.25);
}

/* Badge de distância nos cards */
.distancia-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--cor-primaria);
  border: 1.5px solid rgba(225, 48, 108, 0.3);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.12);
  animation: heroEntrada 0.4s ease both; /* aparece suavemente */
  letter-spacing: 0.2px;
}

.distancia-badge i {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* Responsivo — botão menor no mobile */
@media (max-width: 500px) {
  .btn-localizacao {
    padding: 10px 20px;
    font-size: 0.88rem;
  }
}


/* ==============================================
   SECTION NOTÍCIAS
   ============================================== */
 
.noticias {
  padding: 100px 5%;
  background-color: #ffffff;
  scroll-margin-top: 80px;
}
 
/* Layout principal: lista à esquerda, destaque à direita */
.noticias-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}
 
/* ── COLUNA ESQUERDA: lista ── */
.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}
 
.noticias-lista::-webkit-scrollbar { width: 4px; }
.noticias-lista::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.noticias-lista::-webkit-scrollbar-thumb { background: var(--cor-primaria); border-radius: 4px; }
 
/* Card da lista */
.noticia-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
 
.noticia-item:hover {
  background: #fff0f5;
  border-color: var(--cor-primaria);
  transform: translateX(4px);
}
 
.noticia-item.ativo {
  background: #fff0f5;
  border-color: var(--cor-primaria);
}
 
.noticia-item img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
 
.noticia-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.noticia-item-categoria {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cor-primaria);
  letter-spacing: 0.5px;
}
 
.noticia-item-titulo {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cor-texto);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.noticia-item-data {
  font-size: 0.75rem;
  color: var(--cor-texto-muted);
}
 
/* ── COLUNA DIREITA: destaque ── */
.noticia-destaque {
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  animation: fadeInDestaque 0.35s ease;
}
 
@keyframes fadeInDestaque {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.destaque-imagem-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
}
 
.destaque-imagem-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
 
.noticia-destaque:hover .destaque-imagem-wrap img {
  transform: scale(1.03);
}
 
.destaque-corpo {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.destaque-categoria {
  display: inline-block;
  background: var(--cor-primaria);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}
 
.destaque-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.35;
  margin: 0;
}
 
.destaque-data {
  font-size: 0.82rem;
  color: var(--cor-texto-muted);
  margin: 0;
}
 
.destaque-resumo {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.destaque-btn-ler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: fit-content;
  margin-top: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}
 
.destaque-btn-ler:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.4);
}
 
/* ── MODAL DA NOTÍCIA COMPLETA ── */
.modal-noticia-content {
  background: #fff;
  border-radius: 20px;
  max-width: 720px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative; /* garante que o btn-fechar se posicione corretamente */
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}

/* Botão fechar do modal de notícia — fica sobre a imagem */
#fecharModalNoticia {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
}

/* Botão "Voltar" fixo no rodapé do modal — confortável para o polegar no mobile */
.btn-voltar-noticia {
  display: none; /* visível apenas no mobile via media query */
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 48px);
  margin: 0 24px 28px;
  padding: 14px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.btn-voltar-noticia:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .btn-voltar-noticia {
    display: flex;
  }
}
 
.modal-noticia-imagem {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  display: block;
}
 
.modal-noticia-corpo {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.modal-noticia-corpo h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.3;
  margin: 0;
}
 
.modal-noticia-texto {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.8;
  white-space: pre-line;
}
 


















/* =========== RESPONSIVIDADE ===========*/

/* -----------------------------------------------
    Media Queries
   Ajustes para tablets e celulares.
   Lógica "mobile-first" adaptada:
   o CSS base funciona no desktop, e aqui
   fazemos os ajustes para telas menores.
   ----------------------------------------------- */

/* ==== telas 1200px ==== */
@media (min-width: 1200px) {
    .cards-grid {
        /* Forçamos 4 colunas exatas em telas bem largas */
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==== telas 1024px ==== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-content h1 { font-size: 2.8rem; }
}


/* Tablet: telas até 992px */
@media (max-width: 992px) {
    /* Reduz um pouco o espaçamento lateral da navbar */
    .navbar {
        padding: 0 4%;
    }

    /* Esconde o menu central e mostra o hamburguer */
    .menu-central {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Carrossel horizontal para tablets e celulares (abaixo de 900px) */
@media (max-width: 900px) {
    /* Container vira trilho de scroll horizontal */
    .cards-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 24px 40px 24px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start; /* Alinha do início no carrossel */
    }
 
    /* Card ocupa ~80% da tela — mostra a borda do próximo (dica visual) */
    .card-lojista {
        flex: 0 0 80%;
        max-width: 360px;
        scroll-snap-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
 
    /* Esconde a barra de scroll feia */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }
 
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }

    /* ── NOTÍCIAS MOBILE: painel destaque some, lista vira feed ── */

    /* Oculta o painel de destaque — clique abre direto o modal */
    .noticia-destaque {
        display: none !important;
    }

    /* Layout vira coluna única */
    .noticias-layout {
        grid-template-columns: 1fr;
    }

    /* Lista ocupa toda a largura, sem altura máxima nem scroll vertical */
    .noticias-lista {
        display: flex;
        flex-direction: column;
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
        padding-right: 0;
        gap: 0;
    }

    /* Card compacto estilo feed de notícias */
    .noticia-item {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 14px;
        align-items: center;
        background: #fff;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 14px 4px;
        transform: none !important; /* remove o translateX do hover */
    }

    .noticia-item:first-child {
        border-top: 1px solid #eee;
    }

    /* Remove borda lateral colorida do item ativo (não faz sentido no feed) */
    .noticia-item.ativo,
    .noticia-item:hover {
        border-color: #eee;
        background: #fff;
        border-left: none;
    }

    /* Imagem maior e com proporção fixa */
    .noticia-item img {
        width: 110px;
        height: 75px;
        border-radius: 8px;
        object-fit: cover;
    }

    /* Título em destaque com a cor primária, igual à imagem de referência */
    .noticia-item-titulo {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--cor-primaria);
        -webkit-line-clamp: 3;
        line-height: 1.4;
    }

    .noticia-item-categoria {
        font-size: 0.68rem;
    }

    .noticia-item-data {
        font-size: 0.72rem;
    }
}

/* Mobile: telas até 600px */
@media (max-width: 600px) {
    /* Barra de busca empilhada verticalmente */
    .search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        gap: 8px;
    }

    .search-container input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .search-container button {
        width: 100%;
        justify-content: center;
        padding: 14px;
        border-radius: 12px;
    }

    /* Cards menores para caber bem na tela */
    .q-card {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    /* Navbar mais compacta */
    .navbar {
        padding: 0 4%;
    }
       .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title { font-size: 2rem;
    }
}

/* Aplicando funcion scroll */
@media (max-width: 500px) {
    /* 1. O PAI (Container dos cards) */
    .cards-grid {
        display: flex !important;       /* Muda de Grid para Flex para alinhar lado a lado */
        flex-wrap: nowrap !important;   /* IMPEDIR que os cards pulem para baixo */
        overflow-x: auto;               /* Habilita o scroll lateral */
        scroll-snap-type: x mandatory;  /* Efeito de "ímã" ao deslizar */
        gap: 20px;                      /* Espaço entre os cards */
        padding: 20px 20px 40px 20px;   /* Respiro nas laterais e embaixo */
        -webkit-overflow-scrolling: touch; /* Scroll suave no iPhone/iOS */
    }

    /* 2. O FILHO (O Card individual) */
    .card-lojista {
        flex: 0 0 85%;                  /* Não estica, não encolhe, ocupa 85% da largura */
        scroll-snap-align: center;       /* Faz o card parar sempre centralizado */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra mais leve no mobile */
    }

    /* 3. Estética: Esconder a barra de rolagem feia (opcional) */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ajuste de textos para telas pequenas */
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }
}

/* Mobile pequeno: telas até 380px (ex: iPhone SE) */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    .q-card {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .cards-grid {
        grid-template-columns: 1fr; /* Um card por linha para não esmagar a info */
    }
    .card-lojista { max-width: 320px; margin: 0 auto; } /* Centraliza o card único */
}



/* ==============================================
   MODAL DE "NÃO ENCONTRADO"
   ============================================== */

.modal-nao-encontrado {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 20px 28px; /* topo alto: espaço para o btn X */
  max-width: 440px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  box-sizing: border-box;
}

/* Botão X — sempre fixo no canto, nunca some */
.btn-fechar-nao-encontrado {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.07);
  color: #555;
  border: none;
  width: 32px;
  height: 32px;
  min-width: 32px;   /* nunca encolhe */
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 5;
  line-height: 1;
}

.btn-fechar-nao-encontrado:hover {
  background: #e74c3c;
  color: #fff;
}

/* Ícone lupa — tamanho controlado */
.nao-encontrado-icone {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
  animation: pulseIcon 1.5s ease infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* Título */
.nao-encontrado-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Texto — palavra longa não vaza */
.nao-encontrado-texto {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Badge verde — linha única, texto fixo sem o termo buscado */
.nao-encontrado-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #a9dfbf;
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 100%;          /* nunca ultrapassa o modal */
  box-sizing: border-box;
}

.nao-encontrado-info span {
  white-space: nowrap;      /* texto do badge sempre em uma linha */
}

/* Subtítulo das sugestões */
.nao-encontrado-sugestao-titulo {
  font-size: 0.86rem;
  color: #888;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Grid de tags de sugestão */
.sugestoes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Tag individual — nunca quebra em duas linhas */
.sugestao-tag {
  background: #f4f4f4;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.sugestao-tag:hover {
  background: var(--cor-primaria);
  color: #fff;
  border-color: var(--cor-primaria);
  transform: translateY(-2px);
}

/* Botão principal de voltar */
.btn-voltar-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225,48,108,0.3);
}

.btn-voltar-principal:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225,48,108,0.4);
}

/* ── Telas muito pequenas (< 400px) ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    width: 96%;
    padding: 44px 14px 24px;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2rem; }
  .nao-encontrado-titulo { font-size: 1.1rem; }
  .nao-encontrado-texto  { font-size: 0.82rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.86rem;
    padding: 12px 18px;
  }
}

/* ── Responsividade específica do modal não encontrado ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    padding: 40px 18px 24px;
    width: 96%;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2.2rem; }
  .nao-encontrado-titulo { font-size: 1.15rem; }
  .nao-encontrado-texto  { font-size: 0.85rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.88rem;
    padding: 12px 20px;
  }
}

/* ==============================================
   BOTÃO FLUTUANTE — VOLTAR AO TOPO
   ============================================== */

.btn-voltar-topo {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

/* Aparece após rolar 300px */
.btn-voltar-topo.visivel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-voltar-topo:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.55);
}

@media (max-width: 900px) {
  .btn-voltar-topo {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}


/* ==============================================
   FOOTER — Rodapé
   ============================================== */

.footer {
  background-color: #111318;  /* Fundo escuro — contraste com o restante da página */
  color: #ccc;
  padding-top: 0;
}

/* Linha gradiente decorativa no topo do footer */
.footer-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-primaria-escura), var(--cor-primaria));
  background-size: 200% auto;
  animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Container principal — grid de 4 colunas no desktop */
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 64px 5% 48px;
}

/* ── COLUNA 1: Brand ── */
.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--cor-primaria);
}

.footer-descricao {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #999;
  margin-bottom: 24px;
  max-width: 280px;
}

/* Ícones de redes sociais */
.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--cor-primaria);
  transform: translateY(-3px);
  color: #fff;
}

.social-link.whatsapp:hover {
  background: #25D366;
}

/* ── COLUNAS 2 e 3: Links de navegação ── */
.footer-col-titulo {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

/* Linha decorativa abaixo do título de cada coluna */
.footer-col-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--cor-primaria);
  padding-left: 6px;
}

/* ── COLUNA 4: CTA para lojistas ── */
.footer-cta-texto {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #999;
  margin-bottom: 20px;
}

.footer-btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}

.footer-btn-whats:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ── Linha inferior: copyright e crédito ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 5%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}

.footer-credito strong {
  color: #aaa;
  font-weight: 600;
}

.footer-credito strong span {
  color: var(--cor-primaria);
}

/* ── RESPONSIVIDADE ── */

/* Tablet: 2 colunas */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 5% 36px;
  }

  /* Brand ocupa largura total no topo */
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-descricao {
    max-width: 100%;
  }
}

/* Mobile: coluna única */
@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 5% 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}


/* ==============================================
   ANIMAÇÕES GLOBAIS — Guia Comercial
   Intensidade: Moderada
   ============================================== */

/* ── 1. HERO — entrada escalonada dos elementos ──
   Cada elemento filho aparece com delay progressivo,
   dando a sensação de "construção" da tela           */

.hero-content h1 {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.1s;
}

.hero-content p {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.3s;
  opacity: 0; /* começa invisível até a animação rodar */
  animation-fill-mode: forwards;
}

.search-container {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.quick-cards {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.7s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ── 2. SCROLL REVEAL — cards e seções
   Elementos começam invisíveis e sobem ao entrar
   na viewport (controlado via JS + IntersectionObserver) */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform; /* sugere ao browser usar GPU para estas props */
}

.reveal.visivel {
  will-change: auto; /* libera o recurso após a animação terminar */
}

.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para filhos dentro de um grid */


/* ── 3. BOTÕES — micro-interações ao hover/active ──
   Feedback visual imediato que torna a UI mais viva  */

/* Botão de busca */
#btnBuscar {
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
#btnBuscar:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(225,48,108,0.4); }
#btnBuscar:active { transform: scale(0.97); }

/* Quick-cards de categoria */
.q-card {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.q-card:hover  { transform: translateY(-4px) scale(1.04); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.q-card:active { transform: scale(0.97); }

/* Cards de lojista */
.card-lojista {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lojista:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }

/* Botão "Ver detalhes" dentro do card */
.btn-detalhes {
  transition: background 0.2s, color 0.2s, letter-spacing 0.2s;
}
.card-lojista:hover .btn-detalhes {
  letter-spacing: 0.5px;
}

/* Links do footer */
.footer-links a {
  transition: color 0.2s, padding-left 0.25s;
}

/* Botão voltar ao topo */
.btn-voltar-topo {
  transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
}

/* ── 4. MODAIS — entrada e saída suaves ──          */

/* Overlay: fade in */
.modal-overlay {
  animation: none; /* reseta qualquer animação anterior */
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Quando o modal é exibido via JS (display:flex),
   a animação é aplicada nos filhos diretos         */
.modal-overlay[style*="flex"] {
  animation: modalOverlayIn 0.25s ease both;
}

.modal-overlay[style*="flex"] .modal-content,
.modal-overlay[style*="flex"] .modal-noticia-content,
.modal-overlay[style*="flex"] .modal-nao-encontrado {
  animation: modalSlideUp 0.3s ease both;
}

/* ── 5. SEÇÃO TÍTULOS — linha cresce ao entrar na viewport ── */

.section-title {
  position: relative;
  /* Mantém block para respeitar text-align: center do container */
  display: block;
  width: 100%;
}

/* Linha decorativa gerada via pseudo-elemento centralizado */
.section-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  background: var(--cor-primaria);
  border-radius: 2px;
  margin: 8px auto 0; /* auto nas laterais centraliza a linha */
  transition: width 0.6s ease;
}

.section-title.visivel::after {
  width: 60px;
}

/* ── 6. NOTÍCIA DESTAQUE — já tem fadeInDestaque, reforça ── */
.noticia-item {
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

/* ── 7. NAVBAR LINKS — underline deslizante ── */
.menu-central a,
.menu-central .dropdown-btn {
  position: relative;
}

.menu-central a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.menu-central a:hover::after {
  width: 100%;
}

/* ── 8. IMAGEM DO CARD — zoom suave ao hover ── */
.card-banner {
  transition: transform 0.4s ease;
}
.card-lojista:hover .card-banner {
  transform: scale(1.06);
}

/* ── 9. FOOTER SOCIAL — bounce ao hover ── */
.social-link {
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
}
.social-link:hover {
  transform: translateY(-4px) scale(1.12);
}

/* ── 10. BADGE ABERTO/FECHADO — pulso sutil no "Aberto Agora" ── */
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(39,174,96,0); }
}

.status-badge.aberto {
  animation: pulseBadge 2.5s ease infinite;
}

/* Badge de intervalo de almoço — tom laranja/âmbar */
.status-badge.almoco {
  background: #f39c12;
  color: #fff;
}

/* ── Respeita preferência do usuário por menos movimento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==============================================
   BOTÃO DE LOCALIZAÇÃO — Hero Section
   ============================================== */

.btn-localizacao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-localizacao:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-localizacao:active {
  transform: scale(0.97);
}

/* Estado: buscando localização */
.btn-localizacao.buscando {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.btn-localizacao.buscando i {
  animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Estado: localização ativa — destaque em verde */
.btn-localizacao.ativo {
  background: rgba(39, 174, 96, 0.25);
  border-color: #2ecc71;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(39,174,96,0.25);
}

/* Badge de distância nos cards */
.distancia-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--cor-primaria);
  border: 1.5px solid rgba(225, 48, 108, 0.3);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.12);
  animation: heroEntrada 0.4s ease both; /* aparece suavemente */
  letter-spacing: 0.2px;
}

.distancia-badge i {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* Responsivo — botão menor no mobile */
@media (max-width: 500px) {
  .btn-localizacao {
    padding: 10px 20px;
    font-size: 0.88rem;
  }
}


/* ==============================================
   SECTION NOTÍCIAS
   ============================================== */
 
.noticias {
  padding: 100px 5%;
  background-color: #ffffff;
  scroll-margin-top: 80px;
}
 
/* Layout principal: lista à esquerda, destaque à direita */
.noticias-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}
 
/* ── COLUNA ESQUERDA: lista ── */
.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}
 
.noticias-lista::-webkit-scrollbar { width: 4px; }
.noticias-lista::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.noticias-lista::-webkit-scrollbar-thumb { background: var(--cor-primaria); border-radius: 4px; }
 
/* Card da lista */
.noticia-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
 
.noticia-item:hover {
  background: #fff0f5;
  border-color: var(--cor-primaria);
  transform: translateX(4px);
}
 
.noticia-item.ativo {
  background: #fff0f5;
  border-color: var(--cor-primaria);
}
 
.noticia-item img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
 
.noticia-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.noticia-item-categoria {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cor-primaria);
  letter-spacing: 0.5px;
}
 
.noticia-item-titulo {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cor-texto);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.noticia-item-data {
  font-size: 0.75rem;
  color: var(--cor-texto-muted);
}
 
/* ── COLUNA DIREITA: destaque ── */
.noticia-destaque {
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  animation: fadeInDestaque 0.35s ease;
}
 
@keyframes fadeInDestaque {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.destaque-imagem-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
}
 
.destaque-imagem-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
 
.noticia-destaque:hover .destaque-imagem-wrap img {
  transform: scale(1.03);
}
 
.destaque-corpo {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.destaque-categoria {
  display: inline-block;
  background: var(--cor-primaria);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}
 
.destaque-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.35;
  margin: 0;
}
 
.destaque-data {
  font-size: 0.82rem;
  color: var(--cor-texto-muted);
  margin: 0;
}
 
.destaque-resumo {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.destaque-btn-ler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: fit-content;
  margin-top: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}
 
.destaque-btn-ler:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.4);
}
 
/* ── MODAL DA NOTÍCIA COMPLETA ── */
.modal-noticia-content {
  background: #fff;
  border-radius: 20px;
  max-width: 720px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative; /* garante que o btn-fechar se posicione corretamente */
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) #f0f0f0;
}

/* Botão fechar do modal de notícia — fica sobre a imagem */
#fecharModalNoticia {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
}

/* Botão "Voltar" fixo no rodapé do modal — confortável para o polegar no mobile */
.btn-voltar-noticia {
  display: none; /* visível apenas no mobile via media query */
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 48px);
  margin: 0 24px 28px;
  padding: 14px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.btn-voltar-noticia:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .btn-voltar-noticia {
    display: flex;
  }
}
 
.modal-noticia-imagem {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  display: block;
}
 
.modal-noticia-corpo {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.modal-noticia-corpo h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.3;
  margin: 0;
}
 
.modal-noticia-texto {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.8;
  white-space: pre-line;
}
 


















/* =========== RESPONSIVIDADE ===========*/

/* -----------------------------------------------
    Media Queries
   Ajustes para tablets e celulares.
   Lógica "mobile-first" adaptada:
   o CSS base funciona no desktop, e aqui
   fazemos os ajustes para telas menores.
   ----------------------------------------------- */

/* ==== telas 1200px ==== */
@media (min-width: 1200px) {
    .cards-grid {
        /* Forçamos 4 colunas exatas em telas bem largas */
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==== telas 1024px ==== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-content h1 { font-size: 2.8rem; }
}


/* Tablet: telas até 992px */
@media (max-width: 992px) {
    /* Reduz um pouco o espaçamento lateral da navbar */
    .navbar {
        padding: 0 4%;
    }

    /* Esconde o menu central e mostra o hamburguer */
    .menu-central {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Carrossel horizontal para tablets e celulares (abaixo de 900px) */
@media (max-width: 900px) {
    /* Container vira trilho de scroll horizontal */
    .cards-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 24px 40px 24px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start; /* Alinha do início no carrossel */
    }
 
    /* Card ocupa ~80% da tela — mostra a borda do próximo (dica visual) */
    .card-lojista {
        flex: 0 0 80%;
        max-width: 360px;
        scroll-snap-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
 
    /* Esconde a barra de scroll feia */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }
 
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }

    /* ── NOTÍCIAS MOBILE: painel destaque some, lista vira feed ── */

    /* Oculta o painel de destaque — clique abre direto o modal */
    .noticia-destaque {
        display: none !important;
    }

    /* Layout vira coluna única */
    .noticias-layout {
        grid-template-columns: 1fr;
    }

    /* Lista ocupa toda a largura, sem altura máxima nem scroll vertical */
    .noticias-lista {
        display: flex;
        flex-direction: column;
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
        padding-right: 0;
        gap: 0;
    }

    /* Card compacto estilo feed de notícias */
    .noticia-item {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 14px;
        align-items: center;
        background: #fff;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 14px 4px;
        transform: none !important; /* remove o translateX do hover */
    }

    .noticia-item:first-child {
        border-top: 1px solid #eee;
    }

    /* Remove borda lateral colorida do item ativo (não faz sentido no feed) */
    .noticia-item.ativo,
    .noticia-item:hover {
        border-color: #eee;
        background: #fff;
        border-left: none;
    }

    /* Imagem maior e com proporção fixa */
    .noticia-item img {
        width: 110px;
        height: 75px;
        border-radius: 8px;
        object-fit: cover;
    }

    /* Título em destaque com a cor primária, igual à imagem de referência */
    .noticia-item-titulo {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--cor-primaria);
        -webkit-line-clamp: 3;
        line-height: 1.4;
    }

    .noticia-item-categoria {
        font-size: 0.68rem;
    }

    .noticia-item-data {
        font-size: 0.72rem;
    }
}

/* Mobile: telas até 600px */
@media (max-width: 600px) {
    /* Barra de busca empilhada verticalmente */
    .search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        gap: 8px;
    }

    .search-container input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .search-container button {
        width: 100%;
        justify-content: center;
        padding: 14px;
        border-radius: 12px;
    }

    /* Cards menores para caber bem na tela */
    .q-card {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    /* Navbar mais compacta */
    .navbar {
        padding: 0 4%;
    }
       .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title { font-size: 2rem;
    }
}

/* Aplicando funcion scroll */
@media (max-width: 500px) {
    /* 1. O PAI (Container dos cards) */
    .cards-grid {
        display: flex !important;       /* Muda de Grid para Flex para alinhar lado a lado */
        flex-wrap: nowrap !important;   /* IMPEDIR que os cards pulem para baixo */
        overflow-x: auto;               /* Habilita o scroll lateral */
        scroll-snap-type: x mandatory;  /* Efeito de "ímã" ao deslizar */
        gap: 20px;                      /* Espaço entre os cards */
        padding: 20px 20px 40px 20px;   /* Respiro nas laterais e embaixo */
        -webkit-overflow-scrolling: touch; /* Scroll suave no iPhone/iOS */
    }

    /* 2. O FILHO (O Card individual) */
    .card-lojista {
        flex: 0 0 85%;                  /* Não estica, não encolhe, ocupa 85% da largura */
        scroll-snap-align: center;       /* Faz o card parar sempre centralizado */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra mais leve no mobile */
    }

    /* 3. Estética: Esconder a barra de rolagem feia (opcional) */
    .cards-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ajuste de textos para telas pequenas */
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }
}

/* Mobile pequeno: telas até 380px (ex: iPhone SE) */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    .q-card {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .cards-grid {
        grid-template-columns: 1fr; /* Um card por linha para não esmagar a info */
    }
    .card-lojista { max-width: 320px; margin: 0 auto; } /* Centraliza o card único */
}



/* ==============================================
   MODAL DE "NÃO ENCONTRADO"
   ============================================== */

.modal-nao-encontrado {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 20px 28px; /* topo alto: espaço para o btn X */
  max-width: 440px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: abrirModalAnim 0.3s ease-out;
  box-sizing: border-box;
}

/* Botão X — sempre fixo no canto, nunca some */
.btn-fechar-nao-encontrado {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.07);
  color: #555;
  border: none;
  width: 32px;
  height: 32px;
  min-width: 32px;   /* nunca encolhe */
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 5;
  line-height: 1;
}

.btn-fechar-nao-encontrado:hover {
  background: #e74c3c;
  color: #fff;
}

/* Ícone lupa — tamanho controlado */
.nao-encontrado-icone {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
  animation: pulseIcon 1.5s ease infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* Título */
.nao-encontrado-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Texto — palavra longa não vaza */
.nao-encontrado-texto {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Badge verde — linha única, texto fixo sem o termo buscado */
.nao-encontrado-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #a9dfbf;
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 100%;          /* nunca ultrapassa o modal */
  box-sizing: border-box;
}

.nao-encontrado-info span {
  white-space: nowrap;      /* texto do badge sempre em uma linha */
}

/* Subtítulo das sugestões */
.nao-encontrado-sugestao-titulo {
  font-size: 0.86rem;
  color: #888;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Grid de tags de sugestão */
.sugestoes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Tag individual — nunca quebra em duas linhas */
.sugestao-tag {
  background: #f4f4f4;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.sugestao-tag:hover {
  background: var(--cor-primaria);
  color: #fff;
  border-color: var(--cor-primaria);
  transform: translateY(-2px);
}

/* Botão principal de voltar */
.btn-voltar-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225,48,108,0.3);
}

.btn-voltar-principal:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225,48,108,0.4);
}

/* ── Telas muito pequenas (< 400px) ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    width: 96%;
    padding: 44px 14px 24px;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2rem; }
  .nao-encontrado-titulo { font-size: 1.1rem; }
  .nao-encontrado-texto  { font-size: 0.82rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.86rem;
    padding: 12px 18px;
  }
}

/* ── Responsividade específica do modal não encontrado ── */
@media (max-width: 400px) {
  .modal-nao-encontrado {
    padding: 40px 18px 24px;
    width: 96%;
    border-radius: 16px;
  }

  .nao-encontrado-icone  { font-size: 2.2rem; }
  .nao-encontrado-titulo { font-size: 1.15rem; }
  .nao-encontrado-texto  { font-size: 0.85rem; }

  .nao-encontrado-info {
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .sugestao-tag {
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .btn-voltar-principal {
    font-size: 0.88rem;
    padding: 12px 20px;
  }
}

/* ==============================================
   BOTÃO FLUTUANTE — VOLTAR AO TOPO
   ============================================== */

.btn-voltar-topo {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

/* Aparece após rolar 300px */
.btn-voltar-topo.visivel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-voltar-topo:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.55);
}

@media (max-width: 900px) {
  .btn-voltar-topo {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}


/* ==============================================
   FOOTER — Rodapé
   ============================================== */

.footer {
  background-color: #111318;  /* Fundo escuro — contraste com o restante da página */
  color: #ccc;
  padding-top: 0;
}

/* Linha gradiente decorativa no topo do footer */
.footer-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-primaria-escura), var(--cor-primaria));
  background-size: 200% auto;
  animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Container principal — grid de 4 colunas no desktop */
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 64px 5% 48px;
}

/* ── COLUNA 1: Brand ── */
.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--cor-primaria);
}

.footer-descricao {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #999;
  margin-bottom: 24px;
  max-width: 280px;
}

/* Ícones de redes sociais */
.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--cor-primaria);
  transform: translateY(-3px);
  color: #fff;
}

.social-link.whatsapp:hover {
  background: #25D366;
}

/* ── COLUNAS 2 e 3: Links de navegação ── */
.footer-col-titulo {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

/* Linha decorativa abaixo do título de cada coluna */
.footer-col-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--cor-primaria);
  padding-left: 6px;
}

/* ── COLUNA 4: CTA para lojistas ── */
.footer-cta-texto {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #999;
  margin-bottom: 20px;
}

.footer-btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}

.footer-btn-whats:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ── Linha inferior: copyright e crédito ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 5%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}

.footer-credito strong {
  color: #aaa;
  font-weight: 600;
}

.footer-credito strong span {
  color: var(--cor-primaria);
}

/* ── RESPONSIVIDADE ── */

/* Tablet: 2 colunas */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 5% 36px;
  }

  /* Brand ocupa largura total no topo */
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-descricao {
    max-width: 100%;
  }
}

/* Mobile: coluna única */
@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 5% 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}


/* ==============================================
   ANIMAÇÕES GLOBAIS — Guia Comercial
   Intensidade: Moderada
   ============================================== */

/* ── 1. HERO — entrada escalonada dos elementos ──
   Cada elemento filho aparece com delay progressivo,
   dando a sensação de "construção" da tela           */

.hero-content h1 {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.1s;
}

.hero-content p {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.3s;
  opacity: 0; /* começa invisível até a animação rodar */
  animation-fill-mode: forwards;
}

.search-container {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.quick-cards {
  animation: heroEntrada 0.7s ease both;
  animation-delay: 0.7s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ── 2. SCROLL REVEAL — cards e seções
   Elementos começam invisíveis e sobem ao entrar
   na viewport (controlado via JS + IntersectionObserver) */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform; /* sugere ao browser usar GPU para estas props */
}

.reveal.visivel {
  will-change: auto; /* libera o recurso após a animação terminar */
}

.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para filhos dentro de um grid */


/* ── 3. BOTÕES — micro-interações ao hover/active ──
   Feedback visual imediato que torna a UI mais viva  */

/* Botão de busca */
#btnBuscar {
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
#btnBuscar:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(225,48,108,0.4); }
#btnBuscar:active { transform: scale(0.97); }

/* Quick-cards de categoria */
.q-card {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.q-card:hover  { transform: translateY(-4px) scale(1.04); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.q-card:active { transform: scale(0.97); }

/* Cards de lojista */
.card-lojista {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lojista:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }

/* Botão "Ver detalhes" dentro do card */
.btn-detalhes {
  transition: background 0.2s, color 0.2s, letter-spacing 0.2s;
}
.card-lojista:hover .btn-detalhes {
  letter-spacing: 0.5px;
}

/* Links do footer */
.footer-links a {
  transition: color 0.2s, padding-left 0.25s;
}

/* Botão voltar ao topo */
.btn-voltar-topo {
  transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
}

/* ── 4. MODAIS — entrada e saída suaves ──          */

/* Overlay: fade in */
.modal-overlay {
  animation: none; /* reseta qualquer animação anterior */
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Quando o modal é exibido via JS (display:flex),
   a animação é aplicada nos filhos diretos         */
.modal-overlay[style*="flex"] {
  animation: modalOverlayIn 0.25s ease both;
}

.modal-overlay[style*="flex"] .modal-content,
.modal-overlay[style*="flex"] .modal-noticia-content,
.modal-overlay[style*="flex"] .modal-nao-encontrado {
  animation: modalSlideUp 0.3s ease both;
}

/* ── 5. SEÇÃO TÍTULOS — linha cresce ao entrar na viewport ── */

.section-title {
  position: relative;
  /* Mantém block para respeitar text-align: center do container */
  display: block;
  width: 100%;
}

/* Linha decorativa gerada via pseudo-elemento centralizado */
.section-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  background: var(--cor-primaria);
  border-radius: 2px;
  margin: 8px auto 0; /* auto nas laterais centraliza a linha */
  transition: width 0.6s ease;
}

.section-title.visivel::after {
  width: 60px;
}

/* ── 6. NOTÍCIA DESTAQUE — já tem fadeInDestaque, reforça ── */
.noticia-item {
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

/* ── 7. NAVBAR LINKS — underline deslizante ── */
.menu-central a,
.menu-central .dropdown-btn {
  position: relative;
}

.menu-central a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.menu-central a:hover::after {
  width: 100%;
}

/* ── 8. IMAGEM DO CARD — zoom suave ao hover ── */
.card-banner {
  transition: transform 0.4s ease;
}
.card-lojista:hover .card-banner {
  transform: scale(1.06);
}

/* ── 9. FOOTER SOCIAL — bounce ao hover ── */
.social-link {
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
}
.social-link:hover {
  transform: translateY(-4px) scale(1.12);
}

/* ── 10. BADGE ABERTO/FECHADO — pulso sutil no "Aberto Agora" ── */
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(39,174,96,0); }
}

.status-badge.aberto {
  animation: pulseBadge 2.5s ease infinite;
}

/* Badge de intervalo de almoço — tom laranja/âmbar */
.status-badge.almoco {
  background: #f39c12;
  color: #fff;
}

/* ── Respeita preferência do usuário por menos movimento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==============================================
   BOTÃO DE LOCALIZAÇÃO — Hero Section
   ============================================== */

.btn-localizacao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-localizacao:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-localizacao:active {
  transform: scale(0.97);
}

/* Estado: buscando localização */
.btn-localizacao.buscando {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.btn-localizacao.buscando i {
  animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Estado: localização ativa — destaque em verde */
.btn-localizacao.ativo {
  background: rgba(39, 174, 96, 0.25);
  border-color: #2ecc71;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(39,174,96,0.25);
}

/* Badge de distância nos cards */
.distancia-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--cor-primaria);
  border: 1.5px solid rgba(225, 48, 108, 0.3);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.12);
  animation: heroEntrada 0.4s ease both; /* aparece suavemente */
  letter-spacing: 0.2px;
}

.distancia-badge i {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* Responsivo — botão menor no mobile */
@media (max-width: 500px) {
  .btn-localizacao {
    padding: 10px 20px;
    font-size: 0.88rem;
  }
}


/* ==============================================
   SECTION ENCARTES — Carrossel Coverflow
   ============================================== */

.encartes {
  padding: 100px 0 80px;
  background: #f0f2f5;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.encartes-header {
  text-align: center;
  padding: 0 5%;
  margin-bottom: 48px;
}

/* ── CARROSSEL ── */
.encartes-coverflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 40px 32px;
  cursor: grab;
  user-select: none;
}

.encartes-coverflow:active {
  cursor: grabbing;
}

/* ── COLUNA / CARD ── */
.encarte-col {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  flex-shrink: 0;

  /* Estado comprimido — padrão */
  width: 80px;
  height: 480px;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease,
              filter 0.4s ease;
  filter: brightness(0.55) saturate(0.7);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* Estado expandido — ativo */
.encarte-col.ativo {
  width: 340px;
  filter: brightness(1) saturate(1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  cursor: default;
}

/* Imagem de fundo ocupa 100% da coluna */
.encarte-imagem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.6s ease;
}

.encarte-col.ativo .encarte-imagem {
  transform: scale(1.03);
}

/* Gradiente escuro na parte inferior — legibilidade do texto */
.encarte-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
  border-radius: 0 0 24px 24px;
  pointer-events: none;
}

/* Conteúdo do encarte — visível só no ativo */
.encarte-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 22px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
  pointer-events: none;
}

.encarte-col.ativo .encarte-info {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Ícone redondo do lojista no topo da info */
.encarte-lojista-nome {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.encarte-lojista-nome i {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.encarte-lojista-nome span {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.encarte-titulo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}

.encarte-descricao {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Botão ver lojista */
.encarte-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225,48,108,0.4);
  white-space: nowrap;
}

.encarte-btn:hover {
  background: var(--cor-primaria-escura);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225,48,108,0.5);
}

.encarte-btn:active {
  transform: scale(0.96);
}

/* ── BOLINHAS INDICADORAS ── */
.encartes-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.encarte-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s, width 0.3s;
}

.encarte-dot.ativo {
  background: var(--cor-primaria);
  width: 24px;
  border-radius: 4px;
  transform: none;
}

/* ── RESPONSIVO ── */
@media (max-width: 900px) {
  .encartes {
    overflow: hidden; /* garante que nada vaza do container da section */
  }

  .encartes-coverflow {
    gap: 8px;
    padding: 16px 16px 28px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .encarte-col {
    width: 52px;
    height: 380px;
    border-radius: 16px;
    flex-shrink: 0;
  }

  /* Card ativo — ocupa o espaço restante calculado dinamicamente:
     100vw - (padding 32px) - (4 cols × 52px) - (4 gaps × 8px) = ~200px em 600px */
  .encarte-col.ativo {
    width: calc(100vw - 32px - (4 * 52px) - (4 * 8px));
    max-width: 220px;
    min-width: 160px;
  }

  .encarte-titulo { font-size: 1rem; }
  .encarte-btn { padding: 9px 16px; font-size: 0.82rem; }
}

@media (max-width: 500px) {
  .encartes {
    overflow: hidden;
  }

  .encartes-coverflow {
    gap: 6px;
    padding: 12px 12px 24px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    justify-content: center;
  }

  .encarte-col {
    width: 36px;      /* mais fino — dá mais espaço pro card ativo */
    height: 300px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  /* Cálculo exato para 5 encartes em ~360px:
     360 - 24px(padding) - 4×36px(cols) - 4×6px(gaps) = 168px */
  .encarte-col.ativo {
    width: calc(100vw - 24px - (4 * 36px) - (4 * 6px));
    max-width: 180px;
    min-width: 140px;
  }

  .encarte-titulo    { font-size: 0.9rem; }
  .encarte-descricao { font-size: 0.75rem; margin-bottom: 10px; }
  .encarte-info      { padding: 16px 14px; }
  .encarte-btn       { padding: 8px 14px; font-size: 0.8rem; }
}

/* Telas muito pequenas (< 360px) */
@media (max-width: 360px) {
  .encarte-col {
    width: 30px;
    height: 280px;
  }

  .encarte-col.ativo {
    width: calc(100vw - 20px - (4 * 30px) - (4 * 6px));
    min-width: 120px;
  }
}


/* ==============================================
   TRANSIÇÕES DE NAVEGAÇÃO
   ============================================== */

/* Highlight suave na seção quando navegado por âncora */
@keyframes sectionHighlight {
  0%   { box-shadow: inset 0 0 0 3px rgba(225, 48, 108, 0); }
  25%  { box-shadow: inset 0 0 0 3px rgba(225, 48, 108, 0.25); }
  100% { box-shadow: inset 0 0 0 3px rgba(225, 48, 108, 0); }
}

.section-highlight {
  animation: sectionHighlight 1.2s ease forwards;
}

/* Transição suave da navbar ao rolar */
.navbar {
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s ease !important;
}

/* Navbar compacta ao rolar para baixo */
.navbar.scrolled {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12) !important;
}

/* Links da navbar — transição mais suave */
.menu-central a,
.dropdown-btn {
  transition: color var(--transicao), opacity var(--transicao) !important;
}

/* Dropdown — entrada mais elegante */
.dropdown-content {
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transform-origin: top center;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  transform: translateY(0) scaleY(1) !important;
}

/* Estado inicial do dropdown (antes de abrir) */
.dropdown-content {
  transform: translateY(-8px) scaleY(0.95);
  opacity: 0;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  opacity: 1;
  transform: translateY(0) scaleY(1);
}

/* Chevron do dropdown — rotação suave */
.dropdown-btn .chevron {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown:hover .chevron,
.dropdown:focus-within .chevron {
  transform: rotate(180deg);
}

/* Menu mobile — entrada deslizante mais suave */
.mobile-menu {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transform: translateY(-12px);
  opacity: 0;
}

.mobile-menu.aberto {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Links do menu mobile — entram escalonados */
.mobile-menu a {
  transition: color 0.2s ease,
              background 0.2s ease,
              padding-left 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.mobile-menu.aberto a:nth-child(1)  { transition-delay: 0.04s; }
.mobile-menu.aberto a:nth-child(2)  { transition-delay: 0.08s; }
.mobile-menu.aberto a:nth-child(3)  { transition-delay: 0.12s; }
.mobile-menu.aberto a:nth-child(4)  { transition-delay: 0.16s; }
.mobile-menu.aberto a:nth-child(5)  { transition-delay: 0.20s; }
.mobile-menu.aberto a:nth-child(6)  { transition-delay: 0.24s; }
.mobile-menu.aberto a:nth-child(7)  { transition-delay: 0.28s; }
.mobile-menu.aberto a:nth-child(8)  { transition-delay: 0.32s; }
.mobile-menu.aberto a:nth-child(9)  { transition-delay: 0.36s; }
.mobile-menu.aberto a:nth-child(10) { transition-delay: 0.40s; }
.mobile-menu.aberto a:nth-child(11) { transition-delay: 0.44s; }

/* Botão hambúrguer — transição das barras */
.hamburger .bar {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              width 0.3s ease !important;
}

/* Quick-cards — hover com spring */
.q-card {
  transition: background 0.25s ease,
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              color 0.25s ease !important;
}

/* Botão de busca — feedback mais vivo */
#btnBuscar {
  transition: background 0.25s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease !important;
}

/* Botão localização — spring ao ativar */
.btn-localizacao {
  transition: background 0.3s ease,
              border-color 0.3s ease,
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease !important;
}

/* Cards de lojista — levitação mais expressiva */
.card-lojista {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease !important;
}

/* Botão voltar ao topo — spring ao aparecer */
.btn-voltar-topo {
  transition: opacity 0.4s ease,
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.25s ease,
              box-shadow 0.25s ease !important;
}