/* 1. DASAR & RESET */
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
}

/* 2. NAVIGASI (HEADER) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    position: sticky; /* Menu tetap di atas saat scroll */
    top: 0;
    z-index: 1000;
    height: 80px; /* 1. Kunci tinggi header di sini agar tidak ikut melar */
}

/* Tambahkan class ini untuk membungkus logo (tag <a>) */
.logo {
    width: 200px; /* 2. Beri space tetap agar menu 'nav' tidak terdorong ke kiri */
    display: flex;
    align-items: center;
}

.logo-img {
    height: 250px; /* Tinggi logo yang kamu mau */
    width: auto;
    display: block;
    position: absolute; /* 3. Lepaskan gambar dari layout agar tidak mendorong header */
    top: -85px; /* 4. Geser angka ini (bisa -85px, -50px, atau 10px) untuk mempaskan posisi atas-bawah logonya */
}

nav a {
    color: #ccc;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

nav a:hover { color: #fff; }

/* 3. HERO SECTION (BANNER DENGAN GRADIENT) */
.hero {
    height: 60vh; /* Tinggi banner 60% dari layar */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    
    /* Overlay Gradient & Gambar */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(15,15,15,1)), url('/assets/images/banner.jpeg');
    background-size: cover;
    background-position: center 50%; /* Memastikan titik fokus selalu pas di tengah gambar */
    background-attachment: fixed; /* INI KUNCINYA: Membuat gambar background terkunci/tidak ikut tergeser */
    background-repeat: no-repeat; /* Mencegah gambar berulang */
}

.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { color: #aaa; max-width: 600px; margin-bottom: 30px; }

/* 4. TOMBOL & KARTU PRODUK (LAMA) */
.btn {
    background-color: #fff;
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover { background-color: #ccc; transform: translateY(-2px); }

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* =========================================
   5. BEST SELLERS SECTION (BARU) 
   ========================================= */
.best-sellers-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Override .product-card khusus untuk section Best Sellers */
.best-sellers-section .product-card {
    background-color: #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;         /* Menghilangkan padding dari desain lama */
    border: none;       /* Menghilangkan border dari desain lama */
    text-align: left;   /* Teks rata kiri */
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; 
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: #ffffff;
    color: #000000;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-info {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.product-info h3 {
    color: #111111;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.product-info h3.underlined {
    text-decoration: underline;
}

.price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.current-price {
    color: #111111;
    font-weight: 800;
    font-size: 1rem;
}

.old-price {
    color: #666666;
    text-decoration: line-through;
    font-weight: 600;
    font-size: 0.85rem;
}

.view-all-btn {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.view-all-btn:hover {
    background-color: #dddddd;
    
}
/* =========================================
   7. SOCIAL MEDIA ICONS (TELEGRAM & TIKTOK)
   ========================================= */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;         /* Jarak antara logo Telegram dan TikTok */
    margin-top: 25px;  /* Jarak ikon dengan tombol Contact Us di atasnya */
}

.social-link {
    color: #ffffff; /* Warna ikon saat normal (putih) */
    transition: color 0.3s, transform 0.3s; /* Efek halus saat hover */
    display: inline-flex;
}

.social-link svg {
    width: 35px;  /* Ukuran ikon */
    height: 35px;
}

/* Efek saat mouse diarahkan (hover) */
.social-link:hover {
    transform: translateY(-4px); /* Ikon sedikit melompat naik */
}

/* Warna biru saat Telegram di-hover */
.social-link[title="Chat on Telegram"]:hover {
    color: #24A1DE; 
}

/* Warna khas TikTok (cyan/red pinkish) saat di-hover */
.social-link[title="Follow on TikTok"]:hover {
    color: #ff0050; 
}
/* =========================================
   6. RESPONSIVE / MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PERBAIKAN UNTUK LAYAR HP ADA DI SINI */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    /* 1. Header dibuat rata kiri-kanan dan tipis */
    header {
        flex-direction: row; 
        height: 60px; /* Mengunci header agar sangat tipis */
        padding: 0 15px;
    }

    .logo {
        width: auto;
        justify-content: flex-start;
        margin-bottom: 0;
    }

    /* 2. Logo dibesarkan dan dibuat menggantung ke bawah */
    .logo-img {
        position: absolute; 
        top: -45px; /* Geser angka ini (misal -30px atau -50px) agar atas-bawahnya pas */
        left: 0px;  /* Posisi di pojok kiri */
        height: 150px; /* LOGO BESAR */
        z-index: 1001;
    }

    /* 3. Menu navigasi ditarik ke sebelah kanan */
    nav {
        margin-top: 0;
        display: flex;
        justify-content: flex-end; /* Menu rata kanan */
        width: 100%;
    }

    nav a {
        margin: 0 0 0 15px; /* Jarak antar menu */
        font-size: 0.85rem; /* Font menu sedikit disesuaikan */
    }

    /* Perkecil teks di Hero Section */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
}