/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0004ff;
    --secondary-color: #ff0000;
    --accent-color: #da8e02;

    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #fffb00;
    --error-color: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho Fixo - Layout Profissional */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    flex-shrink: 0;
}

.logo-container a {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 44px;
    width: auto;
    transition: transform 0.3s ease;
}

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

/* Barra de busca no header */
.header-search {
    flex: 1;
    max-width: 540px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 8px 18px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,4,255,0.08);
}

.header-search i {
    color: var(--text-light);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-color);
    font-family: inherit;
}

.header-search input::placeholder {
    color: #9ca3af;
}

/* Ações do header (conta + carrinho) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    gap: 2px;
}

.header-action-link i {
    font-size: 1.2rem;
}

.header-action-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Badge do carrinho */
.cart-counter {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    display: none;
    padding: 0 4px;
}

/* Navegação secundária */
#header-nav {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

#header-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Apenas a lista principal do menu — evita aplicar flex no submenu de Filiais */
#header-nav .container > ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

#header-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.88rem;
    transition: color 0.2s ease, background 0.2s ease;
    padding: 10px 18px;
    display: block;
    border-radius: 0;
}

#header-nav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(0,4,255,0.04);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* ========================================= */
/* FAixa de Anúncios em Ciclo                */
/* ========================================= */

/* 1. Contêiner principal (Recebe a cor de fundo) */
#anuncios-bar {
    width: 100%;
    padding: 10px 0;
    margin-top: 116px;
    overflow: hidden;
    background: #2d3748;
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 1.2s ease;
    z-index: 999;
}

#anuncios-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.anuncios-track {
    display: inline-flex;
    animation: scrollAnuncios 25s linear infinite;
    will-change: transform;
}

.anuncio-item {
    padding: 0 40px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Pausa com hover/touch */
#anuncios-container:hover .anuncios-track,
.anuncios-track.paused {
    animation-play-state: paused;
}

@keyframes scrollAnuncios {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-left {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* Ajustar posicionamento das seções para compensar a barra de anúncios */
.hero {
    margin-top: 50px;
}

/* Seção Hero */
.hero-section {
    position: relative;
    z-index: 5;
    margin-top: 116px;
    padding: 80px 20px 120px;
    margin-bottom: 0;
    background: radial-gradient(circle at top left, rgba(59,130,246,0.16), transparent 60%),
                radial-gradient(circle at top right, rgba(236,72,153,0.12), transparent 55%),
                linear-gradient(135deg, #0f172a 0%, #020617 60%, #111827 100%);
    color: #f9fafb;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.05));
    pointer-events: none;
    z-index: 6;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 3.2vw, 3rem);
    line-height: 1.05;
    margin-bottom: 18px;
}

.hero-copy p {
    font-size: 1.05rem;
    max-width: 520px;
    color: #e5e7eb;
    margin-bottom: 26px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,118,110,0.16);
    color: #a5f3fc;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-media {
    position: relative;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 24px;
    background: radial-gradient(circle at top, rgba(59,130,246,0.4), transparent 60%);
    opacity: 0.45;
    pointer-events: none;
}

/* Hero: promo slider — um card por vez, fade + loop */
.hero-media .promo-products {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-media .promo-slider {
    position: relative;
    width: 280px;
    min-height: 340px;
    overflow: hidden;
}

.hero-media .promo-slider .promo-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
    pointer-events: none;
}

.hero-media .promo-slider .promo-card.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-media .promo-slider .promo-card:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    transform: scale(1) translateY(-6px);
}

.hero-media .promo-slider .promo-card.active:hover {
    transform: scale(1) translateY(-6px);
}

.hero-media .promo-slider .promo-card img {
    width: 100%;
    max-height: 130px;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}

.hero-media .promo-slider .promo-card .badge,
.hero-media .promo-slider .promo-card .badge-oferta {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 0.02em;
    z-index: 1;
}

.hero-media .promo-slider .promo-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--text-color);
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-media .promo-slider .promo-card .price {
    font-size: 26px;
    font-weight: 800;
    color: #f97316;
    margin-top: 8px;
    margin-bottom: 0;
    text-align: center;
}

/* Preços no hero com De / Por */
.promo-preco {
    margin-top: 12px;
    text-align: center;
}

.promo-preco .preco-de {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 15px;
    margin-right: 8px;
}

.promo-preco .preco-de.strikethrough {
    text-decoration: line-through;
}

.promo-preco .preco-por {
    color: #f97316;
    font-weight: 800;
    font-size: 26px;
    line-height: 1.1;
}

/* Botão do hero: laranja (hover amarelo) sem afetar o site todo */
.hero-section .btn.btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff7ed;
    box-shadow: 0 14px 35px rgba(234, 88, 12, 0.45);
}

.hero-section .btn.btn-primary:hover {
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #1f2937;
    box-shadow: 0 14px 35px rgba(250, 204, 21, 0.35);
}

.hero-promo-loading,
.hero-promo-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
    padding: 24px 16px;
}

