@import url(../resources/resource.css);

/* featured products */
#featured_products_section{
    margin-top: 3rem;
    margin-bottom: 2rem;
    
}
.featured_products_section{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.featured_product_img img{
    width: 100%;
    height: 180px;
    border-radius: 5px;
    object-fit: cover;
}
.featured_products_section_heading{
    text-align: center;
    margin-bottom: 3rem;
}
.featured_products_section_heading h2{
    font-size: clamp(28px,3vw,40px);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
}
.featured_products_section_heading h4{
    font-size: clamp(18px,2vw,20px);
    color: var(--background-color);
    font-weight: 600;
}
.featured_products_list_main{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    
}
.featured_products_list .featured_product_img img {
    transition: transform 0.3s ease-in-out;
}
.featured_products_list:hover .featured_product_img img:hover{
    transform: scale(1.02);
}
.featured_products_list{
    background: var(--bglight-color);
    padding: 1rem;
    width: 280px;
    border-radius: 5px;
    box-shadow: 2px 4px 4px rgba(0,0,0,0.2);
    transition: 0.5s;
}
.featured_products_list:hover{
    transform: scale(1.02);
}
.featured_product_main_con{
height: 140px;
padding-top: 1rem;

}
.featured_product_main_con p{
    height: 50px;
    overflow: hidden;
}
.price_btn,.buynow_btn{
    border: 1px solid var(--background-color);
    background: var(--primary-color);
    padding: 2px 10px;
font-weight: 600;
border-radius: 3px;
color: var(--white);
transition: 0.5s;
}
.price_btn:hover,.buynow_btn:hover{
    background: var(--secondary-color);
}
.buynow_btn{
    margin-left: 1rem;

}


/* categories */
#product_categories{
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.product_categories{
    display: flex;
    justify-content: center;
    align-items: center;
}
.product_categories_title{
    text-align: center;
}
.product_categories_title h2{
    font-size: clamp(22px,3vw,30px);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
}
.product_categories_title h4{
    font-size: clamp(18px,2vw,25px);
    color: var(--background-color);
}
.product_categories_list{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.product_categories_list_main{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    margin-top: 2rem;
}
.product_categories_list_con h2{
    font-size: clamp(18px,2vw,20px);

}
.product_categories_list_con{
    background: var(--primary-color);
    color: var(--white);
    width: 280px;
border-radius: 5px;
padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 2px 4px 5px rgba(0,0,0,0.2);
  transition: 0.4s;
}

.product_categories_list_img img{
    width: 300px;
    border-radius: 3px;
    margin-bottom: -2rem;
}
.product_categories_list:hover .product_categories_list_con{
    transform: scale(1.02);
    background: var(--secondary-color);
}

/* product list title */
.product_list_head{
text-align: center;
text-transform: uppercase;
background: linear-gradient(to right,var(--primary-color),rgba(77, 174, 74, 0.671));
padding: 10px;
border-radius: 4px;
width: 100%;
max-width: 1200px;
margin: 0 auto;
border: 1px solid var(--white);
box-shadow: 2px 4px 5px rgba(0,0,0,0.2);
}
.product_list_head h2{
    color: var(--white);
    font-size: clamp(23px,3vw,28px);
    font-weight: 700;

}
/*  products list*/
.categories_title_head{
    font-size: clamp(22px,2vw,28px);
    color: var(--primary-color);
    font-weight: bold;
}

/* products */
.products_list{
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.products_contents{
    width: 180px;
    height: 380px;
    border: 1px solid var(--background-color);
    border-radius: 5px;
    box-shadow: 2px 4px 5px rgba(0,0,0,0.2);
}
.products_content_main{
    width: 980px;
    margin-right: 0.4rem;
}
.swiper-button-prev,.swiper-button-next{
    border-radius: 5px;
    background: var(--background-color);
    border: 1px solid var(--secondary-color);
    transform: scale(0.7);
    position: absolute;
  

    
}
.swiper-button-prev{
    left: -10px;
}
.swiper-button-next{
    right: -10px;
}
.product_list_content{
    padding: 1rem;
}
.product_list_content p{
    height: 50px;
}