/* ================= BASE ================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fc;
}

/* ================= HEADER ================= */
.header {
    background: #fff;
    padding: 12px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-weight: bold;
    font-size: 18px;
    color: #f3ba2f;
}

/* SEARCH */
#searchInput {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* ================= CONTAINER ================= */
.menu-container {
    width: 95%;
    margin: auto;
    padding: 15px 0;
}

/* ================= SIDEBAR (FIXED) ================= */
.category {
    position: fixed;
    top: 80px; /* tepat di bawah header */
    left: 2.5%;
    width: 200px;
    /*background: #fff;*/
    padding: 15px;
    border-radius: 12px;
     border-left: solid 1px #cdcdcd;
    /*box-shadow: 0 4px 10px rgba(0,0,0,.1);*/
    height: fit-content;
    z-index: 999;
}

.category h3 {
    margin-bottom: 10px;
    color: #f3ba2f;
}

.category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category li {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 6px;
    transition: 0.2s;
}

.category li:hover,
.category li.active {
    background: #f3ba2f;
    color: #fff;
}

/* ================= CONTENT ================= */
.menu-content {
    margin-left: 230px; /* JARAK dari sidebar */
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* CARD */
.card {
        border-radius: 15px;
    padding: 12px;
    border: solid 1px #cdcdcd;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-3px);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.card h3 {
    margin: 8px 0 4px;
}

.price {
    font-weight: bold;
    color: #14c784;
    font-size: 16px;
}

.note {
    font-size: 11px;
    color: #777;
}

/* ================= MOBILE MODE ================= */
@media (max-width: 768px) {

    .menu-container {
        width: 100%;
        padding: 10px;
    }

    /* SIDEBAR MOBILE */
    .category {
        width: 110px;
        left: 10px;
        top: 70px;
        padding: 10px;
    }

    .category li {
        font-size: 13px;
        padding: 8px;
    }

    /* CONTENT SHIFT */
    .menu-content {
        margin-left: 130px;
    }

    /* LIST VIEW */
    .grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

    .card img {
        width: 70px;
        height: 70px;
        border-radius: 8px;
    }

    .card h3 {
        font-size: 14px;
        margin: 0;
    }

    .price {
        font-size: 14px;
    }
}
