/* โหลดฟอนต์ MITR-LIGHT จากโฟลเดอร์ fonts */
@font-face {
  font-family: "MitrLight";
  src: url("./fonts/MITR-LIGHT.TTF") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
html, body {
  font-family: "MitrLight", sans-serif;
  font-weight: 300;
}

.nav-links li a:hover::after {
  width: 100%;
}

    /* Hero / Cover Image */
    .hero {
      width: 100%;
      height: 500px;
      overflow: hidden;
    }

    .hero img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      filter: brightness(1.2); /* ทำให้ภาพสว่างขึ้น */
    }
/* ทั้งหน้าใช้ MITR-LIGHT */
body {
  font-family: "MitrLight", sans-serif;
}

section h2 {
  font-family: "MitrLight", sans-serif;
  font-weight: 400;
  font-size: 2.2rem;
  color: #2DAA9E;
  text-align: center;
  margin-top: 40px;
  text-shadow: 1px 1px 3px rgba(255, 105, 180, 0.2);
}
section p {
  font-family: "MitrLight", sans-serif;
  font-size: 1.2rem;
  color: #555;
  text-align: center;
  margin-bottom: 30px;
}

/* หัวข้อมีเส้นซ้าย-ขวา */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;              /* ระยะห่างระหว่างเส้นกับตัวหนังสือ */
  font-size: 24px;        /* ปรับขนาดได้ตามชอบ */
  font-weight: 600;
  margin: 40px 0 20px;    /* ระยะห่างบน-ล่าง */
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #999;  /* สีเส้น */
}

/* ===== Body ===== */
body {
  background-color: #f5f5f5;
  color: #333;
}

/* โลโก้มุมขวาสุด */
.logo-right img {
  height: 80px; /* เพิ่มขนาดโลโก้จาก 50px → 80px */
  object-fit: contain;
}



/* ข้อความบนภาพ */
.product-info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: rgb(50, 122, 119);
  font-weight: bold;
  text-shadow:
     -2px -2px 0 #fff,
      2px -2px 0 #fff,
     -2px  2px 0 #fff,
      2px  2px 0 #fff;
}

.product-info h3 {
  font-size: 26px;
  margin: 0;
}

.product-info .price {
  font-size: 20px;
  margin: 0;
}
h2, h3 {
  font-family: "MitrLight", sans-serif;
}

.navbar a, .logo {
  font-family: "MitrLight", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}
/* ===== Navbar ===== */
nav.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px;           /* เดิม 15px 50px → ปรับให้บางลง */
  background-color: #2DAA9E;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* โลโก้ / ชื่อร้าน */
.logo {
  font-size: 22px;             /* เดิม 28px → ลดลงเล็กน้อย */
  font-weight: 700;
  letter-spacing: 0.5px;
}
/* ===== Responsive ===== */
/*
 * 1. สไตล์แถบเมนูหลัก (Navbar)
*/
.navbar {
  display: flex;         /* 1. ใช้ Flexbox เพื่อจัดเรียงแนวนอน */
  align-items: center;   /* 2. จัดให้ทุกอย่างอยู่กึ่งกลางแนวตั้ง (สำคัญมาก!) */
  background: #2DAA9E;   /* 3. สีพื้นหลัง */
  padding: 12px 20px;    /* 4. ระยะห่างภายใน */
  position: relative;    /* 5. ตั้งเป็น relative เพื่อให้เมนูมือถืออ้างอิงได้ */
  width: 100%;
  box-sizing: border-box; /* ป้องกัน padding ทะลุ */
}

/* * 2. สไตล์โลโก้และชื่อ (ส่วนซ้าย)
*/
.nav-brand {
  display: flex;         /* 1. ทำให้โลโก้และชื่อเรียงแนวนอน */
  align-items: center;   /* 2. จัดให้โลโก้และชื่ออยู่กลางแนวตั้ง */
  gap: 10px;             /* 3. ระยะห่างระหว่างโลโก้กับชื่อ */
  
  /* สไตล์ตัวอักษรและสี */
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  text-decoration: none; /* เอาขีดเส้นใต้ลิงก์ออก */
}

/* ปรับขนาดโลโก้ในแถบเมนู */
.nav-brand .nav-logo {
  height: 35px; /* ปรับขนาดโลโก้ตามต้องการ */
  width: auto;
}

