/* css/style.css */

:root {
    --primary: #000080; /* Navy Blue */
    --accent: #D32F2F;  /* Red */
    --text: #333333;
    --light-bg: #F4F6F8;
    --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body { background: var(--light-bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.text-center { text-align: center; }
.section-title { margin-bottom: 40px; text-align: center; color: var(--primary); }
.section-title h3 { font-size: 2rem; font-weight: 700; position: relative; display: inline-block; }
.section-title h3::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent); margin: 10px auto 0; border-radius: 2px; }

/* HEADER */
header { background: var(--white); box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 45px; border-radius: 50%; }
.brand h1 { font-size: 1.2rem; color: var(--primary); font-weight: 800; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-item { font-size: 0.9rem; font-weight: 500; color: #555; }
.nav-item:hover { color: var(--primary); }

/* HERO */
.hero { background: linear-gradient(135deg, #000080 0%, #000040 100%); color: var(--white); padding: 80px 20px; text-align: center; }
.hero h2 { font-size: 2.5rem; margin-bottom: 15px; }
.hero p { max-width: 700px; margin: 0 auto 30px; font-size: 1.1rem; opacity: 0.9; }

/* ALUR PEMBELIAN (NEW) */
.alur-wrapper { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.alur-step { flex: 1; min-width: 200px; text-align: center; background: white; padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.alur-icon { width: 50px; height: 50px; background: #e3f2fd; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 1.2rem; }
.alur-step h5 { color: var(--primary); margin-bottom: 10px; font-weight: bold; }
.alur-step p { font-size: 0.85rem; color: #666; }

/* BUTTONS */
.btn { padding: 10px 25px; border-radius: 50px; font-weight: 600; cursor: pointer; border: none; transition: 0.3s; display: inline-block; font-size: 0.9rem; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #b71c1c; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }

/* PRODUCT CARD (Updated for Promo) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-cat { color: var(--accent); font-size: 0.8rem; font-weight: bold; text-transform: uppercase; margin-bottom: 5px; }
.card-title { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary); font-weight: bold; }
.card-price { font-size: 1.3rem; font-weight: bold; color: var(--text); margin-bottom: 15px; }
.card-price s { color: #999; font-size: 0.9rem; font-weight: normal; margin-right: 5px; }
.card-price .promo { color: var(--accent); }
.card-actions { display: flex; gap: 10px; }

/* CART FLOATING (Updated for Qty) */
.cart-float { position: fixed; bottom: 30px; right: 30px; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 1500; width: 340px; display: none; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 10px; }
.cart-items-list { max-height: 200px; overflow-y: auto; font-size: 0.9rem; padding-right: 5px; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; border-bottom: 1px dashed #eee; padding-bottom: 5px; }

/* QTY BUTTONS */
.qty-controls { display: flex; align-items: center; gap: 5px; }
.btn-qty { width: 25px; height: 25px; background: #eee; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center; }
.btn-qty:hover { background: var(--primary); color: white; }

/* MODALS */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.modal-content { background: white; width: 90%; max-width: 600px; padding: 30px; border-radius: 12px; position: relative; max-height: 90vh; overflow-y: auto; }
.close { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; color: #999; }
.close:hover { color: var(--accent); }

/* FORM */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.9rem; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; }

/* COUPON BOX */
.coupon-area { background: #f8f9fa; padding: 15px; border-radius: 8px; border: 1px dashed #ccc; margin-bottom: 15px; }
.coupon-input { display: flex; gap: 10px; }

/* FOOTER */
footer { background: var(--primary); color: white; padding: 60px 20px 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { margin-bottom: 20px; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }
.footer-links li { margin-bottom: 10px; list-style: none; }
.footer-links a { color: #ccc; transition: 0.3s; }
.footer-links a:hover { color: white; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; }
    .hero h2 { font-size: 1.8rem; }
    .cart-float { width: 90%; right: 5%; bottom: 20px; }
    .card-actions { flex-direction: column; }
}
/* --- TAMBAHAN UPGRADE V2 (Copy ke paling bawah style.css) --- */

/* 1. SECTIONS MENTOR & TRUST */
.trust-badge-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.trust-badge {
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid #eee;
}
.trust-badge i { color: var(--accent); font-size: 1.2rem; }

/* 2. COMMUNITY STATS (Telegram Style) */
.stats-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 30px;
    margin-bottom: 40px;
    border-top: 4px solid var(--primary);
}
.stat-item h3 { font-size: 2.5rem; color: var(--primary); margin-bottom: 5px; font-weight: 800; }
.stat-item p { color: #666; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* 3. FOOTER UPGRADE */
.footer-social { display: flex; gap: 10px; margin-top: 15px; }
.social-btn { 
    width: 35px; height: 35px; background: rgba(255,255,255,0.1); 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; transition: 0.3s; 
}
.social-btn:hover { background: var(--accent); transform: translateY(-3px); }

/* --- CSS UPDATE: BUKTI KOMUNITAS SLIDER --- */

/* 1. Layout Container (Kiri Teks, Kanan Slider) */
.community-banner {
    display: flex;
    flex-direction: row; /* Kiri kanan */
    background: #eef2ff; /* Warna background soft */
    align-items: center;
    margin-bottom: 30px;
    overflow: hidden; /* Agar slider tidak keluar card */
}

/* Bagian Teks (Kiri) */
.comm-content {
    flex: 1; /* Lebar 50% */
    padding: 30px;
    z-index: 2; /* Agar teks di atas background */
    background: #eef2ff; /* Background solid agar teks jelas */
}

/* Bagian Slider Wrapper (Kanan) */
.comm-slider-wrapper {
    flex: 1; /* Lebar 50% */
    overflow: hidden; /* Sembunyikan gambar yang lewat batas */
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Jalur Slider (Track) */
.slider-track {
    display: flex;
    /* Lebar total track harus cukup untuk menampung semua gambar */
    /* Kita punya 4 gambar (2 asli + 2 duplikat), jadi width besar */
    width: 200%; 
    animation: scrollLeft 10s linear infinite; /* Animasi looping */
}

.slide {
    width: 50%; /* Tiap slide mengambil porsi setengah dari track visual */
    padding: 0 10px;
}

.slide img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
}

/* Animasi Keyframes */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Geser track ke kiri sejauh 50% (setelah 2 gambar asli lewat, reset posisi) */
        transform: translateX(-50%); 
    }
}

/* Responsif Mobile (Balik jadi Atas-Bawah) */
@media (max-width: 768px) {
    .community-banner { flex-direction: column !important; }
    .comm-content { width: 100%; padding-bottom: 10px; }
    .comm-slider-wrapper { width: 100%; padding: 0 20px 20px; }
    
    /* Di HP slider tetap jalan */
    .slider-track { width: 200%; }
}