:root {
    --primary-color: #14498d;
    --secondary-color: #4caf50;
    --danger-color: #dc3545;
    --text-dark: #343a40;
    --text-light: #f8f9fa;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --whatsapp-color: #25D366;
    --title-color: #2b2b2b; /* Nova cor padrão para títulos */
    --background-hero: #ffffff; /* Cor de fundo do hero section */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0;
    overflow-x: hidden;
    padding-top: 56px; /* Altura do menu para evitar que o conteúdo fique escondido */
}

/* Scroll suave para as âncoras */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Compensa o header fixo */
}

html {
    scroll-behavior: smooth;
}

.navbar {
    background-color: #ffffff; /* Cor de fundo branca do menu */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1030;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, transparent 100%);
}

/* Efeito de hover nos links de navegação - apenas cor */
.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

/* Menu desktop posicionado à esquerda após a logo */
.navbar-nav {
    margin-left: 0;
}

.navbar-nav .nav-link:hover {
    color: #df5910 !important;
}

#navbar-cart-button {
    color: var(--text-dark);
    background: none;
    border: none;
}

#navbar-cart-button .badge-cart {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.7em;
    padding: 0.25em 0.5em;
}

.search-container {
    position: relative;
    margin-right: 10px;
}



#search-products,
#search-products-desktop,
#search-products-mobile {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    height: 40px;
    border-radius: 20px !important;
    box-sizing: border-box;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
}

#search-products:focus,
#search-products-desktop:focus,
#search-products-mobile:focus {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}

#search-products:focus + .search-icon,
#search-products-desktop:focus + .search-icon,
#search-products-mobile:focus + .search-icon {
    color: var(--text-dark);
}

#search-products::placeholder,
#search-products-desktop::placeholder,
#search-products-mobile::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
    .search-container.d-lg-none {
        width: auto;
        margin-bottom: 0;
        flex: 1;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    #search-products,
    #search-products-mobile {
        width: 100%;
        min-width: auto !important;
    }
    
    /* Header mobile simplificado */
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    /* Logo e pesquisa centralizados */
    .navbar-brand {
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    /* Mobile muito pequeno - ajusta tamanhos */
    .search-container.d-lg-none {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    #search-products,
    #search-products-mobile {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem 0.4rem 2.5rem;
    }
    
    .navbar-brand img {
        height: 32px;
        width: 96px;
    }
    
    .navbar {
        padding: 0.4rem 0.8rem;
    }
    
    /* Garantir que os resultados da pesquisa sejam visíveis no mobile */
    .search-results {
        z-index: 99999 !important;
        position: fixed !important;
        top: 60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90vw !important;
        max-width: 350px !important;
        margin-top: 5px !important;
        background: var(--background-white) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 4px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Classe específica para resultados mobile */
    .search-results-mobile {
        z-index: 999999 !important;
        position: fixed !important;
        top: 70px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 95vw !important;
        max-width: 400px !important;
        margin-top: 10px !important;
        background: var(--background-white) !important;
        border: 2px solid var(--primary-color) !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    }
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-white);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.search-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 12px;
}

.search-item-details {
    flex: 1;
    margin-right: 12px;
}

