@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
body{
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    margin: 0;
}
.container {
    width: 100%;
    max-width: 98vw;
    background-color: #ffffff;
    margin: auto;
    text-align: center;
    padding-top: 10px;
}
svg{
    display: flex;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 25px;
}
header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}
header .icon-cart{
    position: relative;
}
header .icon-cart span{
    display: flex;
    width: 30px;
    height: 30px;
    background-color: pink;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 0px;
}
.listProduct .item img{
    width: 90%;
    filter: drop-shadow(0, 20px, 50px #000f);
}
.listProduct{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.listProduct .item button{
    background-color: #353432;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    margin-top: 10px;
    border: none;
    cursor:grab;
}

.cartTab{
    width: 400px;
    height: 100vh;
    z-index: 100;
    background-color: hsl(40, 3%, 20%);
    color: white;
    position: fixed;
    inset: 0 -400px 0 auto;
    display: grid;
    grid-template-rows: 70px 1fr 70px;
}
body.showCart .cartTab{
    inset: 0 0px 0 auto;
}
body.showCart .container{
      position: absolute;
      right: 0;
      top: 0;
 
}
.cartTab h1{
    padding: 20px;
    margin: 0;

}
.cartTab .btn{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.cartTab .btn button{
    background-color: pink;
    border: none;
    font-family: Roboto;
    font-weight: bold;
    cursor: pointer;
}
.cartTab .btn .close{
    background-color: rgb(241, 236, 255);
}
.cartTab .listCart .item img{
    width: 80%;
}
.cartTab .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: pink;
    color: #353432;
    border-radius: 50%;
    cursor: pointer;
}
.listCart .quantity span:nth-child(2){
    background-color: transparent;
    color: pink;
}