@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&family=Noto+Serif+Thai:wght@100..900&display=swap');

* {
   font-family: "Noto Serif Thai", serif;
   padding: 0;
   margin: 0;
   box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Thai:wdth,wght@62.5..100,100..900&display=swap');

/* ส่วน banner -------------------------------------------------*/
.banner-wrapper {
   display: flex;
   align-items: center;
   justify-content: center;
}

.banner {
   position: relative;
   width: 98%;
   height: 78vh;
   overflow: hidden;
   border-radius: 20px;
   background-color: rgba(255, 255, 255, 0.3);
    h1 {
       font-size: 45px;
   }
   p {
       font-size: 18px;
   }
}

.bg-video-1 {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   z-index: 0;
   transform: scale(1.4);
   transform-origin: center;
   transition: transform 0.5s ease;
}

.banner-content {
   position: relative;
   height: 100%;
}

.text-box {
   width: auto;
   height: 100%;
   display: flex;
   flex-direction: column;
   justify-content: center;
   color: white;
   padding-left: 10%;
}

.text-box a {
   border: 1px solid rgb(255, 255, 255);
   width: 130px;
   text-align: center;
   padding: 12px 20px;
   border-radius: 5px;
   text-decoration: none;
   color: white;
   font-size: 17px;
}

.text-box a:hover {
   background-color: rgb(24, 24, 199);
   transition: 0.5s;
   color: white;
   border: none;
}

/* --------------------------------------------- */

/* สินต้าแนะนำ */
.Theme2 {
   margin-top: 50px;
}

.con-bax-h1 {
   padding: 30px 0 30px 50px;
}

.head-menu {
   text-align: center;
   padding: 0 20px 0 20px;
}

.head-content {
   display: flex;
   overflow-x: auto;
   gap: 16px;
   padding: 15px;
   margin: 25px 50px 40px 50px;
   align-items: center;

   a {
      text-decoration: none;
      color: black;
   }
}

.main {
   width: 280px;
   height: 420px;
   flex-shrink: 0;
   background: #ffffff;
   border-radius: 8px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.123);
   text-align: center;
   display: flex;
   flex-direction: column;
   position: relative;
}

.main:hover {
   transform: scale(1.02);
   z-index: 10;
   box-shadow: 0 0 5px rgba(0, 0, 0, 0.432);
   color: black;
}

.main-content {
   padding: 10px;
   display: flex;
   flex-direction: column;
   gap: 10px;
   flex: 1;
}

.img img {
   width: 100%;
   height: 175px;
   border-radius: 5px;
   object-fit: cover;
}

.content {
   display: flex;
   flex-direction: column;
   flex: 1;
   text-align: left;
}

.content h5 {
   font-size: 14px;
   font-weight: bold;
   margin: 5px 0;
   word-wrap: break-word;
}

.content p {
   font-size: 11px;
   color: #666;
   margin: 5px 0;
   word-wrap: break-word;
   flex: 1;
}

.content h6 {
   font-weight: 700;
   color: red;
   font-size: 15px;
   margin-top: auto;
   padding-left: 10px;
}

.ViewAllProduct {
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 50px;

   a {
      text-decoration: none;
      color: rgb(255, 255, 255);
      padding: 11px 20px 9px 20px;
      border-radius: 3px;
      background-color: #ff0000d2;
      transition: background-color 0.3s, color 0.3s;
      display: flex;
      align-items: center;
   }
}

.ViewAllProduct a:hover {
   background-color: #ff0000;
   color: #fff;
}

/* ส่วน Video */
.text-video {
   padding: 30px 0 30px 50px;
}

.bg-video-2 {
   padding-bottom: 60px;

}

.Video {
   display: block;
   overflow: hidden;

   iframe {
      border-radius: 25px;
      display: flex;
      justify-content: left;
   }
}

.promote {
   display: flex;
   flex-direction: column;
   width: 100%;
   margin: 0 auto;
   justify-content: center;
}

