/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh; /* Pastikan body mengambil setidaknya 100% tinggi viewport */
    display: flex; /* Aktifkan Flexbox */
    flex-direction: column; /* Susun konten secara vertikal */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.header .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header .logo:hover {
    color: #c0392b;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu ul li {
    margin-left: 25px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-menu ul li a:hover {
    color: #e74c3c;
}

/* Main Content Area */
main {
    flex-grow: 1; /* Ini adalah kunci! Membuat main mengambil semua ruang kosong yang tersedia */
}

/* Hero Section */
.hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.btn-primary {
    background-color: #e74c3c;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Social Promo Section */
.social-promo {
    background-color: #fff;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 25px;
}

.social-icons a {
    font-size: 1.2em;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.social-icons a:hover {
    color: #e74c3c;
    transform: translateY(-3px);
    background-color: #ffe0e0;
}

.social-icons a i {
    font-size: 1.5em;
}

/* Product Cards and Grid */
.product-grid {
    padding: 50px 0;
}

h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #e74c3c;
    border-radius: 2px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-items: center;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    margin-top: 5px;
}

.product-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #e74c3c;
    line-height: 1.2;
}

.product-card p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    /* Dihapus: height: 40px; dan overflow: hidden; agar deskripsi tidak terpotong */
    text-overflow: ellipsis; /* Tetap pertahankan ini */
}

.product-card .price {
    font-size: 1.4em;
    font-weight: bold;
    color: #28a745;
    display: block;
    margin-bottom: 5px; /* Sesuaikan margin untuk memberi ruang ke berat produk */
}

.product-card .product-weight {
    display: block; /* Agar berada di baris terpisah */
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px; /* Jarak antara berat dan tombol WA */
}

/* Product Label Styles */
.product-label {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: #e74c3c;
    color: white;
    padding: 5px 15px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    letter-spacing: 0.5px;
    transform: translateX(0);
}

.product-label.best-seller {
    background-color: #f39c12;
}

.product-label.new-product {
    background-color: #3498db;
}

.product-label.promo-product {
    background-color: #2ecc71;
}

/* Tombol Pesan via WhatsApp */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-weight: 500;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
}

.btn-whatsapp i {
    font-size: 1.2em;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
}

.footer p {
    margin-bottom: 20px;
    font-size: 0.95em;
}

.footer .social-links a {
    color: white;
    font-size: 1.8em;
    margin: 0 12px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer .social-links a:hover {
    color: #e74c3c;
    transform: translateY(-3px);
}

/* --- Tentang Kami Section --- */
.about-us {
    padding: 50px 0;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    margin: 30px auto;
    max-width: 900px;
}

.about-us h2 {
    margin-bottom: 20px;
    font-size: 2.8em;
}

.about-us .about-content {
    text-align: left;
    padding: 0 40px;
}

.about-us h3 {
    color: #e74c3c;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 10px;
}

.about-us p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.btn-map {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-map:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.small-text {
    font-size: 0.85em;
    color: #777;
    margin-top: 25px;
}

/* --- Catalog Call to Action Section --- */
.catalog-cta {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

.catalog-cta h3 {
    font-size: 2.2em;
    color: #e74c3c;
    margin-bottom: 15px;
}

.catalog-cta p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-cta .btn-whatsapp.large-btn {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* --- Reseller Promo Section --- */
.reseller-promo {
    background-color: #fce4ec;
    padding: 60px 20px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.reseller-promo h2 {
    color: #d81b60;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.reseller-promo p {
    font-size: 1.1em;
    color: #4a148c;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-reseller {
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-reseller:hover {
    background-color: #1DA851;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.btn-reseller i {
    font-size: 1.4em;
}


/* Responsive Design Media Queries */

/* Mobile phones (portrait and landscape) & Tablets */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    .nav-menu ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-menu ul li {
        margin: 0 10px 10px 10px;
    }
    .hero {
        height: 400px;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }
    h2 {
        font-size: 2em;
    }
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        justify-content: center;
    }
    .product-card {
        min-width: 250px;
    }
    /* Responsif untuk About Us */
    .about-us {
        padding: 30px 0;
        margin: 20px auto;
    }
    .about-us h2 {
        font-size: 2.2em;
    }
    .about-us .about-content {
        padding: 0 20px;
    }
    .about-us h3 {
        font-size: 1.5em;
    }
    .about-us p {
        font-size: 0.95em;
    }
    /* Responsif untuk Catalog CTA */
    .catalog-cta {
        padding: 40px 15px;
        margin-top: 30px;
    }
    .catalog-cta h3 {
        font-size: 1.8em;
    }
    .catalog-cta p {
        font-size: 1em;
    }
    .catalog-cta .btn-whatsapp.large-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    /* Responsif untuk Reseller Promo */
    .reseller-promo {
        padding: 40px 15px;
        margin-top: 30px;
    }
    .reseller-promo h2 {
        font-size: 2em;
    }
    .reseller-promo p {
        font-size: 1em;
    }
    .btn-reseller {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .header .logo {
        font-size: 1.5em;
    }
    .hero {
        height: 300px;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .social-icons a {
        font-size: 1em;
        padding: 8px 12px;
    }
    .footer .social-links a {
        font-size: 1.5em;
    }
    /* Responsif untuk About Us */
    .about-us h2 {
        font-size: 1.8em;
    }
    .about-us .about-content {
        padding: 0 15px;
    }
    .about-us h3 {
        font-size: 1.3em;
    }
    .btn-map, .btn-whatsapp {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    /* Responsif untuk Catalog CTA */
    .catalog-cta h3 {
        font-size: 1.5em;
    }
    .catalog-cta p {
        font-size: 0.9em;
    }
    /* Responsif untuk Reseller Promo */
    .reseller-promo h2 {
        font-size: 1.8em;
    }
    .reseller-promo p {
        font-size: 0.9em;
    }
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}