@media (max-width: 640px) {
    .hero-media .promo-slider {
        width: 260px;
        min-height: 320px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ecfdf5;
    box-shadow: 0 14px 35px rgba(22,163,74,0.55);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(22,163,74,0.7);
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.btn-outline {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(148,163,184,0.9);
}

.btn-outline:hover {
    background: rgba(15,23,42,0.85);
    border-color: #e5e7eb;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Seções Gerais */
section {
    padding: 80px 20px;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-color);
}

/* ========================================= */
/* DEPARTAMENTOS – TRANSPARENTE SOBRE HERO   */
/* ========================================= */
.departamentos-float {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding: 0 20px 40px;
    background: transparent !important;
    background-color: transparent !important;
    overflow: visible;
}

.departamentos-float .container {
    position: relative;
    z-index: 15;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.departamentos-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0;
    padding: 0;
}

.departamentos-viewport {
    flex: 1;
    overflow: hidden;
    background: transparent;
    padding: 10px 0;
}

.departamentos-float .departamentos-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    padding: 4px 2px;
    background: transparent;
}

.dept-nav-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 20;
}

.dept-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.dept-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.departamentos-float .categoria-card.departamento-card {
    position: relative;
    flex: 0 0 160px;
    width: 160px;
    height: auto;
    min-height: 150px;
    border-radius: 12px;
    overflow: visible;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    cursor: pointer;
}

.departamentos-float .categoria-card.departamento-card:hover {
    transform: translateY(-5px);
    z-index: 1;
}

.departamentos-float .departamento-card .departamento-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: #fff;
    margin-bottom: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.departamentos-float .departamento-card:hover .departamento-img {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #ffffff;
}

.departamentos-float .departamento-card .departamento-overlay {
    position: static;
    inset: auto;
    background: none;
    display: block;
    padding: 0;
    pointer-events: none;
}

.departamentos-float .departamento-card .departamento-overlay h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 4px 0 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.25;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .departamentos-float {
        margin-top: -60px;
        padding: 0 10px 28px;
    }

    .departamentos-float .categoria-card.departamento-card {
        flex: 0 0 120px;
        width: 120px;
        min-height: 120px;
        padding: 8px 4px;
    }

    .departamentos-float .departamento-card .departamento-img {
        width: 100px;
        height: 100px;
        border-width: 2px;
    }

    .departamentos-float .departamento-card .departamento-overlay h3 {
        font-size: 0.82rem;
    }

    .dept-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

@keyframes scrollDepartamentos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Seção de busca rápida na home */
.home-search-section {
    padding: 20px 20px 70px;
    background: #f8fafc;
}

.home-search-card {
    max-width: 840px;
    margin: -36px auto 0;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.12);
    padding: 26px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: center;
}

.home-search-card h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    text-align: left;
}

.home-search-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.home-search-form {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.home-search-input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background-color: #f9fafb;
}

.home-search-input-wrap i {
    color: var(--text-light);
    font-size: 0.9rem;
}

.home-search-input-wrap input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-color);
}

.home-search-input-wrap input::placeholder {
    color: #9ca3af;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-media {
        order: -1;
    }

    .home-search-card {
        grid-template-columns: 1fr;
        margin-top: -20px;
        padding: 22px 20px;
    }

    .home-search-card h2 {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 96px;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-search-form {
        flex-direction: column;
        align-items: stretch;
    }
}



/* Produtos por Categoria */
.categoria-section {
    margin-bottom: 60px;
}

.categoria-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

/* Produtos em destaque (home) reaproveitando grid de categoria */
/* Onde Estamos */
.onde-estamos-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Garantir que "Onde Estamos" e "Horário" fiquem lado a lado em telas maiores */
@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.info-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-card p {
    color: var(--text-color);
    line-height: 1.8;
}

#google-maps-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    /* Aspect ratio 16:9 - ajuste para 75% se quiser 4:3, ou outro valor baseado no mapa */
    margin-top: 20px;
    /* Mantém o margin que já tem no HTML */
    border-radius: 8px;
    /* Bordas arredondadas no container */
}

#google-maps-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Preenche 100% do container, sem height fixo */
    border: 0;
    border-radius: 8px;
    /* Bordas no iframe */
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .info-card {
        padding: 15px;
        /* Reduz padding em mobile se necessário */
    }

    #google-maps-container {
        padding-top: 75%;
        /* Ajuste aspect ratio para mobile, se o mapa ficar muito alto/baixo */
    }
}

#horario-info p {
    margin-bottom: 10px;
}

/* Contato */
/* Google Review Section */
.google-review-section {
    background-color: #fff9e6;
    padding: 50px 20px 0;
    margin: 40px 0;
    position: relative;
}

.google-review-section .google-container {
    margin-bottom: 0;
}

.google-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px 12px 0 0;
    padding: 35px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
}

.google-content-left {
    flex: 1;
}

.google-content-left h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
    line-height: 1.3;
}

.google-content-left p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 22px;
    line-height: 1.5;
}

