/* Save this as filter-panel.css in your theme's css folder */

.woocommerce-ordering {
    display: flex;
    align-items: center;
}

.filter-icon-wrapper {
    margin-right: 15px;
}

.filter-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.filter-toggle-btn:hover {
    transform: scale(1.1);
}

.filter-panel {
    position: fixed;
    top: 0;
    right: -400px; /* Start off-screen */
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 999999;
    transition: right 0.3s ease-in-out;
    direction: rtl;
}

.filter-panel.active {
    right: 0;
}

.filter-panel-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-panel-header h3 {
    margin: 0;
}

.close-filter-panel {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

.filter-panel-content {
    padding: 20px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.filter-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.filter-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .filter-panel {
        width: 100%;
        right: -100%;
    }
}