section.cart-page {
    padding: 1vw;
    width: 100%;
    min-height: 100vh;
    gap: 1vw;
    position: relative;
    justify-content: start !important;
}

section.cart-page h1 {
    margin: 2vw 0;
    font-size: 1.6vw;
}

section.cart-page .cart-page-div {
    width: 80%;
    position: relative;
    gap: 2vw;
    align-items: start !important;
}

section.cart-page .total-container {
    width: 25%;
    height: 24vw;
    position: relative;
    gap: 1.5vw;
    justify-content: start !important;
}


section.cart-page .cart-vector {
    width: 35%;
    position: relative;
    animation: animate-shop-vec 3s ease-in-out infinite;
}

section.cart-page > .cart-vector {
    display: none;
}

section.cart-page .total-container .cart-vector {
    display: flex;
}

@keyframes animate-shop-vec {
    0% {
        transform: translateY(0) !important
    }
    50% {
        transform: translateY(1vw)
    }
    100% {
        transform: translateY(0)
    }
}

section.cart-page .cart-vector img {
    width: 100%;
}

.total-cart-details {
    width: 100%;
    height: 100%;
    box-shadow: 0 0 0.8vw rgba(19, 19, 19, 0.25);
    border-radius: 1vw;
    position: relative;
    justify-content: start !important;
    background-color: var(--light-bg);
}

body.dark .total-cart-details {
    box-shadow: 0 0 0.8vw rgba(19, 19, 19, 0.6);
    background-color: var(--dark-box-bg);
}

.total-cart-details h2 {
    padding: 1vw 0.6vw;
    width: 95%;
    position: relative;
    font-size: 0.8vw;
    justify-content: space-between!important;
    opacity: 0.7;
}

.total-cart-details h2:nth-child(3) {
    opacity: 1;
}


.total-cart-details h2:first-child {
    border-bottom: 0.06vw dashed rgba(192, 192, 192, 0.4);
}

