* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
    overflow-x: hidden;
}
/* Navbar */
/* Sembunyikan tombol hamburger secara default di layar laptop/PC */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animasi tombol hamburger berubah menjadi huruf 'X' saat aktif */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0; /* Garis tengah menghilang */
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 10px;
    font-weight: bold;
    color: #2c3e50;
    
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}
.nav-links li {
    position: relative;
}
.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    display: inline-block;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2c3e50;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}
.nav-links a:hover {
    color: #2c3e50;
}
.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Munculkan tombol hamburger di HP */
    }

    /* Mengubah menu horizontal menjadi dropdown vertikal */
    .nav-links {
        position: absolute;
        top: 100%; /* Muncul tepat di bawah navbar */
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        border-top: 1px solid #eee;
        
        /* Menyembunyikan menu ke atas secara default */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    /* Hilangkan animasi stripe bawah di HP agar tampilan lebih bersih */
    .nav-links a::after {
        display: none;
    }

    /* Efek hover latar belakang menu di HP */
    .nav-links a:hover {
        background-color: #f5f6fa;
    }

    /* Class pemicu dari JavaScript untuk membuka dropdown */
    .nav-links.active {
        max-height: 300px; /* Sesuaikan dengan tinggi total seluruh menu */
    }
}

/* Carousel Banner */
.carousel {
    position: relative;
    max-width: 100%;
    height: 450px;
    overflow: hidden;
    background: #ddd;
}
.carousel-inner {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.carousel-item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #fff;
    font-weight: bold;
}
.bg-1 { background-color: white; }
.bg-2 { background-color: white; }
.bg-3 { background-color: white; }

/* Tombol Navigasi Manual Carousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}
.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
}
.prev { left: 20px; }
.next { right: 20px; }

/* Dot Navigasi Carousel */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active {
    background: #fff;
    width: 25px;
    border-radius: 5px;
}

/* Container Utama */
.container {
    padding: 50px 5%;
}
.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #2c3e50;
    margin: 8px auto 0 auto;
}

/* Produk Section dengan Animasi Zoom & Scroll Fade Up */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Gaya Dasar Animasi Scroll Up */
.product-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Class Aktif Saat Div Masuk Layar */
.product-card.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Kontainer Gambar untuk Efek Zoom */
.product-img-wrapper {
    height: 160px;
    overflow: hidden;
    background: white;
    position: relative;
}
.product-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 13px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efek Hover Gambar Zoom In */
.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-info {
    padding: 15px;
}
.product-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}
.product-price {
    font-size: 14px;
    color: darkgray;
    margin-bottom: 12px;
}
.btn {
    display: block;
    text-align: center;
    background: #2c3e50;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}
.btn:hover {
    background: #34495e;
}

/* About Us Section */
.about-section {
    background: #fff;
    border-top: 1px solid #eee;
}
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.about-text {
    flex: 1;
}
.about-text p {
    color: #666;
    margin-bottom: 15px;
    font-size: 15px;
}
.about-img {
    flex: 1;
    height: 250px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border-radius: 6px;
}

/* Footer Modern */
footer {
    background: #1a252f;
    color: #fff;
    padding: 40px 5% 20px 5%;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #3498db;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #bdc3c7;
    text-decoration: none;
}
.footer-col ul li a:hover {
    color: #fff;
}
.footer-col p {
    color: #bdc3c7;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 12px;
    color: #7f8c8d;
}

/* Responsive Mobile Tweak */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    .about-img {
        width: 100%;
        height: 200px;
    }
}


/* --- TAMPILAN DETAIL PRODUK --- */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5%;
}

/* Layout Atas: Gambar (Kiri) & Info (Kanan) */
/* --- TAMPILAN DETAIL PRODUK UTAMA --- */
.detail-main {
    display: flex;
    flex-direction: row; /* Memastikan elemen berjejer ke samping (Kiri & Kanan) */
    align-items: flex-start; /* Memastikan konten kanan rata atas dengan gambar */
    gap: 40px; /* Jarak antara kolom gambar dan kolom teks */
    margin-bottom: 60px;
    width: 100%;
}

/* Kolom Kiri: Galeri Gambar */
.detail-gallery {
    flex: 1; /* Mengambil ruang proporsional di kiri */
    max-width: 50%; /* Membatasi lebar gambar maksimal setengah area */
    width: 100%;
}

.main-image-box {
    width: 100%;
    height: 400px;
    background-color: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
}

/* Kolom Kanan: Detail Informasi (Nama Produk, Harga, dll) */
.detail-info {
    flex: 1; /* Mengambil sisa ruang di sebelah kanan gambar */
    display: flex;
    flex-direction: column; /* Menyusun teks ke bawah di dalam kolomnya */
    padding-top: 5px; /* Sedikit jarak agar sejajar sempurna dengan tinggi gambar */
}

.detail-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.detail-price-tag {
    font-size: 24px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 20px;
}

.detail-description {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* --- RESPONSIF UNTUK LAYAR HP (DIBAWAH 768PX) --- */
@media (max-width: 768px) {
    .detail-main {
        flex-direction: column; /* Di HP, teks otomatis pindah ke bawah gambar */
        gap: 25px;
    }
    
    .detail-gallery {
        max-width: 100%; /* Di HP, gambar menjadi lebar penuh */
    }
    
    .main-image-box {
        height: 280px; /* Memperkecil tinggi gambar di HP agar hemat ruang */
    }
    
    .detail-info {
        padding-top: 0;
    }
}


/* Kotak Kecil Fitur/Logo */
.feature-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    margin-bottom: 35px;
}

.badge-item {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.badge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.badge-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.badge-text {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

/* Tombol Aksi */
.action-buttons .btn-primary {
    display: inline-block;
    background-color: #2c3e50;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.3s;
}

.action-buttons .btn-primary:hover {
    background-color: #34495e;
}

/* Layout Bawah: Tabel Spesifikasi */
.detail-specifications {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.spec-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.spec-table tr {
    border-bottom: 1px solid #eee;
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 15px 20px;
    font-size: 14px;
}

.spec-label {
    width: 30%;
    font-weight: bold;
    color: #7f8c8d;
    background-color: #fcfcfc;
}

.spec-value {
    color: #333;
}

/* Responsive: Tampilan saat layar HP/Tablet */
@media (max-width: 768px) {
    .detail-main {
        flex-direction: column; /* Gambar pindah ke atas, deskripsi ke bawah */
        gap: 30px;
    }
    
    .main-image-box {
        height: 300px;
    }

    .spec-table td {
        display: block; /* Mengubah tabel menjadi tumpukan vertikal di HP */
        width: 100%;
    }

    .spec-label {
        background-color: transparent;
        padding-bottom: 5px;
    }

    .spec-value {
        padding-top: 0;
        margin-bottom: 5px;
    }
}
