body {
  /* background-image: url("picture/bg-home.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; */
  font-family: "Prompt", sans-serif;
  font-style: normal;
}
/* background + blur + white overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  /* background-image: url("picture/bg-home.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */

  filter: blur(8px); /* ระดับความเบลอ */
  transform: scale(1.05); /* กันขอบขาวจาก blur */
  z-index: -2;
}

/* white overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;

  background: rgba(255, 255, 255, 0.55); /* ปรับความขาวได้ */
  z-index: -1;
}
.prompt-bold {
  font-family: "Prompt", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* Firefox */
html {
  scrollbar-width: none;
}

/* IE / Edge เก่า */
body {
  -ms-overflow-style: none;
}

@media (max-width: 992px) {
  .masonry-4 {
    column-count: 3;
  }
}

@media (max-width: 576px) {
  .masonry-4 {
    column-count: 2;
  }
}

.carousel-100 {
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.carousel-100 .carousel-item,
.carousel-100 .carousel-img {
  height: 70vh;
}

.carousel-100 img {
  width: 100%;
  object-fit: cover;
  filter: blur(3px); /* เบลอ + ทำมืดนิดหน่อย */
  transform: scale(1.05); /* กันขอบขาวตอน blur */
}

.carousel-100::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35); /* ความขาว */
  z-index: 1;
}
/* overlay กลางจอ */
.carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  z-index: 2;
}

/* title */
.carousel-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 2px;
  color: #0d663d;
}

/* subtitle */
.carousel-text {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #0d663d;
}

.btn-navbar {
  position: relative;
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
}

/* เส้นใต้ (เริ่มต้นซ่อน) */
.btn-navbar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #198754; /* เขียวหญ้า */
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

/* hover */
.btn-navbar:hover::after {
  width: 100%;
  opacity: 1;
}

/* hover สีตัวอักษร */
.btn-navbar:hover {
  color: #198754;
}

.text-body {
  color: #000;
  font-size: 20px;
}

.body-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.btn-body {
  border-radius: 50px;
  color: #fff;
  background-color: #198754;
}

.img-storage {
  height: auto;
}

.masonry-4 {
  column-count: 8;
  column-gap: 5px;
  width: 100%;
}

.masonry-4 img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 5px 0;
  break-inside: avoid;
}

.masonry-4 img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}
/* ===== Lightbox popup ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  width: min(70vw, 1100px);
  height: min(70vh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.content-box {
  max-width: 75vw;
}
.content-box1 {
  max-width: 80vw;
}
.content-box2 {
  max-width: 50vw;
}
.content-box3 {
  max-width: 60vw;
}
.custom-carousel {
  width: 40vh;
  height: 30vw;
  overflow: hidden;
}

.custom-carousel .carousel-inner,
.custom-carousel .carousel-item,
.custom-carousel img {
  width: 100%;
  height: 100%;
}

.custom-carousel img {
  object-fit: cover;
  object-position: center;
  display: block;
}

.text-footer {
  color: #d6dbd9;
}

.btn-footer {
  background: none;
  border: none;
  text-align: left;
}

.btn-footer:hover {
  text-decoration: underline;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 10px;
}

.contact-item i {
  font-size: 18px;
  margin-top: 2px;
}

.btn-contact {
  font-size: 18px;
}

.btn-contact:hover {
  transform: scale(1.04);
}

#about {
  scroll-margin-top: 40vh; /* ปรับได้ 30–50vh */
}

#product {
  scroll-margin-top: 40vh; /* ปรับได้ 30–50vh */
}

/* Navbar #2: fixed + glass bg */
.huiteng-nav2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* เริ่มต้นซ่อนไว้ */
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;

  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ตอนต้องแสดง */
.huiteng-nav2.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-leg {
  width: 40px;
  height: 40px;
  background-color: #e4dddd;
  border-radius: 50%;
  border: 0px solid #000;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: #000;
  font-size: 12px;
  font-weight: 600;

  position: relative;
  overflow: hidden;
}

/* ซ่อน ENG ตอนปกติ */
.btn-leg .en {
  display: none;
}

/* hover: ซ่อน TH */
.btn-leg:hover .th {
  display: none;
}

/* hover: แสดง ENG */
.btn-leg:hover .en {
  display: inline;
}

/* เอฟเฟกต์ hover นุ่ม ๆ */
.btn-leg:hover {
  background-color: #000;
  color: #fff;
  transition: all 0.25s ease;
}

/* ===== Navbar ตัวแรก (ทับ carousel ตอนอยู่บนสุด) ===== */
.navbar.bg-body-tertiary {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;

  background-color: transparent ;
}

.huiteng-nav2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;

  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.huiteng-nav2.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.carousel-100 {
  position: relative;
  z-index: 1;
}

.navbar-toggler {
  border: none;
}

.container-img img {
  width: 50px;
  height: 50px;
  border-radius: 0;
}
@media (max-width: 991.98px) {
  .navbar-nav {
    padding-top: 10px;
    gap: 10px !important;
  }
  .masonry-4 {
    column-count: 3;
    column-gap: 5px;
    width: 100%;
  }
  .custom-carousel {
    width: 30vh;
    height: 30vw;
    overflow: hidden;
  }

  .content-box {
    max-width: 75vw;
  }
  .content-box1 {
    max-width: 90vw;
  }
  .content-box2 {
    max-width: 70vw;
  }

  .btn-navbar,
  .btn-leg {
    width: 50%;
    border-radius: 20px;
    background-color: none;
    border: 0px solid #000;
    text-align: left;
  }
}

