/*==============================
    GOOGLE FONT
==============================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/*==============================
    DESIGN TOKENS — CENGKORA
    (Tema Perkebunan Cengkeh)
==============================*/
:root{
    --primary:#374F2F;        /* navbar, tombol utama, menu aktif, link */
    --primary-dark:#22311D;   /* hover/darken dari primary, footer */
    --secondary:#4A6741;      /* hover, elemen pendukung */
    --moss:#3F5A36;           /* badge grade */
    --accent:#304529;         /* harga, ikon, label premium */
    --accent-dark:#22311D;
    --bg:#F8F9F4;
    --card:#FFFFFF;
    --card-border:#E8ECE7;
    --text-main:#2B2B2B;
    --text-secondary:#6B7280;

    --radius:16px;
    --radius-sm:10px;
    --radius-pill:30px;

    --shadow-sm:0 5px 15px rgba(45,106,79,.08);
    --shadow-md:0 8px 25px rgba(45,106,79,.10);
    --shadow-lg:0 10px 25px rgba(45,106,79,.12);
}

/*==============================
    RESET
==============================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text-main);
    line-height:1.6;
    padding-top:80px; /* jarak karena header fixed */
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

/*==============================
    NAVBAR
==============================*/

header{
    width:100%;
    background:var(--primary);
    position:fixed;
    top:0;
    left:0;
    z-index:999;
    box-shadow:var(--shadow-sm);
}