.google-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary-google {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary-google:hover {
    background-color: #b91c1c;
}

.btn-secondary-google {
    background-color: white;
    color: #f97316;
    border: 1.5px solid #f97316;
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-secondary-google:hover {
    background-color: #fff5f0;
}

.btn-secondary-google i {
    font-size: 1rem;
    color: #f97316;
}

.google-content-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-left: 20px;
}

.google-logo-img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

.google-color-bar {
    display: flex;
    max-width: 1000px;
    width: 100%;
    height: 4px;
    margin: 0 auto;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.google-color-bar span {
    flex: 1;
    height: 100%;
}

.bar-blue {
    background-color: #4285f4;
}

.bar-red {
    background-color: #ea4335;
}

.bar-yellow {
    background-color: #fbbc04;
}

.bar-green {
    background-color: #34a853;
}

/* Benefícios */
.benefits-section {
    background: var(--bg-light);
    padding-top: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 10px;
}

.benefit-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background-color: #fefce8;
}

.benefit-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(34,197,94,0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    margin-bottom: 4px;
}

.benefit-icon i {
    font-size: 1.2rem;
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin: 0;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* Responsividade para Google Review Section */
@media (max-width: 768px) {
    .google-review-section {
        padding: 40px 15px 0;
        margin: 30px 0;
    }

    .google-container {
        flex-direction: column;
        padding: 30px 25px;
        text-align: center;
        gap: 25px;
    }

    .google-content-left {
        width: 100%;
    }

    .google-content-left h3 {
        font-size: 1.5rem;
    }

    .google-buttons {
        justify-content: center;
        width: 100%;
    }

    .btn-primary-google,
    .btn-secondary-google {
        flex: 1;
        min-width: 140px;
    }

    .google-content-right {
        width: 100%;
        padding-left: 0;
        margin-top: 10px;
    }

    .google-logo-img {
        max-width: 150px;
    }

    .google-color-bar {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .google-review-section {
        padding: 30px 10px 0;
    }

    .google-container {
        padding: 25px 20px;
    }

    .google-content-left h3 {
        font-size: 1.25rem;
    }

    .google-content-left p {
        font-size: 0.9rem;
    }

    .google-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary-google,
    .btn-secondary-google {
        width: 100%;
    }
}

/* Configurações da Nova Seção de Pedido */
.pedido-jornada {
    padding: 100px 0;
    background: radial-gradient(circle at top left, #f8fafc, #e2e8f0);
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.titulo-moderno {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.subtitulo-moderno {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de Passos */
.jornada-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.passo-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 50px 30px;
    border-radius: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease-out forwards;
}

/* Fallback para navegadores sem suporte a backdrop-filter */
@supports (backdrop-filter: blur(10px)) {
    .passo-card {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
    }
}

.passo-card[data-aos-delay="100"] {
    animation-delay: 0.2s;
}

.passo-card[data-aos-delay="200"] {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.passo-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    background: white;
    box-shadow: 0 20px 50px rgba(0,4,255,0.1);
}

.passo-numero {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.passo-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.passo-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-color);
}

.passo-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Botões Customizados */
.btn-passo {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-passo:hover {
    gap: 15px;
}

.passo-card.destaque {
    background: linear-gradient(135deg, var(--primary-color), #00028a);
    color: white;
}

.passo-card.destaque h3, 
.passo-card.destaque p {
    color: white;
}

.passo-card.destaque .passo-numero {
    color: rgba(255, 255, 255, 0.1);
}

.passo-card.destaque .icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.passo-card.destaque:hover .icon-wrapper {
    background: rgba(255, 255, 255, 0.3);
}

.btn-passo-whatsapp {
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn-passo-whatsapp:hover {
    background: #128c7e;
    transform: scale(1.05);
}

/* Responsividade para Pedido Jornada */
@media (max-width: 768px) {
    .titulo-moderno { 
        font-size: 2rem; 
    }
    
    .pedido-jornada { 
        padding: 60px 0; 
    }
    
    .jornada-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .passo-card {
        padding: 40px 25px;
    }
    
    .passo-numero {
        font-size: 3rem;
        top: 15px;
        right: 20px;
    }
    
    .icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .titulo-moderno {
        font-size: 1.75rem;
    }
    
    .subtitulo-moderno {
        font-size: 1rem;
    }
    
    .passo-card {
        padding: 30px 20px;
    }
    
    .passo-card h3 {
        font-size: 1.25rem;
    }
}

.contato-section {
    background-color: var(--bg-color);
}

#contato-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Botões Genéricos */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #b87702;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.feedback-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.feedback-message.success {
    background-color: #d1fae5;
    color: var(--success-color);
    display: block;
}

.feedback-message.error {
    background-color: #fee2e2;
    color: var(--error-color);
    display: block;
}

/* Rodapé */
#footer {
    background-color: var(--text-color);
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 90px;
    height: auto;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-info p {
    margin-bottom: 0;
    opacity: 0.9;
}

#footer-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ========================================= */
/* Menu dropdown: Filiais                   */
/* ========================================= */
.filiais-menu-item {
    position: relative;
}

.filiais-submenu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    margin: 0;
    background: var(--bg-color);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
}

.filiais-submenu li {
    list-style: none;
}

.filiais-submenu a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.filiais-submenu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.filiais-menu-item.open .filiais-submenu {
    display: flex;
}

@media (max-width: 768px) {
    .filiais-submenu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 6px 0 10px 16px;
        min-width: 0;
    }

    .filiais-menu-item.open .filiais-submenu {
        display: flex;
    }
}

/* ========================================= */
/* Página Filial                             */
/* ========================================= */
.filial-parallax {
    position: relative;
    z-index: 5;
    margin-top: 116px;
    padding: 80px 20px;
    color: #f9fafb;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.filial-parallax::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.65));
    pointer-events: none;
    z-index: 0;
}

.filial-parallax .filial-parallax-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.filial-subtitulo {
    color: #e5e7eb;
    margin-top: 10px;
}

.filial-info-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.filial-history-section {
    padding: 56px 0;
    background: var(--bg-light);
}

.filial-history-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.filial-history-text {
    margin-top: 12px;
    color: var(--text-color);
    font-size: 1.06rem;
    line-height: 1.85;
    white-space: pre-line;
}

.filial-gallery-section {
    padding: 56px 0;
    background: #ffffff;
}

.filial-gallery-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.filial-gallery-item {
    border: 0;
    padding: 0;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #e5e7eb;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.filial-gallery-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.filial-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.filial-mapa-container iframe {
    border-radius: 12px;
    display: block;
}

.filial-colaboradores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.filial-colab-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: 20px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filial-colab-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.filial-colab-photo-wrap {
    width: 160px;
    height: 160px;
    border-radius: 999px;
    overflow: hidden;
    border: 4px solid var(--bg-light);
    flex-shrink: 0;
}

.filial-colab-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.filial-colab-nome {
    font-size: 1.15rem;
    margin: 0 0 2px;
    color: var(--primary-color);
    font-weight: 700;
}

.filial-colab-cargo {
    color: var(--text-light);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

/* Desktop: logo à esquerda, endereço e links à direita */
@media (min-width: 769px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .footer-info {
        align-items: flex-end;
        text-align: right;
    }
    #footer-social-links {
        justify-content: flex-end;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 500;
}   

.footer-bottom a:hover {
    color: var(--accent-color);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 16px;
    }

    .header-search {
        order: 10;
        max-width: 100%;
        flex-basis: 100%;
    }

    .header-actions span {
        display: none;
    }

    .header-action-link {
        padding: 6px;
    }

    .header-action-link i {
        font-size: 1.15rem;
    }

    #header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: var(--shadow);
        z-index: 999;
    }

    #header-nav.active {
        display: block;
    }

    #header-nav .container > ul {
        flex-direction: column;
        padding: 12px 20px;
        gap: 0;
    }

    #header-nav ul li a {
        padding: 12px 16px;
        border-radius: 8px;
    }

    .menu-toggle {
        display: flex;
    }

    #anuncios-bar {
        margin-top: 106px;
    }

    .hero-section {
        margin-top: 106px;
        padding: 60px 20px 120px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 2rem;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state p {
    font-size: 1.2rem;
}

/* Seção de Banners (slider principal antigo) */
.banners-section {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.banners-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BANNERS PROMOCIONAIS (full-width, full-height) ===== */
#banners-promocionais.banners-section {
    position: relative;
    width: 100vw;                 /* ocupa toda a largura da viewport */
    margin: 0;                    /* remove margens externas */
    padding: 0;
    min-height: 100vh;            /* ocupa 100% da altura da tela */
    background: #000;             /* fundo neutro para evitar bordas brancas */
    left: 50%;
    right: 50%;
    margin-left: -50vw;           /* quebra o limite do container (full-bleed) */
}

#banners-promocionais #banners-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    height: 100%;
}

#banners-promocionais .banner-item {
    width: 100%;
    height: 100vh;                /* cada banner ocupa a tela inteira */
}