.iframe {
   display: flex;
   padding: 30px;
   justify-content: center;
   align-items: center;
}

.content-iframe {
   padding: 35px;
   max-width: 750px;
}

.img-show {
   display: flex;
   justify-content: center;
   gap: 50px;

   img {
      border-radius: 10px;
      width: 450px;
      height: 250px;
   }
}

.carousel-container {
   padding-top: 50px;
   overflow: hidden;
   width: 100%;
   padding: 20px 0;
   box-shadow: 0 0 5px rgba(0, 0, 0, 0.432);

}

.con-carousel-brand {
   margin: 0 auto;
   overflow: hidden;
}

.carousel-track {
   display: flex;
   width: max-content;
   animation: scroll 25s linear infinite;
}

.carousel-track a {
   flex: 0 0 auto;
   margin: 0 40px;
   transition: transform 0.3s;
}

.carousel-track a:hover {
   transform: scale(1.1);
}

.carousel-track img {
   height: 60px;
   object-fit: contain;
}

@keyframes scroll {
   from {
      transform: translateX(0);
   }

   to {
      transform: translateX(-50%);
   }
}

/* ส่วนของ promote ------------------------------------- */
.promote-wrapper {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   margin: 20px 0 10px 0;
}

.address-contact {
   align-self: flex-start;
   padding: 30px 0 30px 50px;
}

.card-promote {
   position: relative;
   display: flex;
   justify-content: space-between;
   background: url('../image/promote.jpg');
   margin: 50px 0;
   border-radius: 10px;
   overflow: hidden;
   width: 100%;
   z-index: 1;
}

.card-promote::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5);
   /* ขาวโปร่ง */
   z-index: -1;
   /* ให้อยู่ใต้ข้อความ */
}

.contect-card {
   display: flex;
   justify-content: center;
   align-items: center;
   margin: 30px;

}

.address-contect {
   border: 1px solid black;
   background-color: #ffffff;
   border-radius: 10px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   height: 100%;
   padding: 15px 20px 0 20px;

   p {
      font-size: 16px;
      display: flex;
      color: black;
   }
}

/* ส่วนของ youtube */
.con-youtube {
   margin: 60px 0;
}

.section-youtube {
   text-align: left;
   padding: 0 0 30px 50px;
}

.youtube {
   display: flex;
   justify-content: center;
   gap: 10px;

}

.card-1 {
   height: 100%;
   background-color: rgb(44, 44, 44);
   border-radius: 10px;
   overflow: hidden;
   padding: 0;


   p {
      color: white;
      padding: 15px;
      margin: 0;
   }
}

.iframe-card1 {
   justify-content: center;
   display: flex;

   iframe {
      width: 500px;
      height: 280px;
   }
}

.con-card1 {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 15px 20px;
}

.logo-youtube {
   display: flex;
   align-items: center;

   img {
      border-radius: 50%;
   }
}

.card-1-text {
   color: white;
   padding-left: 10px;
}

.button-follow {
   display: flex;
   align-items: center;

   a {
      background-color: blue;
      padding: 7px 20px;
      color: white;
      border-radius: 5px;
      text-decoration: none;
   }
}

.button-follow a:hover {
   background-color: darkblue;
   color: white;
}

