/* --- 1. SHARED VARIABLES & RESET --- */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #0ea5e9;
    --accent: #f43f5e;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border: #e2e8f0;
    --radius-md: 16px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- UTILITIES --- */
.animate-up { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

 /* --- TOP BAR --- */
        .top-announcement-bar {
            background: linear-gradient(90deg, #000000, #000000);
            color: white; padding: 8px; font-size: 0.85rem;
            display: flex; justify-content: center; align-items: center; gap: 15px;
            z-index: 1001; position: relative;
        }
        .top-announcement-btn {
            background: rgba(255,255,255,0.15); color: #fff; padding: 2px 10px;
            border-radius: 4px; text-decoration: none; font-size: 0.75rem; font-weight: 600;
            transition: 0.3s;
        }
        .top-announcement-btn:hover { background: #fff; color: var(--text-main); }

/* --- NAVBAR --- */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky; top: 0; z-index: 1000;
    padding: 1rem 0;
}
.nav-container {
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { 
    font-size: 1.5rem; font-weight: 800; color: var(--text-main); 
    text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px;
}
.logo i { color: white; background: var(--primary); padding: 8px; border-radius: 8px; font-size: 1rem; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem;
    position: relative; transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.hamburger { display: none; cursor: pointer; font-size: 1.3rem; color: var(--text-main); }

/* --- HERO --- */
.hero {
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    padding: 4rem 1.5rem 2rem; text-align: center;
}
.hero h1 {
    font-size: 3rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-main) 30%, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }

/* --- PRODUCTS GRID --- */
main { max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.product-card {
    background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border);
    overflow: hidden; display: flex; flex-direction: column;
    transition: 0.3s; position: relative;
    animation: fadeInUp 0.5s ease backwards;
}
.product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: #8b5cf6; }

/* 16:9 Banner Container */
.banner-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}
.banner-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s ease;
}
.product-card:hover .banner-img { transform: scale(1.05); }

.discount-badge {
    position: absolute; top: 15px; right: 15px;
    background: var(--accent); color: white;
    padding: 5px 12px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3);
    z-index: 2;
}

.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

.product-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.product-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.price-row { display: flex; align-items: center; gap: 12px; margin-top: auto; margin-bottom: 1.5rem; }
.price-new { font-size: 1.5rem; font-weight: 800; color: var(--text-main); }
.price-old { font-size: 1rem; color: var(--text-light); text-decoration: line-through; }

.btn-buy {
    width: 100%; padding: 14px; border-radius: 12px; border: none; font-weight: 700;
    background: var(--text-main); color: white; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1rem;
}
.btn-buy:hover { background: var(--primary); box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); }

/* --- LOAD MORE --- */
.load-more-container { text-align: center; margin-top: 4rem; margin-bottom: 2rem; }
.btn-load-more {
    background: white; color: var(--text-main); border: 1px solid var(--border); padding: 14px 40px;
    border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; box-shadow: var(--shadow-sm);
}
.btn-load-more:hover { background: var(--bg-body); transform: translateY(-2px); border-color: var(--text-muted); }

/* --- MODAL (5 STEPS) --- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(8px); z-index: 3000; align-items: center; justify-content: center; }
.modal-box { background: white; width: 90%; max-width: 450px; border-radius: 24px; padding: 2.5rem; text-align: center; position: relative; animation: scaleIn 0.3s ease; }
.modal-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.ad-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px;
    border-radius: 10px; text-decoration: none; font-weight: 600; border: 2px solid var(--border);
    color: var(--text-main); transition: 0.2s; background: white; cursor: pointer; margin-bottom: 8px; font-size: 0.9rem;
}
.ad-btn:hover { border-color: var(--primary); background: #eff6ff; color: var(--primary); }
.ad-btn.checked { background: #dcfce7; border-color: #22c55e; color: #15803d; pointer-events: none; }
.final-download-btn {
    width: 100%; padding: 16px; border-radius: 12px; border: none; font-weight: 700; cursor: pointer;
    margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.final-download-btn:disabled { background: #cbd5e1; color: #64748b; }
.final-download-btn:not(:disabled) { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4); }
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 1.2rem; cursor: pointer; color: #94a3b8; }

/* Floating Socials */
        .social-float-container { position: fixed; bottom: 30px; right: 30px; z-index: 2000; display: flex; flex-direction: column; gap: 12px; }
        .social-btn {
            width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            color: white; text-decoration: none; font-size: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: 0.3s;
        }
        .social-btn:hover { transform: scale(1.1); }
        .social-wa { background: #25D366; } .social-tg { background: #0088cc; } .social-yt { background: #FF0000; }

/* --- FOOTER (Same as Home) --- */
footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 5rem 1.5rem 2rem; margin-top: auto; }
.footer-container {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 4rem;
}
.footer-col h4 { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.95rem; line-height: 1.7; margin-top: 1rem; max-width: 300px; color: #94a3b8; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; color: var(--footer-text); transition: 0.3s; font-size: 0.95rem; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; max-width: 1280px; margin: 0 auto; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 36px; height: 36px; background: #1e293b; color: white; display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; transition: 0.3s; }
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        display: none; position: fixed; top: 75px; left: 0; right: 0; background: white;
        flex-direction: column; padding: 2rem; border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .products-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 1rem auto; }
    .footer-logo { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; }
    .social-links { justify-content: center; }
}