/* kanit-300 - latin_thai */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 300;
  src: url("fonts/kanit-v15-latin_thai-300.e8a43d948dfd.woff2") format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* kanit-regular - latin_thai */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  src: url("fonts/kanit-v15-latin_thai-regular.75144fcd76c2.woff2") format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* kanit-500 - latin_thai */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  src: url("fonts/kanit-v15-latin_thai-500.acae55c9ec7b.woff2") format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
.divider {
    border: none;
    height: 1px;
    background-color: #ddd; /* สีเทาอ่อน */
    margin: 2px 8px; /* ระยะห่าง */
}
/* Global */
*, ::before, ::after {
    box-sizing: border-box;
}
.content {
    margin-top: 40px; /* ✅ ดันเนื้อหาให้ไม่ทับ Header */
}
html{
    color : #344054;
    font-family: 'Kanit', sans-serif;
    font-weight: 400;
}
a {
    text-decoration: none;
}

h1,h2,h3,h4,h5,h6 {
    color: #111111;
    font-weight: 500;
    line-height:1.4;
    margin-top:0px;
    margin-bottom:0px;
}

h1 {
    font-size: 32px;
}
h2 {
    font-size: 28px;
}
h3 {
    font-size: 24px;
}
h4 {
    font-size: 22px;
}
h5 {
    font-size: 20px;
}
h6 {
    font-size: 18px;
}

p {
    font-size: 16px;
    line-height: 1.6;
   margin: 8px 0px;
}
.no-margin {
    margin: 0; /* กำหนด margin เป็น 0 */
    padding: 0; /* ป้องกัน padding มีผล (ถ้าไม่ต้องการ) */
    display: inline-block; /* ป้องกันการเว้นบรรทัด (ถ้าต้องการให้อยู่ติดกับองค์ประกอบอื่น) */
}

a {
    color : #5D8736;
}

.text-center {
    text-align: center;
}
.text-gray {
    color:#CCCCCC;
}
/* form */
.form-field {
    margin-bottom:12px;
}

label {
    display:block;
    margin-bottom:4px;
    line-height: 1.6;
}



.button {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance:none;
    color: white;
    background-color: #727D73;
    border: none;
    border-radius: 8px;
    font-weight: 400;
    line-height: 1;
    display:inline-block;
    font-size: 20px;
    padding: 10px 16px;
    text-decoration: none;
    margin-right : 12px;
    cursor: pointer;
}
.list-order {
    min-width: 1000px;
}
.button-primary {
    width: 100%;
    background-color: #5D8736;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 16px;
    row-gap:16px;
    place-items: center;
}
@media screen and (min-width: 800px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        align-items: start;
         gap: 8px;
    }
    .grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.center-content {
    display: flex; /* ใช้ Flexbox */
    justify-content: center; /* จัดกึ่งกลางแนวนอน */
    align-items: center; /* จัดกึ่งกลางแนวตั้ง */
}

.image-block {
    display:block;
    max-width:100%;
   padding: 15px;
    width: 480px;
}

.desc-product {
    padding: 20px 35px 0px 20px;
}
.flex-container {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;  /* กระจายเต็มพื้นที่ */
    width: 100%;  /* ใช้เต็มความกว้างของ container */
}

.separator::before {
    content: "|";  /* ใส่ | คั่น */
    color: gray;   /* สีเทา */
    padding-right: 10px;  /* ระยะห่างระหว่าง | และข้อความ */
}
.title-product {
    background-color: white;
    padding: 4px 2px;
}
@media (max-width: 400px) {
    .flex-container {
    gap:0px;
        flex-direction: column;  /* เปลี่ยนเป็นแนวตั้ง */
        align-items: flex-start; /* จัดชิดซ้าย */
    }

    .separator::before {
        content: "";
           padding-right: 0px;/* ซ่อน | */
    }
    .flex-container p {
    font-size: 16px;
    line-height: 1.6;
     margin: 4px 0px;
}
}
.desc-price {
    background-color: #F6FCDF;
    padding: 4px 12px;
}