#banners-promocionais .banner-item a,
#banners-promocionais .banner-item picture,
#banners-promocionais .banner-item img {
    display: block;
    width: 100%;
    height: 100%;
}

#banners-promocionais .banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* preenche toda a área, pode cortar um pouco */
}

/* Banners também dentro da seção de promoções */
.promocoes-section {
    padding: 40px 0;
}

.promocoes-banners {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.promocoes-banners .banner-item {
    width: 100%;
    text-align: center;
}

.promocoes-banners .banner-item a,
.promocoes-banners .banner-item picture,
.promocoes-banners .banner-item img {
    display: block;
    width: 100%;
}

.promocoes-banners .banner-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.banners-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px; /* Altura mínima para evitar layout shift */
}

.banner-slide {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: none; /* Oculta todos os slides por padrão */
}

/* Mostra apenas o primeiro slide inicialmente */
.banner-slide:first-child {
    display: block;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.banner-slide:hover .banner-image {
    transform: scale(1.05);
}

.banners-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.banner-prev,
.banner-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.banner-prev:hover,
.banner-next:hover {
    background: white;
    transform: scale(1.1);
}

.banner-prev {
    margin-left: 20px;
}

.banner-next {
    margin-right: 20px;
}

.banners-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active,
.banner-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Responsividade dos Banners */
@media (max-width: 768px) {
    .banners-section {
        padding: 80px 0 40px;
    }

    .banner-slide {
        height: 300px;
        display: none; /* Mantém oculto por padrão */
    }
    
    /* Mostra apenas o primeiro slide em mobile também */
    .banner-slide:first-child {
        display: block;
    }

    .banner-prev,
    .banner-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .banner-prev {
        margin-left: 10px;
    }

    .banner-next {
        margin-right: 10px;
    }
}

/* Estilos para o CRUD de Banners */
.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    min-height: 600px;
}

.banner-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

.banner-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px) scale(1.02);
    border-color: #667eea;
}