/* * 3. เมนูลิงก์ (สำหรับจอใหญ่)
*/
.nav-links {
  display: flex;       /* 1. แสดงผลเป็นแนวนอน (บนจอใหญ่) */
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;   /* 2. !! คีย์เวิร์ด !! ผลักเมนูนี้ไปขวาสุด */
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-links li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* * 4. ปุ่มแฮมเบอร์เกอร์ (สำหรับมือถือ)
*/
.hamburger {
  display: none;       /* 1. ซ่อนไว้ก่อนบนจอใหญ่ */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;   /* 2. !! คีย์เวิร์ด !! ผลักปุ่มนี้ไปขวาสุด (เมื่อมันแสดง) */
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


/*
 * 5. Media Query สำหรับมือถือ (หน้าจอเล็กกว่า 768px)
*/
@media (max-width: 768px) {
  
  /* 1. ซ่อนเมนูลิงก์แบบจอใหญ่ */
  .nav-links {
    display: none; /* ซ่อนไปเลย */
    
    /* สไตล์เมนูตอนกดเปิด (โค้ดสไลด์) */
    position: absolute;
    top: 100%; /* ให้เริ่มต่อจาก navbar */
    left: 0;
    right: 0;
    background: #2DAA9E;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0; /* ซ่อนไว้ด้วย max-height */
    transition: max-height 0.35s ease;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-left: 0; /* เคลียร์ margin-left: auto ออก */
  }

  .nav-links li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
  }
  
  /* 2. แสดงปุ่มแฮมเบอร์เกอร์ */
  .hamburger {
    display: block; 
  }

  /* 3. (JavaScript ต้องเพิ่ม) เมื่อคลิกปุ่ม ให้ .nav-links มีคลาส .nav-open */
  .nav-links.nav-open {
    display: flex; /* หรือ block */
    max-height: 1000px; /* เปิดเมนู */
  }

  /* 4. แอนิเมชันปุ่ม (เหมือนเดิม) */
  .hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}
/* โครงสร้างหลักของกริดสินค้า */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* แสดง 2-4 คอลัมน์ตามขนาดจอ */
  gap: 15px;
  padding: 10px;
}

/* รูปภาพสินค้า */
.product-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* เอฟเฟกต์เมื่อวางเมาส์ */
.product-item img:hover {
  transform: scale(1.03);
}

/* สำหรับหน้าจอมือถือ */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* แบ่งเป็น 2 คอลัมน์ */
    gap: 10px;
  }

  h2, p {
    text-align: center;
  }
}
/* 🌸 โครงสร้างกริดสินค้าเริ่มต้น: 3 คอลัมน์ (Desktop) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 คอลัมน์ */
  gap: 20px;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 📱 สำหรับจอมือถือ (เล็กกว่า 768px) → เหลือ 2 คอลัมน์ */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 คอลัมน์ */
    gap: 10px;
  }

  .product-item img {
    max-height: 250px; /* ปรับขนาดรูปให้พอดีจอ */
    object-fit: cover;
  }
}
/* สไตล์ไอคอนลอยมุมขวาล่างแบบวงกลม */
.messenger-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0084FF; /* สี Messenger */
    border-radius: 50%; /* ทำเป็นวงกลม */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
}

.messenger-float img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* hover ให้เด้งและเงาชัด */
.messenger-float:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
/* สไตล์ไอคอนลอยมุมขวาล่างแบบวงกลม */
.chat-float {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
}

/* แยกตำแหน่งแต่ละไอคอน */
.chat-float.messenger {
    right: 20px;
    background-color: #0084FF;
}

.chat-float.line {
    right: 90px; /* เว้นระยะห่างจาก Messenger */
    background-color: #00C300;
}

.chat-float img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* hover ให้เด้งและเงาชัด */
.chat-float:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.video-container {
  position: relative;
  width: 100%;
  height: 50vh; /* 👈 ปรับจาก 100vh เป็น 50vh (ครึ่งจอ) */
  overflow: hidden;
}

#myVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgb(25, 124, 124);
}

.video-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.video-overlay p {
  font-size: 1.2rem;
}
/* ปุ่มลอย Messenger */
.messenger-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9999;
  width: 55px;
  height: 55px;
  background: #0084ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: .3s;
}
.messenger-float img {
  width: 32px;
}

