* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #fff;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* === LOGO === */
.navbar .logo img {
    height: 55px;
    /* ukuran ideal */
    width: 70px;
    /* agar tidak gepeng */
    display: block;
}

/* NAV MENU */
.navbar nav a {
    text-decoration: none;
    margin: 0 20px;
    color: #549D41;
    font-weight: 600;
}

/* CART ICON */
.cart {
    background: #549D41;
    /* hijau modern */
    width: 48px;
    height: 48px;
    border-radius: 15px;
    /* bukan bulat penuh */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    /* SHADOW YANG SAMA PERSIS */
    box-shadow:
        0px 4px 8px rgba(0, 0, 0, 0.25),
        0px 0px 10px rgba(255, 255, 255, 0.85) inset;

    transition: .2s;
}

/* Hover */
.cart:hover {
    transform: translateY(-3px);
    box-shadow:
        0px 8px 15px rgba(0, 0, 0, 0.28),
        0px 0px 12px rgba(255, 255, 255, 0.95) inset;
}




/* HERO */
.hero {
    margin-top: 95px;
    padding: 120px;
    min-height: 500px;
    display: flex;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-radius: 40px;
    /* atas melengkung */
    z-index: 5;
    /* konten hero berada paling depan */
}

/* ✔ Lekukan putih tidak menutup gambar & box */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -50px;
    /* sedikit lebih turun biar smooth */
    width: 100%;
    height: 110px;
    /* dibuat lebih tinggi biar lekukan mewah */
    background: white;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    z-index: -1;
    /* INI WAJIB → agar tidak nutup konten */
}


.hero-text h1 {
    color: #D7FFB3;
    font-size: 46px;
    font-weight: 700;
    max-width: 450px;
    line-height: 1.2;
}

.hero-text p {
    margin-top: 180px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85) !important;

}

/* hero */
@media(max-width:900px) {
    .hero {
        flex-direction: column;
        padding: 40px 30px;
        min-height: 550px;
    }

    .hero-text h1 {
        font-size: 32px;
        max-width: 100%;
    }

    .hero-text p {
        margin-top: 40px;
        font-size: 14px;
    }

    .catalog-box {
        position: relative !important;
        bottom: 0 !important;
        right: 0 !important;
        margin-top: 25px !important;
        width: 100% !important;
        z-index: 10 !important;
        /* ⬅ penting */
    }

    .catalog-box.scale-soft {
        opacity: 1 !important;
        transform: scale(1) !important;
    }
}

/* container gambar */
.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* slide aktif muncul */
.slide.active {
    opacity: 1;
}

.catalog-box {
    position: absolute;
    right: 40px;
    bottom: -40px;
    background: #549D41;
    padding: 25px;
    border-radius: 30px;
    width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.catalog-box h3 {
    font-weight: 700;
    color: #2f4f1f;
}

.mini-card {
    display: flex;
    gap: 10px;
}

.mini-card img {
    width: 70px;
    border-radius: 10px;
}


.batik-bg {
    position: relative;
    padding: 100px 10%;
    color: white;

    /* Gradient sama persis seperti footer */
    background: linear-gradient(to bottom,
            #549D41 0%,
            /* Hijau muda */
            #549D41 40%,
            /* Hijau sedang */
            #549D41 100%);
    /* Hijau lebih gelap */

    overflow: hidden;
    z-index: 1;
}

/* === PATTERN 20% ATAS (SAMA KAYA FOOTER) === */
.batik-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 22%;
    background: url('../img/bgbatik.jpg');
    background-size: 600px;
    background-repeat: repeat;
    opacity: 0.25;
    z-index: 0;
}

/* === PATTERN 80–100% BAWAH (SAMA KAYA FOOTER) === */
.batik-bg::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18%;
    background: url('../img/bgbatik.jpg');
    background-size: 500px;
    background-repeat: repeat;
    opacity: 0.20;
    z-index: 0;
}

