/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@1,100&family=Noto+Sans+Thai:wght@100;200;300;400;500;600;700;800;900&family=Poppins:ital,wght@0,300;0,500;0,600;1,500;1,900&family=Prompt:ital,wght@0,300;0,400;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-padding-top: 2rem;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-family: 'Noto Sans Thai', sans-serif;
}
:root{
    --main-color:#008148;
    --secoud-color: #1e3932;
}
section{
    padding: 50px 10%;
    display: grid;
}
*::selection{
    color: #fff;
    background: var(--main-color);
}
img{
    width: 100%;
}
header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    box-shadow: 0 4px 41px rgb(14 55 54 / 14%);
    padding: 15px 10%;
    transition: 0.2s;
}

.hidden{
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show{
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.logo{
    display: flex;
    align-items: center;
}
.logo img{
    width: 150px;
}
.navbar{
    display: flex;
}
.navbar a{
    font-size: 1rem;
    padding: 11px 20px;
    color: var(--secoud-color);
    font-weight: 600;
    text-transform: uppercase;
}
.navbar a:hover{
    color: var(--main-color);
}

.navbar .lang img{
    width: 25px;
}
.navbar .lang{
    display: flex;
}
.navbar .lang li{
    list-style-type: none
}
#menu-icon{
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    display: none;
}
.home{
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    gap: 1rem;
}
.home-text{
    flex: 1 1 17rem;
}
.home-img{
    flex: 1 1 17rem;
}
.home-img img{
    animation: animate 3s linear infinite;
}
@keyframes animate{
    0%{
        transform: translate(-11px,0);
    }
    50%{
        transform: translate(-0px,-11px);
    }
    100%{
        transform: translate(-11px,0);
    }
}
.home-text span{
    font-size: 3.5rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--secoud-color);
}
.home-text h1{
    font-size: 6rem;
    color: var(--main-color);
    font-weight: bolder;
}
.home-text h2{
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--secoud-color);
    margin: 0.5rem 0 1.4rem;
}
/* icon and beside*/
.sci{
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.sci li{
    list-style: none;
}
.sci li a{
    display: inline-block;
    filter: invert();
    margin: 5px 0;
    transform: scale(0.5);

}
.sci li img{
    max-width: 150px;
}
.circle{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #017143;
    clip-path: circle(700px at right 200px);
}
.btn{
    padding: 7px 16px;
    border: 2px solid var(--secoud-color);
    border-radius: 40px;
    color: var(--secoud-color);
    font-weight: 500;
}
.btn:hover{
    color: #fff;
    background: var(--secoud-color);
}
.heading{
    text-align: center;
    text-transform: uppercase;
}
.heading span{
    font-size: 1rem;
    font-weight: 600;
    color: var(--secoud-color);
}
.heading h1{
    font-size: 2rem;
    color: var(--main-color);
}
.product-container{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 5rem;
}
.product-container .box{
    flex: 1 1 10rem ;
    background: var(--main-color);
    padding: 20px;
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    border-radius: 0.5rem;
}
.product-container .box .box-img{
    width: 150px;
    height: 150px;
    margin-top: -100px;
}
.product-container .box .box-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .4s;
}
.product-container .box .box-img img:hover{
    transform: scale(1.1);
}
.stars{
    margin: 1rem 0 0.1rem;
}
.product-container .box .stars .bx{
    color: #ebdbc8;
}
.product-container .box h2{
    color: #ebdbc8;
    font-size: 1.2rem;
    margin-top: 0.7rem;
}
.product-container .box span{
    color: #ebdbc7;
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0.2rem 0 0.5rem;
}

.box:nth-child(2){
    transition-delay: 200ms;
}
.box:nth-child(3){
    transition-delay: 400ms;
}
.box .btn{
    border: 2px solid #ebdbc8;
    color: #ebdbc8;
}
.box .btn:hover{
    background: #ebdbc8;
    color: var(--secoud-color);
}
.container{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}
.about-img{
    flex: 1 1 21rem;
    
}
.about-text{
    flex: 1 1 21rem;
    transition-delay: 300ms ;
}
.about-text h2{
    font-size: 1.2rem;
    color: var(--secoud-color);
}
.about-text p{
    margin: 0.5rem 0 1rem;
    text-align: justify;
}

.news-img{
    flex: 1 1 21rem;
    transition-delay: 300ms;
    
}
.news-text{
    flex: 1 1 21rem;
}
.news-text h2{
    font-size: 1.2rem;
    color: var(--secoud-color);
}
.news-text p{
    margin: 0.5rem 0 1rem;
    text-align: justify;
}

.newslist p{
    color: #00821b;
}

.newslist p:hover{
    color: #111;
}
.careers{
    display: flex;
    flex-wrap: wrap;
    background: #ebdbc8;
    gap: 1.5rem;
}