/* section content */
.content-section {
    padding: 64px 16px;
}
.content-section-single {
    min-height: calc(100vh - 220px);
}
.content-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color:white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.content-container-separate {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.content-container-narrow {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 12px 16px 12px;
}
.content-title {
    margin-bottom:24px;
}
.content-container h4 {
   font-size: 32px;
}


/* site header */
.site-header {
   background-image: linear-gradient(315deg, rgba(157, 192, 139, 1) 0%, rgba(248, 245, 233, 0.14) 98%);
   display : flex;
   justify-content: flex-start;
   height: 44px;
   position: relative;
   z-index:100;
}

.site-header-item {
   color : #5D8736;
    background-color: rgba( 0,0,0,0);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-top: 4px;
    padding: 4px 8px;
    transition: background-color 300ms;

}

.site-header-brand img {
    display: inline-block;
    height: 40px;
    object-fit: contain;
    margin-right: 8px;

}
.nav__img {
    display: inline-block;
    height: 36px;
    object-fit: contain;
    margin-right: 8px;
}
.site-header-item .shop-name {
    font-size: 14px;
}

.site-header-item:hover {
    background-color: rgba(0,0,0,0.1)
}

.carousel {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin-top: 40px;
   
}

.carousel .list .item {
    position: absolute;
    inset: 0 0 0 0;
}

.carousel .list .item img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.carousel .list .item .content {
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left:50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}

.carousel .list .item .content .author {
    font-weight: bold;
    letter-spacing: 10px;
}

.carousel .list .item .content .title,
.carousel .list .item .content .topic {
    font-weight: bold;
    font-size: 5em;
    list-style:1.3em;
}

.carousel .list .item .content .topic {
    color : #DF6D14;
}

.carousel .list .item .content .buttons {
    display: grid;
    grid-template-columns : repeat(2,130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel .list .item .content .buttons bottom {
    display: grid;
    grid-template-columns : repeat(2,130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel .list .item .content .button {
    border:none;
    background-color: #eee;
    letter-spacing: 3px;
    font-weight: 500;
     width: 400px;
     text-align: center;
}
.carousel .list .item .content button:nth-child(2) {
    background-color: transparent;
    color: #F8F5E9;
    border: 2px solid;
}

/* thumbnail */
.thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .item img {
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius: 20px;
}
.thumbnail .item .content {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: white;
    text-shadow: 1px 1px 3px rgba(20, 61, 96, 0.74);
}
.thumbnail .item .content .title {
    font-width: bold;
}
/* arrow */
.arrows {
    position: absolute;
    top: 80%;
    right: 52%;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button {
    width: 40px;
    height:40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    font-family: monospace;
    color: #fff;
    font-weight: bold;
    font-size: large;
    transition: .5s;
    z-index:100;
}
.arrows button:hover {
    background-color: #eee;
    color: #555;
}
.carousel .list .item:nth-child(1){
    z-index:1;
}
.carousel .list .item:nth-child(1) .author,
.carousel .list .item:nth-child(1) .title,
.carousel .list .item:nth-child(1) .topic,
.carousel .list .item:nth-child(1) .des,
.carousel .list .item:nth-child(1) .buttons {
    transform: translateY(50px);
    filter: blur(20px);
    opacity:0;
    animation: showContent 0.5s 1s linear 1 forwards;
}

@keyframes showContent {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.carousel .list .item:nth-child(1) .title {
    animation-delay: 1.2s;
}
.carousel .list .item:nth-child(1) .topic {
    animation-delay: 1.4s;
}
.carousel .list .item:nth-child(1) .des {
    animation-delay: 1.6s;
}
.carousel .list .item:nth-child(1) .buttons {
    animation-delay: 1.8s;
}


/* site footer */
ul, li {
     margin-bottom: 0px;
}
ul {
    list-style: none;
}
ul {
    list-style-type: none; /* ✅ ลบ bullet point */
    padding: 0;  /* ✅ ลบ padding ด้านซ้าย (บาง browser มีค่า default) */
    margin: 0;  /* ✅ ลบ margin ด้านนอก */
}
footer {
    background-color: #123524;
    color: #fff;
}
.header a {
    color: #0056b3;
}
.header {
    z-index:1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-image: linear-gradient(0deg, rgba(253, 250, 246, 1) 1%, rgba(153, 188, 133, 0.64) 99%);
    box-shadow: 2 2px 2px hsla(230, 75%, 32%, .15);
    height: 40px;
}
.nav {
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav__logo {
    color: var(--title-color);
    font-weight: 400;
    transition: color .4s;
}
.nav__actions {
    display: flex;
    align-items: center;
    column-gap: 1.4rem;
    
}
.nav__search,
.nav__login,
.nav__toggle,
.nav__close {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
    transition: color .4s;
}
:is(.nav__logo, .nav__search, .nav__login, .nav__toggle, .nav__link):hover{
    color: #007bff;
}

@media screen and (max-width:1023px){
    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        background-color: #FBF5E5;
        box-shadow: 0 8px 16px hsla(230, 75%, 32%, .15);
        width: 100%;
        padding-block: 1.5rem 1.4rem;
        transition: top .4s;
        z-index: 1002;
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
    text-align: center;
}
.nav__link {
    color:#007bff;
    font-weight: 400;
    transition: #d35400 .4s;
}
.nav__close {
    position: absolute;
    top: 1.15rem;
    right: 1.5rem;
}
.show-menu {
    top: 0;
}
.search,
.header-login {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index: 1000;
    background-color: hsla(230, 75%, 32%, .1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 8rem 1.5rem 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
}
.show-search {
    opacity: 1 !important;
    pointer-events: initial !important;
}
.show-search .search__form {
    transform: translateY(0);
}
.search__close,
.header-login__close 
{
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    cursor: pointer;
}
.search__form {
    display: flex;
    align-items:center;
    column-gap: .5rem;
    border-radius: .5rem;
    transform: translateY(-1rem);
    transition: transform .4s;
}
.search__icon {
    font-size: 1.25rem;
}
.search__input {
    width: 100%;
}
.header-login__form,
.header-login__group {
    display: grid;
}
.header-login__form {
    background-color: white;
    padding: 1.2rem 1.4rem 1.2rem 1.4rem;
    box-shadow: 0 8px 32px hsla(230, 75%, 15%, .2);
    border-radius: 1rem;
    row-gap: 1rem;
    text-align: start;
    transform: translateY(-1rem);
    transition: transform .4s;
}
.header-login__label {
    display: block;
    text-align: initial;
}
.header-login__input {
    width:100%;
    border:2px solid #474747;
    padding: 1rem;
    border-radius: .5rem;
    transition: border-color 0.3s ease-in-out;
}
.header-login__input:focus {
    border-color: #d35400;
    outline: none; /* ✅ ลบเส้นขอบสีน้ำเงินของเบราว์เซอร์ */
}
.header-login__signup a {
    color: #007bff; 
}
.header-login__forgot {
    display: inline-block;
    color: grey;
}
.header-login__button {
    display: inline-block;
    width:100%;
    margin-top: 4px;
    cursor: pointer;
    transition: box-shadow .4s;
}
.header-login__button:hover {
    box-shadow: 0 4px 24px hsla(230, 75%, 40%, .4);
}
.header-login p {
    margin: 0;
}
.show-login {
    opacity: 1;
    pointer-events: initial;
}
.show-login .header-login__form {
    transform: translateY(0);
}
.nav {
    padding: 0px 9px 0px 9px;
}
@media screen and (min-width: 576px) {
    .search,
    .header-login {
        padding-top : 10rem;
    }
    .search__form {
        max-width: 450px;
        margin-inline: auto;
    }
    .search__close,
    .header-login__close {
        width: max-content;
        top: 5rem;
        left: 0;
        right: 0;
        margin-inline: auto;
        font-size: 2rem;
    }
    .header-login__form {
        max-width: 400px;
        margin-inline: auto;
    }

}
@media screen and (min-width: 1023px) {
    .nav {
        column-gap : 1.4rem;
        padding: 0px 16px 0px 16px;
    }
    .nav__close,
    .nav__toggle {
        display: none;
    }

    .nav__menu {
        margin-left: auto;
    }

    .nav__list {
        flex-direction: row;
        column-gap: 1.6rem;
    }

    .header-login__form {
        padding: 2.8rem 1.82rem 2.9rem;
    }
}
@media screen and (min-width: 1150px) {
    .container{
        margin-inline: auto;
    }
}
input[type="text"],
input[type="email"] {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance:none;
    background-color: white;
    border: 2px solid #727D73;
    border-radius: 4px;
    font-size: 16px;
    display:block;
    width:100%;
    height:36px;
   
    outline:none;
}
/* 🛑 สไตล์สำหรับ input ที่เป็น disabled */
input[type="text"]:disabled,
input[type="email"]:disabled {
    background-color: #f0f0f0;  /* พื้นหลังสีเทาอ่อน */
    border: 2px solid #ccc;  /* ขอบสีเทาอ่อน */
    color: #888;  /* สีข้อความอ่อนลง */
    cursor: not-allowed;  /* เปลี่ยน cursor เป็น not-allowed */
    opacity: 0.7;  /* ทำให้ดูจางเล็กน้อย */
}
input[type="password"] {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance:none;
    background-color: white;
    border: 2px solid #727D73;
    border-radius: 4px;
    font-size: 16px;
    display:block;
    width:100%;
    height:36px;
   
    outline:none;
}
input[type="text"]:hover,
input[type="email"]:hover {
    border-color: #5D8736;
}
input:focus, textarea:focus {
    border-color: #5D8736;  /* เปลี่ยนเป็นสีเขียวที่ต้องการ */
}




.chemical-info {
    max-width: 1200px;
    margin-top: 28px;
    margin-left: auto;
    margin-right: auto;
    background: white; /* พื้นหลังสีเทาอ่อน */
    border-left: 6px solid #007bff; /* เส้นขอบซ้ายสีฟ้า */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.chemical-name {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50; /* สีเทาเข้ม */
    margin-bottom: 10px;
}

.chemical-action, .chemical-benefits {
    font-size: 16px;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 8px;
}

.chemical-action strong, .chemical-benefits strong {
    color: #d35400; /* สีส้มเข้ม */
}

.logout-form {
    display: inline-block;  /* ทำให้ form แสดงผลเหมือน inline element */
    margin: 0;
    padding-top: 2px;
}

.logout-button {
    background: none;
    border: none;
    color: rgb(204, 15, 15);
    cursor: pointer;
    font-size: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;

}

.social-order-options {
    margin-top: 2rem;
    text-align: center;
  }
  
  .social-order-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
  }
.fb-button {
    margin-top: 6px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color:white;
    color: #1877F2;
    font-size: 18px;  /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: bold;
    padding: 15px 25px;  /* ขนาดปุ่มใหญ่ขึ้น */
    border-radius: 12px;  /* ทำให้ปุ่มมีมุมโค้งมน */
    text-decoration: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* เพิ่มเงาให้ปุ่ม */
    transition: all 0.3s ease-in-out;
}

.fb-button i {
    margin-right: 12px;
    font-size: 22px;
}

.fb-button:hover {
    background-color: #1877F2;
    color: white;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);  /* ทำให้ปุ่มขยายเล็กน้อยเมื่อ hover */
}
.line-button {
    margin-top: 6px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #00b900;
    font-size: 18px;  /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: bold;
    padding: 15px 25px;  /* ขนาดปุ่มใหญ่ขึ้น */
    border-radius: 12px;  /* ทำให้ปุ่มมีมุมโค้งมน */
    text-decoration: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* เพิ่มเงาให้ปุ่ม */
    transition: all 0.3s ease-in-out;
}

.line-button i {
    margin-right: 12px;
    font-size: 22px;
}

.line-button:hover {
    background-color: #00b900;
    color: white;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);  /* ทำให้ปุ่มขยายเล็กน้อยเมื่อ hover */
}
.footer_info {
    width:90%;
    margin: 0 auto;
    display: flex;
     justify-content: space-between; /* ✅ กระจายพื้นที่ให้เท่ากัน */
    flex-wrap: wrap; /* ✅ ป้องกันการล้นของ div */
    padding: 50px 0;
}
.footer_width {
    flex: 1; /* ✅ ให้ทุก div ใช้พื้นที่เท่ากัน */
    min-width: 250px; /* ✅ ป้องกัน div เล็กเกินไป */
    padding: 0 15px;
    box-sizing: border-box; /* ✅ ป้องกัน padding ทำให้ขนาด div เปลี่ยน */
}
.footer_info .footer_width {
    padding:0 15px;
}
.footer_info h2 {
    margin-bottom: 20px;
}
.about, .contact {
    width:40%;
}
.link {
    width:20%;
}
.social-media {
    margin-top: 30px;
}
.social-media ul {
    display: flex;
}
.social-media ul li a {
    display: inline-block;
    margin-right: 50px;
    width: 44px;
    height: 44px;
    padding-top: 12px;
    background-color: transparent;
    border: 1px solid #fff;
    text-align: center;
}
.social-media ul li a:hover {
    background-color:#fff;
    color:#DF6D14;
}
.link ul li a {
    display: block;
    margin-bottom: 15px;
    font-size: 20px;
    decoration:none;
    text-decoration: none;
    color: white;
}
.link ul li a:hover {
    color: #DF6D14;
}
.Contact ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.Contact ul li span {
    margin-right: 15px;
}
.footer_width ul {
    margin: 0;
    padding: 0;
    list-style: none; /* ✅ ลบ bullet point (ถ้าไม่ต้องการ) */
}
.copy-right {
   color:black;
    text-align: center;
    background-color: #DCD7C9;
}
@media screen and (max-width:992px) {
    .about, .contact {
        width: 35%;
    }
    .link {
        width: 30%;
    }
}
@media screen and (max-width:767px) {
    .about, .contact, .link {
        width: 100%;
        margin-bottom: 30px;
    }
    .footer_info {
        flex-direction:column;
    }
        .footer_info {
        flex-direction: column; /* ✅ เปลี่ยนเป็นแนวตั้งเมื่อจอเล็ก */
        align-items: center; /* ✅ จัดให้อยู่ตรงกลาง */
    }

    .footer_width {
        width: 100%; /* ✅ ให้ div แต่ละอันเต็ม width */
        text-align: start;
        margin-bottom: 30px;
    }
}
footer h2,a {
    color: white; /* เปลี่ยนเป็นสีส้ม */
    text-decoration: none;
}


/* Home landing section */
.home-landing-section {
    background-color: #FBF5E5;
    background-image: url("rice.3cf9f743848a.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    padding: 120px 16px;
    height:360px;
}

.home-landing-text {
    text-shadow: 1px 1px 11px rgba(251, 251, 251, 0.94);
    margin-top:0px;
    margin-bottom:20px;
}

/* product */
.product-title a:not(:hover) {
    color: #111111;
    text-decoration:none;
}

/* dark theme */
body.dark {
    color: white;
    background-color: #474747;
}

/* effect next click */
.carousel.next .list .item:nth-child(1) img {
    width: 150px;
    height:220px;
    position: absolute;
    left: 50%;
    bottom: 50px;
    border-radius: 20px;
    animation: showImage 0.5s linear 1 forwards;
}
@keyframes showImage{
    to {
        width:100%;
        height:100%;
        left:0;
        bottom:0;
        border-radius:0;
    }
}
.carousel.next .thumbnail .item:nth-last-child(1){
    width:0;
    overflow:hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
@keyframes showThumbnail{
    to{
        width: 150px;
    }
}
.carousel.next .thumbnail {
transform: translateX(150px);
animation: transformThumbnail .5s linear 1 forwards;
}
@keyframes transformThumbnail {
    to {
        transform: translateX(0);
    }
}
/* effect prev click */
.carousel.prev .list .item:nth-child(2) {
    z-index:2;
}
.carousel.prev .list .item:nth-child(2) img {
    position:absolute;
    bottom:0;
    left:0;
    animation: outImage 0.5s linear 1 forwards;
}
@keyframes outImage {
    to {
        width:150px;
        height:220px;
        border-radius:20px;
        left: 50%;
        bottom: 50px;

    }
}
.carousel.prev .thumbnail .item:nth-child(1) {
    width:0;
    overflow:hidden;
    opacity:0;
    animation: showThumbnail 0.5s linear 1 forwards;
}
.carousel.prev .list .item:nth-child(2) .author,
.carousel.prev .list .item:nth-child(2) .title,
.carousel.prev .list .item:nth-child(2) .topic,
.carousel.prev .list .item:nth-child(2) .des,
.carousel.prev .list .item:nth-child(2) .buttons {
    animation: contentOut 1.5s linear 1 forwards;
}
@keyframes contentOut {
    to {
        transform : translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
.carousel.next .arrows button,
.carousel.prev .arrows button {
    pointer-events: none;
}
/* time */
.time {
    width: 0%;
    height: 5px;
    background-color: #DF6D14;
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
}
.carousel.next .time,
.carousel.prev .time {
    width:100%;
    animation: timeRunning 2s linear 1 forwards;
}
@keyframes timeRunning {
    to {
        width: 0;
    }
}
@media screen and (max-width: 678px) {
    .carousel .list .item .content {
        padding-right: 0;
    }
    .carousel .list .item .content .title {
        font-size: 30px;
    }
    .thumbnail {
    display: none;
    }
}

/* card middle home page */
.container.swiper {
  margin-left: 0px;
  margin-right: 4px;
}
.container .card {
background-color: #EEE2B5;
}
.card-list .card-item {
    list-style:none;
}
.card-wrapper {
    max-width: 98%;
    padding: 20px 4px;
    overflow: hidden;
     display:block;

}
.card-list .card-item .card-link {
    width: 240px;

    user-select: none;
    display: flex; /* ใช้ Flexbox ภายใน */
    flex-direction: column; /* จัดเนื้อหาให้อยู่แนวตั้ง */

    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    transition: 0.2s ease;


}
.card-list .card-item .card-link:active {
    cursor:grabbing;
}

.card-list .card-item .card-link:hover {
    border-color: #5D8736;
}

.card-list .card-link .card-image {
    width:238.5px;
    height:156px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.card-list .card-link .badge {
    padding: 1px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 4px 0 8px;
    width: fit-content;
    border-radius: 50px;
}

.card-list .card-link .badge.bug {
    color: #DE3163;
    background: #FFEDFA;
}
.card-list .card-link .badge.worm {
    color: #638C6D;
    background: #E7FBB4;
}
.card-list .card-link .card-title {
    font-size : 14px;
    margin: 4px 0px 4px 8px;
    color: #000;
    font-weight: 500;
}
.card-list .card-link .card-button {
    padding: 4px 8px;
    width: 120px;
    color: #5D8736;
    margin: 12px 0px 8px 8px;
    cursor: pointer;
    background-color:white;
    text-decoration: none;
    border: 2px solid  #5D8736;
    font-size: 14px;
    font-weight: 500;
    transition: 0.4s ease;
    font-family: kanit;
    border-radius: 8px;
}
.card-list .card-link:hover .card-button {
    color: #fff;
    background-color: #5D8736;
}
.card-wrapper .swiper-pagination-bullet {
    height:13px;
    width:13px;
    opacity:0.5;
    background:#5D8736;
}
.card-wrapper .swiper-pagination-bullet-active {
    height:13px;
    width:13px;
    opacity:0.5;
    background:#5D8736;
}
.card-wrapper .swiper-slide-button {
    color:#5D8736;
    margin-top:-35px;
}
@media screen and (max-width:768px) {
    .card-wrapper {
        margin: 0 4px 25px;
    }
    .card-wrapper .swiper-slide-button {
        display:none;
    }
    .site-header-item.register {
        display: none;
    }

}
.swiper-wrapper {
    display: flex;
    align-items: center;
    margin-right: 60px;

}

.swiper-slide {
    width: auto !important;
    flex-shrink: 0;
}

/* service */
.service {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 4%;
    color: #333;
    text-align: center;
}
.service .heading {
    font-size: 40px;
    margin-bottom: 20px;
}
.service .wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.wrapper .box {
    padding: 30px 20px;
    background: #fff;
    border-radius: 4px;
    transition: .5s;
}
.wrapper .box:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0,0,0,.2);
}
.box i {
    font-size: 60px;
    color: #7494ec;
}
.box h2 {
    font-size: 25px;
}
.box p {
    margin: 10px 0 18px;
}
.box .btn {
    display: inline-block;
    text-decoration: none;
    background: #7494ec;
    padding: 8px 20px;
    border: 2px solid #7494ec;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    transition: .5s;
}
.box .btn:hover {
    background: transparent;
    color: #7494ec;
}
@media screen and (max-width: 992px) {
    .service {
        padding: 20px 2px;
    }

}
@media screen and (max-width: 350px) {
    .service .wrapper {
        grid-template-columns : repeat(auto-fit, minmax(200px, 1fr));
    }
}

#product1 {
    text-align: center;

    margin: 0 auto;
}
.pro {
    height: 100%;
}
#product1 .pro-container {
    display: flex;
    justify-content:space-evenly;
    padding-top: 4px;
    flex-wrap: wrap;

}

#product1 .pro {
    height: 308px;
    min-width:152px;
    padding: 2px 4px;
    margin: 6px 4px;
    border: 1px solid #B2C9AD;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 20px 20px 30px rgba(0,0,0,0.02);
    transition: 0.2s ease;
    position: relative;
    background: white;
}
#product1 .pro:hover {
        box-shadow: 20px 20px 30px rgba(0,0,0,0.06);
}
#product1 .pro img {
    width: 100%;
    border-radius: 20px;
}

#product1 .pro .des {
    text-align: start;
    padding: 10px 0;
}
#product1 .pro .des span {
    color: #606063;
    font-size: 12px;
}
#product1 .pro .des h5 {
    padding-top: 7px;
    color: #1a1a1a;
    font-size : 14px;
}
#product1 .pro .des i {
    font-size: 12px;
    color: rgb(243,181,25);
}
#product1 .pro .des h4 {
    padding-top : 2px;
    font-size : 20px;
    font-weight: 700;
    color: #088178;
}
#product1 .pro .cart {
    width:40px;
    height:40px;
    line-height:40px;
    border-radius: 50px;
    background-color: #e8f6ea;
    font-weight: 500;
    color: #088178;
    font-size: 24px;
    border: 1px solid #cce7d0;
    position: absolute;
    bottom: 20px;
    right: 10px;
    transition: all 0.3s ease-in-out; /* ✅ เพิ่มการเปลี่ยนแปลงให้ smooth */
    cursor: pointer;
}
#product1 .pro .disable-cart {
    width:40px;
    height:40px;
    line-height:40px;
    border-radius: 50px;
    background-color: #e8f6ea;
    font-weight: 500;
    color: #088178;
    font-size: 24px;
    border: 1px solid #cce7d0;
    position: absolute;
    bottom: 20px;
    right: 10px;
    transition: all 0.3s ease-in-out; /* ✅ เพิ่มการเปลี่ยนแปลงให้ smooth */
    cursor: pointer;
}

