/* =========================================================
   ASSETS/CSS/STYLE.CSS - FULLY REFACTORED & RESPONSIVE
   (Pusat Desain Utama)
   ========================================================= */

:root {
    --primary: #6B46C1;
    --primary-dark: #5B38A6;
    --accent: #F59E0B;
    --dark: #1F2937;
    --bg-color: #fcfbf7;
    --text-muted: #757575;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; line-height: 1.6; color: var(--dark); background-color: var(--bg-color); }
h1, h2, h3 { font-family: 'Poppins', sans-serif; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- BUTTONS & ANIMATIONS (Digabung semua agar rapi) --- */
.btn-primary, .btn-secondary, .btn-soon {
    padding: 12px 28px; border: none; border-radius: 50px; 
    font-weight: 600; cursor: pointer; transition: all 0.3s; font-size: 1.1rem;
}
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-secondary { background: #f1f5f9; color: #475569; }
.btn-secondary:hover { background: #e2e8f0; }
.btn-soon { background: #e5e7eb; color: #6b7280; cursor: not-allowed; }
.btn-back { background: transparent; color: var(--primary); border: none; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.btn-back:hover { transform: translateX(-5px); }

.btn-bounce { animation: bounceAnim 2s infinite; }
.btn-bounce:hover { animation: none; transform: scale(1.05); }
@keyframes bounceAnim { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

.btn-whatsapp {
    background: #25D366; color: white; padding: 12px 28px; border: none; display: inline-flex;
    border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s;
    font-size: 1.1rem; align-items: center; gap: 8px; margin-top: 15px; text-decoration: none;
}
.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-3px); }

.btn-cart {
    background: var(--primary); color: white; border: none; padding: 10px 20px;
    border-radius: 25px; cursor: pointer; font-weight: bold; display: flex; align-items: center; gap: 8px;
}
.btn-cart .badge { background: #ef4444; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.8rem; }

/* --- NAVBAR (RESPONSIVE) --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 100;
}
.nav-links { display: none; }
@media (min-width: 768px) {
    .nav-links { display: flex; gap: 25px; }
    .nav-links a { font-weight: 500; color: var(--dark); transition: color 0.3s; }
    .nav-links a:hover { color: var(--primary); }
}

/* --- HERO & SEARCH --- */
.hero { background: linear-gradient(135deg, #f3ebff 0%, #ffffff 100%); padding: 60px 20px; text-align: center; }
.hero h1 { font-size: 3rem; color: var(--dark); margin-bottom: 15px; }
.hero .accent { color: var(--primary); }
.hero p { color: var(--text-muted); margin-bottom: 25px; font-size: 1.1rem; }
.filter-section { margin-bottom: 25px; padding: 0 20px; }
.search-input { width: 100%; padding: 14px 20px; border: 1px solid #ddd; border-radius: 50px; font-size: 1rem; margin-bottom: 15px; outline: none; }
.category-pills { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.cat-pill { padding: 8px 18px; background: white; border: 1px solid #ddd; border-radius: 20px; cursor: pointer; white-space: nowrap; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.cat-pill.active { background: var(--primary); color: white; border-color: var(--primary); }

/* --- PRODUCT GRID (2-3-4 KOLOM) --- */
.product-grid { display: grid; gap: 15px; padding: 10px 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 25px; } }

.product-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.1); transition: transform 0.2s; cursor: pointer; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.product-image { width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: #f8f9fa; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }

.discount-badge { position: absolute; top: 8px; right: 8px; background: #ee4d2d; color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; animation: blinkBadge 1.5s infinite; }
@keyframes blinkBadge { 0% { opacity: 1; } 50% { opacity: 0.8; } 100% { opacity: 1; } }

.product-info { padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.product-info h3 { font-size: 0.9rem; font-weight: 400; line-height: 1.4; margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-wrapper { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.price-wrapper .current { font-size: 1.1rem; color: #ee4d2d; font-weight: bold; }
.price-wrapper .original { font-size: 0.8rem; color: #94a3b8; text-decoration: line-through; }
.stats-wrapper { font-size: 0.75rem; color: var(--text-muted); }
.location-wrapper { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }

/* --- FOOTER & GLOBALS --- */
.page-title { text-align: center; margin: 30px 0 20px; font-size: 1.8rem; color: var(--primary); font-weight: bold; }
.main-footer { background: white; padding: 60px 20px 30px; margin-top: 60px; box-shadow: 0 -4px 15px rgba(0,0,0,0.02); text-align: center; }
.footer-section { margin-bottom: 50px; }
.footer-section h2 { font-size: 1.6rem; color: var(--primary); margin-bottom: 8px; font-weight: bold; }
.footer-section p { color: var(--text-muted); }
.purple-bg { background: var(--primary); color: white; padding: 40px 20px; border-radius: 20px; }
.purple-bg h2, .purple-bg p { color: white; }
.steps { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin: 25px 0; }
.step-item { text-align: center; }
.step-icon { font-size: 2.5rem; margin-bottom: 8px; }
.benefits { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 25px; }
.benefit-item { background: #fff; padding: 20px 15px; border-radius: 12px; width: 180px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); color: var(--dark); }
.emoji { font-size: 2rem; display: block; margin-bottom: 8px; }
.footer-social { margin-top: 40px; }
.social-icons { display: flex; justify-content: center; gap: 12px; }
.social-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; }
.instagram { background: #E1306C; }
.facebook { background: #1877F2; }
.tiktok { background: #000; }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid #ddd; font-size: 0.9rem; color: #666; }

/* ================== MODAL / POP-UP DETAIL PRODUK ================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.modal-content {
    background: white; width: 90%; max-width: 500px; padding: 25px;
    border-radius: 16px; position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    font-size: 1.8rem; cursor: pointer; color: #666; transition: 0.3s;
}
.modal-close:hover { color: var(--primary); transform: scale(1.1); }
.action-row { display: flex; gap: 15px; margin-top: 25px; align-items: center; }
.qty-input-group { display: flex; border: 2px solid var(--primary); border-radius: 8px; overflow: hidden; height: 50px; }
.qty-input-group button { width: 50px; background: #f3f0ff; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); font-weight: bold; }
.qty-input-group input { width: 60px; text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; font-weight: bold; font-size: 1.2rem; }
.btn-add-cart-modal { flex: 1; height: 50px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: 0.3s; }
.btn-add-cart-modal:hover { background: var(--primary-dark); }
#modal-body img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; margin-bottom: 15px; }
/* ================== 11. STYLING LOGO (NAVBAR & FOOTER) ================== */

/* Pengaturan Logo di Navbar (Header) */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.navbar .logo img {
    width: 45px;             /* Ukuran ideal untuk Navbar */
    height: 45px;            /* Sama dengan width agar bulat sempurna */
    border-radius: 50%;      /* Membuatnya bulat */
    object-fit: contain;     /* MENCEGAH LOGO TERPOTONG */
    background-color: white; /* Background agar rapi */
    padding: 3px;            /* Memberi jarak aman agar teks tidak nempel tepi bulat */
    border: 1px solid #e2e8f0;
}

.navbar .logo h2 {
    margin: 0; 
    color: var(--primary); 
    font-size: 1.4rem;
}

/* Pengaturan Logo di Footer (Bawah) */
.footer-brand img {
    width: 90px;             /* Ukuran ideal untuk Footer */
    height: 90px;
    border-radius: 50%;
    object-fit: contain;     /* MENCEGAH LOGO TERPOTONG */
    background-color: white;
    padding: 6px;            /* Jarak aman di dalam lingkaran */
    border: 2px solid var(--primary); /* Garis ungu cantik */
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
/* ================== 12. CUTE ALERT POP-UP (MENGGANTIKAN ALERT BAWAAN) ================== */
.cute-alert-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.cute-alert-overlay.show {
    opacity: 1; visibility: visible;
}
.cute-alert-box {
    background: white; padding: 30px 20px; border-radius: 24px;
    text-align: center; width: 85%; max-width: 320px;
    box-shadow: 0 15px 35px rgba(107, 70, 193, 0.25);
    /* Animasi dari bawah dan membesar */
    transform: scale(0.7) translateY(30px); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.cute-alert-overlay.show .cute-alert-box {
    transform: scale(1) translateY(0);
}
.cute-alert-icon {
    font-size: 3.5rem; margin-bottom: 10px;
}
.cute-alert-text {
    font-size: 1.05rem; color: #374151; margin-bottom: 25px; 
    line-height: 1.5; font-weight: 500;
}
.cute-alert-btn {
    background: var(--primary); color: white; border: none; padding: 12px 30px;
    border-radius: 50px; font-weight: bold; font-size: 1rem; cursor: pointer; 
    transition: 0.2s; box-shadow: 0 4px 10px rgba(107, 70, 193, 0.3);
}
.cute-alert-btn:hover {
    background: var(--primary-dark); transform: translateY(-3px);
}
/* Pop-up Consent Lucu */
.consent-overlay {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999;
    background: rgba(255, 255, 255, 0.95); padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    transform: translateY(100%); transition: transform 0.5s ease-out;
    border-top-left-radius: 20px; border-top-right-radius: 20px;
}
.consent-overlay.show { transform: translateY(0); }
.consent-content { max-width: 600px; margin: auto; text-align: center; }
.consent-content p { font-size: 0.9rem; margin-bottom: 15px; color: #444; }
.consent-btn {
    background: var(--primary); color: white; border: none;
    padding: 12px 30px; border-radius: 50px; font-weight: bold; cursor: pointer;
}
