.rcc-filter-toggle, .rcc-filter-header { display: none; }
@media (max-width: 991px) {
    .rcc-filter-toggle:not([hidden]) {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        min-height: 48px;
        margin: 0 0 20px;
        padding: 12px 20px;
        border: 1px solid #ddd;
        border-radius: 12px;
        background: #fff;
        color: #171717;
        font: inherit;
        cursor: pointer;
    }
    .rcc-filter-toggle::before {
        content: '';
        width: 20px;
        height: 20px;
        background: url('/local/templates/rccwear/img/icons/filter.svg') center / contain no-repeat;
    }
    form.aside--filter.rcc-mobile-filter {
        position: fixed;
        inset: 0;
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 0 20px;
        border: 0;
        border-radius: 0;
        background: #fff;
        display: block;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: none;
        transition: none;
        z-index: -1;
    }
    form.aside--filter.rcc-filter-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        z-index: 10000;
    }
    .rcc-mobile-filter .rcc-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 2;
        padding: max(16px, env(safe-area-inset-top)) 0 16px;
        margin-bottom: 20px;
        background: #fff;
        border-bottom: 1px solid #eee;
    }
    .rcc-filter-header h2 { margin: 0; font-size: 24px; line-height: 1.3; }
    .rcc-filter-close {
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 10px;
        background: #fff;
        color: #171717;
        font: inherit;
        cursor: pointer;
    }
    .rcc-mobile-filter .filter__col { position: relative; z-index: 0; margin-bottom: 24px; }
    .rcc-mobile-filter .filter__nav {
        position: sticky;
        bottom: 0;
        left: auto;
        width: 100%;
        padding: 16px 0 max(16px, env(safe-area-inset-bottom));
        margin-top: 20px;
        background: #fff;
        z-index: 2;
        border-top: 1px solid #eee;
    }
    .rcc-mobile-filter .filter__nav-submit { width: 100%; min-height: 48px; }
    .rcc-filter-toggle:focus-visible, .rcc-filter-close:focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
}