/* ปุ่มลอย LINE */
.chat-float.line {
  position: fixed;
  bottom: 160px;
  right: 20px;
  z-index: 9999;
  width: 55px;
  height: 55px;
  background: #00c300;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: .3s;
}
.chat-float.line img {
  width: 32px;
}

.floating-quote-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background:#c0392b;
    color:#ffffff;
    padding:12px 26px;
    border-radius:30px;
    font-size:16px;
    font-weight:700;
    font-family:"MitrLight", sans-serif;
    text-decoration: none;   /* ⬅ ลบขีดใต้ */
    letter-spacing:.5px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 10px rgba(0,0,0,.3);
    transition:.25s;
}







.footer-contact-item img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-contact-item span {
  font-weight: 600;
}

.footer-contact-list {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;   /* เปลี่ยนจาก center → ขยับไปขวา */
}
.footer-section {
  background: #39ada4;
  padding: 30px 20px 20px;
  font-family: "MitrLight", sans-serif;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left h2 {
  color: #ffffff;
  font-size: 26px;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-left p {
  font-size: 16px;
  line-height: 1.6;
}

.footer-right {
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* ปุ่มติดต่อ */
.footer-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
  background: white;
  padding: 10px 15px;
  border-radius: 40px;
  box-shadow: 0 3px 10px rgb(95, 114, 112);
  text-decoration: none;
  color: #186d69;
  font-weight: 600;
  transition: 0.2s ease;
}

.footer-btn img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

/* hover */
.footer-btn:hover {
  transform: scale(1.03);
}

/* ✅ แก้เลย์เอาต์ footer เวลาอยู่จอมือถือ */
@media (max-width: 768px) {

  .footer-section {
    padding: 25px 15px 15px;
  }

  .footer-container {
    flex-direction: column;      /* จากแถว → กองแนวตั้ง */
    align-items: center;
    gap: 15px;
  }

  .footer-left,
  .footer-right {
    width: 100%;                 /* ให้เต็มความกว้างจอ */
  }

  .footer-left {
    text-align: center;          /* จัดกลางในจอมือถือ */
  }

  .footer-right {
    align-items: center;         /* ปุ่มเรียงกลางตรง ๆ */
  }

  .footer-btn {
    width: 100%;                 /* ให้ยืดเต็ม */
    max-width: 360px;            /* แต่ไม่กว้างเกินไป */
  }

  .footer-left h2 {
    font-size: 22px;
  }

  .footer-left p {
    font-size: 14px;
  }

  .footer-copy {
    font-size: 12px;
    margin-top: 15px;
  }
}
.footer-left p {
  color: #d8d8d8;      /* เปลี่ยนเป็นสีที่ต้องการ เช่น #fff, #000, #1abc9c */
  font-size: 16px;
}
.footer-logo {
  width: 120px;        /* ปรับขนาดโลโก้ */
  display: block;
  margin: 0 auto 15px; /* จัดให้อยู่ตรงกลาง + ห่างด้านล่าง */
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15)); /* ใส่เงานิดๆ ดูพรีเมียม */
}
/* ⭐ เรทราคา */
.rate-section {
  background: #e8fffb;
  padding: 60px 20px 50px;
  text-align: center;
}

.rate-title {
  font-family: "MitrLight", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #067c6f;
  margin-bottom: 8px;
}

.rate-underline {
  width: 80px;
  height: 3px;
  background: #2daa9e;
  margin: 0 auto 30px;
  border-radius: 999px;
}

.rate-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.rate-item {
  text-align: center;
}

/* ไอคอนวงกลม */
.rate-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rate-circle img {
  width: 120%;
  height: 120%;
  object-fit: cover;
}

