.container{
    width: 900px;
    margin: auto;
    max-width: 90vw;
    text-align: center;
    padding-top: 10px;
    transition: transform .5s;
}
svg{
    width: 30px;
}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.icon-cart{
    position: relative;
}
.icon-cart span{
    position: absolute;
    background-color: red;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #fff;
    top: 50%;
    right: -20px;
}
.title{
    font-size: xx-large;
    position: relative;
    left: 50px;
}
.listProduct .item img{
    width: 100%;
    filter: drop-shadow(0 25px 20px #0009);
    height: 345px;
    border-radius: 10px;
}
.listProduct{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.listProduct .item{
    background-color: #d4ecae56;
    padding: 20px;
    border-radius: 20px;
    height: 545px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25rem;
}
.listProduct .item h2{
    font-weight: 750;
    font-size: large;
    text-align: center;
    padding: 7.5px;
    position: relative;
    top: 20px;
}
.listProduct .item .price{
    letter-spacing: 7px;
    font-size: large;
    text-align: center;
    font-weight: 750;
    position: relative;
    top: 10px;
}
.listProduct .item button{
    background-color: #0b9444;
    color: #eee;
    border: none;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    top: 20px;
    left: 0.5px;
}

.listProduct .item button:hover{
    background-color: #eee;
    color: #0b9444;
    border: #000;
    top: 7.5px;
}

/* cart */
.cartTab{
    width: 400px;
    background-color: #353432;
    color: #eee;
    position: fixed;
    top: 100px;
    right: -400px;
    bottom: 0;
    display: grid;
    grid-template-rows: 70px 1fr 70px;
    transition: .5s;
    z-index: 1;
    padding: 0.5rem;
}
body.showCart .cartTab{
    right: 0;
}
body.showCart .container{
    transform: translateX(-250px);
}
.cartTab h1{
    padding: 20px;
    margin: 0;
    font-weight: 300;
}
.cartTab .btn{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.cartTab button{
    background-color: #0b9444;
    border: none;
    font-family: Poppins;
    font-weight: 500;
    cursor: pointer;
}
.cartTab .close{
    background-color: #eee;
}
.listCart .item .name {
    color: white;
}

.listCart .item .totalPrice {
    color: white;
}

.listCart .item img{
    width: 100%;
    border-radius: 15px;
}
.listCart .item{
    display: grid;
    grid-template-columns: 70px 150px 50px 1fr;
    gap: 10px;
    text-align: center;
    align-items: center;
    padding-top: 2.5px;
}
.listCart .quantity span{
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: #eee;
    border-radius: 50%;
    color: #555;
    cursor: pointer;
}
.listCart .quantity span:nth-child(2){
    background-color: transparent;
    color: #eee;
    cursor: auto;
}
.listCart .item:nth-child(even){
    background-color: #eee1;
}
.listCart{
    overflow: auto;
}
.listCart::-webkit-scrollbar{
    width: 0;
}
@media only screen and (max-width: 992px) {
    .listProduct{
        grid-template-columns: repeat(3, 1fr);
    }
}


/* mobile */
@media only screen and (max-width: 768px) {
    .listProduct{
        grid-template-columns: repeat(1, 1fr);
    }

    .icon-cart {
        position: sticky;
        left: -720px;
      }

    .listProduct .item img{
        width: 100%;
        filter: drop-shadow(0 25px 20px #0009);
        height: 30rem;
        border-radius: 10px;
    }

    .listProduct .item{
        background-color: #d4ecae56;
        padding: 20px;
        border-radius: 20px;
        height: 42.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.25rem;
    }

    .listProduct .item h2{
        font-weight: 550;
        font-size: 1.25rem;
        text-align: center;
        padding: 7.5px;
        position: relative;
        top: 20px;
    }

    .listProduct .item button{
        background-color: #0b9444;
        color: #eee;
        border: none;
        padding: 10px;
        border-radius: 10px;
        position: relative;
        top: 30px;
        left: 0.5px;
    }
    
    .listProduct .item button:hover{
        background-color: #eee;
        color: #0b9444;
        border: #000;
        top: 7.5px;
    }
    .listCart .item .name {
    color: white;
    }

    .listCart .item .totalPrice {
    color: white;
    }
}
