/* ================= RESET ================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Segoe UI',sans-serif;
    background:#f8faf9;
    color:#333;
    line-height:1.6;
}

/* ================= NAVBAR ================= */
.navbar{
    position:sticky;
    top:0;
    z-index:999;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(12px);
    box-shadow:0 3px 15px rgba(0,0,0,.08);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 60px;
  width: auto;
}

.logo-container h3 {
  margin: 0;
}

.navbar h3{
    color:#1b5e20;
    font-size:22px;
    font-weight:700;
}

.navbar a{
    text-decoration:none;
    color:#333;
    margin-left:20px;
    font-weight:500;
    transition:.3s;
}

.navbar a:hover{
    color:#4caf50;
}
/* ================= MENU HAMBURGER ================= */

.nav-menu{
    display:flex;
    align-items:center;
    gap:20px;
}

.menu-dropdown{
    position:relative;
}

.menu-btn{
    width:45px;
    height:45px;
    border:none;
    border-radius:10px;
    background:#4caf50;
    color:#fff;
    font-size:24px;
    cursor:pointer;
    transition:.3s;
    display:flex;
    justify-content:center;
    align-items:center;
}

.menu-btn:hover{
    background:#2e7d32;
}

.popup-menu{
    display:none;
    position:absolute;
    top:55px;
    right:0;
    min-width:170px;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    z-index:1000;
}

.popup-menu.show{
    display:block;
    animation:menuFade .25s ease;
}

.popup-menu a{
    display:block;
    padding:14px 20px;
    color:#333;
    text-decoration:none;
    font-weight:600;
    margin:0;
    transition:.3s;
}

.popup-menu a:hover{
    background:#4caf50;
    color:#fff;
}

