/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Roboto",sans-serif;
    background:#fff8f0;
    color:#3e2723;
    line-height:1.6;
    overflow-x:hidden;
}

h1,h2,h3,h4{
    font-family:"Playfair Display",serif;
}

img{
    max-width:100%;
    display:block;
}

/* =========================
   CONTAINER
========================= */

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* =========================
   HEADER
========================= */

header{
    background:#4e342e;
    position:sticky;
    top:0;
    z-index:1000;
    width:100%;
    padding:12px 0;
    transition:top 0.3s ease;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

/* =========================
   LOGO
========================= */

.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;
    background:#fff;
    padding:3px;
}

.logo-text{
    color:#fff;
    font-size:16px;
    font-weight:bold;
    line-height:1.3;
}

/* =========================
   NAV LINKS
========================= */

.nav-links{
    display:flex;
    gap:20px;
    list-style:none;
    flex-wrap:wrap;
}

.nav-links a{
    text-decoration:none;
    color:#fff;
    font-weight:bold;
    transition:0.3s;
}

.nav-links a:hover,
.nav-links .active{
    color:#ffca28;
}

/* =========================
   HERO
========================= */

.hero{
    background:url('hero.jpeg') center/cover no-repeat;
    position:relative;
    padding:120px 0 80px;
}

.hero-overlay{
    background:rgba(0,0,0,0.55);
    width:100%;
    height:100%;
    padding:40px 20px;
}

.hero-text{
    text-align:center;
    color:#fff;
    max-width:900px;
    margin:auto;
}

.hero-text h1{
    font-size:clamp(2rem,5vw,3rem);
    margin-bottom:20px;
}

.hero-text p{
    font-size:18px;
    margin-bottom:25px;
}

.hero-text span{
    color:#ffca28;
    font-weight:bold;
}

/* =========================
   BUTTON
========================= */

.btn{
    display:inline-block;
    padding:12px 28px;
    background:#ffca28;
    color:#3e2723;
    border-radius:30px;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
}

.btn:hover{
    background:#ffb300;
    transform:translateY(-3px);
}

/* =========================
   BRAND LOGOS
========================= */

.brand-logos{
    margin-top:50px;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
}

.brand-logos img{
    width:100px;
    height:60px;
    object-fit:contain;
    background:#fff;
    padding:8px;
    border-radius:10px;
    transition:0.3s;
}

.brand-logos img:hover{
    transform:scale(1.05);
}

/* =========================
   SECTION TITLE
========================= */

.section-title{
    text-align:center;
    font-size:2.2rem;
    margin-bottom:35px;
}

/* =========================
   PRODUCTS - FIX RESPONSIVE
========================= */

.products{
    padding:80px 0;
}

.search-box{
    width:100%;
    max-width:520px;
    margin:0 auto 30px;
    display:block;
    padding:14px 18px;
    border-radius:30px;
    border:1px solid #ccc;
    outline:none;
    font-size:16px;
    background:#fff;
}

.search-box:focus{
    border-color:#a67c52;
    box-shadow:0 0 0 3px rgba(166,124,82,0.15);
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:25px;
    overflow:visible;
}

/* PC: sebelum Show More hanya tampil 4 produk */
.products-grid:not(.active) .product-item:nth-child(n + 5){
    display:none;
}

.product-item{
    min-width:0;
    background:#fff;
    border-radius:15px;
    padding:18px;
    text-align:center;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
    transition:0.3s;
    display:flex;
    flex-direction:column;
    height:100%;
}

.product-item:hover{
    transform:translateY(-5px);
}

.product-item img{
    width:100%;
    height:200px;
    object-fit:contain;
    object-position:center;
    border-radius:10px;
    margin-bottom:15px;
    background:#fff;
}

.product-item h3{
    margin-bottom:10px;
    font-size:18px;
    line-height:1.3;
}

.product-item p{
    font-size:14px;
    color:#666;
    line-height:1.5;
}

