/* Shared paginated archive controls. */

.brands--cards .goods-pug {
    margin: 0
}

.goods-pug {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    text-align: center
}


.goods-pug__link {
    padding: 18px 15px;
    border-radius: 16px;
    border: 1px solid #d4d4d4;
    font-size: 18px;
    font-weight: 700;
    line-height: 100%;
    width: 54px;
    height: 54px;
    text-align: center;
    transition: color .3s ease-in-out, border .3s ease-in-out
}

.goods-pug__link:hover {
    color: #dd3824;
    border-color: #dd3824
}

.goods-pug__link--active {
    color: #dd3824;
    border-color: #dd3824
}@media (max-width: 768px) {
    .goods-pug {
        margin-bottom: 70px;
        margin-top: 20px
    }
}@media (max-width: 576px) {
    .goods-pug {
        gap: 10px
    }

    .goods-pug__link {
        padding: 13px 10px;
        width: 44px;
        height: 44px
    }

    .goods-pug__link:nth-child(4), .goods-pug__link:nth-child(5) {
        display: none
    }
}

.page-numbers {
    display: flex;
    list-style-type: none;
}

.page-numbers a, .page-numbers span{
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px solid #d4d4d4;
    font-size: 18px;
    font-weight: 700;
    line-height: 100%;
    text-align: center;
    transition: color .3s ease-in-out, border .3s ease-in-out;
    margin: 0 5px;
}

.page-numbers a:hover, .page-numbers span:hover {
    color: #dd3824;
    border-color: #dd3824;
}

.page-numbers li .current {
    color: #dd3824;
    border-color: #dd3824;
}

.goods-pug {
    margin-bottom: 0;
}

@media (max-width: 557px) {
    .page-numbers a, .page-numbers span {
        font-size: 14px;
    }
}@media (max-width: 523px) {
    .page-numbers a, .page-numbers span {
        margin-bottom: 10px;
    }

    .page-numbers {
        flex-wrap: wrap;

    }
}