/* Konten di dalamnya harus tampil di atas layer */
.batik-bg * {
    position: relative;
    z-index: 2;
}





/* ABOUT */
.about {
    margin-top: 10px !important;
    /* turun agar tidak nabrak lekukan */
    padding: 100px 10%;
    color: white;
    position: relative;
    z-index: 1;
}

.about h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.about-img {
    position: absolute;
    right: 80px;
    top: 200px;
    width: 320px;
    transform: rotate(-10deg);
    filter: drop-shadow(8px 8px 20px rgba(0, 0, 0, 0.5));
}

/* PRODUK */
.produk {
    padding: 120px 10% 100px 10%;
    text-align: center;
    background: #ffffff;
    /* PUTIH */
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
    margin-top: -50px;
    /* biar ketemu section hijau di atas */
    position: relative;
    z-index: 2;
}




/* grid produk */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.produk h2 {
    color: #549D41 !important;
    /* hijau sesuai style desain */
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 2.2rem;
}


/* card item */
.produk-item {
    background: #EDEDED;
    padding: 35px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* KATALOG */
.katalog {
    padding: 150px 10% 160px 10%;
    /* tambah bawah biar lekukan terlihat */
    background: #fff;
    position: relative;
    text-align: center;
    z-index: 3;
    /* INI YANG BIKIN MELENGKUNG KE BAWAH */
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
}


/* Garis Hijau di atas judul */
.katalog::before {
    content: "";
    width: 90%;
    height: 4px;
    background: #549D41;
    position: absolute;
    top: 80px;
    /* posisi garis — bisa disesuaikan */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

/* Grid */
.katalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.katalog-grid .card img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

.card {
    background: linear-gradient(135deg, #B7E887 0%, #6EAA45 100%);
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    color: white;

}

.card img {
    width: 100%;
    border-radius: 15px;
}


.card p,
.card p strong {
    color: white !important;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}


/* Judul E-Katalog */
.katalog h2 {
    font-size: 60px;
    font-weight: 800;
    color: #549D41;
    margin-bottom: 25px;
}

/* Subjudul */
.katalog p {
    font-size: 22px;
    font-weight: 700;
    color: #549D41;
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
    margin-bottom: 60px;
}


/* FOOTER (versi desain premium) */
.footer {
    position: relative;
    padding: 80px 10% 40px 10%;
    color: white;
    background: linear-gradient(to bottom,
            #549D41 0%,
            /* Hijau muda */
            #549D41 40%,
            /* Hijau sedang */
            #549D41 100%);
    /* Hijau lebih gelap */
    overflow: hidden;
    z-index: 1;
    margin-top: -40px;
    /* naik sedikit agar rapih */
}

/* === Pattern 20% atas === */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 22%;
    /* 20% area atas */
    background: url('../img/bgbatik.jpg');
    background-size: 600px;
    /* adjust sesuai gambar */
    background-repeat: repeat;
    opacity: 0.25;
    /* biar soft */
    z-index: 0;
}

/* === Pattern 80%–100% bawah (opsional) === */
.footer::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18%;
    /* background: url('../img/bgbatik.jpg'); */
    background-size: 500px;
    background-repeat: repeat;
    opacity: 0.20;
    z-index: 0;
}

/* Agar isi footer tampil di atas pattern */
.footer * {
    position: relative;
    z-index: 2;
}




/* layout kiri-kanan */
.footer-info {
    display: flex;
    justify-content: center;
    /* ❗ biar posisi block kiri & kanan tidak kepinggir */
    align-items: center;
    /* ❗ tengah secara vertikal */
    gap: 120px;
    /* ❗ jarak antar LOGO dan kontak */
    margin-bottom: 60px;
}

.footer-info .logo {
    font-size: 70px;
    font-weight: 900;
    letter-spacing: 2px;
}

.footer-info-text h3 {
    font-size: 42px;
    /* lebih besar kayak desain */
    font-weight: 800;
    margin-bottom: 5px;
}

.footer-info p {
    font-size: 18px;
    font-weight: 500;
    margin: 5px 0;
}


/* MAPS */
footer iframe {
    width: 100%;
    height: 330px;
    border-radius: 30px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* COPYRIGHT */
.footer .copyright {
    text-align: center;
    margin-top: 25px;
    font-size: 16px;
    opacity: 0.9;
}

.footer-info .logo img {
    width: 350px;
    /* ukuran logo ideal */
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
    /* biar glow kayak desain */
}

.footer-info .logo {
    padding-left: 60px;
}

.footer-info-text p {
    font-size: 20px;
    line-height: 1.5;
    margin: 6px 0;
    opacity: 0.95;
}


/* ====== ANIMASI KINIAN ====== */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: .7s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: .7s ease;
}

.fade-in.show {
    opacity: 1;
}

.slide-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: .7s ease;
}

.slide-right.show {
    opacity: 1;
    transform: translateX(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(40px);
    transition: .7s ease;
}

.slide-left.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===== HAMBURGER (Mobile) ===== */
.menu-btn {
    display: none;
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

/* NAV MOBILE HIDDEN */
@media(max-width: 900px) {
    .menu-btn {
        display: block;
    }

    .navbar {
        padding: 20px 25px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* disembunyikan */
        width: 75%;
        height: 100vh;
        background: white;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        padding-top: 120px;
        gap: 25px;
        transition: 0.35s ease;
        z-index: 1000;
    }


    nav.show {
        right: 0;
        /* muncul dari kanan */
    }

    nav a {
        font-size: 20px;
        padding: 10px 20px;
        color: #549D41;
        font-weight: 600;
        transition: .3s;
    }

    nav a:hover {
        color: #4d8a33;
    }

    .menu-btn {
        display: block;
    }

    .navbar {
        padding: 20px 25px;
    }

    .cart {
        margin-left: 10px;
    }
}


/* Responsive */


/* about */
@media(max-width:900px) {
    .about {
        padding: 80px 8%;
    }

    .about-img {
        position: relative;
        width: 70%;
        right: 0;
        top: 40px;
        margin: auto;
        display: block;
        transform: rotate(0);
    }

    .vision-mission {
        display: block;
    }
}

/* produk */
@media(max-width:700px) {
    .produk {
        padding: 80px 5% 80px 5%;
    }

    .produk-item {
        padding: 25px;
    }

    .produk h2 {
        font-size: 1.7rem;
    }
}

/* katalog */
@media(max-width:900px) {
    .katalog h2 {
        font-size: 38px;
    }

    .katalog p {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .katalog-grid {
        grid-template-columns: 1fr;
    }
    .katalog-grid .card img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
}

/* footer */
@media(max-width:900px) {
    .footer-info {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-info .logo {
        padding-left: 0;
    }

    .footer-info-text h3 {
        font-size: 32px;
    }

    iframe {
        height: 260px;
    }
}

/* Ripple effect */
.btn,
.cart,
.menu-btn,
nav a {
    position: relative;
    overflow: hidden;
}

.btn::after,
.cart::after,
.menu-btn::after,
nav a::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width .4s ease, height .4s ease, opacity .4s ease;
}

.btn:active::after,
.cart:active::after,
.menu-btn:active::after,
nav a:active::after {
    width: 200px;
    height: 200px;
    opacity: 1;
}

#backToTop {
    position: fixed;
    right: 25px;
    bottom: -80px;
    /* disembunyikan awalnya */
    width: 55px;
    height: 55px;
    background: #549D41;
    color: white;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all .4s ease;
    z-index: 9999;
}

/* Saat muncul */
#backToTop.show {
    bottom: 25px;
    opacity: 1;
}


.detail-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: white;
    color: #549D41;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: 0.25s ease;
}

.detail-btn:hover {
    background: #549D41;
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

/* === MOBILE SLIDER MODE === */
@media (max-width: 768px) {
    .katalog-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        scroll-snap-type: x mandatory;
        padding: 10px;
        scrollbar-width: none;
    }

    .katalog-grid::-webkit-scrollbar {
        display: none;
    }

   .katalog-grid .card {
        width: 90%;           /* ukurannya gede */
        flex: 0 0 90%;        /* biar jadi slider */
        scroll-snap-align: center;
        margin-right: 10px;
        border-radius: 20px;
    }
}

.more-btn {
    display: inline-block;
    margin: 40px auto 0 auto;
    padding: 12px 28px;
    background: #549D41;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: .2s ease;
}

.more-btn:hover {
    background: #5A9734;
    transform: scale(1.05);
}


/* ================================
   ANIMASI MODERN 
   ================================ */

/* Smooth Fade Up */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: .9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Scale Soft (untuk card & icon) */
.scale-soft {
    opacity: 0;
    transform: scale(0.9);
    transition: .7s ease;
}

.scale-soft.show {
    opacity: 1;
    transform: scale(1);
}

/* Parallax Slide (dipakai untuk gambar/background) */
.parallax {
    opacity: 0;
    transform: translateY(60px);
    transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax.show {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient Glow masuk */
.glow {
    opacity: 0;
    filter: blur(15px);
    transition: 1s ease;
}

.glow.show {
    opacity: 1;
    filter: blur(0);
}

/* Hover Animasi Premium */
.hover-pop {
    transition: .25s ease;
}

.hover-pop:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
}

/* ========================================================================================= */
/* ==============================
   DROPDOWN MENU DESKTOP
   ============================== */

.navbar nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown {
    position: relative;
}

.dropdown .dropbtn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #549D41;
    cursor: pointer;
    padding: 8px 20px;
    text-decoration: none;
}

.dropdown-content {
    position: absolute;
    top: 55px;
    left: 0;
    min-width: 180px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    display: none;
    flex-direction: column;
    z-index: 9999;

    /* animasi smooth */
    opacity: 0;
    transform: translateY(10px);
    transition: .25s ease;
}

.dropdown:hover .dropdown-content {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    padding: 12px 18px;
    display: block;
    text-decoration: none;
    color: #549D41;
    font-weight: 500;
    transition: .2s ease;
}

.dropdown-content a:hover {
    background: #f3ffe6;
    color: #4b8a31;
}

/* ==========================================
   FORCE FIX MOBILE DROPDOWN =============================================================================================
   ========================================== */
@media(max-width:900px) {

    /* perataan nav */
    nav {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* tombol dropdown */
    .dropdown .dropbtn {
        width: 100% !important;
        padding: 12px 25px !important;
        font-size: 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        color: #549D41 !important;
        margin: 0 !important;
    }

    /* container submenu */
    .dropdown-content {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-top: 10px !important;
    }

    .dropdown.open .dropdown-content {
        display: flex !important;
    }

    /* item submenu */
    .dropdown-content a {
        padding: 8px 0 !important;
        font-size: 17px !important;
        color: #549D41 !important;
        border: none !important;
        margin: 0 !important;
    }

    /* Hapus garis atau border apapun */
    .dropdown-content a,
    .dropdown-content,
    .dropdown,
    nav a {
        border: none !important;
    }
}
/* Hover buffer agar mouse bisa turun tanpa menutup */
.dropdown::after {
    content: "";
    position: absolute;
    top: 40px;
    /* sesuai jarak dropbtn → dropdown */
    left: 0;
    width: 100%;
    height: 20px;
    /* area penyangga */
    background: transparent;
}

nav a.active,
.dropdown.active>.dropbtn {
    color: #2f7a28 !important;
    font-weight: 800 !important;
    border-bottom: 3px solid #2f7a28;
}