/* ========================================= */
/* 0. GLOBAL RESET & BASE                    */
/* ========================================= */
/* Import Font mirip Oliunid (Open Sans) */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    /* --- KONFIGURASI WARNA UTAMA --- */
    /* Hijau Stabilo (Neon) - Sesuai gambar referensi (#ccff00) */
    --stabilo-neon: #ccff00; 
    
    /* Hijau Stabilo (Text) - Versi lebih gelap agar terbaca di background putih */
    --stabilo-text: #8cb300; 
    
    /* Warna Hover (Lebih gelap) */
    --stabilo-hover: #6e8a00;
}

body {
    margin: 0;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* ========================================= */
/* 1. NAVBAR & HEADER                        */
/* ========================================= */
.navbar {
    background: #ffffff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    border-bottom: 2px solid var(--stabilo-neon); /* Garis Stabilo */
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo {
    width: 45px; 
    height: 45px;
    object-fit: contain;
}
.brand {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-right {
    display: flex;
    gap: 10px; 
    align-items: center;
}
/* Tombol Marketplace di Navbar */
.btn-marketplace {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-marketplace:hover {
    background: var(--stabilo-text); /* Hover Hijau */
    color: white;
    border-color: var(--stabilo-text);
}
/* Ikon marketplace warna hijau saat tidak dihover */
.btn-marketplace i { color: var(--stabilo-text); } 
.btn-marketplace:hover i { color: white; }


/* ========================================= */
/* 2. BANNER STYLING                         */
/* ========================================= */
.banner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 40px auto;
    height: 400px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}
.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    top: auto;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.8); /* Background sedikit lebih gelap agar hijau kontras */
    color: white;
    padding: 30px;
    border-left: 5px solid var(--stabilo-neon); /* Garis kiri Stabilo */
}
.banner-text h1 {
    font-size: 2.2em;
    margin: 0 0 10px 0;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--stabilo-neon); /* Judul banner jadi hijau stabilo */
}
.banner-text p {
    font-size: 1em;
    margin-bottom: 20px;
    font-weight: 400;
}
.btn-banner {
    display: inline-block;
    padding: 10px 25px;
    background: var(--stabilo-text);
    color: #fff;
    border-radius: 0;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: background 0.3s;
}
.btn-banner:hover {
    background: var(--stabilo-hover);
}


/* ========================================= */
/* 3. PRODUK, SEARCH & GRID                  */
/* ========================================= */
.produk-section {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
}
.section-title {
    text-align: left;
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 24px;
    background: var(--stabilo-neon); /* Kotak kecil hijau */
    margin-right: 10px;
}

/* Search Form */
.search-form { 
    display: flex;
    justify-content: flex-start;
    margin: 0 0 30px 0;
    gap: 0;
    max-width: 100%; 
}
.search-form input {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
}
.search-form input:focus {
    border-color: var(--stabilo-text);
}
.search-form button {
    padding: 12px 25px;
    background: #bfff00;
    border: none;
    color: #00000;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.2s;
}
.search-form button:hover {
    background: #99ff00;
}

