.content {
    border-top: 1px solid #e9e9e9;
}
.category__page {
    display: flex;
    gap: 15px;
    border-top: 1px solid #E9E9E9;
    width: 100%;
}
.category__page-left {
    width: 100%;
    max-width: 260px;
    padding-top: 10px;
}
.category__page-content {
    width: 100%;
}
.category__page-content-top {
    display: flex;
    padding: 20px 0;
    gap: 20px;
    justify-content: end;
    align-items: center;
}
.category__sort {
    position: relative;
    padding: 10px;
    cursor: pointer;
    font-size: clamp(14px, 3vw, 18px);
    white-space: nowrap;
}
.category__sort::after {
    content: '';
    background: url("/catalog/view/theme/twinn/image/icons/down.svg");
    width: 14px;
    height: 14px;
    padding: 2px 1px 1px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}
.category__sort:hover {
    color: var(--orange);
}
.category__sort:hover::after {
    background: url("/catalog/view/theme/twinn/image/icons/up-active.svg");
}
.category__sort-block {
    display: none;
    position: absolute;
    background: #FFF;
    padding: 20px;
    width: -webkit-fill-available;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    flex-direction: column;
    gap: 18px;
    margin-top: 6px;
    z-index: 2;
}
.category__sort-block a {
    font-size: 16px;
    color: var(--black);
    cursor: pointer;
    text-decoration: none;
}
.category__sort-block a.active {
    color: var(--orange2);
}
.category__sort-block a:hover {
    color: var(--orange);
}

.category__sort:hover .category__sort-block {
    display: flex;
}

.category__filters-title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 20px;
    padding-top: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category__filters-title::after {
    width: 16px;
    height: 16px;
    padding: 1px;
    content: '';
    background: url("/catalog/view/theme/twinn/image/icons/down.svg");
    background-size: 100%;
    display: inline-block;
    transform: rotate(-180deg);
    transition: transform 0.3s ease;
}
.category__filters {
    margin-top: 20px;
    padding-right: 15px;
    border-right: 1px solid #E9E9E9;
    padding-bottom: 60px;
}
.category__filter-filter {
    padding: 20px 0;
    border-bottom: 1px solid #e9e9e9;
}
.category__filter-filter:first-child {
    padding-top: 0;
}
.category__filter-name {
    color: var(--black);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
.category__filter-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.category__filter-option:first-child {
    margin-top: 18px;
}
.category__filter-option label {
    display: flex;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    gap: 8px;
}

/* Скрываем стандартный чекбокс */
.category__filter-option input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}
.category__filter-option label {
    position: relative;
}
/* Кастомный чекбокс */
.category__filter-option label::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 1px solid var(--grey);
    border-radius: 5px;
    display: inline-block;
    position: relative;
}
.category__filter-price-inputs {
    display: flex;
    gap: 5px;
    margin-top: 18px;
    align-items: center;
}
.category__filter-price-inputs input,
.category__filter-price-inputs button {
    width: 100%;
    background: none;
    border: 1px solid #D5D5D5;
    border-radius: 5px;
    height: 30px;
}
.category__filter-price-inputs input {
    padding: 5px 8px;
    color: var(--grey);
    font-size: 16px;
    line-height: 125%;
    font-weight: 300;
}
.category__filter-price-inputs input:focus {
    background: #FFF8F3;
    border: 1px solid var(--orange3);
    color: var(--grey2);
    outline: none;
}
.category__filter-price-submit {
    max-width: 36px;
    padding: 7px 10px;
}
.category__filter-price-submit svg {
    width: 100%;
    height: auto;
    max-width: 20px;
    max-height: 20px;
}


.category__filter-option input:checked + label::before {
    background: url("/catalog/view/theme/twinn/image/icons/check.svg");
    width: 16px;
    height: 16px;
    border: none;
}
.category__filters-categories {
    display: none;
}

.category__pagination {
    padding-top: clamp(30px, 2.65vw, 50px);
}

@media (max-width: 1280px) {
    .category__categories-category:nth-child(n+5) {
        display: none;
    }
}
@media (max-width: 1024px) {
    .category__categories-category:nth-child(n+4) {
        display: none;
    }
}
@media (max-width: 768px) {
    .category__categories-category-image {
        max-width: 220px;
    }
    .category__categories {
        display: none;
    }
    .category__page {
        flex-direction: column;
        border: none;
        gap: 0;
    }
    .category__page-left {
        max-width: unset;
        padding: 0;
    }
    .category__filters {
        border: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .category__filter-filter:first-child {
        margin-top: 20px;
    }
    .category__filters.open {
        max-height: 2000px;
    }
    .category__filters-title.open::after {
        transform: none;
    }
    .category__name {
        text-align: left;
    }
    .category__page-content-top {
        padding: 20px 0;
        justify-content: space-between;
    }
    .category__sort {
        padding: 10px 0;
    }
    .page__title {
        padding: 0 0 20px;
    }
    .category__filter-price-inputs input,
    .category__filter-price-inputs button {
        height: 48px;
    }
    .category__filter-price-submit {
        max-width: 58px;
    }
    .category__filters-categories {
        display: block;
    }
    .category__filter-category {
        padding-left: 1px;
        display: flex;
        align-items: center;
        gap: 2px;
    }
}

@media (min-width: 769px) {
    .category__filter-name {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .category__filter-name::before {
        width: 16px;
        height: 16px;
        padding: 1px;
        content: '';
        background: url("/catalog/view/theme/twinn/image/icons/down.svg");
        background-size: 100%;
        display: inline-block;
        transform: rotate(-90deg);
        transition: transform 0.3s ease;
    }
    .category__filter-filter.open .category__filter-name::before {
        transform: none;
    }
    .category__filter-options {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease;
    }
    .category__filter-filter.open .category__filter-options {
        max-height: 500px;
    }
    .category__filters-title {
        display: none;
    }
}