.search-item-cart {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.search-item:hover .search-item-cart {
    transform: scale(1.1);
    background-color: #3d8b40;
}

/* Removido os pseudo-elementos ::before e ::after que estavam causando conflito */

.search-item-details {
    flex: 1;
}

.search-item-name {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.search-item-price {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.search-item-description {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    line-height: 1.2;
}

.search-container {
    position: relative;
}

#hero-section {
    position: relative;
    padding: 2rem 0 1rem 0; /* Padding muito reduzido */
    color: var(--text-light);
    text-align: center;
    min-height: 50vh; /* Altura drasticamente reduzida */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ondas SVG sobrepostas */
.hero-waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(120px, 22vw, 260px);
    pointer-events: none;
    z-index: 1;
}

.hero-waves .wave {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.hero-waves .wave path {
    fill: #df5910; /* camada base */
    opacity: .8;
}

.hero-waves .wave-2 path { fill: #e86a1a; opacity: .9; }
.hero-waves .wave-3 path { fill: #f17a24; opacity: 1; }

.wave-1 { animation: waveSlide1 18s linear infinite; }
.wave-2 { animation: waveSlide2 14s linear infinite reverse; }
.wave-3 { animation: waveSlide3 10s linear infinite; }

@keyframes waveSlide1 { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes waveSlide2 { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }
@keyframes waveSlide3 { 0% { transform: translateX(0); } 100% { transform: translateX(-25%); } }

/* Remove animação de pan do fundo para manter o degradê estático como no exemplo */

@keyframes heroWaveFloat { 0% { transform: translateY(0); } 100% { transform: translateY(8px); } }

/* Respeita usuários com preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
    #hero-section { animation: none; }
    .wave-1, .wave-2, .wave-3 { animation: none; }
}

#hero-section .container {
    position: relative;
    z-index: 2;
}

#hero-section h1,
#hero-section .lead {
    color: var(--text-light);
}

#hero-section img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

#hero-section .d-flex {
    justify-content: center; /* Centraliza os botões */
}

/* Contatos no herói */
.hero-contacts {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.hero-contacts .contact-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    font-weight: 800;
    font-size: 2.2rem;
    text-decoration: none;
}

.hero-contacts .contact-link i { font-size: 1.2rem; }

.hero-contacts .contact-link:hover {
    opacity: .9;
}

/* Ícones com fundo redondo branco e cor do serviço */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #14498d; /* default */
}
.icon-badge + span { margin-left: 6px; }

.icon-whats { color: #25D366; }
.icon-phone { color: #14498d; }

/* Botões de contato no herói */
.hero-contact-buttons { justify-content: center; }
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.8rem;
}
.btn-contact .icon-badge {
    width: 40px;
    height: 40px;
}

/* Override Bootstrap's btn-success with our secondary color */
.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background-color: #3d8b40;
    border-color: #3d8b40;
    color: white;
}

/* Buttons - apenas manter o btn-orange customizado */
.btn-orange {
    background-color: #1b5c9c;
    border-color: #1b5c9c;
    color: white;
}

.btn-orange:hover {
    background-color: #1a5490;
    border-color: #1a5490;
    color: white;
}

.section-title {
    color: var(--title-color);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #1b5c9c;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Product Carousel */
#productCarousel {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    margin: 0;
}

.carousel-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(108, 117, 125, 0.7); /* Changed to Bootstrap's gray */
    color: white;
    border: none;
    border-radius: 50%;
    z-index: 1000; /* Increased z-index to be higher than cards */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.carousel-nav-button:hover {
    background-color: rgba(73, 80, 87, 0.9); /* Darker gray on hover */
}

.carousel-nav-button.prev { left: 10px; }
.carousel-nav-button.next { right: 10px; }

#productCarousel .carousel-inner {
    display: flex;
    gap: 20px;
    overflow: hidden; /* evita scroll horizontal; animação via transform */
    padding: 20px 0;
    margin: 0;
}

#productCarousel .carousel-inner::-webkit-scrollbar { display: none; }

#productCarousel .carousel-inner.no-transition {
    transition: none;
}

#productCarousel .card {
    flex: 0 0 280px;
    height: auto;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    background-color: var(--background-white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block; /* Remover visibility */
    position: relative; /* para o selo de desconto */
}

/* Responsividade do carrossel para mobile */
@media (max-width: 768px) {
    #productCarousel {
        padding: 0 10px;
    }
    
    #productCarousel .carousel-inner {
        padding: 30px 0;
        gap: 15px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; /* Melhora scroll no iOS */
    }
    
    #productCarousel .card {
        flex: 0 0 85vw;
        max-width: 320px;
        scroll-snap-align: center;
        margin: 0 auto;
        transform: scale(0.95); /* Cards ligeiramente menores para melhor visualização */
        transition: transform 0.3s ease;
    }
    
    #productCarousel .card:hover {
        transform: scale(1); /* Cards voltam ao tamanho normal no hover */
    }
    

    
    .carousel-nav-button {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .carousel-nav-button.prev { left: 5px; }
    .carousel-nav-button.next { right: 5px; }
    
    /* Efeito de destaque ao passar o mouse - produtos ficam maiores */
    #productCarousel .card:hover {
        transform: scale(1.15) !important; /* Produto fica 15% maior no hover */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
        z-index: 1000; /* Garante que fique acima dos outros */
        transition: all 0.3s ease;
    }
    
    /* Remove a escala reduzida no hover para mobile */
    #productCarousel .card:hover {
        transform: scale(1.15) !important;
    }
    
    /* Correção para ícones circulares não ficarem ovais no mobile */
    .product-info-card .product-icon {
        width: 50px !important; /* Força largura fixa */
        height: 50px !important; /* Força altura fixa */
        min-width: 50px; /* Garante largura mínima */
        min-height: 50px; /* Garante altura mínima */
        max-width: 50px; /* Garante largura máxima */
        max-height: 50px; /* Garante altura máxima */
        border-radius: 50% !important; /* Força formato circular */
        flex-shrink: 0; /* Impede que o ícone encolha */
        flex-grow: 0; /* Impede que o ícone cresça */
    }
}