.banner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.banner-card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.banner-card-header h4 {
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-card-header h4::before {
    content: '🎯';
    font-size: 1.2rem;
}

.banner-id {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.banner-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.banner-preview-desktop,
.banner-preview-mobile {
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.banner-preview-desktop:hover,
.banner-preview-mobile:hover {
    border-color: #667eea;
    background: #f1f5f9;
    transform: translateY(-2px);
}

.banner-preview h5 {
    color: #374151;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.banner-preview h5::before {
    content: '💻';
    font-size: 1rem;
}

.banner-preview-mobile h5::before {
    content: '📱';
}

.banner-image-container {
    width: 100%;
    height: 140px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: all 0.3s ease;
    position: relative;
}

.banner-image-container:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.banner-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.banner-preview-img:hover {
    transform: scale(1.05);
}

.banner-placeholder {
    color: #64748b;
    font-style: italic;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-placeholder::before {
    content: '📷';
    font-size: 1.2rem;
}

.banner-upload-input {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.banner-upload-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-upload {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.banner-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 20px;
}

.banner-actions button {
    flex: 1;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.banner-actions .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.banner-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.banner-actions .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.banner-actions .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.banner-actions .btn-danger:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsividade do CRUD de Banners */
@media (max-width: 1200px) {
    .banners-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .banners-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        padding: 15px;
        min-height: auto;
    }

    .banner-preview {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .banner-actions {
        flex-direction: column;
    }

    .banner-actions button {
        width: 100%;
    }

    .banner-card {
        padding: 20px;
    }

    .banner-card-header h4 {
        font-size: 1.2rem;
    }

    .banner-image-container {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .banners-grid {
        padding: 10px;
    }

    .banner-card {
        padding: 15px;
    }

    .banner-card-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .banner-id {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Estilos para Anúncios */
.anuncios-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.anuncio-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.anuncio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 16px 16px 0 0;
}

.anuncio-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px) scale(1.01);
    border-color: #10b981;
}

.anuncio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.anuncio-card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 1px;
}

.anuncio-card-header h4 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.anuncio-card-header h4::before {
    content: '📢';
    font-size: 1rem;
}

.anuncio-id {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.anuncio-form {
    margin-bottom: 20px;
}

.anuncio-form .form-group {
    margin-bottom: 0;
}

.anuncio-form label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.anuncio-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.anuncio-form input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.anuncio-form small {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.anuncio-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.anuncio-actions button {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Status Badge */
.anuncio-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

.anuncio-status-badge.status-publicado {
    background-color: #10b981;
    color: white;
}

.anuncio-status-badge.status-nao-publicado {
    background-color: #6b7280;
    color: white;
}

/* Alerta de Alterações */
.anuncio-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.anuncio-alert.alert-warning {
    background-color: #fef3c7;
    border: 2px solid #f59e0b;
    color: #92400e;
}

.anuncio-alert.alert-warning strong {
    color: #78350f;
    display: block;
    margin-bottom: 8px;
}

.anuncio-alert.alert-warning ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.anuncio-alert.alert-warning li {
    margin: 4px 0;
}

.anuncio-alert.alert-warning small {
    display: block;
    margin-top: 8px;
    font-style: italic;
    color: #78350f;
}

.anuncio-actions .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.anuncio-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.anuncio-actions .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.anuncio-actions .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.anuncio-actions .btn-danger:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.anuncio-actions .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.anuncio-actions .btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.anuncio-actions .btn-success:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.anuncio-actions .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.anuncio-actions .btn-warning:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.anuncio-actions .btn-warning:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.anuncio-actions .btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.anuncio-actions .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Responsividade dos Anúncios */
@media (max-width: 768px) {
    .anuncios-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .anuncio-card {
        padding: 20px;
    }

    .anuncio-card-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .anuncio-actions {
        flex-direction: column;
    }

    .anuncio-actions button {
        width: 100%;
    }
}

/* =========================================
   Correção Full Width para Banners
   ========================================= */

/* 1. Garante que a seção de banners ocupe 100% da largura */
#banners.banners-section {
    padding: 0 !important;
    /* Remove padding lateral que causa margem */
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: #000;
    /* Fundo de segurança caso a imagem não preencha */
}

/* 2. Sobrescreve o max-width: 1200px da classe .container (se ela estiver dentro) */
#banners.banners-section .container,
#banners.banners-section .banners-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    /* Remove padding lateral do container */
    margin: 0 !important;
}

/* 3. Garante que os elementos internos ocupem o espaço total */
.banners-slider,
.banner-slide {
    width: 100%;
    height: auto;
    border-radius: 0 !important;
}

/* Garantir que apenas o primeiro slide seja visível em mobile */
.banner-slide {
    display: none;
}

.banner-slide:first-child {
    display: block;
}

/* 4. Estiliza a imagem */
.banner-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    /* Altura mínima para mobile */
    max-height: 600px;
    /* Altura máxima para desktop */
    object-fit: contain;
    display: block;
}

/* 5. Ajuste dos controles (setas e dots) para telas grandes e pequenas */
.banners-controls {
    width: 100%;
    padding: 0 20px;
    /* Mantém um pequeno respiro nas setas */
    pointer-events: none;
}

.banner-prev,
.banner-next {
    pointer-events: auto;
    /* Reabilita clique nos botões */
}

/* No seu style.css */
.banner-image {
    width: 100%;

    min-height: 200px;
    /* Mantém uma altura mínima razoável para mobile */
    /* REMOVA a linha max-height: 600px; se ela existir */
    /* REMOVA a linha max-height: 50vw; se ela existir */
    object-fit: cover;
    display: block;
}

/* =================================================================================*/
/*           QUEM SOMOS                                                             */
/*==================================================================================*/

/* ========================================= */
/* Fundo Global da Página (Mostarda Claro)   */
/* ========================================= */
body {
    background-color: #fcf8e3; /* Mostarda bem claro */
}

/* ========================================= */
/* Seção Quem Somos                          */
/* ========================================= */
.quem-somos-section {
    padding: 60px 0;
    background-color: #ffffff; /* Fundo branco para contrastar */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Sombra sutil */
    margin-bottom: 40px; /* Espaçamento da próxima seção */
}

.quem-somos-content {
    display: flex;
    flex-direction: column; /* Padrão coluna para mobile */
    align-items: center;
    gap: 40px; /* Espaço entre texto e imagem */
}

.quem-somos-text {
    flex: 1; /* Ocupa espaço disponível */
    max-width: 600px;
    text-align: center; /* Centraliza texto em mobile */
}

.quem-somos-text h2 {
    color: var(--primary-color); /* Usando sua cor primária */
    font-size: 2.5em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.quem-somos-text h2::after {
    content: '';
    position: absolute;
    left: 50%; /* Centraliza o sublinhado */
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color); /* Sublinhado com cor secundária */
    border-radius: 2px;
}

.quem-somos-text p {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.quem-somos-image-container {
    flex: 1;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* Sombra mais pronunciada para a imagem */
}

.quem-somos-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.quem-somos-image:hover {
    transform: scale(1.03); /* Leve zoom ao passar o mouse */
}

/* Divisor Sombreado */
.quem-somos-section::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px; /* Posição abaixo da seção */
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), transparent);
    z-index: -1; /* Fica por trás */
}

/* Responsividade para Quem Somos */
@media (min-width: 768px) {
    .quem-somos-content {
        flex-direction: row; /* Linha para desktop */
        text-align: left; /* Alinha texto à esquerda */
    }

    .quem-somos-text h2::after {
        left: 0; /* Alinha sublinhado à esquerda */
        transform: translateX(0);
    }
}

/* ========================================= */
/* Seção Categorias (Novos Estilos)          */
/* ========================================= */
.categorias-section {
    padding: 40px 0;
    background-color: #fcf8e3; /* Mantém o fundo mostarda */
}

.categorias-slider {
    display: grid; /* Usaremos grid para melhor controle em telas maiores */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 3-4 cards por linha */
    gap: 20px;
    overflow-x: auto; /* Permite rolagem horizontal em mobile */
    scroll-snap-type: x mandatory; /* Efeito de snap para carrossel mobile */
    -webkit-overflow-scrolling: touch; /* Melhora a rolagem em iOS */
    padding-bottom: 15px; /* Para sombra de scroll */
    justify-content: center; /* Centraliza itens em grid */
}

/* Esconde a scrollbar em navegadores */
.categorias-slider::-webkit-scrollbar {
    display: none;
}
.categorias-slider {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.categoria-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start; /* Alinhamento para scroll-snap */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    text-align: center;
}

.categoria-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.categoria-image-container {
    width: 120px; /* Aumenta o tamanho da imagem */
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid var(--secondary-color); /* Borda em volta da imagem */
    flex-shrink: 0; /* Impede que a imagem encolha */
}

.categoria-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.categoria-card:hover .categoria-image {
    transform: scale(1.08); /* Leve zoom na imagem ao passar o mouse */
}

.categoria-card h3 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.categoria-card p {
    font-size: 0.9em;
    color: var(--text-light);
}

/* Animação Carrossel em Hover (apenas para desktop) */
@media (min-width: 769px) {
    .categorias-slider {
        display: flex; /* Volta para flexbox para o carrossel em hover */
        overflow-x: hidden; /* Esconde a scrollbar */
        position: relative;
        padding-bottom: 0;
        scroll-snap-type: none; /* Desativa snap em desktop */
    }

    /* Track interno para animação de carrossel */
    .categorias-slider .categorias-track {
        display: flex;
        animation: scroll-categorias-hover 30s linear infinite; /* Animação de rolagem lenta */
        animation-play-state: paused; /* Inicia pausada */
        width: fit-content; /* Se ajusta ao conteúdo */
    }
    
    .categorias-slider:hover .categorias-track {
        animation-play-state: running; /* Inicia ao passar o mouse */
    }

    .categorias-slider .categoria-card {
        flex-shrink: 0; /* Impede encolhimento */
        margin-right: 20px; /* Espaço entre os cards */
    }
    
    /* Duplica os itens para a rolagem infinita em hover */
    .categorias-slider .categorias-track::after {
        content: attr(data-cloned-content); /* Conteúdo clonado para rolagem */
        display: flex;
        visibility: hidden; /* Esconde o conteúdo original do after */
        height: 0; /* Para não ocupar espaço */
        overflow: hidden; /* Esconde qualquer overflow */
    }
    /* O JS será responsável por clonar e inserir os cards no .categorias-track */

    @keyframes scroll-categorias-hover {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50%)); } /* Rola metade do conteúdo total (original + clone) */
    }
}


