/* =================================
   Product Detail Page Styling
   ================================= */
.product-detail-page {
    background-color: #ffffff;
}

/* Galeri Gambar */
.main-image-container img {
    width: 100%;
    height: auto;
    height: 550px;
    object-fit: contain;
    border: 1px solid #dee2e6; 
}
.thumbnail-container {
    display: flex;
    gap: 1rem;
}
.thumbnail-item {
    width: 100px;
    height: 100px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail-item.active,
.thumbnail-item:hover {
    border-color: #11ACDA;
}

/* Info Produk */
.product-info-details .product-category-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: #11ACDA;
    text-transform: uppercase;
}

/* Tombol Wishlist */
#wishlistBtn {
    border-radius: 50px;
    font-weight: 500;
}
#wishlistBtn i {
    margin-right: 8px;
}
#wishlistBtn.active {
    background-color: #dc3545; /* Warna merah untuk item di wishlist */
    border-color: #dc3545;
    color: #fff;
}

/* Tabel Spesifikasi */
.spec-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}
/* Styling untuk Pratinjau Gambar di Form */
.image-preview-box {
    width: 100%;
    height: 180px; /* DIUBAH: Tinggi kotak pratinjau diperkecil */
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f9fa;
}
.image-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1rem;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    min-height: 120px;
}
.gallery-preview-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* Styling untuk Form Spesifikasi Tabel Builder (Pastikan ada) */
.spec-table-input th,
.spec-table-input td {
    vertical-align: middle;
    text-align: center;
}
.spec-table-input th:first-child,
.spec-table-input td:first-child {
    text-align: left;
}
.spec-table-input input.header-input {
    font-weight: bold;
    border: none;
    background: transparent;
    text-align: center;
} 



 
     .other-products-section {
        background-color: #f8f9fa; /* Light background for the section */
        padding: 80px 0; /* More padding top/bottom */
    }

    .section-title-dark {
        font-size: 2.5rem;
        font-weight: 700;
        color: #343a40; /* Darker title for emphasis */
        margin-bottom: 3rem; /* More space below title */
        position: relative;
        display: inline-block;
    }
    .section-title-dark::after {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background-color: #007bff; /* Primary color line */
        margin: 10px auto 0;
        border-radius: 2px;
    }

    .other-product-card {
        background-color: #ffffff;
        border-radius: 12px; /* Slightly more rounded corners */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09); /* Softer, larger shadow */
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex; /* Untuk memastikan card mengisi tinggi d-flex */
        flex-direction: column;
    }

    .other-product-card:hover {
        transform: translateY(-8px); /* Lebih menarik */
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Shadow lebih menonjol */
    }

    .other-product-card .card-link {
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: column;
        height: 100%; /* Memastikan link mengisi seluruh card */
    }

    .other-product-card-img-container {
        width: 100%;
        padding-top: 75%; /* 4:3 Aspect Ratio (3/4 = 0.75) */
        position: relative;
        overflow: hidden;
        border-bottom: 1px solid #eee; /* Garis pemisah gambar dan body */
    }

    .other-product-card-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Memastikan gambar terisi penuh tanpa distorsi */
        transition: transform 0.3s ease;
    }

    .other-product-card:hover .other-product-card-img {
        transform: scale(1.05); /* Zoom in effect on hover */
    }

    .other-product-card-body {
        padding: 1.5rem; /* Padding yang lebih besar */
        flex-grow: 1; /* Memastikan body mengisi sisa ruang */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Untuk mendorong footer ke bawah */
    }

    .other-product-card-category {
        display: inline-block;
        background-color: #e9f5ff; /* Light blue background */
        color: #007bff; /* Primary blue text */
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.3rem 0.75rem;
        border-radius: 50px; /* Fully rounded pill shape */
        margin-bottom: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .other-product-card-title {
        font-size: 1.35rem; /* Ukuran judul lebih besar */
        font-weight: 700;
        color: #343a40;
        margin-bottom: 0.8rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .other-product-card-text {
        font-size: 0.9rem;
        color: #6c757d;
        line-height: 1.6;
        margin-bottom: 1.2rem; /* Jarak dengan footer */
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Tampilkan hingga 3 baris deskripsi */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .other-product-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #f0f0f0;
        padding-top: 1rem;
        margin-top: auto; /* Mendorong footer ke bagian bawah card */
    }

    .other-product-card-footer .card-date {
        font-size: 0.8rem;
        color: #888;
        font-weight: 500;
    }
    .other-product-card-footer .card-date i {
        color: #007bff;
    }

    .other-product-card-footer .read-more {
        font-size: 0.9rem;
        color: #007bff;
        font-weight: 600;
        transition: color 0.2s ease;
    }
    .other-product-card:hover .read-more {
        color: #0056b3; /* Darker blue on hover */
    }
    .other-product-card-footer .read-more i {
        transition: transform 0.2s ease;
    }
    .other-product-card:hover .read-more i {
        transform: translateX(5px); /* Arrow move effect on hover */
    }

    /* Responsive adjustments */
    @media (max-width: 767.98px) {
        .section-title-dark {
            font-size: 2rem;
        }
        .other-product-card-title {
            font-size: 1.2rem;
        }
        .other-product-card-body {
            padding: 1rem;
        }
    }