/* 🔹 เมื่อ Hover: ปรับสีพื้นหลัง + เพิ่ม Shadow */
#product1 .pro .cart:hover {
    background-color: #088178;
    color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.1); /* ✅ ขยายขนาดเล็กน้อย */
}

/* 🔹 เมื่อ Click (Active): ทำให้เหมือนปุ่มกดลง */
#product1 .pro .cart:active {
    transform: scale(0.9); /* ✅ หดลงเมื่อกด */
    background-color: #066a5a;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}
#product1 .pro .disable-cart {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #d6d6d6;  /* ❌ เปลี่ยนเป็นสีเทาอ่อน */
    font-weight: 500;
    color: #888;  /* ❌ สีไอคอนเป็นเทาเข้มขึ้น */
    font-size: 24px;
    border: 1px solid #b0b0b0;  /* ❌ กรอบเป็นสีเทา */
    position: absolute;
    bottom: 20px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    cursor: not-allowed;  /* ❌ เปลี่ยน cursor เป็น "ห้ามกด" */
}

/* ❌ เมื่อ hover จะไม่มีเอฟเฟกต์เปลี่ยนสี แต่ลด opacity ลง */
#product1 .pro .disable-cart:hover {
    background-color: #c4c4c4;
    color: #777;
    transform: none;
    box-shadow: none;
}