/* ========================================= */
/* Seção Baixe Nosso App                     */
/* ========================================= */
.app-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Degradê vibrante */
    color: #ffffff;
    text-align: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.app-section h2 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.app-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.app-buttons {
    display: flex;
    flex-direction: column; /* Coluna para mobile */
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.app-buttons a {
    display: block; /* Para que a imagem ocupe o espaço do link */
    width: 200px; /* Largura das imagens do botão */
    transition: transform 0.2s ease-in-out;
}

.app-buttons a:hover {
    transform: translateY(-5px);
}

.app-buttons img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Cantos arredondados nas imagens */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .app-buttons {
        flex-direction: row; /* Linha para desktop */
    }
}

/* ================================================= */
        /* == ESTILOS PARA QUEM SOMOS (PARALLAX + SOMBRA) == */
        /* ================================================= */

        /* Container da seção com efeito Parallax */
        #quem-somos {
            /* Imagem de fundo e Parallax */
            background-image: url("/assets/img/supermercado-mderno.png");
            background-attachment: fixed; /* Efeito Parallax */
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            padding: 80px 0; /* Espaçamento padrão */
            position: relative;
        }

        /* Aplica o sombreamento suspenso e limita o tamanho do card */
        #quem-somos-card {
            background-color: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* Sombra suspensa */
            max-width: 600px;
            margin: 0 auto; /* Centraliza o card */
            text-align: center;
            position: relative; /* Para garantir que esteja acima do Parallax */
        }
        
        /* Redimensionamento da Logo (importada do Firestore) */
        #quem-somos-logo {
            max-width: 150px; /* Limita o tamanho da logo */
            height: auto;
            margin-bottom: 20px;
        }

        /* ================================================= */
        /* === PROMOÇÕES: LINHAS POR DEPARTAMENTO === */
        /* ================================================= */

        /* Container das linhas (cada departamento) – block para empilhar as linhas verticalmente */
        #promocoes-track {
            display: block;
            width: 100%;
        }

        #promocoes .categoria-row {
            display: block;
            width: 100%;
            margin-bottom: 40px;
        }

        #promocoes .categoria-row:last-child {
            margin-bottom: 0;
        }

        #promocoes .categoria-row h3 {
            margin: 0 0 12px;
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--text-color, #1a1a1a);
        }

        #promocoes .produtos-row {
    overflow-x: auto;
    overflow-y: hidden;
            width: 100%;
            padding: 10px 0;
    scroll-behavior: smooth;
    cursor: grab;
    touch-action: pan-y; /* Permite scroll vertical na página durante swipe */
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
        }

