/* ===========================
   RESET
=========================== */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: .3s;
}

.menu a:hover {
    color: #ff5722;
}

/* ===========================
   HEADER
=========================== */

.hero {
    background: linear-gradient(135deg,#111,#2b2b2b);
    text-align: center;
    color: white;
    padding: 70px 20px;
}

.logo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    padding: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    letter-spacing: 2px;
}

.hero p {
    margin-top: 12px;
    color: #ddd;
    font-size: 18px;
}

/* ===========================
   BANNER
=========================== */

.banner {
    padding: 25px;
}

.banner img {
    width: 100%;
    border-radius: 18px;
    display: block;
    transition: opacity .5s ease;
}

/* ===========================
   SEARCH
=========================== */

.search-box {
    display: flex;
    justify-content: center;
    padding: 10px 20px 35px;
}

.search-box input {
    width: 100%;
    max-width: 650px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    outline: none;
}

/* ===========================
   KATEGORI
=========================== */

.kategori{
    display:flex;
    gap:15px;
    overflow-x:auto;
    padding:20px;
    scroll-behavior:smooth;
}

.kategori::-webkit-scrollbar{
    display:none;
}

.kategori button{
    flex:none;
    padding:14px 28px;
    border:none;
    border-radius:40px;
    background:#ececec;
    cursor:pointer;
    font-size:16px;
    font-weight:bold;
    transition:.3s;
}

.kategori button:hover{
    background:#111;
    color:#fff;
}

.kategori button.active{
    background:#111;
    color:#fff;
}


/* ===========================
   PRODUK
=========================== */

.products {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 30px;
    padding: 40px 20px;
}

.card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
}

.card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #eee;
    display: block;
}

.content {
    padding: 22px;
}

.kode {
    display: inline-block;
    background: #111;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

.content h2 {
    font-size: 24px;
    min-height: 70px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.info {
    display: flex;
    justify-content: space-between;
    color: #777;
    margin-bottom: 18px;
    font-size: 15px;
}

.harga {
    color: #ff5722;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
}

.content a {
    display: block;
    text-align: center;
    text-decoration: none;
    background: #111;
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    transition: .3s;
}

.content a:hover {
    background: #ff5722;
    transform: translateY(-3px);
}

/* ===========================
   BADGE
=========================== */

.badge-viral {
    display: inline-block;
    background: #ff3d00;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 15px;
}

.badge-baru {
    display: inline-block;
    background: #00b894;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:768px){

    .navbar{
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .menu{
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1{
        font-size: 34px;
    }

    .products{
        grid-template-columns: 1fr;
    }

}