/* =================================
   CSS Reset & Base Styling
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.3s;
}

ul, ol {
    list-style: none; /* Penting untuk menghilangkan angka/bullet */
}

section {
    padding: 60px 5%;
}

.main-content {
    min-height: 70vh; 
}

/* Tombol Dasar */
.btn-cta, .btn-buy, .btn-detail {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000;
    color: #fff !important;
    border-radius: 3px;
    margin-top: 15px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.btn-cta:hover, .btn-buy:hover, .btn-detail:hover {
    background-color: #333;
}

.btn-secondary {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    border: 1px solid #1a1a1a;
}

/* =================================
   1. HEADER & NAVIGASI
   ================================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

/* Mengontrol ukuran logo di header */
.brand-logo {
    max-height: 40px; /* Tinggi maksimum */
    width: auto;     /* Lebar akan menyesuaikan proporsi */
    display: block;  /* Agar bisa diatur margin/alignment jika perlu */
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

/* =================================
   2. HERO SECTION
   ================================= */
.hero-banner {
    text-align: center;
    background-color: #f5f5f5;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

/* Mengontrol ukuran gambar di hero section */
.hero-image {
    width: 100%;
    max-width: 600px; /* Lebar maksimum gambar hero */
    height: auto;
    margin-top: 40px;
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

/* =================================
   3. FEATURED PRODUCTS / CATALOG
   ================================= */
.featured-products {
    text-align: center;
}

.product-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.product-card {
    width: 300px;
    padding: 20px;
    text-align: center;
    border: 1px solid #eee; 
}

/* Mengontrol ukuran gambar di product card */
.product-card img {
    width: 100%;
    max-width: 250px; /* Lebar maksimum gambar produk */
    height: auto;
    margin-bottom: 15px;
}

/* Katalog Grid */
.page-title {
    text-align: center;
    padding: 60px 5%;
    background-color: #f7f7f7;
    margin-bottom: 30px;
}

.all-products {
    padding: 30px 5%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
}

.product-item {
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
}

/* Mengontrol ukuran gambar di item produk katalog */
.product-item img {
    max-width: 80%; /* Lebar maksimum gambar item produk */
    height: auto;
    margin-bottom: 15px;
}


/* =================================
   4. BRAND STORY & ABOUT PAGE
   ================================= */
.brand-story {
    display: flex;
    align-items: center;
    background-color: #fcfcfc;
    padding: 80px 5%; 
}

.brand-story-full { /* untuk about.php */
    display: flex;
    gap: 40px;
    padding: 40px 5%;
}

.content-left, .story-text {
    flex: 1; 
    padding-right: 40px;
}

.content-right, .story-image {
    flex: 1; 
    display: flex; 
    justify-content: center;
    align-items: center; 
}

/* Mengontrol ukuran gambar di brand story / about page */
.about-brand-image, .story-image img {
    max-width: 75%; /* Lebar maksimum gambar di bagian ini */
    height: auto;
    display: block; 
    border-radius: 5px;
}

/* =================================
   CONTACT PAGE
   ================================= */
.contact-details {
    display: flex;
    padding: 40px 5%;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-form-container {
    flex: 2;
}

.contact-form label, .contact-form input, .contact-form textarea {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.contact-form input[type="text"], 
.contact-form input[type="email"], 
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* =================================
   5. FOOTER
   ================================= */
.main-footer {
    display: flex;
    justify-content: space-around;
    padding: 40px 5%;
    background-color: #1a1a1a; /* Warna hitam */
    color: #ddd;
    flex-wrap: wrap;
    text-align: left;
}

.footer-section {
    flex-basis: 25%;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 15px;
}

.main-footer a {
    color: #ddd;
}

.copyright {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
}

/* =================================
   RESPONSIVENESS 
   ================================= */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
    }
    .main-nav ul {
        margin-top: 15px;
        gap: 15px;
    }
    .product-grid {
        grid-template-columns: 1fr; 
    }
    .product-list {
        flex-direction: column;
        align-items: center;
    }
    .brand-story, .brand-story-full, .contact-details {
        flex-direction: column;
    }
    .content-left {
        padding-right: 0;
        margin-bottom: 30px;
    }
    /* Memastikan gambar tetap responsif di layar kecil */
    .about-brand-image, .story-image img, .hero-image, .product-card img, .product-item img {
        max-width: 90%; /* Sedikit lebih kecil di mobile */
    }
    .footer-section {
        flex-basis: 100%;
        text-align: center;
    }
}