.fancybox__container {
    z-index: 99999 !important;
}

/* Penataan untuk Modal Tampilan Cepat */
.quick-view-image-container {
    position: relative; /* Penting untuk Drift.js agar panel zoom berada di posisi yang benar */
    border-radius: .25rem;
    overflow: hidden; /* Sembunyikan bagian gambar yang terpotong oleh object-fit */
    aspect-ratio: 1 / 1; /* Paksa wadah menjadi kotak */
}

#quickViewImage {
    width: 100%;
    height: 100%; /* Paksa gambar mengisi tinggi wadah */
    object-fit: cover; /* Kunci: Isi wadah, potong jika perlu, jangan distorsi */
}

.quick-view-thumbnails {
    gap: 10px; /* Jarak antar thumbnail */
}

.quick-view-thumb {
    width: 80px;  /* Lebar thumbnail yang seragam */
    height: 80px; /* Tinggi thumbnail yang seragam */
    object-fit: cover; /* Memastikan gambar thumbnail mengisi area tanpa distorsi */
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: .25rem;
    transition: border-color 0.2s ease-in-out;
}

.quick-view-thumb:hover {
    border-color: #ddd;
}

.quick-view-thumb.active {
    border-color: #007bff; /* Warna primer Bootstrap untuk menandai thumbnail aktif */
}

/* Kustomisasi Panel Zoom Drift.js */
.drift-zoom-pane.drift-open {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50% !important;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    z-index: 10; /* Pastikan muncul di atas elemen lain di dalam container */
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    color: #FFF;
    background-color: #128C7E;
    animation-play-state: paused;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Efek Interaktif pada Kartu Produk untuk Tampilan Mobile (Perbaikan Tegas) */
@media (max-width: 768px) {
    /* Sembunyikan tombol-tombol pada awalnya, paksa dengan !important */
    .card-product .card-product-buttons {
        opacity: 0 !important;
        bottom: -50px !important; /* Mulai dari posisi tersembunyi */
        transition: all 0.4s ease !important;
    }

    /* Siapkan overlay, tapi sembunyikan awalnya */
    .card-product .card-img-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    /* Saat disentuh (pseudo-hover), tampilkan semuanya */
    .card-product:hover .card-img-container::before {
        opacity: 1;
    }

    .card-product:hover .card-product-buttons {
        opacity: 1 !important;
        bottom: 10px !important;
    }
    
    .card-product:hover .card-img-top {
        transform: scale(1.05);
    }
}

/* About Us Page Responsive */
@media (max-width: 767px) {
    .about-hero {
        height: 30vh; /* Reduce hero height on mobile */
    }
    .about-hero-content h1 {
        font-size: 2.5rem; /* Reduce hero title font size */
    }
    .display-5 {
        font-size: 2rem; /* Adjust other large headings */
    }
    .team-member-card img {
        width: 100px;
        height: 100px;
    }
    .cta-section {
        padding: 2rem !important; /* Adjust padding for CTA */
    }
}

/* Sticky Sidebar for Product Filters */
@media (min-width: 992px) { /* Terapkan hanya pada layar besar (desktop) */
    .sidebar .filter-container {
        position: -webkit-sticky; /* Untuk Safari */
        position: sticky;
        top: 20px; /* Jarak dari atas viewport saat "menempel" */
        height: calc(100vh - 40px); /* Tinggi maksimum, sisakan ruang */
        overflow-y: auto; /* Tambahkan scroll jika konten lebih tinggi dari layar */
    }
}