:root {
    --gold-color: #c5a473;
    --dark-bg: #1a1a1a;
    --card-bg: rgba(6, 16, 31, 0.85);
    --border-color: #333333;
    --text-light: #e0e0e0;
    --text-dark: #cccccc;
}

.products-page-content {
    font-family: 'Montserrat', sans-serif;
}

.products-page-content h1,
.products-page-content h2 {
    font-family: 'Times New Roman', Times, serif;
}

.products-header {
    text-align: center;
    margin: 2rem 0 4rem 0;
    position: relative;
}

.products-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-color);
    display: inline-block;
    position: relative;
    margin: 0 1rem;
    --header-line-gap: 14px; /* jarak antara teks & garis */
}

/* Single animated line grows leftward starting exactly at text start */
.products-header::before,
.products-header::after { display:none !important; }
.products-header h1 { position:relative; }
.products-header h1::before {
    content:'';
    position:absolute;
    top:50%;
    right:calc(100% + var(--header-line-gap)); /* beri jarak kiri */
    height:1px;
    width: 200px;
    background-color: var(--gold-color);
    opacity:.6;
    transform:translateY(-50%) scaleX(1);
}
/* Symmetric line on the right end of the heading */
.products-header h1::after {
    content:'';
    position:absolute;
    top:50%;
    left:calc(100% + var(--header-line-gap)); /* beri jarak kanan */
    height:1px;
    width:200px;
    background-color: var(--gold-color);
    opacity:.6;
    transform:translateY(-50%) scaleX(1);
}
/* (Animasi dihapus – garis statis) */

.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card .full-card-link { position:absolute; inset:0; z-index:5; text-indent:-9999px; background:transparent; }
.product-card .pseudo-link { cursor:pointer; }

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-image-wrapper {
    overflow: hidden;
    height: 350px; 
    position: relative;
    background-color: #000; /* Warna latar jika gambar rusak */
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    flex-grow: 1;
}

.product-info h2 {
    color: var(--gold-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.product-info p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5; 
    -webkit-box-orient: vertical;
}

.read-more-link {
    color: var(--gold-color);
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: letter-spacing 0.3s ease;
    margin-top: 10px;
}

.product-card:hover .read-more-link {
    letter-spacing: 1px;
}

.coming-soon-tag {
    background-color: transparent;
    border: 1px solid var(--gold-color);
    color: var(--gold-color);
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* --- Product Responsive Breakpoints --- */
/* XL ≥1200px */
@media (min-width: 1200px) {
    .products-header h1 { font-size: 3rem; letter-spacing: 5px; }
    .product-info h2 { font-size: 2.1rem; }
}
/* LG 992–1199 */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .products-header h1 { font-size: 2.7rem; }
}
/* MD 768–991 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .products-header h1 { font-size: 2.3rem; }
    .product-image-wrapper { height: 300px; }
    .product-info { padding: 2rem 2rem 2.2rem; }
    .product-info p { -webkit-line-clamp: 4; line-clamp: 4; }
}
/* SM 576–767 */
@media (min-width: 576px) and (max-width: 767.98px) {
    .products-header h1 { font-size: 2rem; letter-spacing: 3.5px; }
    /* Narrower decorative lines on small devices */
    .product-image-wrapper { height: 260px; }
    .product-info { padding: 1.75rem 1.5rem 2rem; }
    .product-info p { -webkit-line-clamp: 4; line-clamp: 4; }
}
/* XS <576 */
@media (max-width: 575.98px) {
    .products-header h1 { font-size: 1.65rem; letter-spacing: 3px; }
    .products-header h1::before,
    .products-header h1::after { width:50px; }
    .product-image-wrapper { height: 230px; }
    .product-info { padding: 1.6rem 1.25rem 1.8rem; }
    .product-info p { -webkit-line-clamp: 5; line-clamp: 5; }
}
/* General tablet & down adjustments */
@media (max-width: 991.98px) {
    .product-card { flex-direction: column; }
    .product-card .row { display: block; }
    .product-card .col-lg-4, .product-card .col-lg-8 { width: 100%; }
}
/* Orientation specific */
@media (orientation: portrait) and (max-width: 767.98px) {
    .products-header { margin: 1.8rem 0 3rem; }
    .product-image-wrapper { height: 240px; }
}
@media (orientation: landscape) and (max-width: 991.98px) {
    .products-header h1 { font-size: 1.85rem; }
    .products-header { margin: 1.2rem 0 2.5rem; }
    .product-image-wrapper { height: 200px; }
}


.custom-image-modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.custom-image-modal-content {
    max-width: 80vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    object-fit: contain;
    display: block;
    margin: auto;
}
.custom-image-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2010;
    transition: color 0.2s;
    text-shadow: 0 2px 10px #000;
}
.custom-image-modal-close:hover {
    color: var(--gold-color);
}
@media (max-width: 768px) {
    .custom-image-modal-content {
        max-width: 90vw;
        max-height: 80vh;
    }
    .custom-image-modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

/* ====== STYLE BARU UNTUK FUNGSI KLIK TERPISAH ====== */

/* 1. Beri visual feedback bahwa gambar bisa di-klik untuk zoom */
.product-image-popup {
    cursor: zoom-in !important;
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* 2. Jadikan kolom info sebagai container untuk link absolut */
.product-info-container {
    position: relative;
    display: flex; /* Memastikan .product-info mengisi tinggi container */
}

/* 3. Buat link transparan yang menutupi seluruh area info */
.product-info-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    text-indent: -9999px; /* Sembunyikan teks link jika ada */
    background: transparent; /* Pastikan tidak terlihat */
}

/* 4. Pastikan gambar wrapper tidak menghalangi klik */
.product-image-wrapper {
    position: relative;
    z-index: 10;
}