* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Sarabun", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #f8fafc;
  color: #334155;
}

.HeadT {
  text-align: center;
  color: #0f172a;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

header {
  text-align: center;
  padding: 0px;
  background: transparent;
  backdrop-filter: none;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

header img {
  width: 80px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 20pt;
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* โลโก้ */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-container img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.logo-container h1 {
  font-size: 24pt;
  font-weight: 600;
  margin: 0;
}

/* Top Bar */
.top-bar {
  background: #0f172a; /* Deep Navy */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  color: white;
  flex-wrap: nowrap; /* Prevent wrapping */
  border-bottom: 2px solid #d4af37;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  height: 50px;
  width: auto;
}

/* เพิ่มเพื่อจัดโลโก้กึ่งกลางเมื่อมือถือ */
@media (max-width: 768px) {
  .logo-area {
    justify-content: center; /* จัดกึ่งกลางแนวนอน */
  }
}

.company-info {
  text-align: left;
}

.company-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.company-address {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-top: 3px;
}

.right-area {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 5%;
}

.social-icons a {
  color: #94a3b8;
  font-size: 1.2rem;
  margin-right: 12px;
  transition: all 0.3s;
}

.social-icons a:hover {
  color: #d4af37;
  transform: translateY(-2px);
}

.login-btn {
  background: #10b981; /* Emerald */
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.login-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .right-area {
    margin-top: 10px;
    width: 100%;
    justify-content: space-between;
  }

  .company-name {
    font-size: 1.2rem;
  }
}

/* --- Navigation --- */
nav {
  margin-top: 15px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid #e2e8f0;
}

.menu-toggle {
  display: none;
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #ff6a00;
}

ul.main-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

ul.main-menu li {
  position: relative;
  margin: 10px 15px;
}

ul.main-menu li a {
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  padding: 8px 12px;
  border-radius: 8px;
}

ul.main-menu li:hover > a {
  color: #10b981;
  background: #f1f5f9;
}

/* Submenu */
ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #330000;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
  list-style: none;
  padding: 10px 0;
  width: 200px;
  animation: fadeIn 0.5s;
}

ul.main-menu li:hover .sub-menu {
  display: block;
}

ul.sub-menu li {
  padding: 8px 20px;
}

ul.sub-menu li a {
  color: #ffbb66;
  font-size: 11pt;
}

section {
  padding: 60px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-in-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #0f172a;
  font-weight: 800;
}

section p {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* ปุ่ม Scroll to Top */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background-color: #0f172a;
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

#scrollTopBtn:hover {
  background-color: #d4af37;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* ===== Horizontal Navbar Menu ===== */
#top-menu {
  position: relative;
  padding: 0;
}

.menu-hamburger {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 6px 10px;
  transition: all 0.3s;
}

.menu-hamburger:hover {
  background: rgba(255,255,255,0.2);
}

.menu-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: nowrap;
  padding: 0;
  list-style: none;
}

.menu-item {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s;
  position: relative;
  border-radius: 0;
}

.menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #fbbf24;
  transition: all 0.3s;
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
}

.menu-item a:hover::after,
.menu-item a.active::after {
  width: 80%;
}

.menu-item a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fbbf24;
}

.menu-item i {
  font-size: 1rem;
  transition: all 0.3s;
}

.menu-item p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
  .menu-item a {
    padding: 12px 12px;
    font-size: 0.8rem;
  }
  .menu-item i {
    font-size: 0.9rem;
  }
  .menu-item p {
    font-size: 0.8rem;
  }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .menu-hamburger {
    display: block;
  }

  #top-menu {
    padding: 12px 0;
  }

  .menu-grid {
    flex-direction: column;
    align-items: stretch;
    display: none;
    padding: 8px 0 0;
  }

  .menu-grid.show {
    display: flex;
    animation: menuSlideDown 0.3s ease;
  }

  .menu-item a {
    padding: 12px 24px;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .menu-item a::after {
    display: none;
  }

  .menu-item a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 32px;
  }
}

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   🔶 PRODUCT COLUMN STYLE
   =============================== */
