body.rssf-product-archive #sidebar {
    --rssf-ink: #17212b;
    --rssf-muted: #6b7280;
    --rssf-line: #e3e7ec;
    --rssf-soft: #f5f7f9;
    --rssf-accent: #d71920;
    --rssf-accent-dark: #b51218;
}

body.rssf-product-archive #sidebar .ct-sidebar {
    display: block;
}

body.rssf-product-archive #sidebar .berocket_single_filter_widget {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.rssf-product-archive #sidebar .bapf_sfilter {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rssf-line);
    border-radius: 0;
    box-shadow: none;
}

body.rssf-product-archive #sidebar .bapf_head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 14px 28px 14px 0;
    cursor: pointer;
    user-select: none;
}

body.rssf-product-archive #sidebar .bapf_head h3,
body.rssf-product-archive #sidebar .bapf_head .bapf_title {
    margin: 0;
    padding: 0;
    color: var(--rssf-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

body.rssf-product-archive #sidebar .bapf_head::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 8px;
    height: 8px;
    margin-top: -5px;
    border-right: 2px solid var(--rssf-muted);
    border-bottom: 2px solid var(--rssf-muted);
    transform: rotate(45deg);
    transition: transform .18s ease;
}

body.rssf-product-archive #sidebar .bapf_sfilter.rssf-collapsed .bapf_head::after {
    margin-top: -2px;
    transform: rotate(-45deg);
}

body.rssf-product-archive #sidebar .bapf_sfilter.rssf-collapsed .bapf_body {
    display: none;
}

body.rssf-product-archive #sidebar .bapf_body {
    max-height: 280px;
    padding: 0 6px 16px 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

body.rssf-product-archive #sidebar .bapf_body::-webkit-scrollbar {
    width: 6px;
}

body.rssf-product-archive #sidebar .bapf_body::-webkit-scrollbar-thumb {
    background: #c8ced6;
    border-radius: 999px;
}

@media (max-width: 1024px) {
    body.rssf-product-archive #sidebar .bapf_body {
        max-height: 44vh;
    }
}

body.rssf-product-archive #sidebar .bapf_body > ul,
body.rssf-product-archive #sidebar .bapf_body .bapf_ul,
body.rssf-product-archive #sidebar .bapf_body ul.bapf_ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.rssf-product-archive #sidebar .bapf_body > ul > li,
body.rssf-product-archive #sidebar .bapf_body .bapf_ul > li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.rssf-product-archive #sidebar .bapf_body li label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 7px 0;
    color: var(--rssf-ink);
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
    transition: color .15s ease;
}

body.rssf-product-archive #sidebar .bapf_body li label:hover {
    color: var(--rssf-accent);
}

body.rssf-product-archive #sidebar .bapf_body input[type="checkbox"],
body.rssf-product-archive #sidebar .bapf_body input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    border: 1.5px solid #c8ced6;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    position: relative;
    transition: border-color .15s ease, background .15s ease;
}

body.rssf-product-archive #sidebar .bapf_body input[type="radio"] {
    border-radius: 50%;
}

body.rssf-product-archive #sidebar .bapf_body input[type="checkbox"]:checked,
body.rssf-product-archive #sidebar .bapf_body input[type="radio"]:checked {
    border-color: var(--rssf-accent);
    background: var(--rssf-accent);
}

body.rssf-product-archive #sidebar .bapf_body input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.rssf-product-archive #sidebar .bapf_body input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
}

body.rssf-product-archive #sidebar .bapf_body .berocket_label_widgets {
    flex: 1;
    min-width: 0;
}

body.rssf-product-archive #sidebar .bapf_body .bapf_count,
body.rssf-product-archive #sidebar .bapf_body .berocket_count,
body.rssf-product-archive #sidebar .bapf_body .product_count {
    color: var(--rssf-muted);
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

body.rssf-product-archive #sidebar .bapf_body ul ul {
    margin: 0 0 0 26px;
    padding: 0;
    border-left: 1px solid var(--rssf-line);
}

body.rssf-product-archive #sidebar .bapf_body .bapf_button,
body.rssf-product-archive #sidebar .bapf_body .bapf_more,
body.rssf-product-archive #sidebar .bapf_body .bapf_show_more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
    color: var(--rssf-accent);
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

body.rssf-product-archive #sidebar .bapf_body .bapf_button:hover,
body.rssf-product-archive #sidebar .bapf_body .bapf_more:hover,
body.rssf-product-archive #sidebar .bapf_body .bapf_show_more:hover {
    color: var(--rssf-accent-dark);
    text-decoration: underline;
}

body.rssf-product-archive #sidebar .bapf_sfilter .bapf_selected,
body.rssf-product-archive #sidebar .bapf_sfilter .berocket_selected,
body.rssf-product-archive #sidebar .berocket_aapf_selected_area {
    margin: 0 0 14px;
    padding: 12px;
    background: var(--rssf-soft);
    border: 1px solid var(--rssf-line);
    border-radius: 10px;
}

body.rssf-product-archive #sidebar .bapf_sfilter .bapf_selected a,
body.rssf-product-archive #sidebar .bapf_sfilter .berocket_selected a {
    color: var(--rssf-accent);
    text-decoration: none;
}

