   /* 1. Reset & Pengaturan Global */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html, body {
            width: 100%;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #FFFFFF; /* Latar belakang putih */
            color: #111111; /* Teks hitam */
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .container {
            width: 90%;
            max-width: 1600px;
            margin: 0 auto;
        }

        a {
            color: inherit;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        ul {
            list-style: none;
        }

        img {
            max-width: 100%;
            display: block;
        }

        /* 2. Header & Logo */
        .site-header {
            background-color: #FFFFFF;
            border-bottom: 1px solid #eeeeee; /* Aksen border hitam/abu muda */
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .site-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.75rem; /* 28px */
            font-weight: 700;
            letter-spacing: -0.5px;
            font-family: "Segoe UI", "Inter", sans-serif; /* Terapkan Segoe UI */
        }

        /* 3. Navigasi (Mobile-First) */
        
        /* BARU: Ikon Hamburger */
        .menu-toggle {
            display: block; /* Tampil di mobile */
            width: 30px;
            height: 24px;
            position: relative;
            cursor: pointer;
            background: none;
            border: none;
            z-index: 102; /* Di atas menu */
        }

        .hamburger-icon,
        .hamburger-icon::before,
        .hamburger-icon::after {
            content: '';
            display: block;
            background-color: #111111;
            height: 3px;
            width: 100%;
            position: absolute;
            left: 0;
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .hamburger-icon {
            top: 50%;
            transform: translateY(-50%);
        }

        .hamburger-icon::before {
            top: -10px;
        }

        .hamburger-icon::after {
            bottom: -10px;
        }

        /* BARU: Animasi Ikon Hamburger (X) saat aktif */
        .menu-toggle.is-active .hamburger-icon {
            background-color: transparent; /* Sembunyikan garis tengah */
        }

        .menu-toggle.is-active .hamburger-icon::before {
            transform: translateY(10px) rotate(45deg);
        }

        .menu-toggle.is-active .hamburger-icon::after {
            transform: translateY(-10px) rotate(-45deg);
        }


        .nav-menu {
            display: none; /* Sembunyi di mobile */
            flex-direction: column;
            width: 100%;
            background-color: #FFFFFF;
            position: absolute;
            top: 100%; /* Tepat di bawah header */
            left: 0;
            border-bottom: 1px solid #eeeeee;
        }

        .nav-menu.is-active {
            display: flex; /* Tampilkan saat di-toggle */
        }

        .menu-item {
            border-bottom: 1px solid #f4f4f4;
        }

        .menu-item a {
            display: block;
            padding: 1rem;
            font-weight: 600;
        }

        /* BARU: Ikon Chevron (Mobile) */
        .menu-item.has-dropdown > a {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .menu-item.has-dropdown > a::after {
            content: '';
            display: inline-block;
            width: 8px;
            height: 8px;
            border-right: 2px solid #777;
            border-bottom: 2px solid #777;
            transform: rotate(45deg);
            margin-right: 1rem;
            transition: transform 0.3s ease;
        }

        /* BARU: Ikon Chevron (Mobile) - Terbuka */
        .menu-item.has-dropdown.is-open > a::after {
            transform: rotate(225deg);
            margin-top: 5px; /* Sesuaikan posisi saat berputar */
        }


        .dropdown-menu {
            display: none; /* Sembunyikan sub-menu */
            background-color: #f9f9f9;
        }

        /* Style untuk dropdown di mobile saat di-toggle */
        .has-dropdown.is-open > .dropdown-menu {
            display: block;
        }

        .dropdown-menu li a {
            padding-left: 2rem; /* Indentasi sub-menu */
            font-weight: 400;
        }

        /* 4. Navigasi (Desktop) */
        @media (min-width: 768px) {
            .menu-toggle {
                display: none; /* Sembunyikan tombol menu di desktop */
            }

            .nav-menu {
                display: flex;
                flex-direction: row; /* Ubah ke baris */
                position: static; /* Kembali ke layout normal */
                width: auto;
                border: none;
            }

            .menu-item {
                border: none;
                position: relative; /* Untuk positioning dropdown */
            }

            .menu-item a {
                padding: 0.5rem 1rem;
                border-radius: 4px;
            }

            .menu-item a:hover {
                background-color: #f4f4f4; /* Aksen hover abu-abu muda */
            }
            
            /* BARU: Ikon Chevron (Desktop) */
            .menu-item.has-dropdown > a::after {
                content: '';
                display: inline-block;
                width: 6px;
                height: 6px;
                border-right: 2px solid #777;
                border-bottom: 2px solid #777;
                transform: rotate(45deg);
                margin-left: 0.5rem;
                transition: transform 0.3s ease;
            }

            /* Sembunyikan chevron mobile di desktop */
            .menu-item.has-dropdown.is-open > a::after {
                transform: rotate(45deg);
                margin-top: 0;
            }
            
            .dropdown-menu {
                display: none; /* Sembunyikan default */
                position: absolute;
                top: 100%;
                left: 0;
                background-color: #FFFFFF;
                border: 1px solid #eeeeee;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
                min-width: 180px;
                z-index: 101;
                border-radius: 4px;
                padding: 0.5rem 0;
            }

            /* Tampilkan dropdown saat hover di desktop */
            .has-dropdown:hover > .dropdown-menu {
                display: block;
            }
            
            /* Putar chevron saat hover di desktop */
            .has-dropdown:hover > a::after {
                transform: rotate(225deg);
                margin-top: 2px;
            }

            .dropdown-menu li {
                border: none;
            }

            .dropdown-menu li a {
                padding: 0.75rem 1rem;
                font-weight: 400;
                width: 100%;
                /* Pastikan chevron tidak muncul di sub-menu */
                justify-content: flex-start;
            }
            
            .dropdown-menu li a::after {
                display: none;
            }

            .dropdown-menu li a:hover {
                background-color: #f4f4f4;
            }
        }

        /* 5. Hero Banner (Gambar Eksternal) */
        .hero-banner {
            width: 100%;
            height: 145px; /* Tinggi untuk mobile */
            background-color: #e0e0e0; /* Warna fallback jika gambar gagal dimuat */
            background-image: url('images/banner.png');
            background-size: cover;
            background-position: center 30%; /* Sedikit ke atas */
            background-repeat: no-repeat;
        }

        @media (min-width: 768px) {
            .hero-banner {
                height: 550px; /* Tinggi untuk desktop */
            }
        }
        
        /* 6. Bagian Utama & Grid Produk */
        .site-main {
            padding: 2rem 0;
            background-color: #fcfcfc; /* Sedikit off-white */
        }

        .product-grid {
            display: grid;
            gap: 1.5rem;
            /* Mobile-First: 2 kolom (sesuai permintaan) */
            grid-template-columns: repeat(2, 1fr);
        }

        /* Tablet: 3 kolom */
        @media (min-width: 600px) {
            .product-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* Desktop/Laptop: 4 kolom */
        @media (min-width: 992px) {
            .product-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* Style untuk Pencarian */
        .search-wrapper {
            margin-bottom: 2rem; /* Jarak ke grid produk */
        }

        #product-search {
            width: 100%;
            padding: 0.75rem 1rem;
            font-size: 1rem;
            font-family: 'Inter', sans-serif;
            border: 1px solid #eeeeee;
            border-radius: 4px;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        #product-search:focus {
            outline: none;
            border-color: #111111;
            box-shadow: 0 0 5px rgba(0,0,0,0.1);
        }

        /* 7. Card Produk */
        .product-card {
            background-color: #FFFFFF;
            border: 1px solid #eeeeee;
            border-radius: 8px;
            overflow: hidden;
            text-align: center;
            transition: box-shadow 0.3s ease, transform 0.3s ease;
            cursor: pointer; /* BARU: Tunjukkan kartu bisa diklik */
            position: relative; /* BARU: Untuk positioning badge */
            
            /* Untuk staggered load */
            opacity: 0;
            transform: translateY(20px);
            animation-fill-mode: forwards; /* Memastikan elemen tetap dalam keadaan akhir animasi */
        }

        .product-card.animate-in {
            animation: fadeInSlideUp 0.6s ease-out forwards;
        }

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

        .product-card:hover {
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
            transform: translateY(-5px);
        }
        
        /* BARU: Style untuk Badge */
        .product-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: #111111;
            color: #FFFFFF;
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: 4px;
            z-index: 2;
        }

        .product-image-wrapper {
            position: relative;
            overflow: hidden;
            background-color: #f4f4f4;
            /* Rasio 4:5 (1080x1350) */
            aspect-ratio: 4 / 5;
        }
        
        .product-image {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Pastikan gambar menutupi area tanpa distorsi */
        }

        .product-details {
            padding: 0.2rem;
        }

        .product-title {
    text-align: left;                  /* rata kanan */
    display: -webkit-box;               /* buat line clamp */
    -webkit-line-clamp: 2;              /* maksimal 2 baris */
    -webkit-box-orient: vertical;       /* arah vertikal */
    overflow: hidden;                   /* sembunyikan teks lebih */
    text-overflow: ellipsis;            /* tambahkan “...” */
    line-height: 1.4;                   /* biar rapih */
    max-height: calc(1.4em * 2);        /* jaga tinggi 2 baris */
}


        .buy-button {
    display: block; /* ubah ke block biar width bisa 100% */
    width: 100%;
    background-color: #FFFFFF;
    color: #111111;
    padding: 0.75rem 1.5rem;
    margin-top: 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #111111;
    cursor: pointer;
}


        .product-card:hover .buy-button {
            color: #FFFFFF;
        }

        /* Pesan No Results */
        #no-results-message {
            text-align: center;
            padding: 4rem 0;
            font-size: 1.2rem;
            color: #777777;
            display: none; /* Sembunyikan default */
            grid-column: 1 / -1; /* Rentangkan di seluruh lebar grid */
        }

        /* 8. Footer (Sederhana) */
        .site-footer {
            text-align: center;
            padding: 2rem 0;
            border-top: 1px solid #eeeeee;
            margin-top: 2rem;
            color: #777777; /* Teks abu-abu */
            font-size: 0.9rem;
        }

/* ====== Layout Tombol ====== */
.buy-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Tombol dasar */
.buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buy-button img {
    width: 18px;
    height: 18px;
}

/* Sub-buttons (TikTok & Lazada) */
.sub-buttons {
    display: flex;
    gap: 0.5rem;
}

.sub-buttons .buy-button {
    flex: 1; /* Bagi 50%-50% */
}

/* Warna platform */
.shopee {
    background-color: #ee4d2d;
    color: #fff;
}

.tiktok {
    background-color: #000;
    color: #fff;
}

.lazada {
    background-color: #1a1aff;
    color: #fff;
}

/* Hover efek */
.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* ======= RESPONSIVE UNTUK HP ======= */
@media (max-width: 600px) {
    .buy-button {
        font-size: 0.75rem; /* perkecil font */
        padding: 0.5rem 0.8rem;
    }

    /* Hilangkan logo di HP */
    .buy-button img {
        display: none;
    }

    /* Tetap 2 kolom untuk TikTok & Lazada */
    .sub-buttons {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }

    .sub-buttons .buy-button {
        flex: 1; /* tetap 50%-50% */
    }
}


.product-price {
    font-size: 0.95rem;
    color: #222;
    font-weight: 500;
    margin: 4px 0 10px 0;
}

.product-price span {
    color: #e53935; /* warna merah harga */
    font-weight: 600;
}

.product-code {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.product-price {
    font-size: 0.95rem;
    color: #222;
    font-weight: 500;
    margin-bottom: 10px;
}

.product-price span {
    color: #e53935;
    font-weight: 600;
}

/* Responsif untuk tampilan HP */
@media (max-width: 768px) {
    .product-code {
        font-size: 0.75rem;
    }
    .product-title {
        font-size: 0.85rem;
    }
    .product-price {
        font-size: 0.8rem;
    }
}
.buy-button.disabled {
    pointer-events: auto;
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #f2f2f2;
    color: #999;
    border: 1px solid #ddd;
}

/* POPUP */
.popup-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-message.show {
    display: flex;
}

.popup-content {
    background: white;
    padding: 20px 28px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: popupFade 0.25s ease-out;
    max-width: 320px;
}

.popup-content p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #333;
}

.popup-close {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.popup-close:hover {
    background-color: #444;
}

@keyframes popupFade {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* Nonaktifkan seleksi teks di seluruh halaman */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.product-slider {
    position: relative;
    width: 100%;
    height: auto;
    touch-action: pan-y; /* penting biar bisa swipe horizontal tanpa scroll */
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.product-image.active {
    opacity: 1;
    position: relative;
}

/* Tombol panah kecil */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.25);
    color: white;
    border: none;
    font-size: 0.8rem;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.1s ease, opacity 0.3s ease;
    z-index: 2;
}

/* Efek hover */
.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

/* Hanya muncul saat hover (desktop) */
.slider-btn {
    opacity: 0;
    pointer-events: none;
}

.product-image-wrapper:hover .slider-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Posisi panah */
.slider-btn.prev {
    left: 8px;
}

.slider-btn.next {
    right: 8px;
}

/* --- MOBILE MODE --- */
/* Di HP panah selalu terlihat, agak kecil, dan semi-transparan */
@media (max-width: 768px) {
    .slider-btn {
        opacity: 0.8 !important;
        pointer-events: auto;
        background-color: rgba(0, 0, 0, 0.35);
        font-size: 0.7rem;
        padding: 3px 5px;
    }
}
