/* =========================================
   1. VARIABEL, RESET & BASE STYLES
   ========================================= */
:root {
    /* Warna Identitas Perusahaan */
    --primary: #1b5e20;       /* Hijau Tua (Daun Subur) */
    --primary-light: #2e7d32; /* Hijau Terang (untuk Hover) */
    --secondary: #fbc02d;     /* Emas (Mitra Lestari) */
    
    /* Warna Netral */
    --dark: #212121;
    --gray: #616161;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    
    /* Efek */
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    background: var(--light-bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar-content { display: flex; justify-content: space-between; }
.info-left span { margin-right: 20px; }
.info-left i { color: var(--secondary); margin-right: 8px; }

nav {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

/* LOGO FIX */
.logo { display: flex; align-items: center; gap: 10px; color: var(--primary); text-decoration: none; }
.logo-custom { height: 50px; width: auto; object-fit: contain; } 
.logo-text { font-weight: 800; font-size: 2rem; line-height: 1.3; }
.logo-text span { display: block; color: var(--secondary); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }

/* MENU DESKTOP */
.menu { display: flex; gap: 10px; align-items: center; }

.menu a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 25px;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

/* Animasi Background Hijau (Desktop) */
.menu a::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary);
    z-index: -1; border-radius: 50px;
    opacity: 0; transform: scale(0.9); transition: all 0.3s ease;
}

.menu a:hover { color: var(--primary); }
.menu a.active::before { opacity: 1; transform: scale(1); }
.menu a.active { color: var(--white); }

/* Tombol Hubungi Kami */
.btn-quote {
    background: transparent; border: none; color: var(--primary) !important;
    font-weight: 700 !important; margin-left: 10px;
}
.btn-quote::before { background: var(--primary); }
.btn-quote:hover { color: var(--primary-light) !important; background: transparent; transform: translateY(-2px); }
.btn-quote.active { color: var(--white) !important; }
.btn-quote.active::before { opacity: 1; transform: scale(1); }

.menu-toggle { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero { 
    background: url('images/woodchips.jpg'); /* Fallback */
    background: url('https://images.unsplash.com/photo-1532601224476-15c79f2f7a51?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat fixed; 
    height: 90vh; display: flex; align-items: center; position: relative; color: var(--white); text-align: left;
}

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10, 40, 20, 0.95) 0%, rgba(27, 94, 32, 0.8) 50%, rgba(0,0,0,0.4) 100%); z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h2 {
    color: var(--secondary); font-size: 0.9rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 15px; display: inline-block; background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 25px; text-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.hero p { font-size: 1.1rem; margin-bottom: 40px; opacity: 0.95; max-width: 600px; font-weight: 300; border-left: 4px solid var(--secondary); padding-left: 20px; }
.hero-buttons { display: flex; gap: 15px; }

.btn-primary { background: var(--secondary); color: var(--dark); padding: 15px 35px; border-radius: 5px; font-weight: 700; box-shadow: 0 5px 15px rgba(251, 192, 45, 0.4); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); padding: 13px 33px; border-radius: 5px; font-weight: 700; }
.btn-primary:hover { transform: translateY(-3px); background: #fff; }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* =========================================
   4. SECTIONS (ABOUT, PRODUCTS, CONTACT)
   ========================================= */
.about { padding: 100px 0; background: var(--white); }
.about-wrapper { display: flex; gap: 60px; align-items: center; }
.about-img { flex: 1; position: relative; }
.about-img img { border-radius: 15px; box-shadow: none; } 
.about-text { flex: 1; }
.subtitle { color: var(--primary); font-weight: 700; font-size: 0.9rem; letter-spacing: 2px; display: block; margin-bottom: 10px; text-transform: uppercase; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 25px; line-height: 1.2; color: var(--dark); }
.about-text p { color: var(--gray); margin-bottom: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
.stat-item { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 15px; border-left: 4px solid var(--primary); transition: var(--transition); }
.stat-item:hover { transform: translateX(5px); }
.stat-item i { font-size: 2rem; color: var(--primary); }
.stat-item h4 { font-weight: 700; color: var(--dark); font-size: 1rem; margin: 0; }
.stat-item small { color: var(--gray); font-size: 0.85rem; }

.products { padding: 100px 0; background: #e8f5e9; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin: 0 auto 60px auto; }
.section-header h2 { font-size: 2.5rem; color: var(--primary); margin-top: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.product-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.03); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; }
.product-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(27, 94, 32, 0.15); border-color: var(--secondary); }
.card-img { height: 240px; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.product-card:hover .card-img img { transform: scale(1.15) rotate(1deg); }
.card-img::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); opacity: 0; transition: 0.3s; }
.product-card:hover .card-img::after { opacity: 1; }
.card-body { padding: 30px; background: #fff; }
.card-body h3 { color: var(--primary); font-size: 1.4rem; margin-bottom: 12px; font-weight: 700; }
.card-body .desc { font-size: 0.95rem; color: #666; margin-bottom: 20px; line-height: 1.6; border-bottom: 1px dashed #ddd; padding-bottom: 20px; }
.product-list li { margin-bottom: 10px; color: #444; font-weight: 500; display: flex; align-items: center; }
.product-list li i { color: var(--secondary); background: rgba(251, 192, 45, 0.15); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; font-size: 0.8rem; flex-shrink: 0; }

.services-highlight { background: var(--primary); color: var(--white); padding: 80px 0; }
.highlight-grid { display: flex; justify-content: space-between; text-align: center; gap: 40px; }
.hl-item { flex: 1; padding: 20px; transition: var(--transition); cursor: default; }
.hl-item:hover { transform: translateY(-10px); }
.hl-item i { font-size: 3rem; margin-bottom: 20px; color: var(--secondary); display: inline-block; padding: 15px; border-radius: 50%; background: rgba(255,255,255,0.05); transition: var(--transition); }
.hl-item:hover i { color: var(--primary); background: var(--white); box-shadow: 0 0 0 5px rgba(255,255,255,0.1); }
.hl-item h3 { font-size: 1.3rem; margin-bottom: 10px; }
.hl-item p { opacity: 0.8; font-weight: 300; }

.contact { background: linear-gradient(to bottom, #ffffff, #f4f4f4); padding: 100px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; margin-top: 40px; }
.contact-left { display: flex; flex-direction: column; gap: 20px; }
.info-card { background: var(--white); padding: 25px; border-radius: 12px; display: flex; align-items: flex-start; gap: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-left: 5px solid var(--primary); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.info-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15), 0 0 5px var(--primary-light); }
.icon-box { width: 50px; height: 50px; background: rgba(27, 94, 32, 0.1); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.info-text h4 { margin: 0 0 5px 0; color: var(--dark); font-size: 1.1rem; font-weight: 700; }
.info-text p { margin: 0; color: #555; font-size: 0.95rem; }
.contact-grid-small { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card.small { flex-direction: column; gap: 15px; border-left: none; border-top: 4px solid var(--secondary); }
.contact-right-map { height: 100%; min-height: 400px; }
.map-container.full-height { height: 100%; min-height: 450px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid #ddd; }

footer { background: var(--dark); color: #bdbdbd; text-align: center; padding: 30px 0; font-size: 0.9rem; border-top: 4px solid var(--primary); }

.animate-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================
   9. RESPONSIVE (HP & TABLET)
   ========================================= */
@media (max-width: 600px) {
    .top-bar { display: none; }

    .nav-wrapper { flex-wrap: wrap; padding: 0 15px; justify-content: space-between; }
    
    /* Fix Logo HP: Paksa Tinggi 35px */
    .logo { flex: 1; justify-content: flex-start; }
    .logo-custom { height: 35px !important; width: auto !important; }
    .logo-text { font-size: 1.1rem; line-height: 1.2; }

    .menu-toggle { display: block; font-size: 1.8rem; order: 2; margin-left: auto; }
    
    /* --- MENU MOBILE FULL SCREEN HIJAU --- */
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: fixed; /* Full Layar */
        top: 60px;
        left: 0;
        right: 0;
        /* FIX WARNA: Hijau Tua */
        background: var(--primary) !important; 
        padding: 20px 15px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        border-bottom: 4px solid var(--secondary);
        text-align: center;
        animation: slideDown 0.4s ease forwards;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .menu.active { display: flex; }
    
    /* Link Menu: Teks Putih, Kotak Transparan */
    .menu a { 
        display: block; 
        padding: 15px; 
        border-radius: 8px; 
        font-size: 1.1rem; 
        margin-bottom: 8px;
        background: rgba(255,255,255,0.1); 
        border: 1px solid rgba(255,255,255,0.2);
        color: var(--white) !important; /* Paksa Putih */
        font-weight: 600;
    }
    
    /* Efek Tekan di HP */
    .menu a:hover, .menu a.active {
        background: var(--white);
        color: var(--primary) !important; /* Teks jadi Hijau */
        border-color: var(--white);
    }

    .menu a::before { display: none; } 
    
    /* Tombol Hubungi Kami (Emas) */
    .btn-quote { 
        margin-left: 0; 
        background: var(--secondary); 
        color: var(--dark) !important;
        border: none;
        margin-top: 10px;
    }
    .btn-quote:hover {
        background: #fff;
        color: var(--primary) !important;
    }

    .hero { 
        height: auto; 
        padding: 120px 0 80px 0; 
        text-align: center;
        background-attachment: scroll;
    }
    .hero h1 { font-size: 2.2rem; line-height: 1.3; }
    .hero p { border-left: none; padding: 0; margin: 0 auto 30px; font-size: 1rem; }
    .hero-buttons { justify-content: center; flex-direction: column; gap: 15px; }
    .btn-primary, .btn-outline { width: 100%; display: block; text-align: center; margin: 0; }

    .about-wrapper { flex-direction: column; gap: 40px; }
    .highlight-grid { flex-direction: column; gap: 30px; }
    
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid-small { grid-template-columns: 1fr; }
    .map-container.full-height { min-height: 300px; }
    
    .delay-1, .delay-2, .delay-3 { animation-delay: 0s; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   FIX: AGAR GAMBAR PRODUK BISA DIKLIK
   ========================================= */
.card-img::after {
    /* Ini biar klik tembus ke gambar di bawah overlay */
    pointer-events: none; 
}

.card-img a {
    /* Ini memastikan area klik memenuhi kotak gambar */
    display: block;
    width: 100%;
    height: 100%;
}

/* =========================================
   FIX: AGAR LINK JUDUL TETAP BAGUS
   ========================================= */
.card-body h3 a {
    color: var(--primary); /* Tetap warna hijau */
    text-decoration: none; /* Hilangkan garis bawah */
    transition: var(--transition);
}

.card-body h3 a:hover {
    color: var(--secondary); /* Berubah jadi warna emas saat di-hover */
}

/* =========================================
   FLOATING CONTACT BUTTONS (WA & EMAIL)
   ========================================= */
.floating-contacts {
    position: fixed; /* Kunci agar melayang */
    bottom: 30px;    /* Jarak dari bawah */
    right: 20px;     /* Jarak dari kanan */
    z-index: 9999;   /* Pastikan selalu di atas elemen lain */
    display: flex;
    flex-direction: column; /* Susun vertikal (atas-bawah) */
    gap: 15px;       /* Jarak antar tombol */
}

.btn-float {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Bikin bulat sempurna */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Efek bayangan */
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Warna Tombol WhatsApp (Hijau Resmi WA) */
.wa-btn {
    background-color: #25d366;
}

/* Warna Tombol Email (Merah atau sesuaikan tema) */
/* Kita pakai Merah agak orange biar kontras */
.email-btn {
    background-color: #d93025; 
}

/* Efek saat mouse diarahkan (Hover) */
.btn-float:hover {
    transform: scale(1.1) translateY(-5px); /* Membesar sedikit */
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Responsive untuk Layar HP Kecil */
@media (max-width: 500px) {
    .floating-contacts {
        bottom: 20px;
        right: 15px;
        gap: 10px;
    }
    
    .btn-float {
        width: 50px; /* Lebih kecil dikit di HP */
        height: 50px;
        font-size: 24px;
    }
}

/* =========================================
   10. PRODUCT MODAL (POPUP) STYLES
   ========================================= */
   
/* Cursor jadi telunjuk saat hover di list produk */
.product-list li.preview-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}


.product-list li.preview-btn:hover {
    color: var(--primary);
    transform: translateX(5px);
    font-weight: 700;
}

/* Icon mata kecil muncul saat hover (opsional, biar tau bisa diklik) */
.product-list li.preview-btn:hover::after {
    content: '\f06e'; /* Kode icon mata fontawesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--secondary);
}


/* Background Gelap Belakang Modal */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 99999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); /* Hitam transparan */
    backdrop-filter: blur(5px); /* Efek blur belakangnya */
    animation: fadeIn 0.3s;
    align-items: center;
    justify-content: center;
}

/* Kotak Konten Modal */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 25px;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px; /* Lebar maksimal */
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: slideUp 0.4s;
    border-top: 5px solid var(--primary);
}

/* Tombol Close (X) */
.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 20px;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--secondary); /* Warna Emas saat hover */
    text-decoration: none;
}

/* Judul di Modal */
#modalTitle {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Media (Gambar & Video) */
.modal-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#modalImg {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-wrapper video {
    width: 100%;
    border-radius: 8px;
    max-height: 300px;
    background: #000;
}

/* Deskripsi */
.modal-desc {
    margin-top: 20px;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Animasi */
@keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}

@keyframes slideUp {
    from {transform: translateY(50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* Responsive Modal untuk HP */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 10% auto; /* Jarak atas lebih banyak */
        padding: 15px;
    }
    #modalTitle { font-size: 1.4rem; }
    #modalImg { height: 200px; }
}

/* =========================================
   STYLE BINGKAI PRODUK (BACKGROUND HIJAU)
   ========================================= */

.image-frame {
    /* Background Pola Hijau */
    /* Pastikan nama file gambarnya benar ada di folder images */
    background: url('images/wallpaper/5.jpg');
    background-size: cover;
    background-position: center;
    
    /* Padding ini mengatur seberapa tebal bingkai hijaunya */
    padding: 15px; 
    
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2); /* Bayangan ke dalam biar deep */
}

.image-frame img {
    width: 100%;
    height: 300px; /* Atau 180px pas di HP */
    object-fit: cover;
    border-radius: 6px;
    
    /* INI PENTING: Ubah kursor jadi kaca pembesar */
    cursor: zoom-in; 
    
    /* Animasi halus pas di-hover mouse */
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Efek Hover di Modal Hijau */
.image-frame img:hover {
    transform: scale(1.02); /* Membesar dikit banget */
    filter: brightness(1.1); /* Jadi agak terang dikit */
}

/* Update Gambar Utama biar pas di dalam bingkai */
#modalImg {
    width: 100%;
    height: 300px; /* Tinggi fix biar rapi */
    object-fit: cover; /* Biar gambar full kotak */
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); /* Efek timbul */
    background-color: #fff;
}

/* =========================================
   11. UPDATE MODAL GALERI
   ========================================= */

/* Container untuk gambar-gambar kecil */
.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto; /* Bisa digeser ke samping kalau kebanyakan */
    padding-bottom: 5px;
}

/* Gaya Gambar Kecil (Thumbnail) */
.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Biar gak gepeng */
}

/* Efek saat hover atau aktif */
.thumb:hover, .thumb.active {
    opacity: 1;
    border-color: var(--primary); /* Hijau saat dipilih */
    transform: scale(1.05);
}

/* Sembunyikan scrollbar di Chrome/Safari biar rapi */
.thumbnail-container::-webkit-scrollbar {
    height: 5px;
}
.thumbnail-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* =========================================
   12. IMAGE ZOOM (FINAL POLISHED)
   ========================================= */

.zoom-overlay {
    display: none;
    position: fixed;
    z-index: 100000; /* Layer paling atas */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Hitam pekat */
    
    /* Gunakan Flexbox buat nengahin gambar */
    display: flex; /* (Nanti di-toggle JS jadi 'none' atau 'flex') */
    align-items: center;
    justify-content: center;
    
    /* Animasi Fade In Background */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Biar ga ngeblok pas hidden */
}

/* Class aktif buat munculin overlay */
.zoom-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.zoom-overlay img {
    /* Ukuran Awal */
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    
    /* Transisi Transform (Zoom/Pan) dibuat cepat tapi smooth (0.2s) */
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    cursor: zoom-in;
    user-select: none; 
    -webkit-user-drag: none;
    
    /* Animasi Masuk: Mulai dari agak kecil (0.8) biar ada efek 'pop' */
    transform: scale(0.8);
}

/* Saat Overlay Muncul, gambar normal (scale 1) */
.zoom-overlay.show img {
    transform: scale(1);
}

/* Saat Mode Zoom (2.5x) */
.zoom-overlay img.active-zoom {
    cursor: crosshair; /* Kursor + */
    /* Transisi lebih responsif buat ngikutin mouse */
    transition: transform 0.1s linear; 
}

/* TOMBOL CLOSE (SILANG) - PASTI DI ATAS */
.close-zoom {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px; /* Gedein dikit */
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 100002; /* HARUS LEBIH TINGGI DARI OVERLAY & GAMBAR */
    transition: transform 0.3s ease, color 0.3s ease;
    background: rgba(0,0,0,0.3); /* Background tipis biar kebaca kalau background gambar putih */
    width: 60px;
    height: 60px;
    text-align: center;
    border-radius: 50%;
}

.close-zoom:hover {
    color: var(--secondary); /* Warna Emas */
    transform: rotate(90deg);
    background: rgba(0,0,0,0.8);
}

/* =========================================
   13. CARD SLIDESHOW (FIX ZOOM & SLIDE)
   ========================================= */

/* 1. Reset gaya gambar di dalam slider biar gak zoom sendiri-sendiri */
.product-card:hover .slider-track img {
    transform: none !important; /* Matikan zoom bawaan yg bikin berantakan */
}

/* 2. Wrapper baru khusus untuk menangani efek Zoom */
.zoom-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease; /* Efek zoom halus */
}

/* 3. Saat kartu di-hover, Wrapper-nya yang membesar (bukan gambarnya) */
.product-card:hover .zoom-wrapper {
    transform: scale(1.15); /* Zoom in satu layar */
}

/* 4. Jalur Slider tetap aman buat geser-geser */
.slider-track {
    background-color: #fff; 
    display: flex;
    width: 100%;
    height: 100%;
}

.slider-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* --- INI KUNCINYA --- */
    /* 1. Kita set box-sizing jadi border-box */
    /* Artinya: Kalau kita kasih border, dia bakal makan 'daging' gambar ke dalem, bukan nambah keluar */
    box-sizing: border-box; 
    
    /* 2. Kasih garis putih tebal di kanan */
    /* Ini bakal jadi "pemisah" antar gambar. Warna #fff sesuaikan sama warna background kartu/web kamu */
    border-right: 0.5px solid #fff; 
    
    /* 3. (Opsional) Kasih kiri juga biar simetris */
    border-left: 0.5px solid #fff;
    
    /* Reset transform biar gak aneh-aneh */
    transform: none !important;
    flex-shrink: 0;
}

/* =========================================
   FIX TAMPILAN HP (SUPAYA TIDAK PENUH)
   ========================================= */

@media (max-width: 600px) {
    
    /* 1. Atur Kotak Modalnya biar ada napas */
    .modal-content {
        width: 90%;       /* Jangan 100% biar ada sisa pinggir */
        margin: 20% auto; /* Turunin dari atas biar gak nempel tralis HP */
        padding: 15px;    /* Padding dalem dikurangin */
        max-height: 80vh; /* Batasi tingginya max 80% layar */
        overflow-y: auto; /* Biar bisa discroll di dalem kotaknya */
    }

    /* 2. PAKSA GAMBAR JADI PENDEK */
    /* Kita target semua elemen pembungkus (Frame, Wrapper, Slider, Image) */
    .image-frame {
        /* Tadinya 8px, sekarang ganti jadi 20px atau 25px */
        padding: 25px !important; 
        
        /* Jarak bawah dikit biar lega */
        margin-bottom: 15px; 
    }
    
    /* Pastikan tinggi gambar tetap segitu biar ga kegedean */
    #modalImg, 
    .zoom-wrapper, 
    .slider-track img {
        height: 180px !important;
    }

    /* 3. Kecilin Judul & Teks biar muat */
    #modalTitle {
        font-size: 1.3rem; /* Judul lebih kecil */
        margin-bottom: 10px;
        margin-top: 0;
    }
    
    .modal-desc {
        font-size: 0.9rem; /* Teks deskripsi lebih kecil */
        margin-top: 10px;
    }
}

/* =========================================
   FIX TAMPILAN KARTU PRODUK (HP & LAPTOP)
   ========================================= */

/* 1. Paksa Wrapper & Track ngisi penuh kotak gambar */
/* Ini yang bikin "Bar Hitam" di bawah gambar hilang */
.card-img .zoom-wrapper,
.card-img .slider-track {
    height: 100% !important;
    width: 100% !important;
    display: flex; /* Pastikan flex biar gambar stretch */
}

/* 2. Pastikan gambarnya menutupi area (Cover) */
.card-img .slider-track img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover; /* Crop gambar biar full kotak, gak gepeng */
}

/* =========================================
   FIX UX MOBILE (MATIKAN HOVER ZOOM DI KARTU)
   ========================================= */
/* Di HP, efek zoom pas 'hover' (sentuh) di list produk malah bikin kaget/kepotong.
   Kita matikan zoom-nya KHUSUS di HP, tapi SLIDE-nya tetap jalan. */

@media (max-width: 600px) {
    .product-card:hover .zoom-wrapper {
        transform: none !important; /* Gak usah nge-zoom pas disentuh */
    }
    
    /* Pastikan tinggi kartu di HP konsisten */
    .card-img {
        height: 200px; /* Tinggi ideal buat HP */
    }
}