.total-cart-details h2:nth-child(2)::before {
    content: "";
    width: 100%;
    height: 0.1vw;
    background: linear-gradient(to left, transparent, var(--blue2), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
}

.total-cart-details h2 > span,
.total-cart-details h1 > span {
    position: relative;
}

.total-cart-details h2 > span:last-child {
    font-family: Vazir, sans-serif;
    font-size: 0.92vw;
    gap: 0.15vw;
}

.total-cart-details h2:nth-child(3) span:first-child {
    gap: 0.28vw;
}

.total-cart-details h2:nth-child(3) span:first-child i {
    font-size: 1.1vw;
}

.total-cart-details h2:nth-child(3) > span:last-child {
    color: var(--red);
    font-size: 1.2vw;
}

.total-cart-details h2 > span:last-child .toman {
    width: 1vw;
    height: 1vw;
}

.total-cart-details h2:nth-child(3) > span:last-child svg.toman {
    width: 1.2vw;
    height: 1.2vw;
    fill: var(--red);
}

.total-cart-details button[type='submit'] {
    padding: 0.45vw;
    background-color: var(--blue2);
    min-width: 12vw;
    font-weight: bold;
    border-radius: 0.8vw;
    color: var(--light-font);
    transition: all 0.35s;
}

.total-cart-details button[type='submit']:hover {
    background-color: var(--light-blue);
    color: var(--dark-font);
}


section.cart-page div.cart-details {
    margin-top: 2vw;
    padding: 1vw;
    width: 60%;
    min-height: 24vw;
    background-color: var(--light-bg);
    box-shadow: 0 0 0.8vw rgba(19, 19, 19, 0.25);
    border-radius: 1vw;
    justify-content: start !important;
}

body.dark section.cart-page div.cart-details {
    box-shadow: 0 0 0.8vw rgba(19, 19, 19, 0.6);
    background-color: var(--dark-box-bg);
}

section.cart-page div.cart-details ul {
    width: 100%;
    min-height: 24vw;
    padding: 0.5vw;
    position: relative;
    justify-content: start !important;
}

section.cart-page div.cart-details ul li {
    position: relative;
    width: 100%;
    justify-content: start !important;
}

section.cart-page div.cart-details ul li:not(:last-child) {
    border-bottom: 0.07vw dashed rgba(121, 121, 121, 0.5);
}

section.cart-page div.cart-details ul li a {
    padding: 1vw 0.5vw;
    width: 100%;
    gap: 1vw;
    justify-content: space-between;
!important;
    transition: all 0.2s;
}

section.cart-page div.cart-details ul li a:hover {
    background-color: rgba(148, 148, 148, 0.1);
}

section.cart-page div.cart-details ul li a img {
    width: 22%;
    border-radius: 0.8vw;
}

section.cart-page .cart-item-details {
    gap: 0.5vw;
}

section.cart-page .cart-item-details h5 {
    font-size: 1vw;
    font-weight: bold;
}

section.cart-page .cart-item-details h6 {
    width: 100%;
    text-align: start;
    font-size: 0.75vw;
    color: var(--blue2);
}

section.cart-page .cart-item-last-div {
    gap: 1vw;
    width: 12vw;
    height: 5vw;
    justify-content: start !important;
    position: relative;
}

section.cart-page .cart-item-last-div h4 {
    width: 100%;
    gap: 1vw;
}

section.cart-page button.remove-cart-item {
    position: absolute;
    bottom: 0;
    left: 0;
    color: var(--red);
    background-color: transparent;
    box-shadow: none;
    font-size: 0.8vw;
    gap: 0.3vw;
    transition: all 0.25s;
}

section.cart-page button.remove-cart-item i {
    font-size: 1.1vw;
}

section.cart-page button.remove-cart-item:hover {
    color: var(--dark-red);
}

section.cart-page h4.cart-item-price {
    width: 100%;
    color: var(--blue2);
    font-size: 1.2vw;
    font-family: Vazir, sans-serif;
    justify-content: end !important;
    gap: 0;

}

section.cart-page h4.cart-item-price span {
    width: 100%;
    justify-content: end !important;
    gap: 0.35vw;
}

section.cart-page h4.cart-item-price span .toman {
    width: 1.1vw;
    height: 1.1vw;
    fill: var(--blue2);
}

section.cart-page h4.cart-item-price s {
    width: 100%;
    text-align: end;
    font-size: 0.85vw;
    color: var(--dark-font);
    font-weight: normal;
}

body.dark section.cart-page h4.cart-item-price s {
    color: var(--light-font);
}

@media screen and (max-width: 450px) {
    section.cart-page {
        padding: 7vw 2vw;
        gap: 3vw;
    }

    section.cart-page h1 {
        margin: 2vw 0;
        font-size: 4vw;
    }

    section.cart-page .cart-page-div {
        width: 95%;
        gap: 3vw;
    }

    section.cart-page .total-container {
        width: 100%;
        height: 60vw;
        position: fixed;
        bottom: 0;
        left: 0;
        gap: 2.5vw;
        justify-content: start !important;
        z-index: 20;
    }

    section.cart-page > .cart-vector {
        display: flex;
        width: 20%;
    }

    section.cart-page .total-container .cart-vector {
        display: none;
    }

    @keyframes animate-shop-vec {
        0% {
            transform: translateY(0) !important
        }
        50% {
            transform: translateY(3vw)
        }
        100% {
            transform: translateY(0)
        }
    }

    .total-cart-details {
        padding-top: 4vw;
        box-shadow: 0 0 2.8vw rgba(19, 19, 19, 0.25);
        border-radius: 5vw 5vw 0 0;
    }

    body.dark .total-cart-details {
        box-shadow: 0 0 2.8vw rgba(19, 19, 19, 0.6);
    }

    .total-cart-details h2 {
        padding: 3vw;
        width: 95%;
        font-size: 3.6vw;
        opacity: 0.7;
    }

    .total-cart-details h2:nth-child(2)::before {
        height: 0.6vw;
        left: 0;
    }

    .total-cart-details h2 > span:last-child {
        font-size: 4vw;
        gap: 0.5vw;
    }

    .total-cart-details h2:nth-child(3) span:first-child {
        gap: 2.2vw;
    }

    .total-cart-details h2:nth-child(3) span:first-child i {
        font-size: 4.1vw;
    }

    .total-cart-details h2:nth-child(3) > span:last-child {
        font-size: 4.2vw;
    }

    .total-cart-details h2 > span:last-child .toman {
        width: 4vw!important;
        height: 4vw!important;
    }

    .total-cart-details h2:nth-child(3) > span:last-child .toman {
        width: 4.2vw;
        height: 4.2vw;
    }

    .total-cart-details button[type='submit'] {
        margin-top: 3vw;
        padding: 2vw;
        min-width: 60vw;
        border-radius: 2.8vw;
        font-size: 4vw;
    }


    section.cart-page div.cart-details {
        padding: 3vw;
        width: 100%;
        min-height: 50vw;
        background-color: var(--light-bg);
        box-shadow: 0 0 2.8vw rgba(19, 19, 19, 0.25);
        border-radius: 4vw;
    }

    body.dark section.cart-page div.cart-details {
        box-shadow: 0 0 2.8vw rgba(19, 19, 19, 0.6);
    }

    section.cart-page div.cart-details ul {
        min-height: 50vw;
        padding: 0;
    }

    section.cart-page div.cart-details ul li:not(:last-child) {
        border-bottom: 0.1vw dashed rgba(121, 121, 121, 0.5);
    }

    section.cart-page div.cart-details ul li a {
        padding: 4vw 0;
        gap: 0;
    }

    section.cart-page div.cart-details ul li a img {
        width: 26%;
        border-radius: 2.5vw;
    }

    section.cart-page .cart-item-details {
        width: 47%;
        gap: 1.5vw;
        transform: translateX(2vw);
    }

    section.cart-page .cart-item-details h5 {
        font-size: 3vw;
        font-weight: bold;
    }

    section.cart-page .cart-item-details h6 {
        font-size: 2.5vw;
    }

    section.cart-page .cart-item-last-div {
        gap: 1vw;
        width: 12vw;
        height: 5vw;
        justify-content: start !important;
        position: relative;
    }

    section.cart-page .cart-item-last-div h4 {
        width: 100%;
        gap: 2vw;
    }

    section.cart-page button.remove-cart-item {
        position: absolute;
        bottom: 1vw;
        left: 0;
        color: var(--red);
        background-color: transparent;
        box-shadow: none;
        font-size: 2.9vw;
        gap: 1vw;
        transition: all 0.25s;
    }

    section.cart-page button.remove-cart-item i {
        font-size: 3.2vw;
    }

    section.cart-page h4.cart-item-price {
        font-size: 3.6vw;
        gap: 1vw;
        transform: translateY(-5vw);
    }

    section.cart-page h4.cart-item-price i {
        display: none;
    }

    section.cart-page h4.cart-item-price span {
        width: 100%;
        justify-content: end !important;
        gap: 2.35vw;
    }

    section.cart-page h4.cart-item-price span .toman {
       transform: scale(1.8);
    }

    section.cart-page h4.cart-item-price s {
        width: 100%;
        text-align: end;
        font-size: 3vw;
    }

    body.dark section.cart-page h4.cart-item-price s {
        color: var(--light-font);
    }

}