@keyframes menuFade{
    from{
        opacity:0;
        transform:translateY(-10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* ================= BUTTON ================= */
.btn,
.btn-detail{
    display:inline-block;
    background:#4caf50;
    color:#fff;
    text-decoration:none;
    padding:12px 24px;
    border-radius:12px;
    transition:.3s;
    font-weight:600;
}

.btn:hover,
.btn-detail:hover{
    background:#2e7d32;
    transform:translateY(-2px);
}

.banner-img {
  width: 100%;        /* Memenuhi lebar layar */
  max-width: 100%;    /* Mencegah gambar melebihi kontainer induknya */
  height: auto;       /* Menjaga proporsi tinggi gambar agar tidak gepeng */
  display: block;
}

/* ================= HERO ================= */
.hero{
    min-height:90vh;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    background:url('../assets/image/banner.png') center/cover;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:650px;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    padding:40px;
    border-radius:25px;
    color:white;
}

.hero h1{
    font-size:55px;
    line-height:1.2;
    margin-bottom:15px;
}

.hero p{
    font-size:17px;
    margin-bottom:25px;
}

/* ================= SECTION HEADER ================= */
.section-header{
    text-align:center;
    margin-bottom:50px;
}

.section-header span{
    color:#4caf50;
    font-weight:700;
}

.section-header h2{
    font-size:38px;
    color:#1b5e20;
    margin-top:10px;
}

.section-header p{
    color:#666;
}

/* ================= CONTAINER ================= */
.container{
    width:90%;
    max-width:1200px;
    margin:auto;
    padding:80px 0;
}

/* ================= HIGHLIGHT ================= */
.highlight{
    width:90%;
    max-width:1200px;
    margin:-60px auto 80px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    position:relative;
    z-index:10;
}

.highlight-box{
    background:white;
    padding:30px;
    text-align:center;
    border-radius:20px;
    border-top:4px solid #4caf50;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
    transition:.3s;
}

.highlight-box:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 35px rgba(0,0,0,.12);
}

/* ================= STATISTIK ================= */
.stats-section{
    width:90%;
    max-width:1200px;
    margin:0 auto 80px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.stat-box{
    background:white;
    padding:30px;
    text-align:center;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
}

.stat-box h2{
    color:#4caf50;
    font-size:40px;
}

.stat-box p{
    color:#666;
}

/* ================= ABOUT ================= */
.about-section{
    width:90%;
    max-width:1200px;
    margin:80px auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.about-badge{
    background:#e8f5e9;
    color:#2e7d32;
    padding:8px 15px;
    border-radius:30px;
    display:inline-block;
    margin-bottom:15px;
}

.about-text h2{
    font-size:38px;
    color:#1b5e20;
    margin-bottom:20px;
}

.about-text p{
    color:#666;
    margin-bottom:20px;
}

.about-text ul{
    list-style:none;
}

.about-text li{
    margin-bottom:10px;
}

.about-image img{
    width:100%;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
}

/* ================= PRODUK ================= */
.produk-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:30px;
}

.produk-card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.produk-card:hover{
    transform:translateY(-10px);
}

.produk-title{
    padding:20px 15px 10px;
    color:#1b5e20;
    min-height:70px;
}

.produk-image{
    width:100%;
    height:260px;
    object-fit:cover;
    transition:.4s;
}

.produk-card:hover .produk-image{
    transform:scale(1.05);
}

.btn-detail{
    margin:20px;
    width:calc(100% - 40px);
}

.btn-detail::after{
    content:" →";
}

/* ================= MAP ================= */
.map-container{
    overflow:hidden;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.map-container iframe{
    width:100%;
    height:450px;
    border:none;
}

/* ================= DETAIL ================= */

#detail-produk{
    width:90%;
    max-width:1200px;
    margin:60px auto;
}

.detail-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:50px;
    background:#fff;
    padding:40px;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/* ================= KIRI : INFORMASI ================= */

.detail-info{
    width:60%;
}

.detail-info h2{
    font-size:38px;
    color:#1b5e20;
    margin-bottom:20px;
}

.detail-info .deskripsi{
    color:#555;
    line-height:1.9;
    text-align:justify;
    margin-bottom:20px;
}

.detail-info p{
    text-align:justify;
}

.section-title{
    font-size:24px;
    color:#1b5e20;
    margin-top:25px;
    margin-bottom:10px;
    border-left:5px solid #4caf50;
    padding-left:12px;
}

/* ================= LIST ================= */

.kandungan,
.manfaat{
    margin:15px 0 25px;
    padding-left:25px;
}

.kandungan li,
.manfaat li{
    margin-bottom:10px;
    line-height:1.8;
    color:#444;
}

.kandungan li::marker,
.manfaat li::marker{
    color:#4caf50;
}

/* ================= KANAN : GAMBAR ================= */

.detail-image{
    width:40%;
    display:flex;
    justify-content:center;
    align-items:flex-start;
}

.detail-image img{
    width:100%;
    max-width:380px;
    border-radius:20px;
    object-fit:cover;
    box-shadow:0 15px 35px rgba(0,0,0,.15);
    transition:.3s;
}

.detail-image img:hover{
    transform:scale(1.03);
}


/* ================= JIKA BELUM ADA GAMBAR ================= */

.no-image{
    width:380px;
    height:380px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f4f4f4;
    border:2px dashed #ccc;
    border-radius:20px;
    color:#888;
    text-align:center;
    font-weight:600;
    padding:20px;
}

.detail-info .btn{
    margin-top:30px;
}
.detail-info p{
    text-align:justify;
    margin-bottom:20px;
}

.detail-info ul,
.detail-info ol{
    margin-top:10px;
}

.detail-info li{
    padding-left:5px;
}

.detail-info .btn{
    display:inline-block;
}
/* ================= LOGIN ================= */
.login-box{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,.12);
}

.login-box input{
    width:100%;
    padding:12px;
    margin-top:10px;
    border:1px solid #ddd;
    border-radius:10px;
}

.login-box button{
    width:100%;
    margin-top:15px;
}

/* ================= FOOTER ================= */
.footer{
    margin-top:80px;
    background:#102312;
    color:white;
    text-align:center;
    padding:50px 20px;
}

.footer h3{
    margin-bottom:15px;
}

.footer p{
    color:#cfcfcf;
    margin-bottom:15px;
}

/* ================= ANIMATION ================= */
.produk-card,
.highlight-box,
.stat-box,
.detail-wrapper{
    animation:fadeUp .6s ease;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
    
}
/* ================= KONTAK KAMI ================= */

.contact-grid{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:40px;
    margin:40px auto;
}

.contact-card{
    width:150px;
    text-align:center;
    text-decoration:none;
    color:#333;
    transition:0.3s;
}

.contact-card:hover{
    transform:translateY(-8px);
}

.contact-card img{
    width:100px;
    height:100px;
    object-fit:cover;
    border-radius:50%;
    border:4px solid #4CAF50;
    background:#fff;
    padding:5px;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    transition:.3s;
}

.contact-card:hover img{
    transform:scale(1.08);
    border-color:#2E7D32;
}

.contact-card h3{
    margin-top:15px;
    font-size:18px;
    color:#1B5E20;
}


/* ================= RESPONSIVE ================= */
@media(max-width:768px){

    .detail-wrapper{
        flex-direction:column-reverse;
        padding:25px;
        gap:30px;
    }

    .detail-info{
        width:100%;
    }

    .detail-image{
    width:40%;
    display:flex;
    flex-direction:column;
    align-items:center;
}

    .detail-image img{
        max-width:320px;
    }

    .no-image{
        width:320px;
        height:320px;
    }

    .detail-info h2{
        font-size:30px;
        text-align:center;
    }

    .detail-info .deskripsi{
        text-align:left;
    }


.kandungan,
.manfaat{
    padding-left:22px;
}

.kandungan li,
.manfaat li{
    font-size:15px;
}

.detail-image img{
    max-width:320px;
}
.no-image{
    max-width:320px;
    height:320px;
    font-size:16px;
}
.contact-grid{
        gap:25px;
    }

    .contact-card{
        width:120px;
    }

    .contact-card img{
        width:80px;
        height:80px;
    }

    .contact-card h3{
        font-size:16px;
    }
}

/* Label Harga */
.price-label{
    margin-top:18px;
    padding:12px 25px;
    background:#198754;
    color:#fff;
    font-size:22px;
    font-weight:bold;
    border-radius:10px;
    text-align:center;
    width:fit-content;
}
.marketplace-item{

    border:1px solid #ddd;

    border-radius:8px;

    padding:15px;

    margin-bottom:15px;

    background:#fafafa;

}

.marketplace-item input{

    width:100%;

    margin-bottom:10px;

}

.btn-add-marketplace{

    background:#2196F3;

    color:white;

    border:none;

    padding:10px 15px;

    border-radius:6px;

    cursor:pointer;

}

.btn-add-marketplace:hover{

    background:#1976D2;

}

.btn-remove{

    background:#dc3545;

    color:white;

    border:none;

    padding:8px 12px;

    border-radius:5px;

    cursor:pointer;

}
.marketplace-item{

    border:1px solid #ddd;

    padding:15px;

    margin-top:20px;

    border-radius:10px;

    background:#fafafa;

}

.marketplace-item img{

    display:block;

    margin:10px 0;

    width:70px;

    height:70px;

    object-fit:cover;

    border-radius:10px;

}

#tambahMarketplace{

    margin-top:15px;

    background:#2196F3;

    color:#fff;

    border:none;

    padding:10px 20px;

    border-radius:8px;

    cursor:pointer;

}

.hapus-marketplace{

    background:#d32f2f;

    color:#fff;

    border:none;

    padding:8px 15px;

    border-radius:6px;

    cursor:pointer;

    margin-top:10px;

}
/* ================= POPUP MARKETPLACE ================= */

.popup-marketplace{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.popup-content{
    width:420px;
    max-width:90%;
    background:#fff;
    border-radius:15px;
    padding:25px;
    position:relative;
    animation:fadeUp .3s;
}

.close-popup{
    position:absolute;
    right:20px;
    top:10px;
    font-size:28px;
    cursor:pointer;
}

.marketplace-list{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-top:20px;
}

.market-item{
    text-decoration:none;
    color:#333;
    text-align:center;
    transition:.3s;
}

.market-item:hover{
    transform:scale(1.05);
}

.market-item img{
    width:70px;
    height:70px;
    object-fit:contain;
    border-radius:50%;
    border:1px solid #ddd;
    padding:8px;
    background:#fff;
}

.market-item span{
    display:block;
    margin-top:8px;
    font-weight:600;
}