/* BAJUBAGUS GLOBAL STYLES
   Combines Home & Product Detail Styles
*/

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Spacing & Transitions */
.tracking-ultra {
    letter-spacing: 0.3em;
}

.transition-luxury {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero & Image Containers */
/* FIX MING: 
   1. Hapus z-index agar tidak menutupi teks (Efek Kaca Film).
   2. Gunakan 3 titik warna (Atas tipis, Tengah BENING, Bawah sedang).
   3. Tambahkan pointer-events: none agar tidak menghalangi klik ke tombol.
*/
.hero-gradient {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            /* atas lebih gelap */
            rgba(0, 0, 0, 0.3) 50%,
            /* tengah */
            rgba(0, 0, 0, 0.7) 100%
            /* bawah lebih gelap */
        );
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.img-zoom-hover:hover img {
    transform: scale(1.05);
}

/* Product Detail Specifics */
.gallery-img-active {
    border-bottom: 2px solid #000;
    opacity: 1 !important;
}

/* Lightbox Animation */

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.is-open img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 50%;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

img[data-lightbox] {
    cursor: zoom-in;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Custom Scrollbar for Luxury Feel */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* style add */