/* RESET & WRAPPER */
#custom-shop-sidebar, #custom-shop-sidebar * {
    box-sizing: border-box;
}

.custom-sidebar-overlay {
    position: fixed;
    top: 0;
    right: -110%;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999999;
    transition: right 0.3s ease;
    visibility: hidden;
}

.custom-sidebar-overlay.active {
    right: 0 !important;
    visibility: visible !important;
}

.custom-sidebar-inner {
    position: absolute;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.sidebar-header-box {
    padding: 20px;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-title { font-weight: 800; font-size: 18px; color: #111; }
#close-custom-filter { background: none; border: none; font-size: 28px; line-height: 1; color: #000; cursor: pointer; }

/* BODY & SCROLL */
#modern-filter-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
}

.sidebar-scrollable-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.filter-block { margin-bottom: 30px; }
.filter-title { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #aaa; margin: 0 0 15px 0; letter-spacing: 1px; }

/* ROW ELEMENTS */
.custom-row { display: flex; align-items: center; margin-bottom: 12px; cursor: pointer; }
.custom-row input { display: none; }
.custom-indicator { width: 18px; height: 18px; border: 2px solid #ddd; border-radius: 50%; margin-right: 12px; transition: 0.2s; position: relative; flex-shrink: 0; }
.custom-indicator.checkbox { border-radius: 4px; }

.custom-row input:checked + .custom-indicator { background: #FD802E; border-color: #FD802E; }
.label-text { font-size: 14px; font-weight: 500; color: #333; }

/* PILLS */
.grid-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pill-option input { display: none; }
.pill-option span { border: 1.5px solid #eee; display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.pill-option input:checked + span { background: #111; color: #fff; border-color: #111; }

/* PRICE */
.dual-inputs { display: flex; gap: 10px; }
.dual-inputs input { width: 50%; padding: 10px; border: 1px solid #eee; border-radius: 6px; font-size: 14px; }

/* FOOTER */
.sidebar-footer-box {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #f2f2f2;
    flex-shrink: 0;
}

.apply-full-btn {
    width: 100%;
    background: #FD802E;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.clear-all-link { display: block; text-align: center; margin-top: 12px; color: #999; font-size: 13px; text-decoration: none; }

/* FLOATING BTN */
@media (max-width: 1024px) {
    .filter-floating-btn {
        display: flex !important;
        position: fixed !important;
        bottom: 25px !important;
        left: 20px !important;
        z-index: 99999;
        background: #111;
        color: #fff;
        padding: 12px 20px;
        border-radius: 50px;
        border: none;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
}

.item-is-hidden { display: none; }
.more-link { background: none; border: none; color: #FD802E; font-weight: 700; cursor: pointer; font-size: 13px; padding: 5px 0; }