/* ----------------------
   BUTTON FILTRARE MOBIL
------------------------ */
#mm-mobile-filter-btn {
    display: none;
    padding: 10px 14px;
    background: #0072ff;
    color: #fff;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    white-space: nowrap;
}

@media(max-width:768px){
    #mm-mobile-filter-btn {
        display: inline-block;
    }
}

/* ---------------
   DRAWER MOBIL
---------------- */

#mm-filter-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 9999;
}

#mm-filter-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    box-shadow: -2px 0 12px rgba(0,0,0,0.25);
    transition: right .35s ease;
    display: flex;
    flex-direction: column;
}

#mm-filter-drawer.open {
    right: 0;
}

#mm-filter-drawer-header {
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

#mm-filter-drawer-close {
    font-size: 24px;
    cursor: pointer;
}

#mm-filter-drawer-content {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
}

/* --------------------------------------------------
   ASCUNDEM DOAR SIDEBAR-UL ORIGINAL PE MOBIL
   fără să afectăm sidebar-ul CLONAT DIN DRAWER
---------------------------------------------------- */

@media(max-width:768px){

    /* ASCUNDEM DOAR sidebar-ul ORIGINAL, NU ȘI CLONA */
    body:not(.mm-drawer-open) .bde-woo-shop-filters {
        display: none !important;
    }

    /* CLONA rămâne 100% vizibilă în drawer */
    #mm-filter-drawer-content .bde-woo-shop-filters {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        height: auto !important;
        width: 100% !important;
        pointer-events: auto !important;
    }
}
