/* General Styling */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    box-sizing: border-box;
}

/* --- Top Bar (Header) --- */
.top-bar {
    background-color: #000; /* Hitam */
    color: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Tetap di atas saat di-scroll */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; /* Pastikan di atas elemen lain */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Penting untuk padding dan width 100% */
}

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.brand-logo i {
    margin-right: 10px;
    font-size: 28px;
    color: #fff; /* Warna ikon */
}

.logout-button {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none; /* Hilangkan garis bawah pada link */
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.logout-button i {
    margin-right: 8px;
}

.logout-button:hover {
    background-color: #fff;
    color: #000;
}

/* --- Hero Section --- */
.hero-section {
    background-image: url('banner.jpeg'); /* Ganti dengan URL gambar lanskap Anda */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 500px; /* Tinggi bagian hero */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 70px; /* Jarak dari fixed header */
    position: relative; /* Untuk overlay */
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Overlay gelap transparan */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero-content {
    max-width: 800px;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* --- Product Listing Section --- */
.product-listing {
    padding: 50px 20px;
    max-width: 1000px; /* Lebar maksimal konten produk */
    margin: 0 auto; /* Tengah secara horizontal */
    text-align: center;
}

.product-listing h3 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #222;
}

.product-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px; /* Jarak antar item produk */
    padding: 25px;
    display: flex; /* Untuk menata gambar, deskripsi, tombol sejajar */
    align-items: center; /* Sejajarkan vertikal */
    gap: 30px; /* Jarak antar kolom */
    text-align: left; /* Kembalikan teks ke kiri */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    flex-shrink: 0; /* Gambar tidak menyusut */
    width: 200px; /* Ukuran gambar */
    height: 200px;
    border-radius: 8px;
    overflow: hidden; /* Pastikan gambar di dalam tidak keluar batas */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pastikan gambar mengisi kotak tanpa terdistorsi */
    display: block;
}

.product-description {
    flex-grow: 1; /* Deskripsi mengambil sisa ruang */
    padding-right: 20px; /* Jarak dari tombol */
}

.product-description h4 {
    font-size: 24px;
    color: #444;
    margin-bottom: 10px;
}

.product-description p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #007bff; /* Biru untuk harga */
    margin-top: 15px;
}

.product-actions {
    flex-shrink: 0; /* Tombol tidak menyusut */
    text-align: right;
}

.buy-button {
    background-color: #28a745; /* Hijau untuk tombol beli */
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex; /* Untuk menyatukan ikon dan teks */
    align-items: center;
    gap: 8px;
}

.buy-button:hover {
    background-color: #218838; /* Hijau lebih gelap saat hover */
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .top-bar {
        padding: 15px 20px;
        flex-direction: column; /* Tumpuk brand dan logout di mobile */
        gap: 10px;
    }

    .brand-logo h1 {
        font-size: 22px;
    }
    .brand-logo i {
        font-size: 26px;
    }
    .logout-button {
        width: auto; /* Otomatis */
        padding: 6px 12px;
        font-size: 14px;
    }

    .hero-section {
        height: 400px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .product-item {
        flex-direction: column; /* Tumpuk gambar, deskripsi, tombol di mobile */
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .product-image {
        width: 150px;
        height: 150px;
    }

    .product-description {
        padding-right: 0;
    }

    .product-description h4 {
        font-size: 20px;
    }

    .product-description p {
        font-size: 14px;
    }

    .product-actions {
        width: 100%; /* Tombol ambil lebar penuh */
        text-align: center;
    }

    .buy-button {
        width: 80%; /* Tombol di tengah */
        margin: 0 auto;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 26px;
    }
    .hero-content p {
        font-size: 14px;
    }
    .product-listing {
        padding: 30px 15px;
    }
    .product-listing h3 {
        font-size: 28px;
    }
}