body {
    background: linear-gradient(rgba(122, 122, 122, 0.3), rgba(122, 122, 122, 0.3)), 
                url('../../product_img/BL.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ==================== ราคาทองโดยประมาณ ==================== */
.section-title {
    color: #c0392b;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.text-display {
    padding: 15px;
    margin-bottom: 15px;
    font-weight: 500;
    border: 2px solid #ddd;
    border-radius: 8px;
    min-height: 60px;
    background-color: #fcfcf9;
    color: #2c3e50;
}

.price-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.price-option-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #999;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    margin-left: 10px;
    position: relative;
    top: 3px;
    transition: all 0.2s ease-in-out;
}

.price-option-radio:checked {
    background-color: #f5b041;
    border-color: #f5b041;
}

.price-option-radio:checked::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    margin: 4px auto;
    background-color: white;
    border-radius: 2px;
}

/* สีพื้นหลัง + ตัวอักษรแต่ละเกรด */
.bg-ultrathin {
    background-color: #fef9e7;
    color: #a67c00;
}

.bg-verythin {
    background-color: #fcf3cf;
    color: #b7950b;
}

.bg-thin {
    background-color: #f9e79f;
    color: #9a7d0a;
}

.bg-standard {
    background-color: #f7dc6f;
    color: #7d6608;
}

.bg-strong {
    background-color: #f0b27a;
    color: #935116;
}

/* ==================== จัดข้อความชิดซ้าย ==================== */
.text-left * {
    text-align: left !important;
}

/* ==================== ปุ่ม Custom Button ==================== */
.custom-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 65px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid gold;
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    color: #8b6508;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    word-wrap: break-word;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-button:hover {
    background: gold;
    color: white;
    transform: scale(1.05);
}

/* Responsive ปุ่ม */
@media (max-width: 576px) {
    .custom-button {
        font-size: 10px;
        min-height: 50px;
        padding: 5px;
        white-space: normal;
    }
}

/* ==================== Carousel ==================== */
.carousel-inner img {
    border-radius: 10px;
    object-fit: cover;
    height: 500px;
}

@media (max-width: 768px) {
    .carousel-inner img {
        height: 250px;
    }
}

/* ==================== Responsive Column ==================== */
@media (max-width: 576px) {
  .product-grid .product-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
footer.footer {
    background: linear-gradient(to right, #e3f2fd, #bbdefb); /* สีฟ้า */
    color: #333;
    padding: 25px 0;
    text-align: center;
    width: 100%;
}
#viewers-btn, #views-btn {
    background-color: #1a237e;
    color: #fff;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    display: block;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

#viewers-btn:hover, #views-btn:hover {
    background-color: #0d47a1;
    transform: scale(1.05);
}
/* ==================== Footer About Section ==================== */
footer ul {
    list-style: none;       /* เอาจุด bullet ออก */
    padding-left: 0;        /* ลบระยะห่างด้านซ้าย */
    margin: 0 0 10px;
}

footer ul li {
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
}
 td, th {
            word-break: break-word;
        }

        @media (max-width: 576px) {
            td, th {
                font-size: 13px;
                padding: 8px;
            }
            .carousel-img {
                max-height: 120px;
            }
        }

        .carousel-img {
            width: 100%;
            max-height: 150px;
            object-fit: cover;
        }

.detail-content {
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}
.detail-content.expanded {
    max-height: 500px;
}
.toggle-detail {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}
.toggle-detail:hover {
    color: #0056b3;
}
