body{
    background-color: #fff !important;
}
.main-cart{
    min-height: 100vh;
    height: max-content;
    padding-top: 80px;
    padding: 130px 0 20px;
}
.cart-page-title{
    font-size: 1.2rem;
    font-weight: bold;
    color: #444;
    text-align: right;
    margin-bottom: 20px;
}
.cart-null-div{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 100%;
}
.cart-image{
    width: 302px;
    height: 335px;
}
.cart-box{
    /* min-height: 90vh; */
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.cart-empty-box{
    min-height: 80vh;
}
.cart-link-div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}
.cart-link{
    position: relative;
    display: flex;
    min-width: 180px;
}
.cart-link span{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    background-color: #D23E62;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    border-radius: 0 0 10px 10px;
    gap: 10px;
    margin-right: 5px;
    margin-top: 0;
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
    color: #fff;
}
.cart-link::before {
    content: '';
    position: absolute;
    width: 97%;
    height: 100%;
    background-color: #1E0339;
    right: 2px;
    bottom: -4px;
    z-index: 0;
    border-radius: 0 0 10px 10px;
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
}


.main-cart .row {
    width: 100%;
    height: 100%;
    direction: rtl;
    margin-inline: auto;
}

.cart-contents,
.shop-summary {
    background: #fff;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    align-self: flex-start;
    margin-top: 5px;
    padding: 0 20px;
}
.cart-contents{
    padding-inline: 0;
}
.shop-summary {
    margin-top: 40px;
    padding: 0;
    box-shadow: 0px 1px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 10px !important;
    height: max-content;
    position: relative;
}
.main-cart .cart-item-desc{
    border: 0.5px solid #d9d9d9;
    border-radius: 10px;
    margin-bottom: 10px;
}

.main-cart .book-img {
    width: 130px;
}

.cart-prod-items>div {
    /* border: 1px solid #d9d9d9 !important; */
}

.main-cart .cart-desc {
    padding-inline: 20px !important;
    height: 100%;
}

.main-cart .cart-desc>.row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 10px 0;
    height: 100%;
}