.rate-circle:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.rate-item-title {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.rate-item-text {
  margin-top: 4px;
  font-size: 14px;
  color: #666;
}

/* 🖼 Modal แสดงรูปใหญ่ */
.rate-modal {
  position: fixed;
  inset: 0;
  display: none;                /* ซ่อนไว้ก่อน */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.rate-modal.open {
  display: flex;
}

.rate-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.rate-modal-content {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.rate-modal-content img {
  max-width: 90vw;
  max-height: 80vh;
  display: block;
  border-radius: 12px;
}

/* ปุ่มปิด */
.rate-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

/* มือถือ: ย่อวงกลมลงนิดนึง */
@media (max-width: 768px) {
  .rate-circle {
    width: 120px;
    height: 120px;
  }
}
.rate-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: none;
  padding: 0;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  cursor: pointer;

  display: inline-flex;   /* 👈 เปลี่ยนจาก flex เป็น inline-flex */
  align-items: center;
  justify-content: center;
}
.rate-section {
  text-align: center;
  padding: 50px 0;
  background: #eafff9;
}

.rate-line {
  width: 80px;
  height: 3px;
  background: #159a8c;
  margin: 10px auto 30px;
  border-radius: 5px;
}

.rate-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap; /* ทำให้รองรับมือถือ */
}

.rate-item {
  text-align: center;
}

.rate-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;   /* 👈 จัดให้อยู่กลาง */
}

.rate-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rate-title {
  font-size: 20px;
  margin-top: 15px;
  font-weight: bold;
}

