/*
    MENU CARD
*/
.menu-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    margin-bottom: 20px;
}

.sidebar-header {
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 12px;
}

.sidebar-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.menu-category-item {
    border-bottom: 1px solid #f5f5f5;
}

.menu-category-item:last-child {
    border-bottom: none;
}

.menu-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    transition: .2s ease;
}

.menu-category-header:hover {
    color: #28a745;
}

.menu-count {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #999;
}

.menu-category-body {
    padding-bottom: 12px;
}

.menu-category-link,
.menu-subcategory-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s ease;
    text-decoration: none !important;
}

.menu-category-link {
    background: #f8f9fa;
    font-weight: 600;
}

.menu-subcategory-link {
    background: #fcfcfc;
    margin-left: 12px;
    font-size: 13px;
}

.menu-category-link:hover,
.menu-subcategory-link:hover {
    background: #28a745;
    color: #fff !important;
}

.badge-count {
    background: rgba(0,0,0,.08);
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 11px;
}

.menu-category-link:hover .badge-count,
.menu-subcategory-link:hover .badge-count {
    background: rgba(255,255,255,.2);
}

/*
    MENU CARD CSS
*/
.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.menu-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #222;
}

.menu-variant {
    color: #888;
    font-size: 13px;
}

.menu-price {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    white-space: nowrap;
}

.menu-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.menu-card-footer {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    border: none;
    background: #f8f9fa;
    width: 36px;
    height: 36px;
    transition: .2s ease;
}

.qty-btn:hover {
    background: #28a745;
    color: #fff;
}

.qty-input {
    width: 48px;
    border: none;
    text-align: center;
    font-weight: 600;
}

.btn-add-cart {
    border: none;
    background: #28a745;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    transition: .2s ease;
}

.btn-add-cart:hover {
    background: #218838;
}

.btn-unavailable {
    border: none;
    background: #ddd;
    color: #666;
    padding: 10px 18px;
    border-radius: 10px;
}

.menu-badge-unavailable {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(220,53,69,.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

/*
    MENU CART SUMMARY
*/
.cart-summary-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.cart-summary-header {
    padding: 20px;
    border-bottom: 1px solid #f3f3f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.cart-item-count {
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.cart-summary-body {
    max-height: 420px;
    overflow-y: auto;
    padding: 18px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    margin-right: 14px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-content {
    flex: 1;
}

.cart-item-content h6 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
}

.cart-item-meta {
    font-size: 12px;
    color: #777;
}

.btn-remove-cart {
    border: none;
    background: #fff0f0;
    color: #dc3545;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    transition: .2s ease;
}

.btn-remove-cart:hover {
    background: #dc3545;
    color: #fff;
}

.cart-summary-footer {
    border-top: 1px solid #f3f3f3;
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-total {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed #ddd;
}

.summary-total span {
    font-size: 13px;
    color: #777;
}

.summary-total h3 {
    margin: 6px 0 0;
    font-size: 28px;
    font-weight: 800;
    color: #28a745;
}

.discount-text {
    color: #dc3545;
}

.btn-checkout {
    display: block;
    width: 100%;
    margin-top: 22px;
    background: #28a745;
    color: #fff !important;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .2s ease;
}

.btn-checkout:hover {
    background: #218838;
}

.empty-cart {
    padding: 50px 20px;
    text-align: center;
    color: #888;
}

.empty-cart i {
    font-size: 52px;
    margin-bottom: 16px;
    opacity: .4;
}

/*
    MENU ROOT
*/
.menu-page {
    background: #f6f8fb;
    padding: 30px 0 50px;
    min-height: 100vh;
}

.active-table-card {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 24px rgba(40,167,69,.25);
}

.table-badge {
    font-size: 12px;
    text-transform: uppercase;
    opacity: .8;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.active-table-card h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.menu-loading {
    text-align: center;
    padding: 60px 0;
}

.menu-pagination {
    margin-top: 30px;
    text-align: center;
}

.menu-pagination .pagination {
    justify-content: center;
}

.menu-pagination .pagination li a,
.menu-pagination .pagination li span {
    border-radius: 10px !important;
    margin: 0 4px;
    border: none;
    color: #333;
    padding: 10px 14px;
}

.menu-pagination .pagination .active span {
    background: #28a745;
    color: #fff;
}

.menu-ads-card {
    margin-top: 24px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.menu-ads-card img {
    width: 100%;
    display: block;
}

/*
    MENU BOOKING INFO
*/
.booking-info-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    margin-top: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.booking-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.booking-info-header i {
    font-size: 24px;
    color: #28a745;
    margin-right: 12px;
}

.booking-info-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.booking-info-content {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

/*
    MENU DEAL CARD
*/
.deal-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.deal-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #dc3545;
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.deal-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.deal-content {
    padding: 22px;
    text-align: center;
}

.deal-content h4 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
}

.deal-price {
    font-size: 28px;
    font-weight: 800;
    color: #28a745;
    margin-bottom: 18px;
}

.btn-view-deal {
    display: inline-block;
    background: #28a745;
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .2s ease;
}

.btn-view-deal:hover {
    background: #218838;
}

/*
    MENU EMPTY STATE
*/
.menu-empty-state {
    background: #fff;
    border-radius: 22px;
    padding: 70px 30px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #f6f8fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 42px;
    color: #28a745;
}

.menu-empty-state h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.menu-empty-state p {
    color: #777;
    margin-bottom: 28px;
}

.btn-back-menu {
    display: inline-block;
    background: #28a745;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .2s ease;
}

.btn-back-menu:hover {
    background: #218838;
}

/*
    MENU CARD NEW
*/
.menu-card {
    display: flex;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.menu-card-image {
    width: 180px;
    min-width: 180px;
    position: relative;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-card-body {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.menu-card-title {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #2c2c2c !important;
    line-height: 1.25;
    text-decoration: none !important;
    margin-bottom: 6px;
}

.menu-card-variant {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.menu-card-price {
    font-size: 20px;
    font-weight: 800;
    color: #28a745;
    white-space: nowrap;
}

.menu-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.menu-qty-control {
    display: inline-flex;
    align-items: center;
    height: 42px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.menu-qty-control button {
    width: 42px;
    height: 42px;
    border: 0 !important;
    background: #fff;
    color: #222;
    font-size: 14px;
    cursor: pointer;
}

.menu-qty-control input {
    width: 56px !important;
    height: 42px;
    border: 0 !important;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    outline: none;
}

.menu-add-btn {
    border: 0 !important;
    background: #28a745 !important;
    color: #fff !important;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.menu-add-btn i {
    margin-right: 6px;
}

.menu-disabled-btn {
    border: 0 !important;
    background: #e9ecef;
    color: #777;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 700;
}

.menu-status-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #dc3545;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .menu-card {
        flex-direction: column;
    }

    .menu-card-image {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }

    .menu-card-top,
    .menu-card-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-add-btn,
    .menu-disabled-btn {
        width: 100%;
    }
}