/* ❌ เมื่อคลิกก็ไม่มีแอนิเมชัน */
#product1 .pro .disable-cart:active {
    transform: none;
    box-shadow: none;
}

#sm-banner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.section-banner {
    display: flex;
    justify-content: center;
    padding: 20px 4%;
    margin-left: auto;
    margin-right: auto;
    color: #333;
    text-align: center;
}
#sm-banner .banner-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 520px;

    height: 50vh;
     background-size: contain; /* ✅ ทำให้ภาพแสดงทั้งหมด */
    background-repeat: no-repeat;
    padding: 30px;
}
#sm-banner h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 300;
}
#sm-banner h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}
#sm-banner span {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 15px;
}


.store-container {
    max-width: 1200px;
    margin: auto;
    padding: 12px;
    min-height: 100vh;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* 🔍 Search Bar */
form {
    text-align: start;
    margin-bottom: 20px;
}



form button {
    padding: 10px;
    border: none;
    background: #28a745;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}


/* 📦 Product Grid */


/* .pro {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    background: white;
}

.pro img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.pro .des {
    margin-top: 10px;
}

.pro h4 {
    color: #28a745;
} */

/* 📄 Pagination */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    text-decoration: none;
    padding: 8px 12px;
    margin: 5px;
    border: 1px solid #28a745;
    border-radius: 5px;
    color: #28a745;
}

.pagination a:hover {
    background: #28a745;
    color: white;
}
.search-form {
    display: flex;
    align-items: center; /* จัดให้อยู่แนวเดียวกัน */
    gap: 10px; /* กำหนดระยะห่างระหว่าง input กับ button */
}

.search-form input {
    padding: 10px;
    flex: 1; /* ให้ input ขยายเต็มที่ */
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-form button {
    padding: 10px 15px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.search-form button:hover {
    background: #218838;
}

/* 🖼 ปรับขนาดภาพสินค้าใหญ่ */
.main-image {
    text-align: center;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    max-width: 480px;
    height: auto;

   
}


.thumbnail-gallery-detail {
    display: flex;
    justify-content: center;  /* จัดให้อยู่ตรงกลางใต้ภาพ */
    gap: 10px;
   
    margin-bottom: 12px;
    flex-wrap: wrap;  /* ✅ ให้ thumbnail อยู่ในบรรทัดเดียวกัน */
}

.thumbnail-detail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.thumbnail-detail:hover {
    transform: scale(1.1);
}

/* 🟢 กำหนดให้รูปที่ถูกเลือกอยู่ในสถานะ active */
.thumbnail-detail.active {
    border: 3px solid #28a745;
}

.form-option {
    border: 2px solid #ccc;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.form-check-input {
    display: none;  /* ✅ ซ่อนปุ่ม Radio เพื่อให้คลิกที่ปุ่มแทน */
}

.form-option-label {
    font-weight: bold;
    display: inline-block;
    padding: 5px 10px;
}

.form-option.active {
    border: 2px solid #28a745;  /* ✅ กรอบสีเขียวเมื่อเลือก */
    background-color: #e9f5e9;
}
.pack-size-options {
    display: flex;
    gap: 10px; /* ✅ ระยะห่างระหว่างตัวเลือก */
}

.pack-size-label {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    background-color: #f8f8f8;
}

.pack-size-label:hover {
    background-color: #e0e0e0;
}

.pack-size-label input {
    display: none; /* ✅ ซ่อน radio ปกติ */
}

.custom-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #555;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.pack-size-label input:checked + .custom-radio {
    background-color: #28a745;
    border-color: #28a745;
}

.pack-size-label input:checked + .custom-radio::after {
    content: "";
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.pack-size-label:has(input:checked) {
    border-color: #28a745;
    background-color: #e9f5e9;
}
.quantity-selector {
    display: flex;
    align-items: start;
    justify-content: start;
    margin-top: 10px;
    margin-bottom: 6px;
}

.qty-btn {
    background-color: #28a745;
    color: white;
    border: none;
   align-items: center;
    font-size: 24px;
    padding: 0 12px;
    cursor: pointer;
    transition: 0.2s;
    height: 32px;
}

.qty-btn:hover {
    background-color: #0056b3;
}
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
  }
  
  .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }
  
  .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }
  
  .alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
  }
  
  .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
  }