body.rssf-product-archive #sidebar .bapf_sfilter .bapf_selected .bapf_reset,
body.rssf-product-archive #sidebar .bapf_sfilter .berocket_reset,
body.rssf-product-archive #sidebar .bapf_reset_button {
    color: var(--rssf-muted);
    font-size: 12px;
}

body.rssf-product-archive #sidebar .bapf_sfilter .berocket_aapf_widget-title_div,
body.rssf-product-archive #sidebar .bapf_sfilter .berocket_aapf_widget-title {
    color: var(--rssf-ink);
    font-size: 15px;
    font-weight: 700;
}

body.rssf-product-archive #sidebar .bapf_sfilter .bapf_desci,
body.rssf-product-archive #sidebar .bapf_sfilter .bapf_colaps_smb {
    color: var(--rssf-muted);
}

body.rssf-product-archive #sidebar .bapf_sfilter .bapf_desci::before,
body.rssf-product-archive #sidebar .bapf_sfilter .bapf_colaps_smb::before {
    color: var(--rssf-muted);
}

body.rssf-product-archive #sidebar .bapf_sfilter .bapf_scrollable {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

body.rssf-product-archive #sidebar .bapf_sfilter .bapf_scrollable::-webkit-scrollbar {
    width: 6px;
}

body.rssf-product-archive #sidebar .bapf_sfilter .bapf_scrollable::-webkit-scrollbar-thumb {
    background: #c8ced6;
    border-radius: 999px;
}

body.rssf-product-archive:not(.rssf-show-secondary) #sidebar .rssf-secondary-wrapper:not(.rssf-secondary-active) {
    display: none;
}

body.rssf-product-archive #sidebar .rssf-more-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    color: var(--rssf-ink);
    background: var(--rssf-soft);
    border: 1px solid var(--rssf-line);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

body.rssf-product-archive #sidebar .rssf-more-filters::after {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--rssf-muted);
    border-bottom: 2px solid var(--rssf-muted);
    transform: rotate(45deg);
    transition: transform .18s ease;
}

body.rssf-product-archive.rssf-show-secondary #sidebar .rssf-more-filters::after {
    margin-top: -4px;
    transform: rotate(-135deg);
}

body.rssf-product-archive #sidebar .rssf-more-filters:hover {
    border-color: #c8ced6;
}

body.rssf-product-archive #sidebar .berocket_single_filter_widget:first-child .bapf_head {
    padding-top: 0;
}

body.rssf-product-archive #sidebar .berocket_single_filter_widget:last-child .bapf_sfilter {
    border-bottom: 0;
}

body.rssf-product-archive .rssf-filter-trigger,
body.rssf-product-archive .rssf-filter-overlay,
body.rssf-product-archive #sidebar .rssf-drawer-close,
body.rssf-product-archive #sidebar .rssf-drawer-heading {
    display: none;
}

@media (max-width: 1024px) {
    body.rssf-product-archive #sidebar {
        display: block !important;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 100000;
        width: min(88vw, 390px);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 22px 20px 28px;
        background: #fff;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
        transform: translateX(105%);
        transition: transform .24s ease;
        visibility: visible;
    }

    body.rssf-product-archive.rssf-drawer-open #sidebar {
        transform: translateX(0);
    }

    body.rssf-product-archive.rssf-drawer-open {
        overflow: hidden;
    }

    body.rssf-product-archive .rssf-filter-trigger {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 14px;
        z-index: 99998;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 48px;
        padding: 11px 18px;
        color: #fff;
        background: var(--rssf-accent, #d71920);
        border: 0;
        border-radius: 999px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
        font-size: 15px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
    }

    body.rssf-product-archive .rssf-filter-trigger:active {
        background: var(--rssf-accent-dark, #b51218);
        transform: translateY(1px);
    }

    body.rssf-product-archive .rssf-filter-trigger-icon {
        position: relative;
        display: block;
        width: 18px;
        height: 14px;
        border-top: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
    }

    body.rssf-product-archive .rssf-filter-trigger-icon::before {
        content: "";
        position: absolute;
        left: 0;
        top: 4px;
        width: 18px;
        border-top: 2px solid currentColor;
    }

    body.rssf-product-archive .rssf-filter-trigger-count:not(:empty) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        color: var(--rssf-accent, #d71920);
        background: #fff;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
    }

    body.rssf-product-archive .rssf-filter-overlay {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: block;
        background: rgba(10, 15, 22, .48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

    body.rssf-product-archive.rssf-drawer-open .rssf-filter-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.rssf-product-archive #sidebar .rssf-drawer-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        position: sticky;
        top: -22px;
        z-index: 2;
        margin: -22px -20px 8px;
        padding: 18px 20px 14px;
        background: #fff;
        border-bottom: 1px solid #e3e7ec;
    }

    body.rssf-product-archive #sidebar .rssf-drawer-heading span {
        color: #17212b;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
    }

    body.rssf-product-archive #sidebar .rssf-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        color: #17212b;
        background: #f5f7f9;
        border: 1px solid #e3e7ec;
        border-radius: 50%;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }
}
