/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
body {
    font-family: Arial, sans-serif;
    padding: 0;
    margin: 0;
    padding-bottom: 3rem; /* Sesuaikan padding-bottom agar konten tidak tertutup footer */
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header styles */
header {
    background: #1c5518; /* Coklat tua */
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s;
}

.logo {
    font-size: 1.5rem;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    background-color: #217c41;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
}

.nav-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: #1e9b26; /* Warna oranye */
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu ul li {
    margin-left: 1.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu ul li:hover {
    transform: translateY(-3px); /* Menggeser menu saat dihover */
    opacity: 0.9; /* Mengurangi opacity saat dihover */
}

.nav-menu ul li:not(:hover) {
    opacity: 0.8; /* Menambahkan opacity pada menu yang tidak dihover */
}




@media only screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 4rem; /* Sama dengan tinggi header */
        left: 0;
        background-color: #0d8213;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .nav-menu ul li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 1rem 0;
        border-bottom: 1px solid #004080; /* Biru tua */
    }

    .nav-menu ul li a {
        color: #fff;
        text-decoration: none;
        font-size: 1.2rem;
        transition: background-color 0.3s, color 0.3s;
    }

    .nav-menu ul li a:hover {
        color: #004080; /* Biru tua */
        background-color: #0056b3; /* Biru lebih tua */
    }
}

/* Main content styles */
main {
    padding-top: 5rem; /* Compensate for fixed header */
}

section {
    padding: 2rem 1rem;
    animation: fadein 1s;
}