@media (max-width: 576px) {
    #productCarousel .card {
        flex: 0 0 90vw;
        max-width: 300px;
    }
    
    #productCarousel .carousel-inner {
        padding: 25px 0;
        gap: 10px;
    }
    
    /* Correção adicional para ícones em telas muito pequenas */
    .product-info-card .product-icon {
        width: 45px !important; /* Ligeiramente menor para telas pequenas */
        height: 45px !important;
        min-width: 45px;
        min-height: 45px;
        max-width: 45px;
        max-height: 45px;
    }
    
    .carousel-nav-button {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Ribbon de desconto */
.ribbon.ribbon-sale {
    position: absolute;
    top: 12px;
    left: -8px;
    background: linear-gradient(90deg, #df5910, #f17a24);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Ribbon de brinde */
.ribbon.ribbon-gift {
    position: absolute;
    top: 12px;
    left: -8px;
    background: linear-gradient(90deg, #28a745, #20c997);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Estilo para informações de brinde */
.gift-info {
    margin-bottom: 0.5rem;
}

.gift-info .text-info {
    color: #17a2b8 !important;
    font-weight: 500;
}

/* Estilos para os ícones dos serviços na seção QUEM SOMOS */
.services-highlight {
    margin: 2rem 0;
}

.services-highlight .product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.services-highlight .product-icon:hover {
    transform: scale(1.1);
}

.services-highlight .product-icon.gas-icon {
    background-color: #fe6402;
}

.services-highlight .product-icon.water-icon {
    background-color: #1b5c9c; /* Azul */
}

#productCarousel .card:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    z-index: 1000; /* Garante que fique acima dos outros elementos */
    transition: all 0.3s ease;
}

/* Container da imagem com overlay */
.image-container {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #fdfdfd;
    border-bottom: 1px solid #eee;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-disclaimer {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    font-size: 0.6rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#productCarousel .card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 0.75rem;
    background-color: transparent;
    position: relative;
    z-index: 0;
}

#productCarousel .card .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Preços com destaque de promoção */
.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}

.price .current {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745; /* Verde para destacar o preço com desconto */
}

.price .original {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: line-through;
    position: relative;
}

/* Adiciona um indicador visual do desconto */
.price .discount-badge {
    background-color: #dc3545;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: auto;
}

#productCarousel .card .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 2.6em;
    color: var(--title-color);
}

/* Destaque para palavras ENTREGA e RETIRADA */
.card-title .delivery-type {
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.card-title .delivery-type.entrega {
    background-color: #28a745;
    color: white;
}

.card-title .delivery-type.retirada {
    background-color: #dc3545;
    color: white;
}

#productCarousel .card .card-text {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

#productCarousel .btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

#productCarousel .btn-success:hover {
    background-color: #3d8b40;
    border-color: #3d8b40;
}

/* Botões de selecionar opções no carrossel devem ser azul */
#productCarousel .select-options-btn {
    background-color: #1b5c9c !important; /* Azul do rodapé */
    border-color: #1b5c9c !important;
    color: white !important;
}

#productCarousel .select-options-btn:hover {
    background-color: #1a5490 !important; /* Azul mais escuro no hover */
    border-color: #1a5490 !important;
    color: white !important;
}

/* Estilo para produtos apenas para retirada */
#productCarousel .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

#productCarousel .btn-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: none;
}

/* Cards de informação dos produtos */
.product-info-card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
    background-color: var(--background-white);
}

.product-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-info-card .product-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    /* Garantias para manter formato circular em todas as telas */
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
}

.product-info-card .product-icon.gas-icon {
    background-color: #fe6402;
}

.product-info-card .product-icon.water-icon {
    background-color: #1b5c9c; /* Azul */
}

.product-info-card h3 {
    color: var(--title-color);
    font-weight: 600;
    font-size: 1rem;
}

.product-info-card p {
    line-height: 1.5;
    font-size: 0.9rem;
    color: var(--text-dark);
}

#productCarousel .btn-secondary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.7;
}

/* Floating Action Button & Cart */
@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