.rate-desc {
  font-size: 14px;
  color: #555;
}
/* ปุ่มวงกลม --> เปลี่ยนเป็นสี่เหลี่ยมมุมโค้ง */
.rate-circle {
  width: 230px;
  height: 230px;
  padding: 0;
  border: none;
  background: white;
  border-radius: 20px;      /* ⭐ มุมโค้ง */
  overflow: hidden;         /* ⭐ ทำให้ภาพโค้งตามกรอบ */
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.rate-circle:hover {
  transform: scale(1.05);
}

/* ทำให้รูปภาพ*
/* ปรับขนาดการ์ดรูปเรทราคาให้ใหญ่ขึ้น */
.rate-circle {
  width: 380px;        /* ⭐ เพิ่มความกว้าง */
  height: 380px;       /* ⭐ เพิ่มความสูง */
  border-radius: 25px; /* มุมโค้ง */
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.rate-circle:hover {
  transform: scale(1.06);
}

/* รูปด้านใน */
.rate-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* จัดกรอบ 2 อันให้กว้างขึ้น */
.rate-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;                /* ⭐ เพิ่มระยะห่างซ้าย–ขวา */
  margin-top: 40px;
}

/* กำหนดคีย์เฟรมเด้ง */
@keyframes bounceLoop {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* เมื่อชี้เมาส์ → ขยายใหญ่ขึ้น 15–20% */
.rate-circle:hover {
  transform: scale(1.15);
}

/* keyframes ของการเด้ง */
@keyframes bounceLoop {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
/* 🔹 การ์ดทั้งใบเด้งเบา ๆ */
.rate-item {
  animation: rate-bounce 2.4s infinite ease-in-out;
}

/* 🔹 กรอบรูปเรทราคา – สี่เหลี่ยมมุมโค้ง */
.rate-circle {
  width: 260px;
  height: 260px;
  border-radius: 30px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* รูปด้านใน */
.rate-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 🔹 พอเมาส์โดน ให้ขยาย + เงาเยอะขึ้น */
.rate-circle:hover {
  transform: scale(1.12);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

/* 🔹 keyframes เด้ง */
@keyframes rate-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
/* ปรับขนาดรูปเรทราคาให้ใหญ่เท่าการ์ดด้านล่าง */
.rate-section .rate-item {
  width: 380px;
  max-width: 100%;
  margin: 0 auto;
}

/* ปรับขนาดการ์ดรูป */
.rate-circle {
  width: 100%;
  height: 380px; /* เท่าการ์ดล่าง */
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* รูปด้านในขยายเต็ม */
.rate-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ขยายเมื่อ hover */
.rate-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* Grid ระยะห่าง */
.rate-grid {
  display: flex;
  justify-content: center;
  gap: 60px; /* ให้ห่างเท่าการ์ดล่าง */
  flex-wrap: wrap;
}



/* ลดระยะห่างระหว่าง 2 รูปเรทราคา */
.rate-grid{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap: 24px;            /* เดิมน่าจะ 60-80px -> ลดลง */
}

/* ถ้าการ์ดกว้างเกินไป ให้บีบความกว้างลงนิด */
.rate-section .rate-item{
  width: 320px;         /* ปรับได้ 300-360 ตามชอบ */
  max-width: 100%;
}
@media (max-width: 1200px){
  .rate-grid{ gap: 16px; }
  .rate-section .rate-item{ width: 300px; }
}
/* จำกัดความกว้าง section นี้ */
#rate-section .section-container{
  max-width: 900px;     /* ⭐ ปรับได้ 800–1000 */
  margin: 0 auto;
}

/* บีบรูปให้ชิดกัน */
#rate-section .rate-grid{
  display: flex;
  justify-content: center;
  gap: 16px;            /* ระยะห่างจริงระหว่างรูป */
}









/* แก้กรอบขาวรอบรูปทั้งหมด */
img{
  display: block;
}
*{
  margin: 0;
  padding: 0;
}








/* =========================
   ✅ Top Category Bar (สวย/แนวนอน)
========================= */
.top-cats{
  display:flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  margin: 10px 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scroll-snap-type: x mandatory;
}

.top-cats::-webkit-scrollbar{ height: 8px; }
.top-cats::-webkit-scrollbar-thumb{
  border-radius: 999px;
  background: rgba(0,0,0,.18);
}

.cat-pill{
  scroll-snap-align: start;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.cat-pill:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.cat-pill.is-active{
  border-color: rgba(0,0,0,.18);
  background: linear-gradient(180deg, rgba(26,188,156,.20), rgba(26,188,156,.08));
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

/* ถ้าเว็บมี navbar ติดบน ให้ปรับเลข top */
.top-cats{
  position: sticky;
  top: 70px;  /* ← ปรับตามความสูงแถบเมนูบน */
  z-index: 50;
}

/* =========================
   ✅ Category Head
========================= */
.cat-head{
  margin: 6px 0 14px;
}

.cat-title{
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  margin: 0 0 6px 0;
}

.cat-desc{
  margin: 0;
  opacity: .75;
  font-size: 15px;
}

/* =========================
   ✅ Product Grid (สวย/การ์ด)
========================= */
.product-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 10px;
}

@media (max-width: 1100px){ .product-grid{ grid-template-columns: repeat(3, 1fr);} }
@media (max-width: 760px){ .product-grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 420px){ .product-grid{ grid-template-columns: 1fr;} }

.product-card{
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.86);
  border-radius: 18px;
  padding: 12px;
  cursor:pointer;
  text-align:left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover{
  transform: translateY(-3px);
  border-color: rgba(0,0,0,.14);
  box-shadow: 0 16px 30px rgba(0,0,0,.10);
}

.thumb{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(0,0,0,.03);
  display:flex;
  align-items:center;
  justify-content:center;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit: contain; background:#fff; } /* ถ้าไม่อยากให้ตัดภาพ เปลี่ยนเป็น contain */


.pname{
  margin-top: 10px;
  font-weight: 800;
  font-size: 14px;
}

/* =========================
   ✅ Hide vertical sidebar forever (กันพลาด)
========================= */
.catalog-sidebar{ display:none !important; }
/* ===== NAVBAR LAYOUT ===== */
.navbar{
  display:flex;
  align-items:center;
  gap:16px;
  padding:12px 20px;
  position:sticky;
  top:0;
  z-index:999;
  background:#fff;
}

/* โลโก้ */
.nav-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:800;
}

/* ===== TOP CATEGORIES IN NAV ===== */
.nav-cats{
  display:flex;
  gap:8px;
  overflow-x:auto;
  white-space:nowrap;
  flex:1;                 /* ⭐ กินพื้นที่ตรงกลาง */
  padding:6px 0;
}

.nav-cats::-webkit-scrollbar{
  height:6px;
}
.nav-cats::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.2);
  border-radius:99px;
}

/* pill */
.cat-pill{
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#f7f7f7;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  transition:.2s;
}
.cat-pill:hover{
  transform:translateY(-1px);
}
.cat-pill.is-active{
  background:#1abc9c;
  color:#fff;
  border-color:#1abc9c;
}

/* เมนูขวา */
.nav-links{
  display:flex;
  gap:16px;
  list-style:none;
  margin:0;
  padding:0;
}

/* ===== MOBILE ===== */
@media (max-width: 1024px){
  .nav-links{
    display:none; /* ให้เหลือแค่หมวด */
  }
}