.product-col {
  background: #f1f5f9;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 20px;
  min-height: 100vh;
}

.product-item {
  background-color: #ffffff;
  color: #0f172a;
  font-size: 1.3rem;
  text-align: center;
  padding: 30px;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.02);
}

.product-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ✅ ปรับขนาดสำหรับมือถือ */
@media (max-width: 1024px) {
  .product-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-col {
    grid-template-columns: 1fr;
  }
}
/*end product-col*/

/*end product-description*/
/* คำอธิบายสินค้า */
.product-description {
  color: #64748b;
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ปุ่ม TAB MENU */
.tab-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
}

.tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}
/*end product-description*/

/*ชื่อสินค้า*/
/* ชื่อสินค้า */
.product-title {
  color: #ffe8b3; /* สีฟ้อนต์ทองอ่อนเข้ากับพื้นหลังแดง-ส้ม-ดำ */
  font-size: 1.3rem; /* ขนาดใหญ่ขึ้น */
  font-weight: 700;
  margin: 10px 0 5px 0;
  text-align: center;
}

/* ราคาปัจจุบันและราคาลด */
.product-card .price {
  color: #ffffff; /* ฟ้อนท์สีขาว */
  font-size: 1.1rem;
  font-weight: 600;
  margin: 5px 0;
}

.product-card .price .discount {
  color: #ffcc00; /* สีทองเหลืองสำหรับราคาลด */
  font-size: 0.9rem;
  text-decoration: line-through;
  margin-left: 5px;
}

/*จบชื่อสินค้า*/

.partner-block {
  position: relative;
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.partner-block .partner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://www.freepik.com/free-photos-vectors/partner-background")
    center/cover no-repeat;
  opacity: 0.03;
  z-index: 0;
}

.partner-block .container {
  position: relative;
  z-index: 1;
}

.partner-block .partner-title {
  text-align: center;
  color: #0f172a;
  font-size: 2.2rem;
  margin-bottom: 50px;
  font-weight: 800;
}

