body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Jost', sans-serif;
  background-color: #f0eee5;
}
html {
  scroll-behavior: smooth;
}

.hero {
  background: url("img/banner_13.jpg")  no-repeat center center/cover;
  display: flex;
  background-size: cover;
  height: 100vh; /* หรือปรับตามต้องการ */
  flex-direction: column;
  color: #003366;
}

.top-bar {
  background-color: #2d73b9;
  padding: 10px 80px;
  position: fixed; /* <<< ตรงนี้คือสิ่งที่ล็อกไว้ */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo {
  height: 80px;
}

.navbar {
  display: flex;
  justify-content: center;
  margin-top: 80px;
  font-size: 33px;


  /* border-bottom: 3px solid #1a2b57;
  width: fit-content;
  margin: 0 auto; */
  
}
.menu-underline {
  border: none;
  border-top: 3px solid #031d67;
  width: 64%; /* หรือจะใช้ width: fit-content; แล้วครอบด้วย container */
  margin: -30px auto 20px auto; /* <— ขยับเส้นขึ้นด้วย margin-top ติดลบ */
}


.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
  
}

.navbar li a {
  text-decoration: none;
  color: #003366;
  margin: 0 20px;
  font-weight: bold;
}

.paw-icon {
  height: 64px;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #003366;
  padding: 10px;
  position: absolute;
  right: 20px;
  top: 25px;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .hero {
    background-image: url('img/banner_14.jpg');
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .menu-underline {
    display: none;
    width: 90%;
    margin: -20px auto 16px auto;
  }


  .navbar ul.show {
    display: flex;
  }

  @media (max-width: 768px) {
  .hamburger {
    display: block !important;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2000;
    color: #003366;
  }
}
  
}
.section1 {
  position: relative;
  text-align: center;
  margin: 60px auto;
  width: fit-content;
}

.section1 p {
  font-weight: bold;
  color: #031d67;
  font-size: 60px;
  font-family: "Jost", sans-serif;
  margin: 0;
  position: relative;
  z-index: 1;
  background-color: #ffffff;
  padding: 0 20px;
}

 .section-title {
    font-size: 60px;
    font-weight: bold;
    color: #031d67;
    text-shadow: 1px 1px #b0c4de;
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  }


 /* .section1-1 img  {
        width: 100%;
        height: auto;
        display: flex;
    }
    .section1-2 img  {
        width: 100%;
        height: auto;
        display: flex;
    }
    .section1-3 img  {
        width: 100%;
        height: auto;
        display: flex;
    }
    .section1-4 img  {
        width: 100%;
        height: auto;
        display: flex;
    }

    .section-image1 img {
      width: 100%;
      height: auto;
      padding: 20px;
    }

  .section1 {
    background-color: #fff8d9;
    font-size: 50px;
    
  } */
 
.product-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* สินค้าแต่ละแถว: รูปซ้าย ข้อความขวา (หรือสลับได้) */
.product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  max-width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* ปรับตามต้องการ เช่น 1000px */
  height: auto;
  aspect-ratio: 5 / 2; /* รักษาสัดส่วนแบบ responsive */
  flex-shrink: 0;
}

.image-wrapper img.bg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.image-wrapper a img.fg {
  position: absolute;
  bottom: 0;
  /* left: 90%; */
  transform: translateX(-50%);
  width: 50%; /* หรือปรับขนาดตามต้องการ */
  height: auto;
  z-index: 2;
}

/* แถวคี่: รูปชิดซ้าย */
.product:nth-child(odd) .image-wrapper a img.fg {
  left: 100%;
  transform: translateX(-50%);
  right: auto;
}

 /* แถวคู่: รูปชิดขวา * */
.product:nth-child(even) .image-wrapper a img.fg {
  right: 100%;
  transform: translateX(50%);
  left: auto;
}


/* สลับทิศทางภาพ-ข้อความ ทุกแถวคู่ */
.product:nth-child(even) {
  flex-direction: row-reverse;
}

 .product-img:hover {
      transform: scale(1.20);
    }

    a {
      display: inline-block;
    }




.section1-1 img  {
        width: 100%;
        height: auto;
        display: flex;
    }
    .section1-2 img  {
        width: 100%;
        height: auto;
        display: flex;
    }
    .section1-3 img  {
        width: 100%;
        height: auto;
        display: flex;
    }
    

    @media (hover: hover) and (pointer: fine) {
  .bounce-hover {
    transition: transform 0.3s ease;
  }

  .bounce-hover:hover {
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes bounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-12px); }
  60% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}



.footer {
  background-color: #f0eee5;
  padding:   0;
  font-family: 'Jost', sans-serif;
  color: #1a1a1a;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
  padding-bottom: 20px;
}

.footer-section {
  max-width: 300px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: #3366b8;
  margin-bottom: 10px;
  font-weight: bold;
}

.footer-section h4 {
  color: #3366b8;
  margin: 20px 0 10px;
  font-weight: bold;
}

.footer-section a {
  color: inherit;
  text-decoration: none;
}

.social-icons img,
.shop-icons img {
  width: 60px;
  height: 60px;
  margin: 5px;
}

.footer-bottom {
  background-color: #3375b9;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
}




/* ✅ ป้องกันการล้นแนวนอน */
html, body {
  overflow-x: hidden;
}

.product-section {

    background-color: #f0eee5; /* สีครีม */
    text-align: center;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
  }

  .product-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
  }

  .product-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  .product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
  }

  .product-name {
    font-weight: bold;
    color: #3878b8;
    font-size: 24px;
    font-family: "Jost", sans-serif;
  }


/* เปลี่ยนรูปตอนย่อจอ */
  /* โดยปกติแล้วจะซ่อน banner mobile ไว้ */
.section-banner-mobile {
  display: none; 
  width: 100%;
  height: auto;
  margin-top: 0px; /* ปรับระยะห่างตามต้องการ */
}

.section-banner-mobile img {
  width: 100%;
  height: auto;
  display: block; /* ให้รูปภาพแสดงผลเต็มพื้นที่ div */
}

/* ซ่อน banner mobile 2 ในสถานะปกติ (Desktop) */
.section-banner-2-mobile {
  display: none; 
  width: 100%;
  height: auto;
  margin-top: 20px; /* ปรับระยะห่างตามต้องการ */
}

.section-banner-2-mobile img {
  width: 100%;
  height: auto;
  display: block;
}


/* @media query สำหรับหน้าจอขนาดเล็ก */
@media (max-width: 768px) {
  /* ซ่อน .section1-3 (icon_39.png) เมื่อหน้าจอเล็ก */
  .section1-3 {
    display: none;
  }

  /* แสดง .section-banner-mobile เมื่อหน้าจอเล็ก */
  .section-banner-mobile {
    display: block;
  }
  .hero {
    background-image: url('img/banner_14.png');
  }
  
  /* ... โค้ดอื่นๆ ของ @media ... */

  /* 🌟 ซ่อน icon_42.png และ icon_44.png เมื่อหน้าจอเล็ก 🌟 */
  .section1-1, 
  .section1-2 {
    display: none;
  }
  
  /* 🌟 แสดง banner_21.png (section-banner-2-mobile) เมื่อหน้าจอเล็ก 🌟 */
  .section-banner-2-mobile {
    display: block;
  }
}