#floating-action-button.pulse-animation,
#floating-cart-badge.pulse-animation {
    animation: cartPulse 0.5s ease-in-out;
}

#floating-action-button {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1050;
    transition: all 0.3s ease;
    text-decoration: none;
    /* Garante espaço suficiente para o badge */
    overflow: visible;
    /* Ajusta o posicionamento interno para acomodar o badge */
    padding: 0;
    /* Melhora a aparência visual */
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#floating-action-button:hover {
    transform: scale(1.08);
    background-color: #1da856;
}

/* Quando o carrinho está ativo, mantém o WhatsApp na posição original */
#floating-action-button.cart-active {
    background-color: #007bff;
}

#floating-action-button.cart-active:hover {
    background-color: #0056b3;
}

/* Novo botão do carrinho separado */
#floating-cart-button {
    position: fixed;
    bottom: 190px; /* Posicionado acima do telefone */
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #fe6402; /* Cor laranja */
    color: white;
    border-radius: 50%;
    display: none; /* Inicialmente oculto */
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1050;
    /* Melhora a aparência visual */
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: visible;
    padding: 0;
    border: none; /* Remove qualquer borda */
}

#floating-cart-button:hover {
    transform: scale(1.08);
    background-color: #e55a02; /* Laranja mais escuro no hover */
}

/* Botão flutuante de telefone */
#floating-phone-button {
    position: fixed;
    bottom: 110px; /* Posicionado acima do WhatsApp */
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #6BB6FF; /* Azul claro */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1050;
    transition: all 0.3s ease;
    text-decoration: none;
    /* Melhora a aparência visual */
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#floating-phone-button:hover {
    background-color: #5A9FE6; /* Azul um pouco mais escuro no hover */
    transform: scale(1.08);
}

#floating-cart-button.show {
    display: flex;
}

#floating-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color); /* Mantém vermelho para destaque */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid white;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1051;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Garante que o badge seja sempre visível e bem posicionado */
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* O badge sempre fica visível quando há itens no carrinho */
#floating-action-button.cart-active #floating-cart-badge {
    display: flex;
    /* Posiciona o badge no canto superior direito */
    top: -8px;
    right: -8px;
}

/* Ajusta o posicionamento do ícone quando há badge */
#floating-action-button.cart-active #floating-icon {
    /* Move o ícone ligeiramente para a esquerda para dar espaço ao badge */
    transform: translateX(-2px);
    transition: transform 0.3s ease;
}

#floating-action-button i {
    transition: opacity 0.3s ease;
}

/* Checkout Form */
#inline-checkout-section {
    background-color: var(--background-light);
    padding: 30px 0;
}

#inline-checkout-form {
    background-color: var(--background-white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

#inline-checkout-form h4 {
    color: var(--title-color);
}

#inline-cart-items-summary .cart-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

#inline-cart-items-summary .cart-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 4px;
}

#inline-cart-items-summary .item-details {
    flex-grow: 1;
}

.form-container {
    background-color: transparent;
    padding: 0;
    margin-top: 20px;
    border: none;
}

#change-for-group {
    display: none;
    margin-top: 0.5rem;
}

#change-for-group label {
    font-size: 0.9em;
}

#change-for-group input {
    max-width: 150px;
}

#finalize-inline-order-btn {
    /* manter apenas a estilização específica, deixar as cores do Bootstrap */
    min-width: 280px; 
    height: 50px;
}

/* Map */
#map-placeholder {
    height: 250px;
    width: 100%;
    border-radius: 8px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6c757d;
    border: 1px solid #ccc;
    margin-top: 15px;
    font-size: 0.9rem;
    position: relative;
}

#delivery-map {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
    z-index: 1;
}

.custom-cart-marker {
    background: none !important;
    border: none !important;
}

.custom-cart-marker i {
    font-size: 24px;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

/* Google Maps container da seção de mapa fixo */
#store-map {
    width: 100%;
    height: 100%;
}

/* Leaflet Map Controls */
.leaflet-control-container .leaflet-control {
    margin: 5px !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 8px;
}

.leaflet-popup-content {
    margin: 5px 10px;
    text-align: center;
    font-weight: 500;
}

.leaflet-touch .leaflet-control-container {
    display: none;
}

/* About & Contact Sections */
#about-section,
#contact-section {
    background-color: var(--background-white);
    padding: 40px 0;
}

#contact-section {
    background-color: var(--background-light);
}

