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

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#e5e5e5;
    display:flex;
    justify-content:center;
}

/* =========================
   CONTAINER
========================= */

.container{
    width:100%;
    max-width:420px;
    min-height:100vh;
    background:#ffffff;
    overflow:hidden;
}

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

.header{
    position:relative;
}

.header img{
    width:100%;
    display:block;
}

/* =========================
   HAMBURGER MENU
========================= */

.hamburger{
    position:absolute;
    top:12px;
    right:12px;

    background:transparent;
    border:none;

    color:white;

    font-size:50px;
    font-weight:bold;

    cursor:pointer;
    z-index:1001;
}

/* =========================
   SIDEBAR
========================= */

.sidebar{
    position:fixed;
    top:0;
    right:-280px;

    width:260px;
    height:100vh;

    background:#ffffff;

    box-shadow:-4px 0 15px rgba(0,0,0,0.2);

    transition:0.3s ease;

    z-index:1000;
}

.sidebar.active{
    right:0;
}

.sidebar-header{
    background:#e53935;
    color:white;
    padding:20px;
}

.sidebar-header h3{
    font-size:20px;
}

.sidebar a{
    display:block;
    padding:15px 20px;

    text-decoration:none;
    color:#333;

    font-weight:bold;

    border-bottom:1px solid #eeeeee;
}

.sidebar a:hover{
    background:#f5f5f5;
}

/* =========================
   INFO WARLOM
========================= */

.info{
    margin:15px;
    background:#d9d9d9;
    border-radius:15px;
    padding:15px;

    position:relative;

    min-height:80px;

    display:flex;
    align-items:center;
}

.info-text{
    width:100%;
}

.info-text h3{
    font-size:22px;
    font-weight:700;
}

.info-text p{
    margin-top:5px;
    color:#444;
    font-size:14px;
}

/* PANAH KE HALAMAN JAM OPERASIONAL */

.info-arrow{
    position:absolute;

    right:20px;
    top:50%;

    transform:translateY(-50%);

    text-decoration:none;

    color:#000;

    font-size:25px;
    font-weight:bold;

    line-height:1;

    cursor:pointer;
}

/* =========================
   NOMOR MEJA
========================= */

.meja{
    margin:0 15px 15px;

    background:#e53935;
    color:white;

    text-align:center;

    padding:12px;

    border-radius:12px;

    font-size:16px;
    font-weight:bold;
}

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

.kategori{
    display:flex;
    justify-content:space-around;
    align-items:center;

    margin:15px 0;
}

.kategori a{
    text-decoration:none;

    color:#000;

    font-size:18px;
    font-weight:700;

    padding-bottom:5px;
}

.kategori a.aktif{
    border-bottom:3px solid #e53935;
}

/* =========================
   GRID MENU
========================= */

.menu-grid{
    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:12px;

    padding:0 12px 20px;
}

/* =========================
   CARD MENU
========================= */

.card{
    background:#d9d9d9;

    border-radius:15px;

    padding:12px;

    display:flex;
    flex-direction:column;

    min-height:240px;
}

.card img{
    width:100%;
    max-width:120px;
    height:120px;

    object-fit:contain;

    margin:0 auto 10px;
}

.card h4{
    font-size:15px;
    font-weight:bold;

    line-height:1.2;

    margin-bottom:5px;
}

.card p{
    font-size:15px;
    font-weight:bold;

    margin-bottom:10px;
}

/* TOMBOL PESAN */

.btn-pesan{
    margin-top:auto;

    width:80%;
    max-width:120px;
    height:32px;

    background:#e53935 !important;
    color:#ffffff !important;

    text-decoration:none !important;

    border-radius:8px;

    display:flex !important;
    justify-content:center;
    align-items:center;

    font-size:14px;
    font-weight:bold;

    align-self:center;
}

.btn-pesan:link{
    color:#ffffff !important;
}

.btn-pesan:visited{
    color:#ffffff !important;
}

.btn-pesan:hover{
    color:#ffffff !important;
    opacity:0.9;
}

.btn-pesan:active{
    color:#ffffff !important;
}

/* =========================
   HP KECIL
========================= */

@media (max-width:360px){

    .info h3{
        font-size:18px;
    }

    .info p{
        font-size:12px;
    }

    .meja{
        font-size:14px;
    }

    .kategori a{
        font-size:16px;
    }

    .card{
        min-height:210px;
    }

    .card img{
        max-width:90px;
        height:90px;
    }

    .card h4{
        font-size:14px;
    }

    .card p{
        font-size:13px;
    }

    .btn-pesan{
        height:28px;
        font-size:12px;
    }
}

/* =========================
   RIWAYAT PESANAN
========================= */

.riwayat{
    position:fixed;
    top:0;
    right:-100%;

    width:100%;
    max-width:420px;
    height:100vh;

    background:#efefef;

    transition:0.3s ease;

    z-index:2000;

    padding:15px;
}

.riwayat.active{
    right:0;
}

.riwayat-header{
    background:#d9d9d9;
    border-radius:10px;
    padding:12px;

    display:flex;
    align-items:center;
    gap:15px;

    margin-bottom:15px;
}

.riwayat-header button{
    border:none;
    background:none;
    font-size:24px;
    cursor:pointer;
}

.riwayat-header h3{
    flex:1;
    text-align:center;
}

.riwayat-body{
    background:#d9d9d9;
    border-radius:20px;
    padding:18px;
    min-height:80vh;
}

.riwayat-card{
    background:white;
    border-radius:12px;
    padding:15px;
    margin-bottom:15px;
}

.riwayat-card h3{
    margin-bottom:5px;
}

.riwayat-card span{
    display:block;
    margin-top:15px;
    color:#444;
}
/* =========================
   CHECKOUT BAR
========================= */

.checkout-bar{
    position:fixed;
    bottom:0;
    left:50%;
    transform:translateX(-50%);

    width:100%;
    max-width:420px;

    background:#f2f2f2;

    border-top:2px solid #e53935;
    border-radius:25px 25px 0 0;

    padding:20px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    z-index:999;
}

.checkout-bar h3{
    font-size:18px;
    margin-bottom:8px;
}

.checkout-bar h2{
    font-size:26px;
    font-weight:bold;
}

.checkout-btn{
    background:#f39208;
    color:white;

    text-decoration:none;

    padding:18px 25px;

    border-radius:12px;

    font-size:18px;
    font-weight:bold;
}