#catalog_page {
    padding: 80px 0 120px;
}

#catalog_page .container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

#catalog_page h1 {
    color: #000;
}

#catalog_page .content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas: 'filter product product product';
    gap: 40px;
    align-items: start;
}

#catalog_page .content .filter form {
    grid-area: filter;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: #FAFAFA;
}
#catalog_page .page-numbers{
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0 auto;
    grid-column: 2/5;
    align-items: center;
    padding-bottom: 2px;
}
#catalog_page .page-numbers a{
    color: black;
    transition: 0.3s all ease-in-out;
    white-space: nowrap;
}
#catalog_page .page-numbers .prev {
    margin-right: 16px;
}
#catalog_page .page-numbers .next{
    margin-left: 16px;
}
#catalog_page .page-numbers .prev, #catalog_page .page-numbers .next{
    font-size: 24px;
}
#catalog_page .page-numbers.current{
    color:#00A0CB;
}
#catalog_page .page-numbers a:hover{
    color:#00A0CB;
}
#catalog_page .content .filter .filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#catalog_page .content .filter .item__filter.search {
    position: relative;
}

#catalog_page .content .filter .item__filter.search .search__img {
    position: absolute;
    content: '';
    width: 40px;
    height: 40px;
    background-image: url(../image/search.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    right: 5px;
    bottom: 8px;
    cursor: pointer;
}

#catalog_page .content .filter .item__filter.search input {
    padding: 16px 20px;
    font-size: 14px;
    color: #000;
    background-color: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 10px;
    width: 100%;
    font-family: inherit;
}

#catalog_page .content .filter .item__filter.search .filter__button {
    display: none;
}

#catalog_page .content .filter .accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: transparent;
}

.accordion-item.item__filter.check {
    border: none;
    border-radius: 10px;
}

.accordion-item:first-of-type .accordion-button,
.accordion-item:last-of-type .accordion-button.collapsed {
    border-radius: 10px;
}

.accordion-button:not(.collapsed)::after {
    background-image: url(../image/arrow-accordion.svg);
}

.accordion-button::after {
    background-image: url(../image/arrow-accordion.svg);
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: #000;
    box-shadow: none;
}

.accordion-button {
    padding: 20px 20px 20px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
}

.accordion-body {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-body label {
    font-size: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.accordion-body label input {
    position: absolute; /* элемент вырывают из потока */
    width: 1px; /* делают элемент очень маленьким, но таким, чтобы не пропал совсем */
    height: 1px;
    margin: -1px; /* элемент убирают из поля зрения, сдвинув на размер самого себя */
    padding: 0; /* обнуляют отступы, они есть у некоторых элементов по умолчанию */
    border: 0; /* убирают границу, она тоже может быть у каких-то элементов */
    clip: rect(0 0 0 0); /* это свойство обрезает видимую область до нулевого значения */
    overflow: hidden; /* на всякий случай скрывают видимое за пределами блока */
}

.accordion-body label .psevdo__check {
    min-width: 17px;
    width: 17px;
    height: 17px;
    background-color: #fff;
    border: 1px solid #C4C4C4;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.accordion-body label:has(input:checked) .psevdo__check {
    background-color: #00A0CB;
    border-color: #00A0CB;
}

.accordion-body label:has(input:checked) .psevdo__check::after {
    content: '';
    position: absolute;
    background-image: url(../image/check.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 9px;
    height: 6px;
}

#catalog_page .content .all__products {
    grid-area: product;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#catalog_page .content .all__products .link__product {
    width: 100%;
    padding: 20px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 25px 2px rgba(106, 129, 140, 0.1);
}

#catalog_page .content .all__products .link__product .about__product .image__product {
    width: 100%;
    height: 110px;
    background-color: #F6F6F6;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#catalog_page .content .all__products .link__product .about__product .image__product img {
    object-fit: contain;
    max-width: 100%;
    min-width: 80%;
    min-height: 50%;
}

#catalog_page .content .all__products .link__product .about__product .main__text.bold {
    margin: 20px 0 10px;
}

#catalog_page .content .all__products .link__product .price__pay {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: start;
}

#catalog_page .content .all__products .link__product .price__pay .price {
    color: #000;
    font-weight: 700;
    font-size: 20px;
}

#catalog_page .content .all__products .link__product .price__pay .btn__block {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}


@media screen and (max-width: 1024px) {
    #catalog_page .content {
        grid-template-columns: repeat(3, 1fr);
    }

    #catalog_page .content .all__products {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media screen and (max-width: 768px) {
    .filter {
        width: 100%;
    }

    #catalog_page .content .filter form {
        background-color: #fff;
        gap: 30px;
    }
    
    #catalog_page .content .filter .item__filter.search {
        display: flex;
        flex-direction: row;
        gap: 30px;
    }

    #catalog_page .content .filter .accordion {
        gap: 10px;
    }

    .accordion-item.item__filter.check {
        box-shadow: 0px 2px 25px 2px rgba(106, 129, 140, 0.1);
    }

    #catalog_page .content .filter .item__filter.search .filter__button {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0;
        color: transparent;
        width: 50px;
        height: 50px;
        position: relative;
        border: 1px solid #00A0CB;
        border-radius: 10px;
        padding: 15px;
        background-color: #fff;
    }

    #catalog_page .content .filter .item__filter.search .filter__button::before {
        content: '';
        position: absolute;
        width: 21px;
        height: 18px;
        background-image: url(../image/filter_btn.svg);
        background-size: 100%;
        background-position: center;
        background-repeat: no-repeat;
    }

    #catalog_page .content {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    #catalog_page .content .all__products {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}