#promocoes .produtos-row::-webkit-scrollbar {
    display: none;
}

#promocoes .produtos-row.dragging {
    cursor: grabbing;
    user-select: none;
}

        /* Apenas o track interno (dentro de .produtos-row) é flex e animado – não o #promocoes-track */
        #promocoes .produtos-row .produtos-track {
            display: flex;
            gap: 12px;
            width: max-content;
            animation: scrollProdutos 30s linear infinite;
            will-change: transform;
        }

        #promocoes .produtos-row:hover .produtos-track {
            animation-play-state: paused;
        }

        @keyframes scrollProdutos {
            0%   { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        #promocoes .produto-card {
            flex: 0 0 240px;
            transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
            cursor: pointer;
        }

        #promocoes .produto-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }

        /* Estilos para botão Adicionar ao Carrinho */


/* Preço com promoção */
.produto-preco-original {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 5px 0;
}

.produto-preco-promocao {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin: 5px 0;
}

/* Animação para feedback do carrinho */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}



/* Promoções: cards por linha (layout uniforme) */
#promocoes .produto-card.produto-card-promocao {
    display: flex;
    flex-direction: column;
    width: 240px;
    min-height: 320px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ===== Scroll horizontal por drag (todas as .produtos-row) ===== */
.produtos-row {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    cursor: grab;
    touch-action: pan-y; /* Evita travar o scroll vertical no mobile */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.produtos-row::-webkit-scrollbar {
    display: none;
}

.produtos-row.dragging {
    cursor: grabbing;
    user-select: none;
}

#promocoes .produto-card.produto-card-promocao img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f5f5f5;
}

#promocoes .produto-card .produto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

#promocoes .container {
    overflow: visible;
}

@media (max-width: 768px) {
    #promocoes .produtos-row {
        padding: 8px 0;
    }

    #promocoes .produtos-row .produtos-track {
        gap: 10px;
    }

    #promocoes .produto-card,
    #promocoes .produto-card.produto-card-promocao {
        flex: 0 0 200px;
        width: 200px;
        min-height: 280px;
    }

    #promocoes .produto-card.produto-card-promocao img {
        height: 140px;
    }

    #promocoes .categoria-row {
        margin-bottom: 32px;
    }

    #promocoes .categoria-row h3 {
        font-size: 1.2rem;
    }
}

/* ========================================= */
/* Seção Produtos (linhas por categoria, carrossel infinito) */
/* ========================================= */
#produtos-linhas {
    display: block;
    width: 100%;
}

#produtos .categoria-row {
    display: block;
    width: 100%;
    margin-bottom: 40px;
}

#produtos .categoria-row:last-child {
    margin-bottom: 0;
}

#produtos .categoria-row h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color, #1a1a1a);
}

#produtos .produtos-row {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding: 10px 0;
    scroll-behavior: smooth;
    cursor: grab;
    touch-action: pan-y; /* Permite scroll vertical na página durante swipe */
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
}

#produtos .produtos-row::-webkit-scrollbar {
    display: none;
}

#produtos .produtos-row.dragging {
    cursor: grabbing;
    user-select: none;
}

#produtos .produtos-row .produtos-track {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: max-content;
    animation: scrollProdutos 30s linear infinite;
    will-change: transform;
}

#produtos .produtos-row:hover .produtos-track {
    animation-play-state: paused;
}

/* Cards de produtos (grid da página de produtos + seção produtos da home) */
#produtos .produto-card,
#produtos .produto-card-unificado {
    flex: 0 0 260px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

#produtos .produto-card:hover,
#produtos .produto-card-unificado:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

#produtos .produto-card.produto-card-promocao,
#produtos .produto-card.produto-card-home,
#produtos .produto-card-unificado {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 260px;
    min-height: 320px;
    height: auto;
    align-self: stretch;
    padding: 16px;
    border-radius: 12px;
    overflow: visible;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#produtos .produto-card-unificado .produto-card-image-wrap,
#produtos .produto-card-unificado .produto-imagem {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

#produtos .produto-card-unificado .produto-card-image-wrap img,
#produtos .produto-card-unificado .produto-imagem img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

#produtos .produto-card-unificado .produto-card-body,
#produtos .produto-card-unificado .produto-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    min-height: 0;
    padding: 0;
    height: auto;
    max-height: none;
}

#produtos .produto-card-unificado .produto-card-title,
#produtos .produto-card-unificado .produto-nome,
#produtos .produto-card-unificado .produto-info h3.produto-nome {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    height: auto;
    max-height: none;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
}

