@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&family=Outfit:wght@100..900&display=swap');

@-webkit-keyframes Gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
@-moz-keyframes Gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
@keyframes Gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
/*=============== Banner Start ================*/
.video-container video {
    width: 100%;
    height: 100%;
    display: block;
}


@media (max-width: 1920px) {
        .video-container {
          overflow: unset;
        }
        .fix-height {
        height: 1071px;
        }
      }
      
@media (max-width: 1560px) {
        .video-container {
          overflow: unset;
        }
        .fix-height {
        height: 855px;
        }
      }      
     

@media (max-width: 1450px) {
        .video-container {
          overflow: unset;
        }
        .fix-height {
        height: 790px;
        }
      }

@media (max-width: 767.98px) {
        .video-container {
          overflow: unset;
        }
        .fix-height {
        height: 219px;
        }
      }
/*=============== Banner End ================*/

/*==================== start section aboutus ====================*/
.circle-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-us {
  font-family: "Outfit", "Noto Sans Thai", sans-serif;
}

.about-us .text-header {
  font-size: 36px;
  font-weight: 400;
}

.about-us .text-semi {
  font-size: 18px;
  font-weight: 400;
}

.about-us .title-header {
  font-size: 18px;
  font-weight: 700;
  line-height: 150%;
}

.about-us .title-info {
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}

.img-background {
  background-image: url(https://res.cloudinary.com/ddc45olxv/image/upload/v1750060717/bg-red_ms64av.png);
  background-position: center;
  background-size: cover;
}

@media screen and (max-width: 576px) {
  .about-us .text-header {
    font-size: 24px;
  }

  .about-us .text-semi {
    font-size: 16px;
  }
}
/*==================== End section aboutus ====================*/

/*==================== Start section bestselling ====================*/
.text-red {
  color: #a1221c;
}
.best-selling {
  font-family: "Outfit", "Noto Sans Thai", sans-serif;
}

.best-selling .text-header {
  font-size: 36px;
  font-weight: 700;
}

.best-selling .title-header {
  font-size: 16px;
  font-weight: 400;
}

.best-selling .title-info {
  font-size: 12px;
  font-weight: 400;
}

.best-selling .see-more {
  font-size: 16px;
  font-weight: 400;
  color: #a1221c;
  text-decoration: none;
}

.best-selling-badge {
  background: #b71c1c;
  color: #fff;
  border-radius: 0 0 0 10px;
  position: absolute;
  top: 0;
  font-weight: 700;
  line-height: 126%;
}

.best-selling-slider {
    padding: 40px 0;
  }

@media screen and (max-width: 576px) {
  .best-selling-badge {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  .best-selling-slider {
    padding: 18px 0;
  }
}

@media screen and (min-width: 576.99px) {
  .best-selling-badge {
    font-size: 14px;
    padding: 6px 8px;
  }
}

@media screen and (min-width: 768.99px) {
  .best-selling-badge {
    font-size: 12px;
    padding: 6px 8px;
  }
}

@media screen and (min-width: 1024.99px) {
  .best-selling-badge {
    font-size: 16px;
    padding: 8px 12px;
  }
}

.product-card img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-bottom: 5px solid #a1221c;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.best-selling .text-area {
  min-height: 5em;
}

.product-card small {
  min-height: 2.5em;
  text-align: left;
}

.product-card .see-more {
  margin-top: 0.75rem;
  /* margin-top: auto; */
}

.see-more {
  color: #b71c1c;
  text-decoration: none;
  font-weight: 500;
}

.see-more:hover {
  text-decoration: underline;
}

/* .best-selling-slider {
  margin: 0 -10px;
} */

.best-selling-slider .product-card {
  padding: 0 12px;
}

.slick-dots {
  position: absolute;
  bottom: -25px;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

.slick-dots li button:before {
  color: #d9d9d9 !important;
  opacity: .75 !important;
  font-size: 10px !important;
}

.slick-dots li.slick-active button:before {
  color: #a1221c !important;
}

.slick-dots li {
  margin: 0;
}

@media screen and (max-width: 576px) {
  .best-selling .title-header {
    font-size: 14px;
  }

  .best-selling .see-more {
    font-size: 14px;
  }
}

/* ==================== End section bestselling ====================*/

/*==================== Start section our brand ====================*/
.our-brand {
  font-family: "Outfit", "Noto Sans Thai", sans-serif;
}

.our-brand .text-header {
  font-size: 36px;
  font-weight: 700;
}
.text-red {
  color: #a1221c;
}
.brand-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center; /* จัดให้อยู่ตรงกลาง */
  align-items: flex-start;
  margin-top: 40px;
  max-width: 1400px;
  width: 100%;
  /* ใช้ CSS Grid แทน Flexbox เพื่อให้เรียงจากซ้ายในแถวสุดท้าย */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(163px, 163px));
  justify-content: center;
  grid-gap: 1.5rem;
}

