.all-cards > div:first-of-type {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    cursor: pointer;
}
.all-cards > div:first-of-type span {
    transition: .3s;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid black;
    border-radius: 10px;
}
.all-cards > div:first-of-type span.cat-active{
    background: #E3312C;
    border: #E3312C;
    color: white;
}
.all-cards > div:first-of-type span:hover {
    opacity: 0.7;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 50px auto 0;
}
.pagination a {
    cursor: pointer;
    transition: 0.3s;
}
.pagination .page-current {
    background: #F3F3F3;
    padding: 10px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
}

@media screen and (max-width: 768px) {
    .all-cards > div:first-of-type {
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: scroll;
    }
    .all-cards > div:first-of-type span {
        min-width: fit-content;
    }
}

.all-cards > div:first-of-type {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.all-cards > div:first-of-type::-webkit-scrollbar {
    display: none;
}