@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  font-family: "Kanit", sans-serif;
  font-weight: 300;
  font-style: normal;
}

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

.logo img {
  width: 100px;
}

.top-lang {
}

.top-lang a {
  color: #000;
  text-decoration: none;
}

.main_youtube {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* อัตราส่วนสำหรับ 16:9 */
}

.main_youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.view_all a {
  text-decoration: none;
  color: #000;
}

.view-all2 a {
  text-decoration: none;
  color: #000;
}
/*
.menu {
  text-align: center;
  display: block;
}

.menu ul {
  padding: 0px;
  margin: 0px;
  display: inline;
  list-style: none;
}

.menu li {
  display: inline;
  margin-left: 15px;
  margin-right: 15px;
  position: relative;
}

.menu a {
  color: #5e5f5f;
  text-decoration: none;
  /*text-shadow: 1px 1px 1px #575757;
  font-weight: 100;
  font-weight: 300px;
  font-size: 18px;
}

.menu a:hover {
  color: #161717;
  text-decoration: underline;
}
  */

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.home_product {
  background-color: #f9e8cc;
  padding: 20px;
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.iframe-container {
  position: relative;
  width: 100%;
  max-height: 80vh; /* กำหนด max height เป็น 80% ของความสูงของหน้าจอ */
  padding-bottom: 56.25%; /* อัตราส่วน 16:9 */
  height: 0;
}

iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  border: none;
}

.product_card {
  background-color: #fff;
  border-style: solid;
  border-width: 1px;
  border-color: #e6e6e6;
  overflow: hidden;
  height: 580px;

  display: flex;
  flex-direction: column;
}

.product_card:hover {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  border-radius: 3px;
}

.product_card .product_name {
  padding: 5px;
  font-size: 20px;
}

.product_card .product_desc {
  margin-top: -10px;
  padding: 5px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5; /* แสดง 3 แถว */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em; /* ความสูงของบรรทัด */
  /*max-height: 8em;*/ /* 3 แถว x ความสูงของบรรทัด */
  /*min-height: 8em;*/
}

.product_desc p {
  flex: 1;

  /* จำนวนบรรทัดจะขึ้นอยู่กับขนาด font และความสูงของ container */
}

.product_card img {
  transition: transform 0.5s ease;
}

.product_card:hover img {
  transform: scale(1.04);
}

.view_all {
  background-color: #c37a2f;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 18px;
}

.read_more {
  padding: 5px;
  padding-top: 0px;
  margin-top: auto;
}

.read_more a {
  text-decoration: none;
  color: #c37a2f;
}

.home_product_title {
  font-weight: 300;
  margin-bottom: 15px;
}

