.cards4__title{
    font-size: 35px;
    font-weight: 400;
    line-height: 42.36px;

    text-transform: none;
}

.cart{
    margin-top: 60px;

    display: flex;
    justify-content: center;
}


.card-hover{
    bottom: auto;
    top: 0;


}

.cart__container{
    width: 100%;

    padding-right: 40px;
    padding-left: 40px;
}

.cart__title{
    font-size: 35px;
    font-weight: 400;
    line-height: 42.36px;
    text-align: left;

    color: #121313;
}

.cart__group{
    margin-top: 38px;

    max-width: 680px;
}

.cart__info-row{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 32px;
}

.cart__scale{
    display: flex;
    align-items: center;

    background: #F2F3F4;


    width: 100%;

    border-radius: 20px;
    height: 8px;

    position: relative;
}

.cart__scale-filled{
    height: 100%;
    border-radius: 20px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: #F53F4A;
}

.cart__info-text{
    color: #000000;

    font-size: 14px;
    font-weight: 500;
    line-height: 15.48px;
    text-align: left;
}

.cart__scale-point{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;

    border: 1px solid #FFFFFF;
    background: #F53F4A;

    width: 36px;
    height: 36px;

    border-radius: 50%;
}



.cart__info-img{
    margin-left: 12px;
}

.history__part-size{
    display: flex;
    flex-direction: column;
}

.history__size-button{
    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: 13px;

    background: #F2F3F4;
    border-radius: 50%;

    cursor: pointer;
}



.total{
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top: 60px;
}

.total__text{
    text-align: center;

    font-size: 20px;
    font-weight: 400;
    line-height: 24.2px;
    text-align: text;
}

.total__button{
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px 40px;

    background: #121313;
    color: #FFFFFF;

    width: fit-content;

    margin-top: 30px;

    transition: .3s linear;

    border: 1px solid #121313;
}

.total__button:hover{
    background: #FFFFFF;
    color: #121313;
}

.total__button img{
    margin-left: 10px;
}


/* earlier */


.earlier{
    display: flex;
    justify-content: center;

    margin-top: 60px;
}

.earlier__container{
    width: 100%;
}


.earlier__title{
    font-size: 35px;
    font-weight: 400;
    line-height: 42.36px;
    text-align: left;


    color: #121313;


    padding-left: 40px;
}

.earlier__items{
    margin-top: 40px;

    display: flex;
    width: 100%;
}

.earlier__item{
    width: 100%;
}

.earlier__item-upper{
    width: 100%;
}

.earlier__item-outer{
    width: 100%;
}

.earlier__item-upper{
    position: relative;

    overflow: hidden;
}

.earlier__item-upper-upper{
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-right: 22px;
    padding-left: 40px;

    margin-top: 22px;

    position: absolute;
    top: 0;
    left: 0;

    z-index: 4;

    width: 100%;
}

.earlier__item-upper-upper-tag{
    padding: 2px 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 700;
    line-height: 14.52px;
    text-align: center;

    color: #F2F3F4;

    background: #121313;

    text-transform: uppercase;

    border-radius: 3px;
}

.earlier__item-text{
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    text-align: center;

    color: #121313;

    padding-left: 8px;
    padding-right: 8px;

}

.earlier__item-title{
    margin-top: 14px;
}

.earlier__item{
}

.earlier__item-price{
    font-weight: 600;
}

.earlier__item-upper-upper-like{
    cursor: pointer;

    transition: .3s linear;
}

.earlier__item-upper-upper-like:hover{
    filter: brightness(0%);
    -webkit-filter: brightness(0%);
}

.earlier__item-img{
    width: 100%;

    min-width: 196px;
}

.earlier__item-upper-upper-tag.hidden{
    visibility: hidden;
}



.earlier__item-hover{
    position: absolute;

    width: 100%;
    height: 100%;

    top: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transition: .3s linear;

    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    padding-left: 12px;
    padding-right: 12px;

    background-color: rgba(0, 0, 0, 0.6);

    opacity: 0;

    z-index: 3;
}


.earlier__item-upper:hover .earlier__item-hover{
    opacity: 1;
}

.earlier__item-img{
    transition: .3s ease;

    position: relative;
}


.earlier__item-upper:hover .earlier__item-img{
 transform: scale(1.2);
}


.history__item-size-mobile-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;

    width: 18px;
    height: 18px;

    cursor: pointer;


    border-radius: 50%;
}


.history__item-count{
    white-space: nowrap;
}

.history{
    display: flex;
    justify-content: center;
}

