
.product_div{
    width: 100%;
    height: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    box-sizing: border-box;
}
.product_div_top{
    width: 100%;
    height: auto;
    box-sizing: border-box;
}
.product_div_top i{
    font-size: 18px;
    color: var(--faded-font-clr);
}
.product_div_top span{
    font-family: var(--poppins-font-fam);
    font-weight: 300;
    font-size: 16px;
    color: var(--faded-font-clr);
}
@media (max-width:768px){
    .product_div_top span{
        font-size: 14px;
    }
}

/*product listing*/

.product_container{
    width: 100%;
    padding: 0;
    height: auto;
    display: grid; 
    gap: 10px; 
    padding: 10px;
    box-sizing: border-box;
}

@media (min-width: 1069px) {
    .product_container {
        grid-template-columns: repeat(5, 1fr); 
    }
}
@media (min-width: 801px) and (max-width: 1068px) {
    .product_container {
        grid-template-columns: repeat(4, 1fr); 
    }
}

@media (min-width: 601px) and (max-width: 800px) {
    .product_container {
        grid-template-columns: repeat(3, 1fr); 
    }
}


@media (max-width: 600px) {
    .product_container {
        grid-template-columns: repeat(2, 1fr); 
    }
}


.product_card{
    position: relative;
    width: 100%;
    height: auto;
    background-color: var(--backgrnd_color);
    border: solid 1px var(--highlighted_zones);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 5px;
    gap: 5px;
    overflow: hidden;
    box-sizing: border-box;
}
.product_discount_span{
    position: absolute;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--backgrnd_color);
    border: solid 1px var(--highlighted-clr-4);
    border-radius: 50%;
    font-family: var(--poppins-font-fam);
    color: var(--faded-font-clr);
    font-weight: bold;
    font-size: 10px;
    z-index: 50;
    top: 7px;
    right: 7px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.product_card:hover{
    background-color: var(--blue-theme-background);
}
.product_img_div{
    width: 100%;
    height: 60%;
    overflow: hidden; 
    box-sizing: border-box;
}

.product_img{
    width: 100%;
    height: auto;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    object-fit:contain;
}

.product_info_div{
    width: 100%;
    height: 40%; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.product_title{
    font-family: var(--poppins-font-fam);
    font-weight: bold;
    font-size: 14px;
    color: var(--font-clr);
    width: 100%;
    margin: 0;
    text-align: left;
    box-sizing: border-box;
}
.product_pricing_div{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.product_price_before{
    font-family: var(--poppins-font-fam);
    font-weight: bold;
    font-size: 14px;
    color: var(--faded-font-clr);
    text-decoration: line-through;
}
.product_price_after{
    font-family: var(--poppins-font-fam);
    font-weight: bold;
    font-size: 14px;
    color: var(--font-clr);
}
.product_stock_div{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}
.product_stock_p{
    font-family: var(--poppins-font-fam);
    font-weight: 300;
    font-size: 12px;
    color: var(--font-clr);
}

.product_socials_div{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.product_stock_div i{
    font-size: 12px;
    color: var(--faded-font-clr);
}
.product-review-div{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}
.product-review-div span{
    font-family: var(--poppins-font-fam);
    font-weight: 300;
    font-size: 12px;
    color: var(--font-clr);
}
.product-review-div i{
    font-size: 12px;
    color: green;
}


@media (min-width: 769px) and (max-width: 1268px){
    .product_card{
        width: 95%;

    }
   
    .product_price_before{
        font-size: 14px;
    }
    .product_price_after{
        font-size: 14px;
    }
    .product_stock_p{
        font-size: 12px;
    }
    .product_title{
        font-size: 12px;
    }
    .product-review-div span{
        font-size: 12px;
    }
}

@media (min-width: 569px) and (max-width: 768px){
    .product_container{
        gap: 5px;
        padding: 0;
    }
    .product_info_div{
        gap: 3px;
    }
    .product_price_before{
        font-size: 1.8vw;
    }
    .product_price_after{
        font-size: 1.8vw;
    }
    .product_stock_p{
        font-size: 1.6vw;
    }
    .product_title{
        font-size: 2vw;
    }
    .product_discount_p{
        font-size: 1.8vw;
    }
    .product-review-div span{
        font-size: 1.8vw;
    }
    .product-review-div i{
        font-size: 1.8vw;
    }
}

@media(max-width:568px){
    .product_container{
        gap: 5px;
        padding: 0;
    }
    
    .product_info_div{
        gap: 3px;
    }
    .product_price_before{
        font-size: 10px;
    }
    .product_price_after{
        font-size: 10px;
    }
    .product_stock_p{
        font-size: 2.1vw;
    }
    .product_title{
        font-size: 9px;
    }
    .product_discount_p{
        font-size: 2vw;
    }
    .product-review-div span{
        font-size: 10px;
    }
    .product-review-div i{
        font-size: 10px;
    }
}