.home_title {
  text-align: center;
  font-size: 32px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.review_card {
  background-color: #fff;
  /*border-style: solid;
  border-width: 1px;
  border-color: #e6e6e6;*/
  overflow: hidden;
}

.review_card:hover {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  border-radius: 3px;
}

.review_card .review_name {
  padding: 5px;
  font-size: 20px;
}

.review_card .review_desc {
  margin-top: -10px;
  padding: 5px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5; /* แสดง 3 แถว */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em; /* ความสูงของบรรทัด */
  max-height: 8em; /* 3 แถว x ความสูงของบรรทัด */
  min-height: 8em;
}

.review_desc p {
  flex: 1;

  /* จำนวนบรรทัดจะขึ้นอยู่กับขนาด font และความสูงของ container */
}

.review_card img {
  transition: transform 0.5s ease;
}

.review_card:hover img {
  transform: scale(1.04);
}

.article_card {
  background-color: #fff;
  /*border-style: solid;
  border-width: 1px;
  border-color: #e6e6e6;*/
  overflow: hidden;
}

.article_card:hover {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  border-radius: 3px;
}

.article_card .article_name {
  padding: 5px;
  font-size: 20px;
}

.article_card .article_desc {
  margin-top: -10px;
  padding: 5px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5; /* แสดง 3 แถว */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em; /* ความสูงของบรรทัด */
  max-height: 8em; /* 3 แถว x ความสูงของบรรทัด */
  min-height: 8em;
}

.article_desc p {
  flex: 1;

  /* จำนวนบรรทัดจะขึ้นอยู่กับขนาด font และความสูงของ container */
}

.article_card img {
  transition: transform 0.5s ease;
}

.article_card:hover img {
  transform: scale(1.04);
}

.news_card {
  background-color: #fff;
  /*border-style: solid;
  border-width: 1px;
  border-color: #e6e6e6;*/
  overflow: hidden;
}

.news_card:hover {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  border-radius: 3px;
}

.news_card .news_name {
  padding: 5px;
  font-size: 20px;
}

.news_card .news_desc {
  margin-top: -10px;
  padding: 5px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5; /* แสดง 3 แถว */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em; /* ความสูงของบรรทัด */
  max-height: 8em; /* 3 แถว x ความสูงของบรรทัด */
  min-height: 8em;
}

.news_desc p {
  flex: 1;

  /* จำนวนบรรทัดจะขึ้นอยู่กับขนาด font และความสูงของ container */
}

.news_card img {
  transition: transform 0.5s ease;
}

.news_card:hover img {
  transform: scale(1.04);
}

.page_title {
  /*font-size: 20px;
  /*font-weight: 200;*/
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 300px;
  /*text-shadow: 1px 1px 1px #575757;*/
}

.page_title a {
  text-decoration: none;
  color: #000;
}

.page_title a:hover {
  text-decoration: underline;
}

/* Thumbs Gallery */

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.thumbnails {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.thumbnail-slider {
  display: flex;
  justify-content: center;
}

.thumbnail-slider img {
  width: 100px;
  height: auto;
  margin: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumbnail-slider img:hover {
  border-color: #e6e6e6;
}

.product_buy {
}

.product_buy h3 {
  font-weight: 200;
  color: #0d0490;
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  list-style: none;
  padding: 0;
}

.pagination li {
  margin: 0 5px;
}

.pagination a {
  color: black;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.pagination a.active {
  background-color: #f0f0f0;
  color: white;
  border: 1px solid #f0f0f0;
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
}

.footer {
  margin-top: 20px;
  padding: 20px;
  background-color: #dcdcda;
}

.product_desc_full {
  /*display: flex;
  flex-direction: column;
  align-items: center;*/
}

.product_desc_full img {
  max-width: 700px;
  /*text-align: center;*/
}

.product_desc_full p {
  text-align: left;
}

.youtube_card .card {
  border-style: none;
  border-radius: 0px;
}

.youtube_card .card-img-top {
  border-radius: 0px !important;
}

.youtube_card .card-title {
  padding: 5px;
  font-size: 20px;
}

.youtube_card .youtube_card_iframe {
  width: 100%;
  height: 230px;
}

.youtube_card iframe {
  /*
  width: 100%;
  height: 400px;
  border: none;
  margin-top: 20px;
  */
}

.menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  background-color: #fff;
  display: flex;
}

.menu ul li {
  position: relative;
}

.menu ul li a {
  display: block;
  color: #5e5f5f;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  font-size: 18px;
}

.menu ul li a:hover {
  /*background-color: #f6f6f6;
  border-radius: 2px;*/
  /*text-shadow: 1px 1px 1px #575757;*/
  text-decoration: underline;
}

/* สไตล์สำหรับเนื้อหาดรอปดาวน์ */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f6f6f6;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  top: 100%; /* แสดงใต้เมนูหลัก */
  left: 0; /* เริ่มแสดงจากด้านซ้าย */
  /*border-radius: 5px;*/
}

/* สไตล์สำหรับลิงก์ในดรอปดาวน์ */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

/* แสดงดรอปดาวน์เมื่อโฮเวอร์ */
.dropdown:hover .dropdown-content {
  display: block;
}

/* สำหรับการจัดการการจัดเรียงในแนวนอน */
.menu ul {
  display: flex;
  justify-content: space-around;
}

.mobile {
  display: none;
}

/* ipad */
@media (max-width: 992px) {
  .product_card,
  .review_card,
  .news_card,
  .article_card,
  .youtube_card {
    margin-bottom: 20px;
  }
  .gallery {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .web {
    display: none;
  }

  .mobile {
    display: initial;
  }

  .product_card,
  .review_card,
  .news_card,
  .article_card,
  .youtube_card {
    margin-bottom: 20px;
  }

  .gallery {
    margin-bottom: 20px;
  }

  .icon_menu {
    position: absolute;
    top: 80px;
    right: 15px;
  }

  .mobile_menu {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #0d0490;
    width: 70%;
    height: 100%;
  }

  .slide-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: #fff;
    color: #000;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .close-menu {
    background-color: transparent;
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 0;
    text-align: left;
  }

  .slide-menu ul {
    list-style-type: none;
    padding: 0;
  }

  .slide-menu ul li {
    padding: 0px;
    padding-left: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #ececec;
  }

  .slide-menu ul li a {
    color: #000;
    text-decoration: none;
  }

  .slide-menu ul li a:hover {
    text-decoration: underline;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* สีดำโปร่งแสง */
    z-index: 999;
    display: none; /* ซ่อน overlay จนกว่าจะเปิดเมนู */
  }

  body.no-scroll {
    overflow: hidden; /* ปิดการเลื่อนหน้าเว็บ */
  }

  .page_title {
    /*font-size: 20px;
  /*font-weight: 200;*/
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 300px;
    /*text-shadow: 1px 1px 1px #575757;*/
  }
}