.toggle-btn{
    width:fit-content;
    margin:28px auto 0;
    padding:11px 22px;
    border-radius:999px;
    background:#4e342e;
    color:#fff;
    text-align:center;
    cursor:pointer;
    font-weight:bold;
    user-select:none;
    transition:0.3s;
}

.toggle-btn:hover{
    background:#3e2723;
    transform:translateY(-2px);
}

.toggle-btn.hide{
    display:none;
}

.no-result{
    display:none;
    text-align:center;
    margin-top:24px;
    font-size:16px;
    color:#777;
}

/* =========================
   ABOUT
========================= */

.about{
    background:#f5eee8;
    padding:80px 20px;
}

.about-header{
    text-align:center;
    margin-bottom:50px;
}

.about-header h2{
    font-size:38px;
}

.subtitle{
    color:#a67c52;
    letter-spacing:2px;
    font-size:12px;
}

.divider{
    width:60px;
    height:3px;
    background:#a67c52;
    margin:15px auto;
}

.about-content{
    display:flex;
    align-items:center;
    gap:50px;
    flex-wrap:wrap;
}

.about-text{
    flex:1;
}

.about-text p{
    margin-bottom:15px;
}

.about-features{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    margin-top:20px;
}

.feature{
    background:#fff;
    padding:18px;
    border-radius:12px;
    flex:1;
    min-width:200px;
}

.about-image{
    flex:1;
}

.about-image img{
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* =========================
   CONTACT
========================= */

.contact{
    padding:80px 0;
}

.contact form{
    display:grid;
    gap:15px;
    max-width:550px;
    margin:auto;
}

.contact input,
.contact textarea{
    padding:14px;
    border-radius:10px;
    border:1px solid #ccc;
    font:inherit;
}

.contact textarea{
    min-height:140px;
    resize:vertical;
}

.contact button{
    border:none;
    cursor:pointer;
}

/* =========================
   FOOTER
========================= */

.footer{
    background:#3e2723;
    color:#fff;
    padding:40px 0 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.footer-item h3{
    color:#ffca28;
    margin-bottom:10px;
}

.footer-item p{
    margin-bottom:8px;
    font-size:14px;
}

.footer-item.center{
    text-align:center;
}

.footer-logo img{
    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;
    margin:auto;
    margin-top:10px;
}

.copyright{
    text-align:center;
    margin-top:25px;
    opacity:0.7;
    font-size:13px;
}

/* =========================
   TABLET
========================= */

@media(max-width:992px){
    .products-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .container{
        width:92%;
    }

    .navbar{
        flex-direction:column;
        text-align:center;
    }

    .logo{
        flex-direction:column;
    }

    .logo img{
        width:75px;
        height:75px;
    }

    .logo-text{
        font-size:14px;
    }

    .nav-links{
        justify-content:center;
        gap:12px;
    }

    .hero{
        padding:60px 0;
    }

    .hero-overlay{
        padding:35px 16px;
    }

    .hero-text p{
        font-size:15px;
    }

    .brand-logos{
        gap:10px;
        margin-top:30px;
    }

    .brand-logos img{
        width:75px;
        height:45px;
        padding:5px;
    }

    .products{
        padding:60px 0;
    }

    .products-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    /* HP: sebelum Show More tampil 2 produk penuh, bukan 1 setengah */
    .products-grid:not(.active) .product-item:nth-child(n + 3){
        display:none;
    }

    .product-item{
        width:100%;
        padding:16px;
    }

    .product-item img{
        height:220px;
    }

    .about-content{
        flex-direction:column;
        text-align:center;
    }

    .about-features{
        flex-direction:column;
    }

    .section-title{
        font-size:1.8rem;
    }
}

@media(max-width:480px){
    .nav-links{
        gap:10px;
        font-size:14px;
    }

    .product-item img{
        height:200px;
    }

    .toggle-btn{
        width:100%;
        max-width:220px;
    }
}
