:root {
  --primary-color: #007bff;
  --line-color: #06c755;
  --text-dark: #333;
  --text-muted: #666;
}

body {
  font-family: "IBM Plex Sans Thai", sans-serif;
  background-color: #f8f9fa;
  color: var(--text-dark);
}

/* Breadcrumb Styling */
.breadcrumb a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--primary-color);
}

/* Product Section */
.product-section {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.product-image-container {
  overflow: hidden;
  border: 1px solid #eee;
}

.product-image-container img {
  transition: transform 0.3s ease;
  width: 100%;
}

.product-image-container:hover img {
  transform: scale(1.02);
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #127ae8;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.25rem;
}

/* Detail List Icons */
.detail-list li {
  margin-bottom: 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-list i {
  font-size: 1.2rem;
}

/* CTA Buttons */
.btn-line {
  background-color: var(--line-color);
  color: white;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 10px;
}

.btn-line:hover {
  background-color: #05a546;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
}

.btn-phone {
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-phone:hover {
  background-color: #0056b3;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Related Products Card */
.product-card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.4em; /* จำกัดความสูงชื่อสินค้า */
}

/* Footer Fixes if needed */
main {
  min-height: 60vh;
}
.FOOTER-ALL {
  background-color: #032c70;
  color: var(--white);
  padding-top: 60px;
}

.btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
  color: #fff;
}
@media (max-width: 768px) {
  .FOOTER-ALL {
    text-align: center !important;
  }
  .FOOTER-ALL-TEXT-START {
    text-align: center !important;
  }
  .FOOTER-ALL-TEXT-START-DIV {
    display: flex;
    justify-content: center;
  }
  .btn-line,
  .btn-phone {
    width: auto; /* บน PC ให้ปุ่มขนาดพอดีข้อความ */
    margin-bottom: 0;
    margin-right: 10px;
  }
}
