﻿* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


.cart-popup {
    z-index: 2000;
    width: 900px;
    height: 400px;
    background-color: whitesmoke;
    position: fixed;
    top: 50%;
    left: 50%;
    overflow-y: scroll;
    transition: 0.5s ease-in-out;
    transform: translate(-50%,-50%) scale(0.1);
    visibility: hidden;
    /* transform: translate(-50%,-50%) scale(1);
    visibility: visible; */
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    direction: rtl;
    border-radius: 10px;
}

.close-btn-cart {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

    .close-btn-cart span {
        padding: 10px;
        font-size: 20px;
        cursor: pointer;
        margin: 0.5rem;
    }

.active-cart-popup {
    transform: translate(-50%,-50%) scale(1);
    visibility: visible;
}

.cart-title {
    width: 100%;
    display: grid;
    grid-template-columns: 33.3% 33.3% 33.3%;
    height: 4rem;
}


    .cart-title h5 {
        font-size: 20px;
        text-align: center;
    }

.cart-content {
    width: 100%;
    display: grid;
    grid-template-columns: 33.3% 33.3% 33.3%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
    height: 4rem;
}

    .cart-content::after {
        content: '';
        position: absolute;
        width: 90%;
        bottom: 0;
        left: 5%;
        background-color: gray;
        height: 1px;
    }

    .cart-content span {
        font-size: 17px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

.number {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

    .number span {
        font-size: 17px;
    }

.plus {
    padding: 5px 10px;
    font-size: 20px;
    background-color: green;
    border-radius: 10%;
    cursor: pointer;
    color: white;
    user-select: none;
    /* font-weight: 800; */
}


.min {
    padding: 5px 13px;
    font-size: 20px;
    background-color: red;
    border-radius: 10%;
    cursor: pointer;
    color: white;
    user-select: none;
}

.shopping {
    position: fixed;
    top: 50%;
    left: 20px;
    z-index: 500;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8007a;
    cursor: pointer;
}

    .shopping span {
        color: white;
    }


/* responsive */
/* tablet */

@media screen and (max-width:1000px) {
    .cart-popup {
        width: 90%;
    }
}


/* mobile */
@media screen and (max-width:600px) {
    .cart-title {
        display: none;
        flex-direction: column;
        gap: 10px;
    }

    .cart-content {
        display: flex;
        flex-direction: column;
        gap: 14px;
        height: 8rem;
    }
}