/* ใฟ้แฮมเบอร์เกอรหายไป */
@media only screen and (max-width: 500px) {

   .banner {
      height: 40vh;
   }

   .text-box {
      padding: 0;
      display: flex;
      align-items: center;

      p {
         width: 350px;
         text-align: center;
      }
   }

   .text-box h1 {
      text-align: center;
   }

   /* ส่วนสินค้าแนะนำ */
   .main {
      width: 200px;
      height: 340px;
   }

   .img {
      img {
         height: 150px;
         object-position:top ;
      }
   }
   .head-menu {
      padding: 0;
   }

   .head-content {
      margin-left: 10px;
      margin-right: 10px;
   }

   /* ส่วน video และ โปรโมชัน */
   .iframe {
      flex-direction: column;
   }

   .main-iframe {
      iframe {
         width: 350px;
         height: 220px;
      }
   }

   .content-iframe {
      width: 420px;
      padding-bottom: 0;
      text-align: center;
   }


   .img-show {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      align-items: center;
      text-align: center;

      img {
         width: 330px;
         height: 200px;
      }
   }

   .text-video {
      padding: 15px 0 10px 50px;
   }

   /* ส่วนสปอนเซอร์ */
   .carousel-track {
      a {
         img {
            width: 45px;
         }
      }
   }

   /* ส่วนที่อยู่เบื้องต้น */
   .img-card {
      text-align: center;
      img {
         width: 90%;
         height: 200px;
         border-radius: 20px;
         margin-top: 20px;
         object-fit: cover;
         object-position: top;
      }
   }


   .con-promote {
      width: 100%;
      display: flex;
      justify-content: center;
      padding: 0 20PX;
   }

   .card-promote {
      margin: 0;
      margin-bottom: 40px;
      flex-direction: column;
      width: 100%;
      align-items: center;
   }

   .card-promote::before {
      background-color: rgba(0, 0, 0, 0.76);
   }

   .contect-card {
      padding: 0 20px;
      width: 100%;
   }

   .address-contect {
      width: 100%;
      padding: 15px;
   }

   /* ส่วนวิดีโอจาก youtube */

   .youtube {
      flex-direction: column;
      align-items: center;
   }

   .card-1 {
      width: 330px;
   }

   .con-card1 {
      padding: 10px 10px;
   }

   .iframe-card1 {
      justify-content: center;
      display: flex;

      iframe {
         width: 450px;
         height: 200px;
      }
   }

   .con-youtube {
      margin: 40px 0 50px 0;
   }

   .cut-youtube {
      display: none;
   }

}

/* แท็บเล็ต */
@media only screen and (min-width: 500px) and (max-width: 769px) {
   
   .banner {
      height: 40vh;
   }

   .text-box {
      padding: 0;
      display: flex;
      align-items: center;

      p {
         width: 400px;
         text-align: center;
      }
   }

   .text-box h1 {
      text-align: center;
   }

   /* ส่วนสินค้าแนะนำ */
   .main {
      width: 200px;
      height: 360px;
   }

   .head-menu {
      padding: 0;
   }

   .head-content {
      margin-left: 10px;
      margin-right: 10px;
   }

   /* ส่วน video และ โปรโมชัน */
   .iframe {
      flex-direction: column;
   }

   .main-iframe {
      iframe {
         width: 400px;
         height: 220px;
      }
   }

   .content-iframe {
      width: 480px;
      padding-bottom: 0;
      text-align: center;
   }


   .img-show {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      align-items: center;
      text-align: center;

      img {
         width: 330px;
         height: 200px;
      }
   }

   .text-video {
      padding: 15px 0 10px 50px;
   }

   /* ส่วนสปอนเซอร์ */
   .carousel-track {
      a {
         img {
            width: 50px;
         }
      }
   }

   /* ส่วนที่อยู่เบื้องต้น */
   .img-card {
      img {
         width: 100%;
         height: 200px;
         border-radius: 20px;
         margin-top: 20px;
         object-fit: cover;
         object-position: top;
      }
   }


   .con-promote {
      width: 100%;
      display: flex;
      justify-content: center;
      padding: 0 20PX;
   }

   .card-promote {
      margin: 0;
      margin-bottom: 40px;
      flex-direction: column;
      width: 100%;
      align-items: center;
   }

   .card-promote::before {
      background-color: rgba(0, 0, 0, 0.76);
   }

   .contect-card {
      padding: 0 20px;
      width: 100%;
   }

   .address-contect {
      width: 100%;
      padding: 15px;
   }

   /* ส่วนวิดีโอจาก youtube */

   .youtube {
      flex-direction: column;
      align-items: center;
   }

   .card-1 {
      width: 450px;
   }

   .con-card1 {
      padding: 10px 10px;
   }

   .iframe-card1 {
      justify-content: center;
      display: flex;

      iframe {
         width: 450px;
         height: 250px;
      }
   }

   .con-youtube {
      margin: 40px 0 50px 0;
   }

   .cut-youtube {
      display: none;
   }

}