@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero section styles */
.hero {
    position: relative;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.swiper-container {
    width: 100%;
    height: 100vh; /* Mengisi seluruh tinggi viewport */
}

.swiper-slide img {
    width: 100%;
    height: 100vh; /* Mengisi seluruh tinggi viewport */
    object-fit: cover; /* Memastikan gambar mengisi area dengan proporsi yang benar */
    object-position: top; /* Mengatur posisi gambar ke atas */
    filter: brightness(0.9); /* Menambahkan efek pencampuran */
}

.product-image {
    transition: opacity 0.5s ease;
}

.product-image.fade {
    opacity: 0;
}


.product {
    margin-bottom: 2rem; /* Jarak antara setiap produk */
    text-align: center;
}

.color-options {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem; /* Jarak antara opsi warna dan tombol beli */
}

.color-option {
    display: inline-block;
    width: 30px; /* Sesuaikan ukuran ikon bulat */
    height: 30px; /* Sesuaikan ukuran ikon bulat */
    border-radius: 50%; /* Membuat ikon bulat */
    margin-right: 10px;
    cursor: pointer;
    transition: transform 0.3s, border 0.3s;
}

.color-option.kuping {
    background-color: rgb(105, 95, 5);
}

.color-option.tiram {
    background-color: #c8e3cd;
}

.color-option.putih {
    background-color: #fff;
}

.color-option.hitam {
    background-color: black;
}

.color-option:hover {
    transform: scale(1.1); /* Efek hover */
    border: 2px solid white; /* Garis putih ketika hover */
}



.buy-button {
    background-color: #0a9916; /* Warna oranye */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem; /* Jarak antara tombol beli dan opsi warna */
}

.buy-button:hover {
    background-color: #1aa823; /* Warna oranye lebih gelap saat hover */
}


.hero {
    margin-top: -5rem; /* Sesuaikan dengan tinggi header Anda */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* Menambahkan efek bayangan pada teks */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-content button {
    padding: 0.75rem 1.5rem;
    background: #28a811;
    border: none;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.hero-content button:hover {
    background-color: #00d304;
    transform: scale(1.05);
}

/* About products section styles */
.about-products {
    background-color: rgba(192, 192, 192, 0.3); /* Transparan abu-abu */
    padding: 2rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.about-products:hover {
    background-color: rgba(192, 192, 192, 0.1); /* Transparan abu-abu */
}

.about-products h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.about-products p {
    text-align: center;
    margin-bottom: 1rem;
}

.about-products ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.about-products ul li {
    flex: 1 1 300px;
    margin: 0.5rem;
    background-color: rgba(192, 192, 192, 0.3); /* Transparan abu-abu */
    padding: 1rem;
    border: 1px solid rgba(192, 192, 192, 0.5); /* Border abu-abu */
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.about-products ul li:hover {
    background-color: rgba(128, 128, 128, 0.5); /* Abu-abu lebih gelap */
}

.about-products button {
    display: block;
    margin: 1rem auto;
    background: #22e63c;
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.about-products button:hover {
    background-color: #149928;
}

/* Featured products section styles */
.featured-products {
    text-align: center;
    margin: 2rem 0;
}

.featured-products .product {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    margin: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s;
    background-color: #fff;
    border-radius: 10px;
}

.featured-products .product img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.featured-products .product:hover {
    transform: scale(1.05);
}

/* Special offers section styles */
.special-offers {
    border: 1px solid #ccc;
    padding: 2rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.special-offers:hover {
    background-color: rgba(192, 192, 192, 0.1); /* Transparan abu-abu */
}

.special-offers p {
    margin-bottom: 2rem;
}

/* About us section styles */
.about-us {
    border: 1px solid #ccc;
    padding: 2rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.about-us:hover {
    background-color: rgba(192, 192, 192, 0.1); /* Transparan abu-abu */
}

/* Contact styles */
.contact {
    margin: 2rem 0;
    padding: 2rem;
    background-color: rgba(192, 192, 192, 0.3); /* Transparan abu-abu */
    border-radius: 10px;
    border: 1px solid rgba(192, 192, 192, 0.5); /* Border abu-abu */
}

.contact form {
    display: flex;
    flex-direction: column;
}

.contact form label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact form input,
.contact form textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact form button {
    padding: 0.75rem 1.5rem;
    background: #0fab39;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.contact form button:hover {
    background-color: #16b638;
}

/* Marketplace section */
.marketplace {
    margin: 2rem 0;
    padding: 2rem;
    background-color: rgba(192, 192, 192, 0.3); /* Transparan abu-abu */
    border-radius: 10px;
    border: 1px solid rgba(192, 192, 192, 0.5); /* Border abu-abu */
    text-align: center;
}

.marketplace h2 {
    margin-bottom: 1rem;
}

.marketplace-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.marketplace-links .btn {
    padding: 0.75rem 1.5rem;
    background: #2dc81f;
    border: none;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.marketplace-links .btn:hover {
    background-color: #40e91e;
    transform: scale(1.05);
}

.marketplace-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.shopee-logo, .instagram-logo, .tiktok-logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antara gambar dan teks */
    padding: 5px 10px; /* Padding di sekitar logo dan teks */
    border-radius: 5px; /* Membuat sudut yang lebih halus */
    text-decoration: none; /* Menghapus garis bawah pada link */
    transition: transform 0.3s, background-color 0.3s; /* Menambahkan transisi untuk animasi */
}

.shopee-logo img, .instagram-logo img, .tiktok-logo img {
    max-width: 30px; /* Sesuaikan nilai ini sesuai kebutuhan */
    height: auto; /* Menjaga proporsi gambar */
}

.shopee-logo span, .instagram-logo span, .tiktok-logo span {
    font-size: 16px; /* Ukuran font teks */
    font-weight: bold; /* Ketebalan font teks */
}

/* Shopee */
.shopee-logo {
    background-color: hsl(23, 87%, 56%); /* Oren */
}

.shopee-logo span {
    color: white; /* Warna teks */
}

.shopee-logo:hover {
    transform: scale(1.05); /* Efek membesar saat dihover */
    background-color: #e14309; /* Warna background saat dihover */
}

/* Instagram */
.instagram-logo {
    background-color: #fff; /* Putih */
    color: #000; /* Hitam untuk teks */
}

.instagram-logo span {
    color: #000; /* Warna teks */
}

.instagram-logo:hover {
    transform: scale(1.05); /* Efek membesar saat dihover */
    background-color: #E0E0E0; /* Warna background saat dihover */
}

/* TikTok */
.tiktok-logo {
    background-color: #000; /* Hitam */
}

.tiktok-logo span {
    color: white; /* Warna teks */
}

.tiktok-logo:hover {
    transform: scale(1.05); /* Efek membesar saat dihover */
    background-color: #333; /* Warna background saat dihover */
}

/* Media Query untuk tampilan ponsel */
@media only screen and (max-width: 768px) {
    .marketplace-links {
        flex-direction: column; /* Menumpuk tombol secara vertikal */
        align-items: center; /* Menempatkan tombol di tengah */
    }

    .shopee-logo, .instagram-logo, .tiktok-logo {
        max-width: 200px; /* Batasan lebar tombol */
        width: 100%; /* Pastikan tombol tidak memanjang */
        justify-content: center; /* Menempatkan konten di tengah */
        padding: 10px; /* Menambah padding untuk kenyamanan */
    }
}


.about-us {
    padding: 50px 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
    border-radius: 8px;
}

.about-us h2 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.about-us h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background-color: #333;
    margin: 10px auto 0;
}

.about-us p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    text-align: justify;
    margin-bottom: 20px;
}

.featured-faq {
    padding: 50px 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
    border-radius: 8px;
}

.featured-faq h2 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.featured-faq p {
    text-align: center;
    font-size: 16px;
    color: #666;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    background-color: #f7f7f7;
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #eee;
}

.faq-answer {
    display: none;
    padding: 15px;
    border-left: 2px solid #333;
    background-color: #f9f9f9;
    border-radius: 0 5px 5px 5px;
    margin-top: 5px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    background-color: #ddd;
}

.featured-bantuan {
    padding: 50px 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
    border-radius: 8px;
}

.featured-bantuan h2 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.accordion {
    margin-top: 20px;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.accordion-button {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 10px 0;
    outline: none;
    transition: color 0.3s;
}

.accordion-button:hover {
    color: #22ac27;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p, .accordion-content ol {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    padding: 10px 0;
}

.accordion-content ol {
    padding-left: 20px;
}

.accordion-content li {
    margin-bottom: 10px;
}

/* CSS untuk harga yang dicoret dan harga diskon */
.price del {
    color: red;
    font-size: 1rem;
}

.discount-price {
    color: green;
    font-size: 1.2rem;
    font-weight: bold;
}

@media only screen and (max-width: 768px) {
    .about-products ul li {
        flex-basis: 100%;
    }

    .featured-products .product {
        margin: 1rem 0;
    }

    main {
        padding-top: 4rem; /* Adjust for fixed header */
    }

    .marketplace {
        padding: 1rem; /* Reduce padding for smaller screens */
    }

    .marketplace-links {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0.5rem; /* Reduce gap between buttons */
    }

    .marketplace-links .btn {
        width: 100%;
        max-width: 200px; /* Set a max width for buttons */
        margin: 0 auto; /* Center buttons horizontally */
    }
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #10ab41; /* Coklat muda */
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    z-index: 1000;
}

footer p {
    margin: 0;
}