.brand-item {
  max-width: 163px;
  width: 163px;
  min-width: 127px;
  max-height: 100px;
  height: 100px;
  min-height: 78px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* ป้องกันการหดตัว */
}

.brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Tablet และ Desktop */
@media (min-width: 768px) {
  .brand-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(163px, 163px));
    justify-content: center;
    gap: 1.5rem;
  }
}

/* Mobile ใหญ่ */
@media (max-width: 767.98px) {
  .brand-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(140px, 140px));
    justify-content: center;
    grid-gap: 1rem;
  }

  .brand-item {
    max-width: 140px;
    width: 140px;
    min-width: 120px;
  }
}

/* Mobile เล็ก */
@media (max-width: 576.98px) {
  .brand-item {
    max-width: 127px;
    width: 127px;
    min-width: 110px;
    height: 78px;
  }

  .brand-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(127px, 127px));
    grid-gap: 0.8rem;
    justify-content: center;
  }
}

/* Mobile เล็กมาก */
@media (max-width: 480px) {
  .brand-item {
    min-width: 110px;
    width: 110px;
    height: 78px;
  }

  .brand-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(100px, 110px));
    grid-gap: 1rem;
    justify-content: center;
  }
}

/* Mobile เล็กที่สุด */
@media (max-width: 360px) {
  .brand-item {
    min-width: 100px;
    width: 100px;
    height: 70px;
  }

  .brand-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(90px, 100px));
    grid-gap: 1rem;
    justify-content: center;
  }
}
/*==================== End section our brand ====================*/

/*==================== Start section our customer ====================*/
.our-brand {
  font-family: "Outfit", "Noto Sans Thai", sans-serif;
}

.our-brand .text-header {
  font-size: 36px;
  font-weight: 700;
}
.text-red {
  color: #a1221c;
}

.customer-brand-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center; /* จัดให้อยู่ตรงกลาง */
  align-items: flex-start;
  margin-top: 40px;
  max-width: 1400px;
  width: 100%;
  /* ใช้ CSS Grid แทน Flexbox เพื่อให้เรียงจากซ้ายในแถวสุดท้าย */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(163px, 163px));
  justify-content: center;
  grid-gap: 1.5rem;
}

.customer-brand-item {
  max-width: 163px;
  width: 163px;
  min-width: 127px;
  max-height: 100px;
  height: 100px;
  min-height: 78px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* ป้องกันการหดตัว */
}

.customer-brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Tablet และ Desktop */
@media (min-width: 768px) {
  .customer-brand-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(163px, 163px));
    justify-content: center;
    gap: 1.5rem;
  }
}

/* Mobile ใหญ่ */
@media (max-width: 767.98px) {
  .customer-brand-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(140px, 140px));
    justify-content: center;
    grid-gap: 1rem;
  }

  .customer-brand-item {
    max-width: 140px;
    width: 140px;
    min-width: 120px;
  }
}

/* Mobile เล็ก */
@media (max-width: 576.98px) {
  .customer-brand-item {
    max-width: 127px;
    width: 127px;
    min-width: 110px;
    height: 78px;
  }

  .customer-brand-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(127px, 127px));
    grid-gap: 0.8rem;
    justify-content: center;
  }
}

/* Mobile เล็กมาก */
@media (max-width: 480px) {
  .customer-brand-item {
    min-width: 110px;
    width: 110px;
    height: 78px;
  }

  .customer-brand-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(100px, 110px));
    grid-gap: 1rem;
    justify-content: center;
  }
}

/* Mobile เล็กที่สุด */
@media (max-width: 360px) {
  .customer-brand-item {
    min-width: 100px;
    width: 100px;
    height: 70px;
  }

  .customer-brand-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(90px, 100px));
    grid-gap: 1rem;
    justify-content: center;
  }
}
/*==================== End section our customer ====================*/

/*==================== Start section contact ====================*/
.con-link {
  text-decoration: none;
  color: #000000;
}
.logo img {
    padding-top: 20px;
    height: 75px;
  }

.con-addpad {
  padding-top: 20px;
}
.section-contact {
  font-family: "Outfit", "Noto Sans Thai", sans-serif;
}

