.category-products, .condition-products {
    padding: 68px 100px;
    display: flex;
    flex-direction: column;
    gap: 93px;
    background-color: #f7f7f7;
}
.category-products__header, .condition-products__header {
    display: flex;
    justify-content: space-between;
}
.category-products__header h1, .condition-products__header h1 {
    color: #2e3f3b;
    font-weight: 500;
    flex: 1;
}

.category-products__header h1 span, .condition-products__header h1 span {
    font-weight: 300;
}
.category-products__header p, .condition-products__header p {
    color: #555;
    font-weight: 400;
    flex: 1;
}
.category-conditions-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0 0 60px 0;
}
.category-conditions-pagination {
    margin-top: 50px;
    text-align: center;
    display: flex;
    gap: 16px;
    justify-content: center;
}
.category-conditions-pagination .page-numbers.current {
    color: #fff;
    background-color: #2e3f3b;
}
.category-conditions-pagination .page-numbers {
    background-color: #dbedeb;
    width: 48px;
    height: 48px;
    color: #2e3f3b;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    text-decoration: none;
    cursor: pointer;
}
.category-conditions-pagination .page-numbers.next, .category-conditions-pagination .page-numbers.prev {
    background-color: rgba(0, 0, 0, 0);
    color: #2e3f3b;
    cursor: pointer;
    width: fit-content;
    border: none;
}

@media (max-width: 1024px) {
    .category-products, .condition-products {
        padding: 48px 60px;
        gap: 60px;
    }

    .category-products__header, .condition-products__header {
        gap: 24px;
    }

    .category-conditions-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .category-products, .condition-products {
        padding: 32px 20px 48px;
        gap: 40px;
    }

    .category-products__header, .condition-products__header {
        flex-direction: column;
        gap: 12px;
    }

    .category-products__header h1, .condition-products__header h1,
    .category-products__header p, .condition-products__header p {
        flex: 0;
        width: 100%;
    }

    .category-conditions-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-conditions-pagination {
        flex-wrap: wrap;
        gap: 12px;
    }

    .category-conditions-pagination .page-numbers {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
}