body{
    background-color: #e5e5e5;
    
}

header .icons .fa-cart-shopping{
    background-color: white;
    padding: 10px;
    padding-right: 12px;
    /* width: ; */
    border-radius: 3rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.164);
}
header .icons .fa-cart-shopping:hover{
    background-color: rgb(37, 37, 37);
    
}

.navContainer li{
    font-size: 1.2rem;
    margin: 0 1.1rem;
    position: relative;
    top: -0.3rem;
}
.content *{
    font-family: poppins;
    font-weight: 400;
}


.content h1{
    margin: 2rem 0;
    margin-bottom: 4.5rem;
    text-align: center;
    text-transform: uppercase;
    font-size: 2.7rem;
}

section{
    display: flex;
    justify-content: space-around;
    padding: 0 4rem;
    margin-bottom: 4rem;
    gap: 6.5rem;
}

.cartList{
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.cartList h3{
    text-align: center;
}


.cartItem{
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: center;
    padding: 0.6rem 1.3rem;
    padding-bottom: 1rem;
   width: 65vw;
   background-color: #D9D9D9;
   box-shadow: 10px 3px 10px rgba(0, 0, 0, 0.250);

}


.product-img{
    position: relative;
    width: 10.8rem;
    height: 9rem;
    background-color: #F5F5F5;
    background-size: cover;
    background-position: center;
    /* border-radius: 3%; */
    
}




.product-img .discount{
    position: absolute!important;
    top: 0.5rem;
    left: 0.5rem;
    font-family: poppins;
    font-weight: 400;
    font-size: 0.5rem;
    color: #FAFAFA;
    padding: 0.17rem 0.45rem;
    border-radius: 10%;
    background-color: #59A757;
}



.quantityControl{
    width: 7rem;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}
.quantityControl span{
    padding: 0.4rem 1rem;
    border-radius: 0.8rem;
    background-color: #808080;
    color: white;
}
.quantityControl button{
    background-color: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.15s all ease;
    padding: 0.3rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10rem;
}

.quantityControl button:hover{
    background-color: #696969;
    color: white;
    
}

.price, .totalPrice{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.removeItem{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 3px solid #808080;
    border-radius: 10rem;
    background-color: transparent;
    cursor: pointer;
    transition: 0.15s all ease;
}
.removeItem:hover{
    /* border: ; */
    border: 3px solid #bf6060;
}

.removeItem span{
    
    width: 50%;
    height: 3px;
    border-radius: 4rem;
    background-color: #808080;
    transition: 0.15s all ease;
}
.removeItem:hover span{
    background-color: #bf6060;
}
/* code for cart headings  */

.cartItem:nth-child(1) *{
    position: relative;
}




.cartItem:nth-child(1) .quantityControl::before{
    
    content: "QUANTITY";
    position: absolute;
    text-align: center;
    top: -2.7rem;
    font-weight: 600;
    font-size: 0.85rem;
    left: 0;
    width: 100%;
    z-index: 99;
}

.cartItem:nth-child(1) .product-img::before{
content: "PRODUCT DETAILS";
position: absolute;
text-align: center;
top: -2.7rem;
font-weight: 600;
font-size: 0.85rem;
left: 0;
width: 100%;
z-index: 99;
}
.cartItem:nth-child(1) .price::before{
content: "PRICE";
position: absolute;
text-align: center;
top: -2.7rem;
font-weight: 600;
font-size: 0.85rem;
left: 0;
width: 100%;
z-index: 99;
}
.cartItem:nth-child(1) .totalPrice::before{
content: "TOTAL";
position: absolute;
text-align: center;
top: -2.7rem;
font-weight: 600;
font-size: 0.85rem;
left: 0;
width: 100%;
z-index: 99;
}




.checkout{
    height: 20rem;
    border-radius: 1.3rem;
    padding: 1.5rem;
    text-transform: uppercase;
    width: 35vw;
    background-color: #D9D9D9;
   box-shadow: 10px 3px 10px rgba(0, 0, 0, 0.250);
   max-width: 290px;
}
.checkout h4{
    font-weight: bolder;
    margin-bottom: 0.8rem;
    margin-left: 0.3rem;
}
.checkout hr{
    height: 0.3rem;
    background-color: #A3A3A3;
    margin-bottom: 0.5rem;
    border: 0;
    border-radius: 2rem;

}

.subTotal , .delivery{
    display: flex;
    justify-content: space-between;
    padding: 0 0.3rem;
    margin-bottom: 0.5rem;
}

.subTotal p, .delivery p{
    font-size: 0.7rem;
}

.checkoutBtn{
    width: 100%;
    background-color: #A3A3A3;
    border-radius: 0.4rem;
    /* font-size: 1.2rem; */
    font-weight: bolder;
    color: white;
    border: 0;
    text-transform: uppercase;
    padding: 0.5rem 0;
    letter-spacing: 0.1rem;
    font-size: 0.75rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: 0.2s all ease;
}

.checkoutBtn:hover{
    
    background-color: #696969;
}

@media screen and (max-width: 1200px) {
    section {
        gap: 2rem;
        padding: 0 2rem;
    }
    .product-img{
        /* width: 30%; */
    }
}
@media screen and (max-width: 1000px){
    .product-img{
        width: 8.5rem;
        height: 7rem;
    }
    .cartItem{
        gap: 1rem;
    }
    
}

@media screen and (max-width: 768px){
    section{
        flex-direction: column;
        align-items: center;
    }
    .cartList{
        width: 100%;
    }
    .cartItem{
        width: 100%;
        gap: 0;
    }
    .checkout{
        width: 100%;
        height: 100%;
        max-width: 400px;
    }
    .quantityControl{
        height: 7rem;
    }
    .price{
        height: 7rem;
    }
    .totalPrice{
        height: 7rem;
    }
}
@media screen and (max-width: 500px){
.totalPrice{
    display: none;
}
.price{
    display: none;
}
section{
    padding: 0 1rem;
}
}