.card-content {
  width: 100vw;
  /* เต็มความกว้างจอ */
  height: 30px;
  /* ปรับความสูงตามต้องการ */
  background-color: rgba(255, 255, 255, 1);
  border-radius: 0;
  border: none;

  display: flex;
  align-items: center;
}

/* จัดข้อความให้อยู่กลาง */
.carousel-item {
  width: 100%;
  text-align: center;
}

.carousel-item p {
  margin: 0;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
}

/* กำหนดความสูง carousel */
.carousel-fixed {
  height: 30vh;
}

/* ให้แต่ละ item เต็มความสูง */
.carousel-fixed .carousel-item {
  height: 100%;
}

/* จัดรูปให้อยู่กลาง + crop อัตโนมัติ */
.carousel-fixed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ห้ามบีบรูป */
  object-position: center;
  /* อยู่กลางเสมอ */
  display: block;
}

.product-section {
  background-color: #e7ebe6ff;
  display: flex;
  gap: 16px;
  padding: 24px;
}

/* ซ้าย 20% */
.filter-panel {
  width: 20%;
  padding: 20px 30px;
}

/* หัวข้อ */
.filter-title {
  margin-bottom: 20px;
}

/* กล่องปุ่ม */
.filter-buttons {
  display: flex;
  flex-direction: column;
  /* ⭐ เรียงแนวตั้ง */
  gap: 12px;
}

/* active: สีตัวอักษร (เลือกได้) */
.btn-filter.active {
  color: #095f37ff;
  font-weight: 600;
}

/* ขวาใช้พื้นที่ที่เหลือ */
.gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 6 รูป/แถว */
  gap: 5px;
  /* ระยะห่างรูป 5px */
  align-content: start;
}

/* รูป */
.product-item {
  overflow: hidden;
  background: #fff;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-item img {
  width: 100%;
  height: auto;
  /* ปรับได้ตามต้องการ */
  object-fit: cover;
  display: block;
}

/* animation */
.product-item.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

.product-item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 0;
  opacity: 0;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  transition: all 0.3s ease;
  margin-right: 8px;
}

.search-box i {
  font-size: 18px;
  cursor: pointer;
  color: #095f37ff;
}

/* hover แล้ว input โผล่ออกทางซ้าย */
.search-box:hover input {
  width: 160px;
  opacity: 1;
}

/* responsive */
@media (max-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .product-section {
    flex-direction: column;
  }

  .filter-panel {
    width: 100%;
    min-width: 0;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
.img-wrapper {
  position: relative;
  width: 100%;
}

.img-wrapper img {
  width: 100%;
  display: block;
}

.product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: rgba(0, 0, 0, 0.6); /* พื้นหลังโปร่ง */
  color: #fff;
  padding: 6px 8px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-name {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.product-price {
  font-size: 13px;
  color: #ffd966;
}
.product-detail {
  padding: 60px 0;
}

.product-image img {
  width: 100%;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
}

.product-code {
  color: #777;
  font-size: 14px;
}

.price-main {
  font-size: 36px;
  font-weight: 700;
  color: #0d663d;
  margin: 15px 0;
}

.price-main span {
  font-size: 16px;
  color: #666;
}

.bundle-price ul {
  padding-left: 18px;
}

.bundle-price li {
  margin-bottom: 6px;
}

.spec-box {
  background: #f9f9f9;
  padding: 30px;
}

.price-box {
  margin-top: 25px;
  padding: 20px;
}

.price-title {
  font-weight: 700;
  margin-bottom: 15px;
}

.bundle-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bundle-btn {
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid #ccc;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.bundle-btn:hover {
  transform: scale(0.95);
  border-color: #0d663d;
}

.bundle-btn.active {
  background: #0d663d;
  color: #fff;
  border-color: #0d663d;
}

.bundle-result {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 700;
  color: #0d663d;
}

.price-box {
  background: #f8f9f8;
  padding: 25px;
  border-radius: 18px;
  margin-bottom: 25px;
  max-width: 520px;
}

.price-title {
  font-weight: 700;
  margin-bottom: 15px;
}

.area-input label {
  font-weight: 600;
}

.area-input input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  margin-top: 6px;
}

.bundle-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bundle-btn {
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid #ccc;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.bundle-btn:hover {
  transform: scale(0.95);
  border-color: #0d663d;
}

.bundle-btn.active {
  background: #0d663d;
  color: #fff;
  border-color: #0d663d;
}

.bundle-result {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 700;
  color: #0d663d;
}

/* Animation ราคา */
.price-animate {
  animation: priceFade 0.35s ease;
}

@keyframes priceFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dimension-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 15px;
}

.dim-field label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.dim-field input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.area-display {
  margin-top: 10px;
  font-weight: 600;
  color: #555;
}

.bundle-result {
  margin-top: 18px;
  font-size: 24px;
  font-weight: 700;
  color: #0d663d;
}

.price-animate {
  animation: priceFade 0.35s ease;
}

@keyframes priceFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;
  border-radius: 50px;

  background: rgba(13, 102, 61, 0.08);
  color: #0d663d;
  font-weight: 500;
  font-size: 15px;

  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-back i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

/* Hover */
.btn-back:hover {
  background: #0d663d;
  color: #ffffff;
}

.btn-back:hover i {
  transform: translateX(-4px);
}

.floating-back {
  position: fixed;
  top: 100px;
  left: 20px;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
