/* Correções de Responsividade para BNB */

/* Botões do header responsivos */
#bt-busca {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

#bt-conta {
    width: 56px;
    height: 56px;
    min-width: 56px;
}

@media (min-width: 768px) {
    #bt-busca {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
    
    #bt-conta {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }
}

/* Gap responsivo para container de botões */
.order-lg-3 {
    gap: 10px !important;
}

@media (min-width: 768px) {
    .order-lg-3 {
        gap: 20px !important;
    }
}

/* Correção de imagens nos cards */
.component-card img {
    width: 100% !important;
    height: auto;
    object-fit: cover;
}

/* Menu mobile melhorado */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        z-index: 1050;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    .menuMobile .container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Cards responsivos */
@media (max-width: 767px) {
    .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .component-card {
        max-width: 100%;
    }
}

/* Ajuste de padding para telas pequenas */
@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand img {
        max-width: 120px;
        height: auto;
    }
}

/* Correção de overflow horizontal */
body {
    overflow-x: hidden;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

/* Melhorias de acessibilidade e responsividade */
@media (max-width: 991px) {
    .d-lg-none.d-xl-block {
        display: none !important;
    }
}

/* Ajuste de fonte para mobile */
@media (max-width: 575px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .component-heading {
        font-size: 1.5rem !important;
    }
}

/* Correção de botões em mobile */
@media (max-width: 575px) {
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-nm {
        font-size: 0.875rem;
    }
}

/* Ajuste de espaçamento vertical */
@media (max-width: 767px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Correção de grid para cards */
@media (min-width: 768px) and (max-width: 991px) {
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Ajuste de menu desktop */
@media (min-width: 992px) {
    .menuMobile {
        display: none !important;
    }
    
    .menuDesktop {
        display: block !important;
    }
}

/* Ajuste de alerta de privacidade */
.alerta_privacidade {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #fff;
}

@media (max-width: 767px) {
    .alerta_privacidade .row {
        flex-direction: column;
    }
    
    .alerta_privacidade .col {
        margin-top: 1rem;
    }
}

/* Correção de visibilidade do navbar toggler */
@media (max-width: 991px) {
    #navbarToggler:not(.show) {
        display: none;
    }
}
