/* FONT INTER (Modern & Clean) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --tokped-green: #03AC0E;
    --tokped-dark: #028e0b;
    --tokped-light: #E5F9E6;
    --price-orange: #FA591D;
    --text-black: #212121;
    --text-grey: #6D7588;
    --bg-white: #FFFFFF;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-black);
    padding-top: 70px; /* Menghindari konten tertutup navbar fixed */
}

/* NAVBAR FIXED TOKPED STYLE */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07);
    border-bottom: 1px solid var(--border-color);
}
.navbar-brand { font-weight: 800; color: var(--tokped-green) !important; font-size: 1.4rem; }
.nav-link { color: var(--text-black) !important; font-weight: 500; font-size: 0.95rem; margin-right: 15px; }
.nav-link:hover { color: var(--tokped-green) !important; }
.btn-auth { border: 1px solid var(--tokped-green); color: var(--tokped-green); border-radius: 8px; padding: 6px 20px; font-weight: 700; text-decoration: none; }
.btn-auth:hover { background: var(--tokped-light); }

/* HERO SECTION (UPDATED FOR BIG BANNER) */
.hero-section { padding: 50px 0; background: #fff; }
.hero-title { font-size: 2.8rem; font-weight: 800; color: var(--text-black); line-height: 1.2; }
.hero-title span { color: var(--tokped-green); }
.hero-desc { color: var(--text-grey); font-size: 1.1rem; margin-top: 20px; line-height: 1.6; }

/* -- FIX: BANNER AGAR BESAR & OTOMATIS -- */
.hero-img-col {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-img-col img {
    width: 100%;        /* Lebar mengikuti kolom (Full) */
    height: auto;       /* Tinggi otomatis proporsional */
    max-height: none !important; /* Hapus batasan tinggi */
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); /* Bayangan halus agar timbul */
    transition: transform 0.3s ease;
}
.hero-img-col img:hover {
    transform: scale(1.02); /* Efek zoom sedikit saat kursor diarahkan */
}

/* 4 HERO CTA */
.hero-cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 450px; margin-top: 30px; }
.btn-hero { padding: 12px 10px; border-radius: 10px; font-weight: 700; text-decoration: none; text-align: center; font-size: 0.9rem; transition: 0.3s; }
.btn-fill { background: var(--tokped-green); color: #fff; }
.btn-fill:hover { background: var(--tokped-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--tokped-green); color: var(--tokped-green); }
.btn-outline:hover { background: var(--tokped-light); }

/* STATS STRIP */
.stats-strip { border-bottom: 1px solid #eee; padding: 30px 0; background: #fff; }
.stat-box h3 { font-weight: 800; color: var(--text-black); margin: 0; }
.stat-box p { font-size: 0.85rem; color: var(--text-grey); margin: 0; }

/* FEATURES */
.feature-box { border: 1px solid #eee; border-radius: 12px; padding: 25px; transition: 0.3s; text-align: center; height: 100%; }
.feature-box:hover { border-color: var(--tokped-green); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.feature-box i { font-size: 2.5rem; color: var(--tokped-green); margin-bottom: 15px; }

/* PRODUCT SECTION */
.section-title { font-weight: 800; font-size: 1.8rem; }
.cat-filter { white-space: nowrap; overflow-x: auto; padding-bottom: 10px; margin-bottom: 25px; }
.cat-pill { padding: 8px 24px; border: 1px solid #eee; border-radius: 20px; color: var(--text-grey); text-decoration: none; font-weight: 600; margin-right: 10px; display: inline-block; }
.cat-pill.active { background: var(--tokped-green); color: #fff; border-color: var(--tokped-green); }

/* PRODUCT CARD */
.product-card { background: #fff; border: 1px solid #eee; border-radius: 10px; overflow: hidden; text-decoration: none; display: block; transition: 0.2s; height: 100%; box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.product-card:hover { transform: translateY(-3px); border-color: var(--tokped-green); }
.prod-img { width: 100%; aspect-ratio: 1/1; background: #f8f8f8; object-fit: cover; }
.prod-content { padding: 12px; }
.prod-name { color: var(--text-black); font-weight: 600; font-size: 0.95rem; margin-bottom: 5px; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prod-price { color: var(--price-orange); font-weight: 800; font-size: 1rem; margin-bottom: 5px; }
.prod-status { font-size: 0.75rem; color: var(--tokped-green); font-weight: 700; background: var(--tokped-light); padding: 2px 8px; border-radius: 4px; display: inline-block; }

/* FAQ ACCORDION */
.accordion-item { border: 1px solid #eee !important; border-radius: 10px !important; margin-bottom: 10px; overflow: hidden; }
.accordion-button:not(.collapsed) { background-color: var(--tokped-light); color: var(--tokped-green); }
.accordion-button:focus { box-shadow: none; }

/* FOOTER */
footer { border-top: 4px solid #f4f4f4; padding-top: 50px; background: #fff; }
.footer-title { font-weight: 800; margin-bottom: 20px; }
.footer-link { display: block; color: var(--text-grey); text-decoration: none; margin-bottom: 10px; font-size: 0.9rem; }
.footer-link:hover { color: var(--tokped-green); }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; text-align: center; }
    .hero-desc { text-align: center; font-size: 1rem; }
    .hero-cta-grid { margin: 30px auto; }
    /* Pada HP, gambar disembunyikan agar fokus ke tombol, 
       jika ingin dimunculkan, hapus display:none di HTML atau ubah disini */
    .hero-img-col { display: none; } 
    .nav-link { margin-bottom: 10px; }
    .navbar-collapse { padding: 20px 0; }
}

/* --- TAMBAHAN STYLE UNTUK ALUR GAME -> ITEM --- */

/* 1. CARD GAME (Di Halaman produk.php) */
.game-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--tokped-green);
}
.game-card-img {
    width: 100%;
    aspect-ratio: 16/9; /* Persegi panjang seperti banner kecil */
    object-fit: cover;
    background: #f0f0f0;
}
.game-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.game-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 5px;
}
.game-card-desc {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 15px;
}
.btn-lihat-game {
    margin-top: auto;
    background: #fff;
    color: var(--tokped-green);
    border: 1px solid var(--tokped-green);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
}
.game-card:hover .btn-lihat-game {
    background: var(--tokped-green);
    color: #fff;
}

/* 2. HEADER DETAIL GAME (Banner Besar) */
.game-detail-header {
    position: relative;
    height: 300px; /* Tinggi Banner */
    background-size: cover;
    background-position: center;
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.game-detail-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
}
.game-detail-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: #fff;
    width: 100%;
}

/* 3. ITEM CARD GRID (Isi Item di detail_produk.php) */
.item-grid-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    transition: 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.item-grid-card:hover {
    border-color: var(--tokped-green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.item-img-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
}
.item-title { font-size: 0.9rem; font-weight: 700; color: #333; margin-bottom: 4px; line-height: 1.3; }
.item-price { font-size: 0.95rem; font-weight: 800; color: var(--price-orange); margin-bottom: 10px; }
.btn-add-keranjang {
    margin-top: auto;
    width: 100%;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 0.75rem;
    padding: 6px;
    border-radius: 6px;
    font-weight: 600;
}
.item-grid-card:hover .btn-add-keranjang {
    border-color: var(--tokped-green);
    color: var(--tokped-green);
}

/* --- STYLE KHUSUS CHECKOUT (Mirip Referensi Image) --- */
body.checkout-page {
    background-color: #fceceb; /* Latar Pink Soft */
}

/* SECTION HEADER MERAH (Garis Vertikal) */
.checkout-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #212121;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 5px solid #c0392b; /* Garis Merah di kiri */
}

/* INPUT FORM */
.form-checkout {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
}
.form-checkout:focus {
    background: #fff;
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* KARTU METODE PEMBAYARAN */
.payment-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}
.payment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
/* Style saat dipilih */
.payment-card.selected {
    border: 2px solid #c0392b;
    background: #fff5f5;
}
.payment-card.selected::after {
    content: '\f00c'; /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #c0392b;
}

/* SIDEBAR RINGKASAN */
.summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px; /* Sticky saat scroll */
}
.btn-bayar-merah {
    background: #c0392b; /* Merah Bata */
    color: #fff;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-weight: 800;
    border: none;
    font-size: 1rem;
    transition: 0.3s;
}
.btn-bayar-merah:hover {
    background: #a93226;
    color: #fff;
}