.navbar{
    height:80px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo a{
    color:#fff;
    font-size:30px;
    font-weight:700;
}

.logo i{
    color:var(--accent);
    margin-right:8px;
}

nav ul{
    display:flex;
    gap:30px;
}

nav ul li a{
    color:rgba(255,255,255,.85);
    font-weight:500;
    transition:.3s;
}

nav ul li a:hover,
nav ul li a.active{
    color:#fff;
}

.nav-right{
    display:flex;
    align-items:center;
    gap:15px;
}

.search-box{
    width:350px;
    position:relative;
}

.search-box input{
    width:100%;
    padding:12px 45px 12px 20px;
    border-radius:var(--radius-pill);
    border:1px solid transparent;
    background:#fff;
    color:var(--text-main);
}

.search-box input:focus{
    outline:none;
    box-shadow:0 0 0 3px rgba(255,255,255,.35);
}

.search-box i{
    position:absolute;
    right:18px;
    top:14px;
    color:var(--text-secondary);
}

.btn-login{
    border:2px solid #fff;
    color:#fff;
    padding:10px 22px;
    border-radius:var(--radius-pill);
    transition:.3s;
}

.btn-login:hover{
    background:#fff;
    color:var(--primary);
}

.btn-register{
    background:var(--accent);
    color:white;
    padding:10px 22px;
    border-radius:var(--radius-pill);
    transition:.3s;
}

.btn-register:hover{
    background:var(--accent-dark);
}

/*==============================
    ANIMASI
==============================*/

@keyframes fadeInUp{
    from{
        opacity:0;
        transform:translateY(28px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/*==============================
        HERO
==============================*/

.hero{
    padding-top:110px;
    padding-bottom:90px;
    background:linear-gradient(135deg,#EAF3EC 0%,var(--bg) 100%);
}

.hero-content{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    max-width:800px;
    margin:0 auto;
}

.hero-text h1{
    font-size:55px;
    color:var(--primary-dark);
    margin-bottom:20px;
    line-height:1.2;
    font-weight:800;
    opacity:0;
    animation:fadeInUp .7s ease forwards;
}

.hero-text p{
    color:var(--text-secondary);
    margin-bottom:35px;
    font-size:18px;
    max-width:600px;
    margin-left:auto;
    margin-right:auto;
    opacity:0;
    animation:fadeInUp .7s ease .15s forwards;
}

.hero-btn{
    display:flex;
    gap:20px;
    justify-content:center;
    opacity:0;
    animation:fadeInUp .7s ease .3s forwards;
}

/* Kolom gambar hero tidak dipakai lagi -- boleh hapus div-nya dari HTML */
.hero-image{
    display:none;
}

.btn-primary{
    background:var(--primary);
    color:white;
    padding:15px 35px;
    border-radius:var(--radius);
    transition:.3s;
}

.btn-primary:hover{
    background:var(--secondary);
    transform:translateY(-3px);
    box-shadow:var(--shadow-md);
}

.btn-secondary{
    border:2px solid var(--primary);
    color:var(--primary);
    padding:15px 35px;
    border-radius:var(--radius);
    transition:.3s;
}

.btn-secondary:hover{
    background:var(--primary);
    color:white;
}

/*==============================
    SECTION
==============================*/

section{
    padding:90px 0;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    color:var(--primary-dark);
    font-size:40px;
    font-weight:800;
    position:relative;
    display:inline-block;
    padding-bottom:14px;
}

.section-title h2::after{
    content:"";
    position:absolute;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:56px;
    height:3px;
    background:var(--accent);
    border-radius:4px;
}

.section-title p{
    color:var(--text-secondary);
    margin-top:10px;
}

/*==============================
    STATISTIK
==============================*/

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.stat-card{
    background:var(--card);
    border:1px solid var(--card-border);
    border-radius:var(--radius);
    padding:35px;
    text-align:center;
    box-shadow:var(--shadow-sm);
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-md);
    border-color:var(--secondary);
}

.stat-card i{
    font-size:40px;
    color:var(--accent);
    margin-bottom:20px;
}

.stat-card h2{
    color:var(--primary);
    margin-bottom:10px;
    font-weight:800;
}

.stat-card p{
    color:var(--text-secondary);
    font-weight:500;
}

/*==============================
    GRAFIK HARGA
==============================*/

canvas{
    background:var(--card);
    border:1px solid var(--card-border);
    border-radius:var(--radius);
    padding:20px;
    box-shadow:var(--shadow-sm);
}

/*==============================
    PRODUK
==============================*/

.products{
    background:var(--bg);
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.product-card{
    background:var(--card);
    border:1px solid var(--card-border);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:.3s;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
    border-color:var(--secondary);
}

.product-image{
    height:230px;
    overflow:hidden;
    background:#F1F3EE;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.3s;
}

.product-card:hover .product-image img{
    transform:scale(1.06);
}

.product-info{
    padding:20px;
}

.grade{
    display:inline-block;
    background:var(--moss);
    color:white;
    padding:5px 14px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
    margin-bottom:10px;
}

.product-info h3{
    color:var(--text-main);
    margin-bottom:10px;
    font-weight:600;
}

.price{
    color:var(--accent);
    font-size:23px;
    font-weight:700;
    margin-bottom:10px;
}

.btn-detail{
    display:block;
    text-align:center;
    margin-top:15px;
    padding:12px;
    background:var(--primary);
    color:white;
    border-radius:var(--radius-sm);
    font-weight:600;
    transition:.3s;
}

.btn-detail:hover{
    background:var(--primary-dark);
}

/*==============================
    FOOTER
==============================*/

footer{
    background:var(--primary-dark);
    color:white;
    padding:70px 0 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.footer-grid h3{
    margin-bottom:20px;
    color:#fff;
}

.footer-grid p,
.footer-grid a{
    color:rgba(255,255,255,.75);
    margin-bottom:10px;
    display:block;
    transition:.3s;
}

.footer-grid a:hover{
    color:var(--secondary);
}

.copy{
    text-align:center;
    border-top:1px solid rgba(255,255,255,.15);
    margin-top:40px;
    padding-top:20px;
    color:rgba(255,255,255,.6);
}

/*==============================
    RESPONSIVE
==============================*/

@media(max-width:991px){

.stats-grid,
.product-grid,
.footer-grid{

grid-template-columns:repeat(2,1fr);

}

nav{

display:none;

}

.search-box{

display:none;

}

}

@media(max-width:768px){

.stats-grid,
.product-grid,
.footer-grid{

grid-template-columns:1fr;

}

.hero-text h1{

font-size:38px;

}

.hero-btn{

flex-direction:column;

}

.section-title h2{

font-size:32px;

}

}

/*==============================
    FIX: SEMBUNYIKAN IKON DI LOGO
    (tambahan di akhir file style.css)
==============================*/

.logo i,
.logo img,
.logo svg{
    display:none !important;
}

.logo a{
    display:flex;
    align-items:center;
}