*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    font-family: sans-serif;
}


#cart-icon{
    position: relative;
    font-size: 20px;
    cursor: pointer;
}
#cart-icon .cart-item-count{
    position: absolute;
    right: -10px;
    top: -10px;
    width: 20px;
    height: 20px;
    background-color: rgb(93, 103, 241);
    border-radius: 50%;
    font-size: 17px;
    color: white;
    display: flex;
    justify-content: center;
    visibility: hidden;
}
.shop{
    padding: 100px 9% 30px ;
}
.section-title{
    font-size: 35px;
    text-align: center;
    margin-bottom: 18px;
}
.product-content{

   display: grid;
   grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
   gap: 30px;
}
.product-box .img-box{
    display: flex;
    border-radius: 10px;
}

.img-box:hover img{
    transform: scale(1.1);
}

.product-box .price-and-cart{
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding:5px;
    margin-top:15px; 
}

.cart{
    position:fixed;
    top: 0%;
    right: -110%;
    width: 310px;
    height: 100%;
    padding: 75px 3px 30px;
    box-shadow: -2px 0 10px rgba(214, 6, 6, 0.1);
    z-index: 1000;
    overflow: hidden;
    background: transparent;
    background: #f8f9fb;
    transition: 0.5s;
    border-radius: 10px;
}
.cart-title{
    text-align: center;
    font-size: 25px;
    color:navy;
    font-weight: bolder;
}
.cart.active{
    right: 0;
}
.cart-box{
    display: flex;
    align-items: center;
    margin-top: 20px;
}
.cart-box img{
    width: 100px;
    height: 100px;
    border-radius: 6px;
    object-fit: contain;
    margin-right: 20px;
}
.cart-detail{
    display: grid;
    gap: 20px;
    margin: auto;
}
.cart-product-title{
    margin-top: 10px;
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
    color: blue;
}
.cart-price{
    font-size: large;
    font-weight: 500;
    margin-top: 10px;
}
.cart-quantity{
    display: flex;
    width: 100px;
    border: 1px solid #999;
    border-radius: 6px;
}
.cart-quantity button{
    background: transparent;
    width: 30px;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.cart-quantity #decrement{
    color: #999;
}
.cart-quantity .number{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    border-left: 1px solid #999;
    border-right: 1px solid #999;
    cursor: pointer;
}
.cart-remove img{
    width: 24px;
    height: 24px;
}

.cart-remove{
    font-size: 20px;
    cursor: pointer;
    margin-bottom: 5px;
    
}

.total{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border: 1px soild #333;
    margin-top: 20px;
    font-size: 20px;
}
.total-price{
    color: slategrey;
    margin-left: 10px;
    font-weight: 600;
}
.btn-buy{
    display: block;
    padding: 10px 30px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    margin: 20px auto 0;
    cursor: pointer;
}
#cart-close{
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}
  
@media screen and (min-width:320px){
    .product-content{
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .cart{
        width: 100%;
    }
}




 @media screen and (max-width:2540px){
    .product-content{
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .cart{
        width: 320px;
    }
} 


#cart-icon1{
    cursor: pointer;
}
#cart-icon1 .cart-item-count1{
    
    position: absolute;
    right: 30px;
    top: 10px;
    width: 20px;
    height: 20px;
    background-color: rgb(255, 115, 64);
    border-radius: 50%;
    font-size: 20px;
    color: white;
    display: flex;
    visibility: hidden;
}





