/* Fix para filtro mobile - loja-mosaic */

/* Estilos mobile para .left-box */
@media (max-width: 991px) {
    .shop-section .left-box {
        width: 300px;
        position: fixed;
        top: 0;
        left: -300px;
        height: 100vh;
        background: #fff;
        z-index: 1055;
        transition: left 0.3s ease;
        overflow-y: auto;
        border-right: 1px solid #ddd;
    }
    
    .shop-section .left-box.show {
        left: 0;
    }
    
    /* Overlay para fechar o filtro */
    .bg-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .bg-overlay.show {
        visibility: visible;
        opacity: 0.5;
    }
    
    /* Botão de voltar no filtro */
    .shop-section .left-box .back-button {
        padding: 15px;
        border-bottom: 1px solid #ddd;
        cursor: pointer;
    }
    
    .shop-section .left-box .back-button h3 {
        margin: 0;
        font-size: 16px;
        color: #333;
    }
    
    /* Ajustes para o conteúdo principal quando filtro está aberto */
    body.filter-open {
        overflow: hidden;
    }
}

/* Estilo para desktop - garantir que não afete */
@media (min-width: 992px) {
    .shop-section .left-box {
        position: sticky;
        top: 0;
        left: auto;
        height: auto;
        background: transparent;
        z-index: auto;
        border-right: 1px solid #ddd;
    }
    
    .bg-overlay {
        display: none;
    }
}