/* เดสก์ท็อปกลาง */
@media only screen and (min-width: 769px) and (max-width: 1199px) {
   .banner {
      height: 60vh;
   }

   /* ส่วนสินค้าแนะนำ */
   .main {
      width: 200px;
      height: 360px;
   }

   /* ส่วน video และ โปรโมชัน */
   .iframe {
      flex-direction: column;
   }

   .main-iframe {
      iframe {
         width: 550px;
         height: 300px;
      }
   }

   .content-iframe {
      width: 480px;
      padding-bottom: 0;
      text-align: center;
   }


   .img-show {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      align-items: center;
      text-align: center;

      img {
         width: 450px;
         height: 250px;
      }
   }

   .text-video {
      padding: 15px 0 10px 50px;
   }

   /* ส่วนสปอนเซอร์ */
   .carousel-track {
      a {
         img {
            width: 100px;
         }
      }
   }

   /* ส่วนที่อยู่เบื้องต้น */
   .img-card {
      img {
         width: 550px;
         height: 260px;
         border-radius: 20px;
         margin-top: 20px;
         object-fit: cover;
         object-position: top;
      }
   }


   .con-promote {
      width: 100%;
      display: flex;
      justify-content: center;
      padding: 0 20PX;
   }

   .card-promote {
      margin: 0;
      margin-bottom: 40px;
      flex-direction: column;
      width: 100%;
      align-items: center;
   }

   .card-promote::before {
      background-color: rgba(0, 0, 0, 0.76);
   }

   .contect-card {
      padding: 0 20px;
      width: 100%;
   }

   .address-contect {
      width: 100%;
      padding: 15px;
   }

   /* ส่วนวิดีโอจาก youtube */
   .con-card1 {
      padding: 10px 10px;
   }

   .iframe-card1 {
      justify-content: center;
      display: flex;

      iframe {
         width: 360px;
         height: 200px;
      }
   }

   .con-youtube {
      margin: 40px 0 50px 0;
   }

   .cut-youtube {
      display: none;
   }

}

/* เดสก์ท็อปใหญ่ */
@media only screen and (min-width: 1200px) and (max-width: 1500px) {
   .banner {
      height: 70vh;
   }

   /* ส่วนสินค้าแนะนำ */
   .main {
      width: 250px;
      height: 420px;
   }

   /* ส่วน video และ โปรโมชัน */
   .main-iframe {
      iframe {
         width: 550px;
         height: 300px;
      }
   }

   .content-iframe {
      width: 480px;
   }

   .img-show {
      img {
         width: 340px;
         height: 220px;
      }
   }

   .text-video {
      padding: 15px 0 10px 50px;
   }

   /* ส่วนสปอนเซอร์ */
   .carousel-track {
      a {
         img {
            width: 100px;
         }
      }
   }

   /* ส่วนที่อยู่เบื้องต้น */
   .img-card {
      img {
         width: 500px;
         height: 100%;
         object-fit: cover;
      }
   }

   .card-promote {
      margin: 0;
      margin-bottom: 40px;
   }

   /* ส่วนวิดีโอจาก youtube */
   .con-card1 {
      padding: 10px 10px;
   }

   .iframe-card1 {
      justify-content: center;
      display: flex;

      iframe {
         width: 360px;
         height: 200px;
      }
   }

   .con-youtube {
      margin: 40px 0 50px 0;
   }


}