<!-- Grid Kartu Produk E-book -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
    
    <!-- KARTU 1: GRATIS (Lead Magnet) -->
    <div class="bg-white border border-slate-200 rounded-2xl p-6 shadow-sm hover:shadow-md transition flex flex-col justify-between relative overflow-hidden">
        <div>
            <span class="inline-block bg-emerald-100 text-emerald-800 text-xs font-bold px-2.5 py-1 rounded-full mb-4">Gratis Akses</span>
            <!-- PERBAIKAN: Menyatukan judul agar tidak bertumpuk di layar -->
            <h3 class="font-bold text-lg text-slate-900 leading-snug">Template & Panduan Layout Disertasi Standar Harvard & MIT 2026</h3>
            <p class="text-slate-500 text-xs mt-2 line-clamp-3">Pusing dengan format margin, penomoran bab, dan daftar pustaka otomatis? Gunakan *pre-set template* siap pakai ini.</p>
            
            <div class="mt-4 space-y-1.5 text-xs text-slate-600">
                <div class="flex items-center">⏱️ <span class="ml-2">Format: .docx & .pdf</span></div>
                <div class="flex items-center">📖 <span class="ml-2">Halaman: 45 Halaman</span></div>
            </div>
        </div>
        
        <div class="mt-6 pt-4 border-t border-slate-100">
            <div class="mb-4">
                <span class="text-2xl font-black text-slate-900">Rp 0</span>
                <span class="text-xs text-slate-400 block mt-0.5">Seterusnya gratis untuk akademisi</span>
            </div>
            <button onclick="beliProduk('Template & Panduan Layout Disertasi Harvard/MIT 2026', 0)" class="block text-center w-full bg-slate-100 hover:bg-slate-200 text-slate-800 font-semibold py-2.5 rounded-lg text-xs transition">
                Download Instan
            </button>
        </div>
    </div>

    <!-- KARTU 2: PROMO / DISKON (Best Seller) -->
    <div class="bg-white border-2 border-indigo-600 rounded-2xl p-6 shadow-md hover:shadow-lg transition flex flex-col justify-between relative overflow-hidden">
        <div class="absolute top-0 right-0 bg-indigo-600 text-white text-[10px] font-extrabold uppercase px-3 py-1 rounded-bl-lg">
            Hemat 60%
        </div>
        
        <div>
            <span class="inline-block bg-indigo-100 text-indigo-800 text-xs font-bold px-2.5 py-1 rounded-full mb-4">Promo Terbatas</span>
            <h3 class="font-bold text-lg text-slate-900 leading-snug">Buku Sakti Tembus Scopus Q1/Q2: Pendekatan Kuantitatif (SEM-AMOS)</h3>
            <p class="text-slate-500 text-xs mt-2 line-clamp-3">Strategi menyusun model hipotesis, mengatasi data tidak normal, hingga teknik menjawab pertanyaan *reviewer* jurnal internasional.</p>
            
            <div class="mt-4 space-y-1.5 text-xs text-slate-600">
                <div class="flex items-center">⏱️ <span class="ml-2">Format: E-pub & PDF Berkualitas Tinggi</span></div>
                <div class="flex items-center">📖 <span class="ml-2">Halaman: 185 Halaman</span></div>
            </div>
        </div>
        
        <div class="mt-6 pt-4 border-t border-slate-100">
            <div class="mb-4">
                <span class="text-xs text-slate-400 line-through">Rp 249.000</span>
                <div class="flex items-baseline space-x-2">
                    <span class="text-2xl font-black text-indigo-600">Rp 99.000</span>
                    <span class="text-[10px] font-medium text-amber-600">Edisi Cetakan 2026</span>
                </div>
            </div>
            <button onclick="beliProduk('Buku Sakti Tembus Scopus Q1/Q2 (SEM-AMOS)', 99000)" class="block text-center w-full bg-indigo-600 hover:bg-indigo-500 text-white font-semibold py-2.5 rounded-lg text-xs transition shadow-sm">
                Beli E-Book Sekarang
            </button>
        </div>
    </div>

    <!-- KARTU 3: HARGA FULL / REGULAR -->
    <div class="bg-white border border-slate-200 rounded-2xl p-6 shadow-sm hover:shadow-md transition flex flex-col justify-between relative overflow-hidden">
        <div>
            <span class="inline-block bg-slate-100 text-slate-800 text-xs font-bold px-2.5 py-1 rounded-full mb-4">Premium Kit</span>
            <h3 class="font-bold text-lg text-slate-900 leading-snug">Metodologi Mixed-Methods untuk Riset Manajemen & Bisnis</h3>
            <p class="text-slate-500 text-xs mt-2 line-clamp-3">Panduan komprehensif mengawinkan data kuantitatif dan kualitatif menggunakan pendekatan sekuensial eksplanatori.</p>
            
            <div class="mt-4 space-y-1.5 text-xs text-slate-600">
                <div class="flex items-center">⏱️ <span class="ml-2">Format: PDF Terproteksi</span></div>
                <div class="flex items-center">📖 <span class="ml-2">Halaman: 210 Halaman + Dataset Latihan</span></div>
            </div>
        </div>
        
        <div class="mt-6 pt-4 border-t border-slate-100">
            <div class="mb-4">
                <span class="text-2xl font-black text-slate-900">Rp 175.000</span>
                <span class="text-xs text-slate-400 block mt-0.5">Harga normal lisensi tunggal</span>
            </div>
            <button onclick="beliProduk('Metodologi Mixed-Methods untuk Riset Manajemen', 175000)" class="block text-center w-full bg-slate-900 hover:bg-slate-800 text-white font-semibold py-2.5 rounded-lg text-xs transition">
                Beli Produk Premium
            </button>
        </div>
    </div>

</div>

<!-- Script pembuat jembatan data -->
<script>
    function beliProduk(nama, harga) {
        // Simpan data produk ke memori browser
        const produk = { name: nama, price: harga };
        localStorage.setItem('selectedProduct', JSON.stringify(produk));
        
        // Pindahkan pengguna ke halaman shoppingcart.html
        window.location.href = 'shoppingcart.html';
    }
</script>