.partner-block .partner-carousel {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.partner-block .partner-item {
  width: 150px; /* ขนาดภาพเท่ากัน */
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

/* เพิ่ม nth-child เพื่อหน่วงเวลาแต่ละ item */
.partner-block .partner-item:nth-child(1) {
  animation-delay: 0.2s;
}
.partner-block .partner-item:nth-child(2) {
  animation-delay: 0.4s;
}
.partner-block .partner-item:nth-child(3) {
  animation-delay: 0.6s;
}
.partner-block .partner-item:nth-child(4) {
  animation-delay: 0.8s;
}
.partner-block .partner-item:nth-child(5) {
  animation-delay: 1s;
}

/* 🔹 Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/*จบพาทเนอร์*/

/* ===== Footer ===== */
footer {
  position: relative;
  background: #0f172a; /* Deep Navy */
  color: #f1f5f9;
  overflow: hidden;
}

footer .footer-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

footer .footer-wave path {
  fill: url(#footerGradient);
}

footer .footer-content {
  text-align: center;
  padding: 60px 20px 40px;
}

footer .footer-content p {
  margin: 0.5rem 0;
  color: #cbd5e1;
}

footer .footer-content .social {
  margin-top: 25px;
}

footer .footer-content .social a {
  color: #94a3b8;
  margin: 0 12px;
  font-size: 1.4rem;
  transition: all 0.3s;
  display: inline-block;
}

footer .footer-content .social a:hover {
  color: #d4af37;
  transform: translateY(-3px);
}

/* ===== Cookie Banner ===== */
.lcp-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ff4500; /* สีแดงส้ม */
  padding: 15px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  flex-wrap: wrap;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.lcp-cookie-banner .text a {
  color: #fff;
  text-decoration: underline;
}

.lcp-cookie-banner .actions button {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.lcp-cookie-banner .lcp-btn {
  background: #ff8c00; /* ส้ม */
  color: white;
}

.lcp-cookie-banner .lcp-link-btn {
  background: #333; /* ดำ */
  color: white;
}

/* ===== Scroll to top button ===== */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 50px;
  right: 20px;
  z-index: 999;
  background: #ff4500; /* สีแดง */
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s;
}

#scrollTopBtn:hover {
  background: #ffa500; /* สีส้ม */
}

/*end footer*/

/*ContactSection*/
.contact-section {
  background: linear-gradient(135deg, #b30000, #ff6600, #000000);
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}

.contact-section .container {
  max-width: 1100px;
  width: 100%;
}

.contact-section .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffeb3b;
  margin-bottom: 10px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.contact-section .section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #fff;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  justify-content: center;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 5px 2px #ff6600;
}

.contact-form button {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button:hover {
  background: #ff9900;
  transform: translateY(-3px);
}

.contact-info h3 {
  color: #ffeb3b;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.line-button {
  display: inline-block;
  background: #00b900;
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  margin: 15px 0;
  transition: 0.3s;
}

.line-button:hover {
  background: #00d400;
  transform: translateY(-3px);
}

.line-button i {
  margin-right: 8px;
  font-size: 1.2rem;
}

.map-container {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-section .section-title {
    font-size: 2rem;
  }
  .contact-form,
  .contact-info {
    padding: 20px;
  }
}
/*end contact section*/

/* ปุ่มแท็บ */
.tab-btn {
  background: #ff6a00;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: #ff9500;
}

.tab-btn.active {
  background: #b30000;
}

/* ปุ่มสีพิเศษของแต่ละแท็บ */
.tab-btn:nth-child(1).active {
  background: #0077b6; /* จัดโปร = น้ำเงิน */
}
.tab-btn:nth-child(2).active {
  background: #d40000; /* ออกใหม่ = แดงเข้ม */
}
.tab-btn:nth-child(3).active {
  background: #ffcc00; /* ยอดนิยม = ทอง */
  color: #000;
}

/* ซ่อนหมวดที่ไม่ได้เลือก */
.hidden {
  display: none;
}

/* กริดสินค้า */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  justify-items: center;
  padding: 10px 0;
}

.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  padding: 15px;
  width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.product-card img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
}

.price {
  font-weight: bold;
  color: #b30000;
}

.discount {
  text-decoration: line-through;
  color: gray;
  font-size: 0.9em;
  margin-left: 5px;
}

/*ปุ่มเล็ก*/
.product-actions button {
  font-size: 8px; /* ขนาดตัวอักษรเล็ก */
  padding: 2px 5px; /* ลดระยะขอบในปุ่ม */
  margin: 2px 0; /* ระยะห่างระหว่างปุ่ม */
  border-radius: 4px; /* มุมโค้งเล็กนิดหน่อย */
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  cursor: pointer;
}

.product-actions button:hover {
  background-color: #e0f3ff;
}

/* ปรับให้ปุ่มอยู่ชิดกันและเรียงตรงกลาง */
.product-actions {
  text-align: center;
}
/*จบปุ่มเล็ก*/

/*Contact Form*/
/* 🎯 โครง 2 คอลัมน์ */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* ฟอร์ม 1 ช่อง + แผนที่ 1 ช่อง */
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

/* กล่องฟอร์ม */
.contact-form {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  color: #fff;
  text-align: left; /* 👈 ฟอร์มทั้งกล่องชิดซ้าย */
}

/* ป้ายและช่องกรอก */
.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-weight: bold;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
}

/* ปุ่มส่ง */
.btn-send {
  background: linear-gradient(90deg, #00b300, #33cc33);
  border: none;
  color: #fff;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}
.btn-send:hover {
  background: linear-gradient(90deg, #33cc33, #00b300);
}

/* กล่องแผนที่ */
.contact-map {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact-map iframe {
  width: 100%;
  height: 650px;
  border-radius: 15px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 📱 Responsive (มือถือ) */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr; /* แสดงซ้อนกันแทน */
  }
  .contact-map iframe {
    height: 400px;
  }
}
/*End Contact Form*/
