/* Customer Menu & Catalog Styles */

.menu-header-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 1.75rem 1rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.table-badge {
    background: var(--secondary);
    color: var(--text-main);
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Category Filter Bar */
.category-scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem 0 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.category-pills {
    display: inline-flex;
    gap: 0.6rem;
}

.category-pill {
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.category-pill.active,
.category-pill:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Dietary / Veg-NonVeg Toggle */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.food-type-filter {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-btn.active-veg {
    background: #E8F5E9;
    border-color: #2E7D32;
    color: #2E7D32;
}

.filter-btn.active-nonveg {
    background: #FFEBEE;
    border-color: #C62828;
    color: #C62828;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.dish-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.dish-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.dish-image-box {
    position: relative;
    width: 100%;
    height: 180px;
    background: #e2e8f0;
    overflow: hidden;
}

.dish-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-bestseller {
    background: var(--secondary);
    color: var(--text-main);
}

.dish-details {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dish-type-icon {
    width: 14px;
    height: 14px;
    border: 1.5px solid #2E7D32;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.4rem;
    vertical-align: middle;
}
.dish-type-icon.veg::after {
    content: "";
    width: 6px;
    height: 6px;
    background: #2E7D32;
    border-radius: 50%;
}
.dish-type-icon.non-veg {
    border-color: #C62828;
}
.dish-type-icon.non-veg::after {
    content: "";
    width: 6px;
    height: 6px;
    background: #C62828;
    border-radius: 50%;
}

.dish-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.3rem 0;
    color: var(--text-main);
    text-decoration: none;
}

.dish-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    flex-grow: 1;
}

.dish-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    gap: 0.8rem;
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
    margin-top: auto;
}

.dish-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn-add-cart {
    background: #fff;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--accent-red);
    color: #fff;
}

/* Floating Bottom Cart Bar */
.floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: var(--text-main);
    color: #fff;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}