*{box-sizing:border-box}

html, body{
    height:100%;
}

body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#F6EFE8;
    display:flex;
    flex-direction:column;
}

/* ===== CONTENT ===== */
.container{
    flex:1;
    display:flex;
    padding:30px 40px;
    gap:25px;
}
.left{width:65%}
.right{width:35%}

/* ===== CARD BOX ===== */
.box{
    background:#fff;
    border-radius:15px;
    padding:20px;
    margin-bottom:25px;
    box-shadow:0 2px 6px rgba(0,0,0,.08);
}
.box h3{
    margin-top:0;
    display:flex;
    justify-content:space-between;
}
.box h3 .lihat{
    float:right;
    font-size:14px;
    text-decoration:none;
    color:black;
}
.box h3 .lihat:hover{
    color:#5a6fe0;
}
.box h3 .lihatsemuanya{
    text-decoration:none;
    color:blue;
    font-size:medium;
}

/* ===== MENU ===== */
.menu-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
}
.card{text-align:center}
.card img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:10px;
}
.card p{
    margin:5px 0 0;
    color:#8B5A2B;
    font-weight:bold;
}

/* ===== TAMBAH KERANJANG ===== */
.card form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.card form input[type="number"] {
    width: 50px !important;
    height: 36px;
    padding: 6px;
    border: 2px solid #e0d5cc;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #5a3e2b;
    background: #fdf8f3;
    transition: all 0.2s ease;
}

.card form input[type="number"]:focus {
    outline: none;
    border-color: #c9a87c;
    background: #fff;
}

.card form button[type="submit"] {
    background: #8B5A2B;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card form button[type="submit"]:hover {
    background: #6d4420;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.35);
}

.card form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 90, 43, 0.25);
}

/* ===== FORM ===== */
.form input,
.form textarea,
.form select,
.form button{
    width:100%;
    padding:10px;
    margin-bottom:12px;
    border-radius:20px;
    border:1px solid #ddd;
}
.form button{
    background:#ddd;
    border:none;
    font-weight:bold;
    transition:0.3s;
}
.form button:hover{
    color:#5a6fe0;
}
label{
    font-size:11px;
    padding:10px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    body{ font-size:14px; }

    .container{
        flex-direction:column;
        padding:15px;
        gap:20px;
    }

    .left,.right{
        width:100%;
    }

    .box{
        padding:15px;
        border-radius:12px;
    }

    .box h3{
        font-size:16px;
    }

    .menu-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .card img{
        height:100px;
    }

    .card strong{
        font-size:14px;
    }

    .card p{
        font-size:13px;
    }

    /* ===== TAMBAH KERANJANG RESPONSIVE ===== */
    .card form {
        gap: 6px;
        margin-top: 8px;
    }

    .card form input[type="number"] {
        width: 44px !important;
        height: 32px;
        padding: 4px;
        font-size: 13px;
        border-radius: 8px;
    }

    .card form button[type="submit"] {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 8px;
    }

    .form textarea{
        min-height:80px;
    }

    .form button{
        font-size:15px;
        padding:12px;
    }

    footer{
        font-size:13px;
        padding:15px 10px;
        line-height:1.6;
    }
}