/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* Filtros móviles - ocultos por defecto */
.mobile-product-filter {
    display: none;
}


/* Tablet y móvil */
@media (max-width: 999px) {

    .mobile-product-filter {
        display: block;
        margin-bottom: 25px;
    }

    /* Botón */
    .mobile-filter-button {
        display: block;
        width: 100%;
        padding: 12px 16px;
        cursor: pointer;
    }

    /* Fondo oscuro */
    .mobile-filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 9998;
    }

    /* Panel */
    .mobile-filter-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: 80vw;
        max-width: 420px;
        height: 100vh;
        margin: 0;
        padding: 0;
        background: #fff;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
    }

    /* Encabezado */
    .mobile-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid #ddd;
    }

    .mobile-filter-header strong {
        font-size: 20px;
    }

    .mobile-filter-close {
        border: 0;
        background: transparent;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        padding: 0;
    }

    /* Contenido */
    .mobile-filter-content {
        padding: 20px;
    }

    /* Quando aberto */
    body.mobile-filter-open {
        overflow: hidden;
    }

    body.mobile-filter-open .mobile-filter-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.mobile-filter-open .mobile-filter-drawer {
        transform: translateX(0);
    }
}


/* Desktop */
@media (min-width: 1000px) {

    .mobile-product-filter {
        display: none !important;
    }

}

@media (max-width: 999px) {
    .mobile-filter-drawer .bapf_head h3 {
        color: #444;
    }
}
