@media screen and (max-width: 1200px) {
    .product-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 992px) {
    .product-list-section {
        --product-list-fixed-top: 80px;
        --product-list-fixed-bar-height: 58px;
        padding: 16px 0 48px;
    }

    .fixed-filter-wrapper {
        height: 61px;
    }

    .fixed-filter-wrapper .product-list-filter-show-btn {
        display: none;
    }

    .fixed-filter-wrapper .product-list-filter-toggle {
        display: inline-flex;
    }

    .product-list-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-list-toolbar {
        grid-column: 1;
        grid-row: 1;
        padding-bottom: 16px;
    }

    .product-list-active-filters {
        grid-column: 1;
        grid-row: 2;
        margin: 12px 0 16px;
    }

    .product-list-main {
        grid-column: 1;
        grid-row: 3;
        padding-left: 0;
    }

    .product-list-layout.is-filters-hidden {
        grid-template-columns: 1fr;
    }

    .product-list-sidebar {
        display: contents;
        position: static;
        max-height: none;
    }

    .product-list-section.is-fixed-bar-visible .product-list-sidebar {
        top: auto;
        max-height: none;
    }

    .product-list-filter-show-btn {
        display: none;
    }

    .product-list-filter-toggle {
        display: inline-flex;
    }

    .product-list-filters {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 120;
        width: 82vw;
        max-height: none;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.32s cubic-bezier(0.33, 1, 0.68, 1);
        pointer-events: none;

        .product-list-filters__panel {
            padding-top: 74px;
            padding-bottom: 82px;

            .filter-price-range {
                margin: 16px 8px;
            }

            .filter-group__body {
                padding-top: 6px;
            }

            .filter-price-field {
                min-height: 42px;
            }

            .filter-check-list {
                gap: 6px;
            }

            .filter-group {
                padding-bottom: 10px;
                margin-bottom: 10px;
            }
        }
    }

    .product-list-section.is-fixed-bar-visible .product-list-filters {
        max-height: none;
    }

    .product-list-filters.is-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .product-list-filters__panel {
        height: 100%;
        border-radius: 0;
        overflow-y: auto;
        padding-top: 16px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .product-list-filters__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #eef2f7;
        display: none;
    }

    .product-list-filters__title {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: var(--black-color);
    }

    .product-list-filters__close {
        width: 36px;
        height: 36px;
        border: 1px solid #e5e7eb;
        border-radius: 50%;
        background: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
    }

    .product-list-filters__close svg {
        width: 16px;
        height: 16px;
    }

    .product-list-filter-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 119;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .product-list-filter-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.product-list-filter-open {
        overflow: hidden;
    }

    .product-list-toolbar {
        margin-bottom: 0px;
    }

    .product-list-sort {
        flex: 1;
        justify-content: flex-end;
    }

    .product-list-sort__dropdown {
        flex: 1;
        min-width: 0;
        max-width: 220px;
    }

    .product-list-sort__trigger {
        min-width: 0;
        width: 100%;
    }

    .product-list-empty__icon {
        width: 50%;
        height: 50%;
    }

    .product-list-active-filters {
        width: calc(100vw - 32px);
        gap: 8px;
    }

    .product-list-active-filters__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 0;
        &::-webkit-scrollbar {
            display: none;
        }
        &::-webkit-scrollbar-track {
            display: none;
        }
    }

    .product-list-active-filters__clear {
        font-size: 13px;
    }
}

@media screen and (max-width: 640px) {
    .product-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .product-list-sort__label {
        display: none;
    }

    .product-list-empty__hint {
        font-size: 14px;
    }

    .product-list-empty__clear {
        min-height: 42px;
        font-size: 15px;
        font-weight: 500;
    }

    .product-list-empty {
        padding: 30px 24px;
        min-height: 300px;
    }

    .product-list-active-filter {
        min-height: 36px;
        font-size: 13px;
        margin-bottom: 0;
    }
}
