/* ==========================================
   DETAIL RESTORAN
========================================== */

.detail-resto{
    padding:35px 0 20px;
}

.detail-banner{
    width:100%;
    height:320px;
    overflow:hidden;
    border-radius:18px;
    background:#f5f5f5;
}

.detail-banner img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.detail-banner-empty{
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#777;
}

.detail-banner-empty span{
    font-size:48px;
}

.detail-banner-empty p{
    margin:8px 0 0;
}


/* ==========================================
   INFO RESTORAN
========================================== */

.detail-info{
    padding:22px 5px 10px;
}

.detail-top{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:8px;
}

.detail-rating{
    font-weight:600;
    color:#333;
}

.detail-info h1{
    margin:5px 0 10px;
    font-size:32px;
    line-height:1.2;
}

.detail-info p{
    margin:7px 0;
    color:#666;
    font-size:15px;
}

.detail-kategori{
    font-weight:600;
    color:#333 !important;
}


/* ==========================================
   STATUS
========================================== */

.open,
.closed{
    display:inline-flex;
    align-items:center;
    padding:5px 11px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.open{
    background:#e8f7ed;
    color:#198754;
}

.closed{
    background:#fdeaea;
    color:#dc3545;
}


/* ==========================================
   MENU SECTION
========================================== */

.menu-section{
    padding:20px 0 70px;
}

.section-heading{
    margin-bottom:25px;
}

.section-heading h2{
    margin:0 0 6px;
    font-size:26px;
    line-height:1.3;
}

.section-heading p{
    margin:0;
    color:#777;
    font-size:15px;
}


/* ==========================================
   MENU GRID
========================================== */

.menu-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
}


/* ==========================================
   MENU CARD
========================================== */

.menu-card{
    display:flex;
    flex-direction:column;
    overflow:hidden;
    background:#fff;
    border:1px solid #eee;
    border-radius:16px;
    box-shadow:0 5px 18px rgba(0,0,0,.06);
    transition:transform .2s ease, box-shadow .2s ease;
}

.menu-card:hover{
    transform:translateY(-3px);
    box-shadow:0 9px 25px rgba(0,0,0,.09);
}


/* ==========================================
   GAMBAR MENU
========================================== */

.menu-image{
    width:100%;
    height:190px;
    overflow:hidden;
    background:#f5f5f5;
}

.menu-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.menu-image-empty{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:45px;
    color:#aaa;
}


/* ==========================================
   MENU CONTENT
========================================== */

.menu-content{
    padding:17px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.menu-content h3{
    margin:0 0 7px;
    font-size:19px;
    line-height:1.3;
    color:#222;
}

.menu-description{
    margin:0 0 14px;
    color:#777;
    font-size:14px;
    line-height:1.5;

    /*
     * Batasi deskripsi agar semua card
     * tetap terlihat rapi.
     */
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}


/* ==========================================
   HARGA
========================================== */

.menu-price{
    margin-top:auto;
    margin-bottom:14px;
}

.menu-price strong{
    display:block;
    color:#ff6b00;
    font-size:18px;
}

.price-old{
    display:block;
    color:#999;
    text-decoration:line-through;
    font-size:13px;
    margin-bottom:2px;
}


/* ==========================================
   TOMBOL TAMBAH
========================================== */

.btn-add-menu{
    width:100%;
    border:none;
    padding:11px 15px;
    border-radius:10px;
    background:#ff6b00;
    color:#fff;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:background .2s ease, transform .2s ease;
}

.btn-add-menu:hover{
    background:#e85f00;
}

.btn-add-menu:active{
    transform:scale(.98);
}


/* ==========================================
   MENU KOSONG
========================================== */

.menu-empty{
    grid-column:1 / -1;
    padding:40px 20px;
    text-align:center;
    background:#f8f8f8;
    border-radius:14px;
    color:#777;
}


/* ==========================================
   FLOATING CART
========================================== */

.cart-floating{
    position:fixed;
    right:25px;
    bottom:25px;
    width:58px;
    height:58px;
    background:#ff6b00;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
    z-index:999;
    cursor:pointer;
}

#cart-count{
    position:absolute;
    top:-5px;
    right:-5px;
    min-width:22px;
    height:22px;
    padding:0 5px;
    background:#dc3545;
    color:#fff;
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:bold;
}


/* ==========================================
   RESPONSIVE TABLET
========================================== */

@media (max-width:900px){

    .menu-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    .detail-banner{
        height:280px;
    }

}


/* ==========================================
   RESPONSIVE MOBILE
========================================== */

@media (max-width:600px){

    .detail-resto{
        padding:20px 0 15px;
    }

    .detail-banner{
        height:210px;
        border-radius:14px;
    }

    .detail-info{
        padding:18px 0 5px;
    }

    .detail-info h1{
        font-size:25px;
    }

    .detail-info p{
        font-size:14px;
    }

    .menu-section{
        padding:15px 0 50px;
    }

    .section-heading{
        margin-bottom:18px;
    }

    .section-heading h2{
        font-size:22px;
    }

    .menu-grid{
        grid-template-columns:1fr;
        gap:15px;
    }

    .menu-image{
        height:210px;
    }

    .menu-content{
        padding:15px;
    }

    .menu-content h3{
        font-size:18px;
    }

    .cart-floating{
        right:18px;
        bottom:18px;
    }

}