/* Product Grid */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px;
}
.card {
    background: white;
    border-radius: 0;
    padding: 15px;
    border: 1px solid #eee;
    text-align: left;
    transition: box-shadow 0.2s, border-color 0.2s;
    position: relative;
}
.card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--stabilo-text); /* Border hijau saat hover */
}
.card-img {
    width: 100%;
    height: 220px; 
    object-fit: contain; 
    border-radius: 0;
    margin-bottom: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.card-img:hover {
    opacity: 0.9;
}

.card h3 {
    margin: 10px 0 5px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    height: 40px;
    line-height: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.harga {
    font-size: 18px;
    font-weight: 700;
    color: var(--stabilo-text); /* Harga warna hijau */
    margin-bottom: 15px;
    display: block;
}

/* Card Buttons */
.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.btn-wa {
    background-color: #fff;
    border: 1px solid #25d366;
    color: #25d366;
    text-align: center;
    padding: 8px; 
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    transition: 0.2s;
}
.btn-wa:hover {
    background-color: #25d366;
    color: white;
}

/* Tombol Marketplace di Card */
.btn-marketplace-card {
    background: #333;
    color: white;
    padding: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.2s;
}
.btn-marketplace-card:hover {
    background-color: var(--stabilo-text); /* Hover hijau */
    color: #fff;
}
/* Tokopedia style override (opsional, jika ingin tetap hijau khas tokped bisa dihapus) */
.btn-marketplace-card.tokped {
    background: #333; 
}
.btn-marketplace-card.tokped:hover {
    background: #42b549; 
}


/* ========================================= */
/* 4. MODAL (POP-UP) STYLING                 */
/* ========================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85); 
    backdrop-filter: blur(5px);
    padding-top: 60px;
}
.modal-content-wrapper {
    margin: auto;
    width: 90%; 
    max-width: 800px;
}
.modal-content {
    margin: auto;
    display: block;
    width: 100%; 
    height: auto; 
    border: 4px solid white;
}
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--stabilo-neon); /* Close button hijau menyala */
    font-size: 50px;
    font-weight: 300;
    transition: 0.3s;
    line-height: 1;
}
.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.gallery-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.gallery-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #555;
    opacity: 0.6;
    transition: 0.3s;
}
.gallery-image:hover, .gallery-image[style*="border"] {
    opacity: 1;
    border-color: var(--stabilo-neon) !important; /* Border thumbnail hijau */
}


/* ========================================= */
/* 5. FOOTER (Gaya Dua Kolom)                */
/* ========================================= */
.site-footer.two-column {
    background: #222;
    color: #ccc;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 4px solid var(--stabilo-neon); /* Garis atas Hijau Stabilo Neon */
    font-size: 14px;
}

.footer-content-custom {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding-bottom: 40px;
}

/* Kolom Detail Kontak Kiri */
.footer-contact-details {
    flex: 1; 
    padding-right: 20px;
}

.footer-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
    filter: grayscale(100%) brightness(200%);
}

.footer-contact-details h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    color: #fff;
    text-transform: uppercase;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-list i {
    font-size: 14px;
    width: 25px; 
    margin-right: 10px;
    color: var(--stabilo-neon); /* Icon Hijau Stabilo Neon */
    flex-shrink: 0;
    padding-top: 4px;
}

.contact-list p {
    margin: 0;
    line-height: 1.5;
}

/* Kolom Peta Kanan */
.footer-map-column {
    flex: 2; 
    min-width: 300px;
}

.footer-map-column iframe {
    border: 0;
    border-radius: 0;
    width: 100%;
    display: block;
    height: 300px; 
    filter: grayscale(80%);
    transition: filter 0.3s;
}
.footer-map-column iframe:hover {
    filter: grayscale(0%);
}

/* Bagian Bawah Copyright */
.footer-bottom {
    text-align: center;
    padding: 20px;
    background: #1a1a1a;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #333;
}


/* ========================================= */
/* 6. RESPONSIVITAS (Mobile First)           */
/* ========================================= */
@media (max-width: 768px) {
    .produk-section,
    .footer-content-custom,
    .banner {
        width: 95%;
    }

    /* Navbar */
    .navbar {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    .nav-left { width: 100%; justify-content: center; }
    .nav-right { width: 100%; justify-content: center; }
    
    /* Banner */
    .banner {
        height: 250px;
        margin-top: 10px;
    }
    .banner-text {
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 20px;
        background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
        border-left: none;
        border-bottom: 4px solid var(--stabilo-neon); /* Garis mobile */
    }
    .banner-text h1 {
        font-size: 1.5em;
    }
    .banner-text p {
        display: none; 
    }

    /* Search & Grid */
    .search-form {
        flex-direction: row; 
    }
    .search-form input {
        width: 100%;
    }
    
    .produk-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
    }
    
    .card {
        padding: 10px;
    }
    .card-img {
        height: 150px;
    }
    .harga {
        font-size: 16px;
    }
    
    /* Footer */
    .footer-content-custom {
        flex-direction: column; 
        padding-bottom: 20px;
        gap: 30px;
    }
    .footer-contact-details,
    .footer-map-column {
        padding: 0 10px;
    }
    .footer-map-column iframe {
        height: 250px;
    }
}