.history__container{
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.history__title{
    font-size: 35px;
    font-weight: 400;
    line-height: 42.36px;

    color: #121313;
}



.history__item-upper{
    display: grid;
    grid-template-columns: 767fr 587fr 6fr;

    align-items: center;

    column-gap: 14px;

    cursor: pointer;
}


.history__item-upper-number{
    font-size: 20px;
    font-weight: 400;
    line-height: 24.2px;
    text-align: left;

    color: #121313;

    white-space: nowrap;
}

.history__item-upper-number span{
    font-weight: 700;
}

.history__item-upper-date{
    font-size: 20px;
    font-weight: 400;
    line-height: 24.2px;
    text-align: left;
}

.history__content{
    margin-top: 60px;
}

.history__captions{
    display: grid;
    grid-template-columns: 172fr 364fr 232fr 269fr 206fr 116fr;


    column-gap: 10px;
}

.history__captions-part-text{
    font-size: 14px;
    font-weight: 500;
    line-height: 16.94px;
    text-align: left;

    color: #121313;
}

.history__sides{
    margin-top: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
    border-top: 1px solid #121313;
    border-bottom: 1px solid #121313;

    display: grid;
    grid-template-columns: 172fr 364fr 232fr 269fr 206fr 116fr;

    align-items: center;

    column-gap: 14px;
}

.history__size{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    min-width: 45px;
    height: 34px;

    border-radius: 3px;

    font-size: 16px;
    font-weight: 500;
    line-height: 24px;

    color: #FFFFFF;

    background: #121313;

    margin-top: 14px;
    margin-bottom: 14px;

    padding-left: 12px;
    padding-right: 12px;
}

.history__articles{
    font-size: 14px;
    font-weight: 500;
    line-height: 16.94px;
    text-align: left;

    color: #BEBEBE;
}

.history__item-title{
    margin-top: 30px;

    font-size: 20px;
    font-weight: 500;
    line-height: 24.2px;
    text-align: left;

    color: #121313;

    max-width: 255px;
}

.history__counter{
    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 3px;
    border: 1px solid #121313;

    padding: 5px 11px;

    width: fit-content;

    background: #F2F3F4;

    width: 107px;
    height: 34px;
}

.history__counter span{
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;

    text-align: left;
}

.history__counter-number{

}

.history__counter-button{
    cursor: pointer;
}

.history__item-price{
    font-size: 24px;
    font-weight: 500;
    line-height: 29.05px;
    text-align: left;

    color: #121313;

    white-space: nowrap;
}

.history__item-img{
    max-width: 132px;
    width: 100%;
}

.history__item-pack{
    width: 100%;
    max-width: 67px;
}

.history__arrow{
    transform: rotate(0deg);

    transition: .3s ease;
}

.history__delete-button{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;
    background: #F2F3F4;

    transition: .3s linear;
    cursor: pointer;
}

.history__delete-button  img{
    transition: .3s linear;
}

.history__delete-button:hover{
    background: #121313;
}

.history__delete-button:hover img{
    filter: invert(100%);
    -webkit-filter: invert(100%);
}




.history__item-row{
    display: none;
}

.history__item-price--mobile{
    display: none;
}





@media screen and (max-width: 991px){
    .history__container{
        padding-left: 20px;
        padding-right: 20px;
    }


    .cart__container{
        padding-left: 20px;
        padding-right: 20px;
    }

    .cards4__title{
        font-size: 24px;
        font-weight: 400;
        line-height: 29.05px;

    }
}



@media screen and (max-width: 800px){

    .cart__title{
        font-size: 24px;
        font-weight: 400;
        line-height: 29.05px;
    }

    .history__item-price--mobile{
        display: block;
    }


    .history__title{
        font-size: 24px;
        font-weight: 400;
        line-height: 29.05px;
        text-align: left;
    }

    .history__item-row{
        display: flex;
        justify-content: space-between;

        margin-top: 24px;
        width: 100%;
        max-width: 205px;

        font-size: 12px;
        font-weight: 600;
        line-height: 18px;
        text-align: left;

        color: #bebebe;
    }

    .history__item-row span{
        color: #121313;
    }

    .history__content{
        margin-top: 30px;
    }

    .history__captions{
        display: none;
    }

    .history__sides{
        border-bottom: none;
        border-top:  none;
    }

    .history__articles{
        font-size: 12px;
        font-weight: 500;
        line-height: 14.52px;
        text-align: left;
    }

    .history__item-title{
        font-size: 12px;
        font-weight: 500;
        line-height: 14.52px;
        text-align: left;

        margin-top: 24px;
    }

    .history__item-price{
        font-size: 14px;
        font-weight: 600;
        line-height: 16.94px;
        text-align: left;

        margin-top: 21px;
    }

    .history__part:nth-child(3),
    .history__part:nth-child(4),
    .history__part:nth-child(5){
        display: none;
    }



    .history__sides{

        padding-right: 8px;
        display: grid;
        grid-template-columns: 1fr 5fr 1fr;
    }
    .history__item-img{
        width: 92px;
    }

    .history__item-upper{

    }

    .history__item-upper-number{
        font-size: 16px;
        font-weight: 400;
        line-height: 19.36px;
        text-align: left;
    }

    .history__item-upper-date{
        font-size: 14px;
        font-weight: 400;
        line-height: 16.94px;
        text-align: left;

    }

    .history__item{
        margin-top: 40px;
    }


    .earlier__title{
        padding-left: 20px;

        font-size: 24px;
        font-weight: 400;
        line-height: 29.05px;
        text-align: left;

    }

    .earlier__item-title{
        margin-top: 10px;
    }

    .earlier__item-title,  .earlier__item-text{
        font-size: 10px;
        line-height: 15px;
    }


    .total__button{
        padding-top: 14px;
        padding-bottom: 14px;

        font-size: 14px;
        font-weight: 500;
        line-height: 15.48px;

    }
}



@media screen and (max-width: 375px){
    .history__item-upper-number{
        font-size: 12px;
        line-height: 14px;
    }

    .history__item-upper-date{
        font-size: 12px;
        line-height: 14px;
    }
}
.free-delivery--on .cart__scale-point {
    left: 100%;
    background: #3CB658;
}
.free-delivery--on .cart__scale-filled {
    width: 100%;
    background: #3CB658;
}
.free-delivery--on .cart__info-text {
    color: #3CB658;
}
.checkout-cart .history__item-title {
    display: block;
}