#about-section img,
#contact-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Imagem da loja na seção Quem Somos - altura reduzida em 50% */
#about-section .loja-image {
    max-height: 50vh; /* 50% da altura da viewport */
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Footer */
footer {
    background-color: #1b5c9c !important;
    color: var(--text-light) !important;
    position: relative;
    overflow: hidden;
}

footer a,
footer a:hover,
footer a:focus,
footer a:visited {
    color: var(--text-light) !important;
    text-decoration: none !important;
}

footer .social-links a {
    text-decoration: none !important;
}

footer .social-links a:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

footer h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1.5rem; /* Aumenta espaçamento abaixo dos títulos */
    margin-top: 2rem; /* Aumenta espaçamento acima dos títulos */
}

/* Aumenta espaçamento dos links no rodapé */
footer ul.list-unstyled li {
    margin-bottom: 1rem; /* Espaçamento entre os itens da lista */
}

footer ul.list-unstyled li:last-child {
    margin-bottom: 0; /* Remove margem do último item */
}

/* Aumenta espaçamento dos endereços e horários */
footer address p {
    margin-bottom: 1rem; /* Espaçamento entre parágrafos do endereço */
}

footer p {
    margin-bottom: 1rem; /* Espaçamento geral dos parágrafos */
}

footer p:last-child {
    margin-bottom: 0; /* Remove margem do último parágrafo */
}

/* Logo Supergasbras no rodapé */
.supergasbras-logo-container {
    text-align: left;
    margin-top: 1.5rem;
}

/* Estilo para texto de preço personalizado */
.custom-price-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.supergasbras-logo {
    width: 180px;
    height: auto;
    opacity: 1;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1); /* Mantém apenas branca */
    margin-top: 1rem;
}

.supergasbras-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .supergasbras-logo {
        width: 140px;
    }
    
    .supergasbras-logo-container {
        text-align: center;
    }
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.animate-fade {
    animation: fadeIn 0.5s ease-in;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 15px auto;
}

/* Page Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#page-loader.fade-out {
    opacity: 0;
}

#page-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Form Validation */
.error-message {
    color: var(--danger-color);
    font-size: 0.8em;
    display: none;
    margin-top: .2rem;
}

.is-invalid {
    border-color: var(--danger-color) !important;
    background-image: none;
}

.form-control.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-check-input.is-invalid~.form-check-label {
    color: var(--danger-color);
}

.form-check-input.is-invalid {
    border-color: var(--danger-color);
}

.form-check.is-invalid .error-message,
.is-invalid+.error-message,
.input-group .is-invalid+.error-message {
    display: block;
}

#payment-method-group.is-invalid {
    border: 1px solid var(--danger-color);
    padding: 10px;
    border-radius: .25rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (min-width: 768px) {
    #inline-checkout-form {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    #hero-section {
        text-align: center;
    }

    #hero-section .text-center img {
        margin-top: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    #about-section,
    #contact-section,
    #inline-checkout-section {
        padding: 30px 0;
    }

    footer .col-md-4 {
        text-align: center;
        margin-bottom: 2rem; /* Aumenta espaçamento entre as colunas */
        padding: 0 1rem; /* Adiciona padding interno nas colunas */
    }

    footer .d-flex {
        justify-content: center;
    }
}

.google-reviews h4 {
    color: var(--title-color);
}

/* Diferenciais Section */
#diferenciais {
    background-color: var(--background-light);
    padding: 4rem 0;
}

/* Offset para âncoras por causa da navbar fixa */
#carousel-products {
    scroll-margin-top: 80px;
}

.diferencial-item {
    padding: 2rem 1rem;
    background-color: var(--background-white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.diferencial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.diferencial-item i {
    color: #1b5c9c; /* Azul */
}

.diferencial-item h5 {
    color: var(--title-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.diferencial-item p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Estilos para o mapa e região do CIC */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.map-container iframe:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsividade do mapa */
@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 350px;
    }
}

/* Melhorias no mapa de entrega */
#delivery-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-cart-marker {
    background: transparent;
    border: none;
}

.custom-cart-marker i {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Estilos para o placeholder do mapa */
#map-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #df5910;
}

#map-placeholder p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Animação para o mapa quando carrega */
#map-placeholder.loading {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Melhorias nos popups do mapa */
.leaflet-popup-content-wrapper {
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

.leaflet-popup-tip {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Estilos para botões nos popups */
.leaflet-popup-content a {
    transition: all 0.3s ease;
}

.leaflet-popup-content a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 100, 2, 0.3);
}