input[type="number"] {
    width: 80px;
    text-align: center;
    font-size: 24px;
    height: 32px;
    border: 2px solid #5D8736;
    margin: 0;
    padding: 5px;
    outline: none;
    /* ซ่อนปุ่มเพิ่ม/ลด */
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield; 
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none; /* Chrome, Safari, Edge */
    margin: 0;
}
/* ขณะกำลังพิมพ์ */
input[type="number"]:focus {
    border: 1px solid #5D8736; /* บังคับใช้สีขอบ */
}
/* CSS */
.button-25 {
  background-color: #5D8736;
  background-image: linear-gradient(#809D3C, #5D8736);
  border: 1px solid #5D8736;
  box-shadow: rgba(0, 0, 0, 0.12) 0 1px 1px;
  color: #FFFFFF;
  cursor: pointer;
  font-family: -apple-system,".SFNSDisplay-Regular","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 26px;
  line-height: 100%;
  margin: 0;
  outline: 0;
  padding: 0px 0px 12px 1px;
  text-align: center;
  transition: box-shadow .05s ease-in-out,opacity .05s ease-in-out;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width:32px;
  height: 32px;
}

.button-25-left {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.button-25-right {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.button-25:hover {
  box-shadow: rgba(255, 255, 255, 0.3) 0 0 2px inset, rgba(0, 0, 0, 0.4) 0 1px 2px;
  text-decoration: none;
  transition-duration: .15s, .15s;
}

.button-25:active {
  box-shadow: rgba(0, 0, 0, 0.15) 0 2px 4px inset, rgba(0, 0, 0, 0.4) 0 1px 1px;
}

.button-25:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.button-25:disabled:active {
  pointer-events: none;
}

.button-25:disabled:hover {
  box-shadow: none;
}

/* CSS */
.button-68 {
  appearance: none;
  backface-visibility: hidden;
  border: 2px solid #5D8736;
  background-color: #DDEB9D;
  border-radius: 8px;
  border-style: none;
  box-shadow: rgba(39, 174, 96, .15) 0 4px 9px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: Inter,-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.5;
  outline: none;
  overflow: hidden;
  padding: 13px 20px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transform: translate3d(0, 0, 0);
  transition: all .3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: top;
  white-space: nowrap;
}

.button-68:hover {
  background-color: #1e8449;
  opacity: 1;
  transform: translateY(0);
  transition-duration: .35s;
}

.button-68:active {
  transform: translateY(2px);
  transition-duration: .35s;
}

.button-68:hover {
  box-shadow: rgba(39, 174, 96, .2) 0 6px 12px;
}


/* CSS */
.button-30 {
margin-top: 8px;
margin-bottom: 12px;
margin-right: 16px;
  align-items: center;
  appearance: none;
  background-color: #FCFCFD;
  border-radius: 4px;
  border-width: 0;
  box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
  box-sizing: border-box;
  color: #36395A;
  cursor: pointer;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  gap: 8px;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: box-shadow .15s,transform .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow,transform;
  font-size: 18px;
}

.button-30:focus {
  box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

.button-30:hover {
  box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
  transform: translateY(-2px);
}

.button-30:active {
  box-shadow: #D6D6E7 0 3px 7px inset;
  transform: translateY(2px);
}


.review-info {
    max-width: 1200px;
    margin: 28px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.chemical-name {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}


.review-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.review-user {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.review-date {
    font-size: 14px;
    color: #777;
}

.review-body {
    margin-bottom: 10px;
}

.review-text {
    font-size: 15px;
    color: #444;
}

.review-rating {
    margin-bottom: 2px;
}

.star-filled {
    color: #f39c12;
}

.star-empty {
    color: #bbb;
}

.review-images {
    display: flex;
    gap: 10px;
}

.review-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

@media (max-width: 768px) {
    .review-card {
        padding: 10px;
    }

    .review-image {
        width: 60px;
        height: 60px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* ✅ ปุ่มตะกร้าสินค้า */
.cart-button {
    position: relative;
    font-size: 20px;
    color: #333;
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s ease-in-out;
}

.cart-button:hover {
    color: #e74c3c; /* เปลี่ยนเป็นสีแดงเมื่อ Hover */
}

/* ✅ Badge แสดงจำนวนสินค้า */
.cart-counter {
    position: absolute;
    top: 1px;
    right: -10px;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: 400;
    padding: 1px 2px;
    border-radius: 50%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    min-width: 20px;
    text-align: center;
}

/* ✅ ถ้าไม่มีสินค้าในตะกร้า (ซ่อน Badge) */
.cart-counter:empty {
    display: none;
}