.careers-img{
    flex: 1 1 17rem;
}
.careers-text{
    flex: 1 1 17rem;
    transition-delay: 300ms ;
}
.careers-text h2{
    font-size: 1.2rem;
    color: var(--secoud-color);
}
.careers-text p{
    margin-top: 0.5rem 0 1rem;
    text-align: justify;
}
.contact{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.social a{
    font-size: 27px;
    margin: 0.5rem;
}
.social a .bx{
    padding: 5px;
    color: #fff;
    background: #333;
    border-radius: 50%;
}
.social a .bx:hover{
    background: var(--main-color);
    transition: 0.3s;
}
.links{
    margin: 1rem 0 1rem;
}
.links a{
    font-size: 1rem;
    font-weight: 500;
    color: var(--secoud-color);
    padding: 1rem;
}
.links a:hover{
    color: var(--main-color);
}
.contact p{
    text-align: center;
    font-weight: 500;
    color: var(--secoud-color);
}
@media (max-width: 1265px){
    header{
        padding: 18px 7%;
    }
    section{
        padding: 50px 7%;
    }
    .home-text h1{
        font-size: 3rem;
    }
    .home-text h2{
        font-size: 1rem;
    }
    .circle{
        clip-path: circle(400px at right 300px);
    }
}
@media (max-width: 1035px){
    header{
        padding: 18px 4%;
    }
    section{
        padding: 50px 4%;
    }
    .home-text h1{
        font-size: 3rem;
    }
    .home-text h2{
        font-size: 1rem;
    }
    .circle{
        clip-path: circle(400px at right 300px);
    }
}
@media (max-width: 915px){
    header{
        padding: 11px 4%;
    }
    #menu-icon{
        display: initial;
    }
    header .navbar{
        position: absolute;
        top: -500px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 4px 4px rgb(14 55 54 / 14%);
        transition: 0.2s;
        border-top: 2px solid var(--main-color);
        text-align: left;
    }
    .navbar.active{
        top: 100%;
    }
    .navbar a{
        padding: 1rem ;
        display: block;
        color: var(--secoud-color);
    }
    .home-text span{
        font-size: 0.9rem;
    }
    .home-text h1{
        font-size: 2.4rem;
    }
    .home-text h2{
        font-size: 0.9rem;
    }
}
@media (max-width: 700px){
    .home{
        background: #fff;
    }
    .circle{
        visibility: hidden;
    }
    .sci li a{
        filter: invert(0);
        transform: scale(0.4);
    }
}
@media (max-width: 625px){
    .home-text{
        padding-top: inherit;
    }
    .product-container .box{
        margin-top: 6rem;
    }
    .heading h1{
        font-size: 1.5rem;
    }
    .heading span{
        font-size: 0.9rem;
    }
    .about{
        flex-direction: column-reverse;
    }
}
@media (max-width: 535px){
    .links{
        display: flex;
        flex-direction: column;
    }
    .contact p{
        font-size: 0.8rem;
    }

    .sci{
        top: 70%;
    }
}

.products-preview{
    position: fixed;
    top:0; left:0;
    min-height: 100vh;
    width: 100%;
    background: rgba(0,0,0,.8);
    display: none;
    align-items: center;
    justify-content: center;
 }
 
 .products-preview .preview{
    display: none;
    padding:2rem;
    text-align: center;
    background: #fff;
    position: relative;
    margin:2rem;
    width: 40rem;
 }
 
 .products-preview .preview.active{
    display: inline-block;
 }
 
 .products-preview .preview img{
    height: 30rem;
 }
 
 .products-preview .preview .fa-times{
    position: absolute;
    top:1rem; right:1.5rem;
    cursor: pointer;
    color:#444;
    font-size: 4rem;
 }
 
 .products-preview .preview .fa-times:hover{
    transform: rotate(90deg);
 }
 
 .products-preview .preview h3{
    color:#444;
    padding:.5rem 0;
    font-size: 2.5rem;
 }
 
 .products-preview .preview .stars{
    padding:1rem 0;
    font-size: 1.7rem;
 }
 
 .products-preview .preview .stars i{
    color:#27ae60;
 }
 
 .products-preview .preview .stars span{
    color:#999;
 }
 
 .products-preview .preview p{
    line-height: 1.5;
    padding:1rem 0;
    font-size: 1.6rem;
    color:#777;
 }
 
 .products-preview .preview .price{
    padding:1rem 0;
    font-size: 2.5rem;
    color:#27ae60;
 }
 
 .products-preview .preview .buttons{
    display: flex;
    gap:1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
 }
 
 .products-preview .preview .buttons a{
    flex:1 1 16rem;
    padding:1rem;
    font-size: 1.8rem;
    color:#444;
    border:.1rem solid #444;
 }
 
 .products-preview .preview .buttons a.cart{
    background: #444;
    color:#fff;
 }
 
 .products-preview .preview .buttons a.cart:hover{
    background: #111;
 }
 
 .products-preview .preview .buttons a.buy:hover{
    background: #444;
    color:#fff;
 }
 