body{
    margin: 0;
    font-family: Poppins;
    background: linear-gradient(black,darkblue,darkgreen,black);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}
.container{
    width: 90%;
    margin: auto;
    max-width: 90vw;
    text-align: center;
    border-radius: 20px;
    padding: 20px;
    background: linear-gradient(lightgreen,skyblue,pink,lightblue);
    transition: transform .5s;
}
svg{
    margin-right: 30px;
    width: 30px;
    color: black;
    background: linear-gradient(white,black);
    height: 30px;
    border-radius: 20px;
    padding: 12px;
}
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;
    margin-right: 30px;
}
.title{
    font-size: xx-large;
    color: black;
    letter-spacing: 15px;
    background: linear-gradient(pink,white,black);
    padding: 30px;
    margin: 10px;
    width: 80%;
}
.listProduct .item img{
    width: 80%;
    filter: drop-shadow(10px 20px 20px #0009);
    border-radius: 10px;
    height: 150px;
}
.listProduct{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.listProduct .item{
    background-color: #EEEEE6;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(pink,skyblue);
    box-shadow: 10px 10px 10px rgba(250, 187, 187, 0.956);
}
.listProduct .item h2{
    font-weight: 500;
    font-size: large;
}
.listProduct .item .price{
    letter-spacing: 7px;
    font-size: small;
}
.listProduct .item button{
    background-color: #353432;
    color: #eee;
    border: none;
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 20px;
}

/* cart */
.cartTab{
    width: 400px;
    background-color: #353432;
    color: #eee;
    position: fixed;
    top: 0;
    right: -400px;
    bottom: 0;
    display: grid;
    grid-template-rows: 70px 1fr 70px;
    transition: .5s;
}
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(1, 1fr);
}
.cartTab button{
    background-color: #E8BC0E;
    border: none;
    font-family: Poppins;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
}
.cartTab .close{
    background-color: #eee;
}
.listCart .item img{
    width: 100%;
    margin: 5px;
}
.listCart .item{
    display: grid;
    grid-template-columns: 70px 150px 50px 1fr;
    gap: 10px;
    text-align: center;
    align-items: center;
}
.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(2, 1fr);
    }
}