#produtos .produto-card-unificado .produto-card-brand {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0 0 8px;
}

#produtos .produto-card-unificado .produto-card-prices,
#produtos .produto-card-unificado .produto-precos {
    margin: 4px 0 6px;
}

#produtos .produto-card-unificado .preco-de,
#produtos .produto-card-unificado .price-old {
    font-size: 0.8rem;
    color: #888888;
}

#produtos .produto-card-unificado .preco-de.strikethrough,
#produtos .produto-card-unificado .price-old.strikethrough {
    text-decoration: line-through;
}

#produtos .produto-card-unificado .preco-atual,
#produtos .produto-card-unificado .price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e53935;
}

#produtos .produto-card-unificado .produto-unidade {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

#produtos .produto-card-unificado .btn-add-cart {
    margin-top: auto;
}

#produtos .produto-card-unificado .btn-whatsapp-card {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #22c55e;
    background: #22c55e;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#produtos .produto-card-unificado .btn-whatsapp-card:hover {
    background: #16a34a;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
}

#produtos .produto-card-unificado .tag-oferta,
#produtos .produto-card-unificado .badge-offer {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff3b30;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    #produtos .produtos-row {
        padding: 8px 0;
    }

    #produtos .produtos-row .produtos-track {
        gap: 10px;
    }

    #produtos .produto-card,
    #produtos .produto-card.produto-card-promocao,
    #produtos .produto-card.produto-card-home,
    #produtos .produto-card-unificado {
        flex: 0 0 220px;
        width: 220px;
        min-height: 300px;
    }

    #produtos .produto-card.produto-card-promocao img,
    #produtos .produto-card.produto-card-home img,
    #produtos .produto-card-unificado .produto-card-image-wrap,
    #produtos .produto-card-unificado .produto-imagem {
        height: 140px;
    }

    #produtos .categoria-row {
        margin-bottom: 32px;
    }

    #produtos .categoria-row h3 {
        font-size: 1.2rem;
    }
}

/* ========================================= */
/* SLIDER DE BANNERS PROMOCIONAIS - 100% LARGURA */
/* Imagens Desktop: 1200x400 (3:1)               */
/* Imagens Mobile:  800x1000 (4:5)                */
/* ========================================= */
.banners-promo-section {
    width: 100%;
    padding: 0;
    margin: 0;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.banners-promo-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.banner-slider-produtos {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    background: #f0f0f0;
}

#banner-promo-slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.banner-slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

.banner-slide-item picture {
    width: 100%;
    height: 100%;
    display: block;
}

.banner-slide-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.banner-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-nav-btn.banner-prev {
    left: 20px;
}

.banner-nav-btn.banner-next {
    right: 20px;
}

#banner-promo-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

#banner-promo-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

#banner-promo-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
    border-color: var(--primary-color, #0004ff);
}

@media (max-width: 768px) {
    .banner-slider-produtos {
        aspect-ratio: 4 / 5;
    }

    .banner-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .banner-nav-btn.banner-prev { left: 10px; }
    .banner-nav-btn.banner-next { right: 10px; }

    #banner-promo-dots .dot {
        width: 10px;
        height: 10px;
    }
}

/* ========================================= */
/* BOTÃO "ADICIONAR" NOS CARDS DE PRODUTO    */
/* ========================================= */
.btn-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    margin-top: 8px;
    width: 100%;
}

.btn-add-cart:hover {
    filter: brightness(0.88);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-add-cart:active {
    transform: translateY(0);
}

.btn-add-cart-lg {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 10px;
    width: auto;
}

/* Modal actions */
.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.modal-actions .btn-whatsapp {
    flex: 1;
    min-width: 180px;
}

.modal-actions .btn-add-cart-lg {
    flex: 1;
    min-width: 180px;
}

/* ========================================= */
/* TOAST DE FEEDBACK                         */
/* ========================================= */
.toast-container {
    position: fixed;
    top: 130px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: #1f2937;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.35s ease forwards;
    max-width: 340px;
}

.toast.toast-success {
    background: #16a34a;
}

.toast.toast-error {
    background: #dc2626;
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

.toast i {
    font-size: 1.1rem;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(60px); }
}

/* ========================================= */
/* SEÇÕES — TIPOGRAFIA PROFISSIONAL          */
/* ========================================= */
.produtos-section .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    display: inline-block;
}

.produtos-section .section-title i {
    color: var(--primary-color);
    margin-right: 8px;
}

#produtos .categoria-row h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* Preço nos cards — destaque */
#produtos .produto-card-unificado .preco-atual,
#produtos .produto-card-unificado .price-current {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color, #e53935);
}

#produtos .produto-card-unificado .produto-nome {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-color);
}

/* ========================================= */
/* PRODUTO CARD — REMOVER WHATSAPP E AJUSTAR */
/* ========================================= */
#produtos .produto-card-unificado .btn-whatsapp-card {
    display: none !important;
}

/* Seção de busca na home — removida da home (busca agora está no header) */
.home-search-section {
    display: none;
}

/* Fix hero sem anúncios */
.hero-section:first-of-type {
    margin-top: 116px;
}

/* Banner promo seção oculta se vazio */
.banners-promo-section:empty {
    display: none;
}

/* ========================================= */
/* MODAL PEDIDOS — SCROLL MAIS BONITO      */
/* ========================================= */
#modal-pedido-overlay ::-webkit-scrollbar {
    width: 6px;
}

#modal-pedido-overlay ::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
