*{
    margin: 0;
    padding: 0;
    box-sizing:border-box;
}

body{
    font-family:cursive;
    margin-bottom:20px;

}

.navbar{
    background-color:#212529;
    color:white;
    display:flex;
    justify-content:space-between;
    padding:20px 60px;
}

.cart{
    background-color:white;
    color:#212529;
    padding:5px 10px;
    font-size:25px;
    border-radius:20%;
    position:relative;
    cursor:pointer;
    margin:auto 0;
}



.cart-amount{
    background-color:green;
    position:absolute;
    top:-15px;
    right:-10px;
    font-size:16px;
    color:white;
    padding:3px 6px;
    border-radius:20%;
} 



.shop{
    display:grid;
    grid-template-columns:repeat(4,250px);
    gap:30px;
    justify-content:center;
    margin-top: 5%;
    width:100%;
} 


@media(max-width:1100px){
    .shop{
        grid-template-columns: repeat(2,250px);
        gap:60px
    }
}

@media(max-width:600px){
    .shop{
        grid-template-columns: repeat(1,250px);
        gap:30px;
    }
}

.card{
    border:4px solid purple;
    /* margin-inline:3px; */
    border-radius:5%;
    background-color: aliceblue;

}

.card img{
    width:100%;
    border-radius:6px 6px 0 0;
}





.price-quantity{
    display:flex;
    justify-content:space-between;
    margin:3% 10%;
    background-color:rgb(6, 240, 53);
    border-radius: 10%;
    border:1.5px solid purple
}

.counter{
    display:inherit;
    font-size:20px;
    background-color: rgb(255, 0, 140);
    border-radius: 10%;
    color:white;
    padding:5px;
    justify-content: space-between;
    width:45%;
}


img, .details{
    text-align:center;
}

img{
    border-radius:5%;
    border:1.5px solid purple;
}



.shop i{
    background-color:rgb(243, 180, 7);
    color:black;
    border-radius:50%;
    transition: ease-in 100ms;
}

.shop i:hover{
    background-color: rgb(14, 176, 235);
    cursor:pointer;  
}


/* part 2 */

a{
    text-decoration: none;
    color:white;
}

/* styles for empty cart html page  */

.text-center{
    text-align:center;
    margin:10px 0 20px 0;
}

.homebut{ 
    background-color: #212529;
    color:white;
    border:none;
    padding:10px;
    border-radius:20%;
    cursor:pointer;
    margin-top:15px;
    font-size:18px;
    text-decoration: none;
}


.bi-x-lg{
    color:blue;
    font-weight:bolder;
    text-align: center;
}


.shopped-items{
    display:grid;
    grid-template-rows:repeat(4,150px);
    justify-content: center;
    align-items:center;

}


.slant-card{
    display:grid;
    justify-content: center;
    grid-template-columns: 110px 2fr;
    border:2px solid black;
    border-radius:10px;
    width:420px;
}

.titleNprice{
    display:grid;
    grid-template-columns: 4fr 3fr 1.5fr;
    text-align:left;
    gap: 10px;
    margin-top:5px;
}

.counter-control{
    display:flex;
    justify-content: flex-start;
    column-gap: 5px;
}


.simage{
    width:100px;
    margin:0;
}

.details{
    display:flex;
    flex-direction:column;
    justify-content: space-between;

}

.total{
    text-align: left;
    background-color: rgb(6, 247, 98);
    width:fit-content;
    padding-inline: 3px;
    border-radius: 5px;
}

#price{
    background-color: black;
    color:white;
    padding:1px;
    border-radius:5px;
    text-align: center;
    width:fit-content;
    height:fit-content;
    padding-inline: 3px;
}

#name{
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}


@media(max-width:500px){
    .slant-card{
        width:300px;
    }

}


.thanos,.showPiece{
    width:100px;
    margin-top:10px;
    height:40px;
    font-size:19px;
    font-family:Georgia, 'Times New Roman', Times, serif;
    margin-inline:4px;
    border-radius: 3px;
    box-shadow: 0px 4px 4px 0px rgb(0,0,0,0.4);
    border:1px solid purple;
}

.thanos{
    background-color: rgb(233, 7, 7);
    color:antiquewhite;
}
.showPiece{
    background-color: green;
    color:white;
}