﻿.product-detail {
  padding-top: 88px;
  padding-bottom: 88px;
}

.product-detail h4 {
    font-size: 24px;
}

.product-detail h3 {
    font-size: 32px;
}

.product-info table {
    background-color: transparent !important;
}

.product-info td,
.product-info th {
    background-color: transparent !important;
}

.main-image {
  position: relative;
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
}

.main-image img {
  max-height: 480px;
  object-fit: contain;
  cursor: pointer;
}

.gallery-prev, .gallery-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  margin: 0 20px;
}

.thumb-gallery img {
  width: 96px;
  height: auto;
  border-radius: 6px;
  border: 2px solid transparent;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumb-gallery img.active {
  border-color: #FFC107;
}

/* Popup */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-overlay {
  position: absolute;
  inset: 0;
}

.popup-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* Product Info */
.product-info td {
  padding: 0.4rem 0.5rem;
}

.product-info a {
  color: #007bff;
  text-decoration: none;
}

/* Add to cart button */
.btn-warning {
  background-color: #FFC107;
  border: none;
  font-size: 1.1rem;
  color: white;
  padding: 14px 40px 10px 40px;
}

.form-check-label {
    margin-right: 10px;
}

.product-description p {
  font-size: 1.25rem;
  color: #333;
}

.floating-share {
    position: fixed;
    right: 50px;
    top: 40%; /* สูงกว่าปุ่มเล็กน้อย */
    transform: translateY(-50%);
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 1.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.floating-share .share-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.floating-share a {
    color: rgb(var(--bs-primary-rgb));
    font-size: 18px;
    transition: all 0.2s;
}

.floating-share a:hover {
    color: #fcb900; /* สีเหลือง */
}

.related-products {
    background-color: transparent;
    padding-left: 8%;
    padding-right: 8%;
}

.related-products h5 {
    font-size: 20px;
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-card .heart-icon i {
    color: #F66;
    font-size: 24px;
}

.product-card .badge {
    font-size: 14px;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    color: white !important;
}
/* ขยายระยะห่างซ้ายขวา */
.related-container {
    
}

/* ขนาดกล่องสินค้าให้เล็กลง */
.product-card {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
}

/* ปรับขนาดฟอนต์เล็กลงเล็กน้อย */
.product-card .card-title {
    font-size: 24px;
    font-weight: 600;
}

.product-card .price {
    font-size: 32px;
}

.product-card .text-muted {
    font-size: 16px;
    color: #8F8F8F;
}