/* .section-contact .text-header {
    font-size: 36px;
    font-weight: 700;
} */

.contact-card {
  max-width: 600px;
  margin: auto;
  border-radius: 10px;
  background-color: #fff;
  padding: 20px;
}

.contact-header {
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
}

.contact-header img {
  width: 100%;
  object-fit: cover;
}

.contact-header-text {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

.contact-item {
  font-size: 18px;
}

@media screen and (max-width: 576px) {
  .contact-header img {
    height: 101px;
  }

  .logo img {
    height: 75px;
  }
}

/*==================== End section contact ====================*/

/*==================== Start section footer ====================*/
.foot-link {
  text-decoration: none;
  color: #ffffff;
}
.section-footer {
  font-family: "Outfit", "Noto Sans Thai", sans-serif;
}

.footer-top .text-header {
  font-size: 24px;
  font-weight: 700;
  line-height: 150%;
}

.footer-bottom .text-header {
  font-size: 24px;
  font-weight: 700;
  line-height: 150%;
}

.footer-bottom .title-info {
  font-size: 18px;
  font-weight: 700;
  line-height: 150%;
  margin-bottom: 10px;
}

.footer-top {
  background-color: #fff;
  padding: 1rem 0;
  font-weight: bold;
  color: #6e0000;
}

.footer-bottom {
  background-color: #a62822;
  color: white;
  padding: 2rem 0rem;
}

.footer-logo {
  width: 151px;
  height: 151px;
  border-radius: 50%;
  object-fit: cover;
  /* margin-bottom: 1rem; */
}

.social-icon img {
  margin-right: 5px;
  margin-bottom: 10px;
}

.rounded-img {
  border-radius: 10px;
  width: 100%;
  max-width: 410px;
  max-height: 200px;
  object-fit: cover;
  object-position: top;
}

.footer-social .title-footer {
  font-size: 16px;
  font-weight: 400;
}

.footer-social .title-footer strong {
  font-weight: 700;
}

@media screen and (max-width: 576px) {
  .footer-social .title-footer {
    font-size: 10px;
  }
}
/*==================== End section footer ====================*/

/*==================== Start section promotion ====================*/
.our-promotion {
  font-family: "Outfit", "Noto Sans Thai", sans-serif;
}

.our-promotion .text-header {
  font-size: 36px;
  font-weight: 700;
}

.text-red {
  color: #a1221c;
}

.image-slider .slick-slide {
  padding: 0 12px;
}

.image-slider img {
  /* width: 418px; */
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* ให้ภาพเต็มกรอบ */
  border-radius: 10px;
  display: block;
  /* margin: 0 auto; */
}
.slick-dots {
  position: absolute;
  bottom: -25px;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

.slick-dots li button:before {
  color: #d9d9d9 !important;
  opacity: .75 !important;
  font-size: 10px !important;
}

.slick-dots li.slick-active button:before {
  color: #a1221c !important;
}

.slick-dots li {
  margin: 0;
}

.image-slider {
  /* max-width: 1300px; หรือขนาดรวมที่เหมาะกับ 3 ช่อง + gap */
  padding: 40px 0;
}

@media screen and (max-width: 576px) {
  .image-slider {
    padding: 18px 0;
  }
}

/*==================== End section our promotion ====================*/

/*==================== Start section our portfolio ====================*/
.section-portfolio {
  font-family: "Outfit", "Noto Sans Thai", sans-serif;
}

.section-portfolio .text-header {
  font-size: 36px;
  font-weight: 700;
}

.grid-5x2 img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.grid-5x2-wrapper {
  margin: auto;
}

.grid-5x2 {
  display: grid;
  gap: 16px;
  justify-content: center;
  grid-template-columns: repeat(2, 1fr); /* default คือ 2 columns */
}

@media (min-width: 577px) and (max-width: 767.98px) {
  .grid-5x2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .grid-5x2 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) and (max-width: 1023.98px) {
  .grid-5x2 {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-5x2 {
    grid-template-columns: repeat(auto-fill, 243px);
    gap: 24px;
    max-width: calc((243px + 24px) * 6); /* กำหนด max-width ประมาณ 6 ช่อง */
    margin: auto;
  }
}
/*==================== End section our portfolio ====================*/
/*Widget*/
.contact-line-top {
    position: fixed;
    right: 15px;
    top: 49%;
    z-index: 1;
    max-width: 100px;
}
.contact-call {
    display: inline-block;
    cursor: pointer;
    min-width: 100px;
    text-align: center;
    margin-bottom: 20px;
}