@import url('https://fonts.googleapis.com/css2?family=Poiret+One&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    background-color: #f2f7f3;
    font-family:roboto;
    overflow-x: clip;
    height:max-content;
    display: flex;
    gap:10px;
    flex-direction: column;
}
.header{
    background: #9CB9A2;
    background: linear-gradient(to top, #9CB9A2 0%, #709778 100%); ;
    width: 100vw;
    height: 550px;
    display: flex;
    position: relative;
    overflow-y:clip ;
}
.img_img1{
    position: absolute;
    z-index: 0;
    bottom: 0;
    max-height: 100%;
    top: 120px;
    left: -65px;
    width: 600px;
    transform: scale(0.9);

}

.img_img2{
    position: absolute;
    z-index: 0;
    bottom: 0;
    max-height: 100%;
    top: 155px;
    left:-85px;
    transform: scale(1.4);

}

.header_container{
    width: 100vw;
    height: 43% ;
    /* background-color: #537d5d; */
    display: flex;
    position: relative;
    flex-direction: column;
    z-index: 1;

}
.brand{
    display: flex; 
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    align-content: center;
    line-height:2px;
}


.brand_logo{
    position: relative;
    margin-top: 10px;
    width: 70px;
    height: 70px;
}
.brand_name{
    position: relative;
    top: -20px;
    width: 361px;
}
a{
    text-decoration: none;
    color: inherit;
}
nav{
    width: 100vw;
    display: flex;
    flex: 1;
    position: relative;
    justify-content: space-evenly;
    color: #f2f7f3;
    /* align-items: baseline; */
    top:-30px;
    font-size: 1.5rem;
    padding: 0 3em;
}
.main-menu{
    display: flex;
    /* position: relative; */
    list-style: none;
    justify-content: space-between;
    width:80vw ;
    align-items: center;
}
.has-dropdw{
    position: relative;
}

.main-menu .has-dropdw:hover{
    transform: scale(1.05);
    transition: transform 0.3s;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness:1.5px;

}

.header_container:hover{
    background-color:#537d5d;
    transition-duration: 0.3s;
}
#đăng_kí{
    font-family: roboto;
    font-size:3vh ;
    color: #f2f7f3;
    border: solid #f2f7f3;
    background-color:transparent;
    padding: 10px 20px;
    border-radius: 20px;
}
#đăng_kí:hover{
    font-size: 3vh;
    color: #537d5d;
    border: solid #537d5d;
    background-color:#f2f7f3d6;
    padding: 10px 20px;;
    border-radius: 20px;
    transition-duration: 0.3s;
    cursor: pointer;
}

.dropdw{
    position: absolute;
    height: 200px;  
    min-width: 180px;
    top: 166.7px;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #537d5d;
    list-style: none;
    box-shadow: inset 0px 3px 8px -3px #00000068;
    padding: 10px 0;
    opacity: 0;
    display:flex ;
    flex-direction: column;
    justify-content: space-evenly;
}
.has-dropdw:hover ul.dropdw{
    
    opacity: 1;
  
}

.dropdw li{
    padding: 10px;
    justify-content: space-evenly;
    font-size: 1.3rem;
}
.dropdw li:hover{
    transform: scale(1.01);
    background-color: #f2f7f3;
    color: #537d5d;
    transition-duration: 0.3s;
}
/* main.content */

main  {
    display: flex;
    flex-direction: column;
    margin-top: 60px;
}
#title-topm{
    width: 100vw;
    height: auto;
    display: flex;
    justify-content: center;
    gap:20px;
    font-family: poiret system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #537d5d;

}
#title-topm span:first-child{
    color: #304c38;
}
#title-topm span:last-child{
    color: #537d5d;
}

#scroll-area{
    overflow-x: auto;
    overflow-y: clip;
    width: 80vw;
    margin: 10px auto;
    display: flex;
    gap: 25px;

    
}
.product{
    display: flex;
    flex-direction: column;
    gap:10px;
    width: 256px;
    height: 400px;
    flex: 0 0 256px;
    gap: 10px;
    transition-duration: 0.3s;
}
.product a {
    display: block; 
    text-decoration: none; 
    color: inherit;
}
.product >a{
    width: 100%;
    height: 70%;
}
.product-img {
    position: relative;
    width: 100%;
    height: 100%;
}
.product-img img{
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: contain;
    position: absolute;
    transition-duration: 0.5s;
}
.product-img img:last-child{
   opacity: 0;
}

.product:hover .product-img img:first-child{
    opacity: 0;
}
.product:hover .product-img img:last-child{
    opacity: 1;
}
.product:hover{
    transform: scale(1.02);

}

.inf-product{
    display: flex;
    flex-direction: column;
}
.inf-product h2{
    color:#304c38 ;
}
.inf-product p{
    color:#537d5d ;
    padding: 5px 0px;
    font-size: 1.2rem;
}