.main-cart .cart-desc>.row:first-child {
    position: relative;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.main-cart .cart-desc>.row>* {
    margin: 10px 0;
}

.main-cart .cart-desc>.row>.title {
    font-size: 1rem;
}

.main-cart .color-select,
.main-cart .warranty {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.main-cart .color-select span:first-child {
    background-color: #fff;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 50%;
}

.main-cart .color-select span:nth-child(2) {
    margin: auto 30px;
}

.main-cart .warranty svg {
    width: 16px;
    height: 17px;
    margin-left: 10px;
    fill: #545454;
}

.main-cart .counting {
    display: flex;
    align-items: center;
    width: 100%;
}

.main-cart .counting>* {
    margin: auto 10px;
}

.main-cart .quantity {
    border: 1px solid lightgrey;
    padding: 5px 10px;
    color: var(--gray-link-color);
    border-radius: 10px;
    margin-right: 0;
    margin-top: 2rem;
    position: absolute;
    left: 40px;
    top: 70px;
}

.main-cart .quantity span {
    cursor: pointer;
    font-size: 14px;
}

.main-cart .quantity input {
    width: 25px;
    text-align: center;
    border: none;
    outline: none;
    color: #707070;
}

.main-cart .off {
    color: #db1f32;
    font-size: 13px;
}

.main-cart .remove {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 50px;
}

.main-cart .counting {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-top: 15px;
}

.main-cart .price {
    font-size: 19px;
    margin-top: 10px;
}

.main-cart .price>span {
    font-size: 14px;
}

.main-cart .cart-img-box {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-right: 60px;
    /* padding-block: 20px 0; */
    /* height: 150px; */
}

.main-cart .cart-img-box a{
    width: 150px;
    height: 150px;
}

.main-cart .cart-img-box img {
    width: 150px;
    height: 150px;
}

.main-cart .border-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 30px;
}
.cart-item-desc img{
    width: 85px;
    height: 90px;
}
.cart-sim-image{
    width: 81px !important;
    height: 51px !important;
}
.cart-name-box{
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.cart-desc-title {
    font-size: 14px;
    font-weight: bold;
    text-align: right;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4d4d4d !important;
}
.cart-desc-title .farsi-digit{
    font-size: 1.2rem;
    color: #444 !important;
}
.cart-desc-price {
    font-size: 18px;
    font-weight: 600;
}
.cart-desc-title span {
    font-weight: 600;
    font-size: 1rem;
    /* color: #6e6e6e; */
}
.cart-desc-buttons-box {
    position: absolute;
    left: 0;
}

.cart-desc .header-shop-item-counter {
    position: relative;
    inset: auto;
    margin-top: 5px;
    /*width: 50px;*/
    height: 35px;
}

.cart-desc .header-shop-item-remove {
    height: 40px;
    width: 50px;
    left: 60px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    inset: auto;
}
.cart-desc .header-shop-item-plus{
    margin-bottom: 10px;
}
.cart-desc .header-shop-counter-count span {
    font-size: 14px;
    text-align: center;
}

.cart-desc-off {
    position: absolute;
    bottom: 60px;
    color: #e36b6b;
}

.cart-desc-off .priceUnit,
.cart-desc-off-text {
    font-size: 10px !important;
    color: #e36b6b !important;
}

.shop-summary>* {
    margin: auto 10px;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px auto;
}
.textCartSize{
    font-weight: 800;
    font-size: 12px;
    color: #555555;
}
.shop-summary>.price {
    color: #003E65;
    font-weight: 600;
}
.calcNextStep{
    font-size: 12px;
    color: #b2aeae;
}

.shop-summary>a {
    padding: 14px 20px;
    background: #d42751;
    color: #fff !important;
    font-weight: 400;
    justify-content: center;
    border-radius: 3px;
    margin: 8px auto 23px auto;
    width: 89%;
    right: 10%;

}

.shop-summary .cart-prices {
    color: var(--gray-link-color);
    font-size: 14px;
}

.shop-summary .cart-prices .discount {
    color: var(--link-color);
}

.shop-summary .cart-sum {
    padding-top: 20px;
    border-top: 1px solid #ccc9;
    font-size: 14px;
    margin-top: 16px;
}

.shop-summary .comment {
    color: var(--gray-link-color);
    font-size: 12px;
}
.cart-prices{
    justify-content: space-between;
}
.shop-summary .cart-shop-item-price {
    position: relative !important;
    bottom: 0;
    font-weight: bold;
    font-size: 14px;
}
.finalPriceCart{
    font-size: 1.2rem;
}
.shop-summary .cart-shop-item-price,
.shop-summary .cart-shop-item-price .priceUnit {
    color: #003E65 !important;
}

.shop-summary .cart-prices>span,
.cart-sending-price {
    font-size: 14px;
    color: #808080;
    font-weight: 600;
}
.header-shop-item-counter {
    padding: 9px;
    width: 106px;
}
.cart-quantity-box {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    gap: 5px;
}
.cart-item-box span {
    color: #484747;
}
.header-shop-item-counter {
    /* position: absolute; */
    left: 0;
    bottom: 10px;
    display: flex;
    align-items: center;
    border: 0.5px solid #DEDEDE;
    /* padding-inline: 10px; */
    border-radius: 5px;
    height: 44px;
    justify-content: space-between;
    padding: 8px;
}
.cart-sending-price {
    text-align: right;
}
.cart-sending-price > span:last-child{
    text-align: left;
}
.cart-samples-slider {
    /* margin-top: 50px; */
}


@media screen and (min-width: 1200px) {
    .cart-link:hover span{
        background-color: #1E0339;
    }
    .cart-link:hover::before{
        right: 5px;
        bottom: 0;
    }
}
@media screen and (max-width: 1200px) {
    .main-cart{
        padding-top: 100px;
    }
    .main-cart .book-img{
        width: 90px;
    }
}
@media screen and (max-width: 992px) {
    .main-cart{
        min-height: auto;
    }
    .main-cart .container{
        max-width: 100% !important;
    }
    .main-cart > .container > .row > div:nth-child(2){
        margin: 20px auto 0 auto;
        padding-inline: 0;
    }
    .shop-summary{
        margin-bottom: 40px;
        box-shadow: none;
        padding-inline: 0 !important;
    }
    .cart-item-desc{
        min-height: 100px !important;
        height: max-content !important;
        padding-block: 0;
        position: relative;
    }
    .main-cart .cart-desc{
        height: auto;
    }
    .main-cart .cart-desc>.row{
        margin: 0;
    }
    .cart-desc-price{
        bottom: 0;
    }
    /* .cart-desc-buttons-box {
        position: absolute;
        bottom: 0;
    } */
    .cart-item-imageBox{
        /* position: absolute;
        right: 60px; */
    }
    .cart-shop-item-price{
        position: relative !important;
        inset: auto;
    }
    .mobile-cart-sum{
        justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        background: #fff;
        padding: 30px 20px;
        z-index: 10;
        direction: rtl;
    }
    .mobile-cart-sum .cart-sum{
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .mobile-cart-sum a{
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 70px;
        color: #fff !important;
        background-color: #D23E62;
        border-radius: 5px;
    }
    .footerMargin{
        margin-bottom: 115px;
    }
}
@media screen and (max-width: 769px) {
    /* .main-cart > .container > .row > div > div{
        padding: 10px 0;
    } */
    .main-cart .counting.row{
        max-width: 83%;
        margin: 10px 15px;
    }
    .main-cart .cart-img-box{
        justify-content: flex-start;
    }
}
@media screen and (max-width: 576px) {
    .cart-image{
        width: 200px;
        height: auto;
    }
    .main-cart .container {
        max-width: 100% !important;
        padding: 0;
    }

    /* .main-cart .book-img{
        width: 60px;
    } */
    .main-cart .cart-desc{
        padding-inline: 0 !important;
    }
    .cart-desc-buttons-box{
        left: 10px;
        /* bottom: -10px; */
    }
    .main-cart .cart-desc>.row{
        overflow: visible !important;
        padding-inline: 10px;
    }
    .main-cart .cart-item-desc{
        height: max-content;
    }
    .main-cart .cart-img-box {
        padding: 0;
    }
    .main-cart .cart-img-box img{
        width: 120px;
        height: 120px;
    }
    .cart-desc-title{
        top: 0;
    }
    .cart-desc-price{
        /* bottom: 80px; */
        left: 10px;
    }
    .cart-desc-off{
        bottom: 100px;
    }
    .cart-desc-buttons-box{
        /* left: auto;
        right: -15px;
        bottom: 10px; */
    }
    .mobile-cart-sum a{
        padding-inline: 40px;
    }
    .cart-link-div{
        flex-direction: column;
        gap: 20px;
    }
    .shop-summary span{
        font-size: .8rem !important;
        min-width: 80px;
    }
    .cart-sending-price > span:last-child{
        text-align: justify;
    }
    .cart-desc-title span{
        font-size: 0.9rem;
        font-weight: 400;
    }
    .cart-desc-price{
        font-size: 1rem;
        font-weight: 400;
    }
    .cart-item-desc img {
        width: 80px;
        height: 85px;
    }
    .cart-sim-image {
        width: 65px !important;
        height: 45px !important;
    }
}

@media screen and (max-width: 360px) {
    .cart-desc-buttons-box{
        left: 10px;
    }
}

@media screen and (max-width: 340px) {
    /* .cart-desc-buttons-box{
        right: 10px;
    } */
    .mobile-cart-sum a{
        padding-inline: 25px;
    }
}
