/* ========================================================
   KODLAQR CUSTOMER QR MENU - MOBILE-FIRST LUXURY EXPERIENCE
   ======================================================== */
.menu-app {
    max-width: 680px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-main);
    color: var(--text-main);
    padding-bottom: 120px; /* Floating action bar offset */
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
}

/* Hero Restaurant Header */
.menu-hero {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, var(--bg-main) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.hero-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-badge-chip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: pulseGold 2s infinite;
}

.hero-actions {
    display: flex;
    gap: 8px;
}

.icon-chip-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.icon-chip-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.08);
}

/* Restaurant Info Box */
.restaurant-profile {
    padding: 0 20px;
    margin-top: -45px;
    position: relative;
    z-index: 10;
}

.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
}

.restaurant-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: var(--bg-card);
}

.restaurant-details h1 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2px;
    color: var(--text-main);
}

.restaurant-details p {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Quick Search & Filters */
.menu-search-wrapper {
    padding: 16px 20px 8px 20px;
}

.search-input-box {
    position: relative;
}

.search-input-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.search-input-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Sticky Category Pills */
.category-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.category-pill {
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.category-pill:hover,
.category-pill.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* Menu Section & Product List */
.menu-section {
    padding: 24px 20px 10px 20px;
    transition: all 0.3s ease;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.cat-count-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary);
}

.accordion-arrow {
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.menu-section.collapsed .products-grid {
    display: none !important;
}

.menu-section.collapsed .accordion-arrow {
    transform: rotate(-90deg);
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: var(--shadow-md);
}

.product-img-box {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--bg-input);
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-box img {
    transform: scale(1.08);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.product-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.tag-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.tag-badge.spicy { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.tag-badge.vegan { background: rgba(16, 185, 129, 0.15); color: #059669; }

.product-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.old-price {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-right: 6px;
}

.add-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.add-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

/* ========================================================
   FLOATING ACTION BAR - WAITER CALL & BILL TRIGGER
   ======================================================== */
.floating-bottom-bar {
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 580px;
    box-sizing: border-box;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 6px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.bar-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 6px;
    border-radius: var(--radius-full);
    border: none;
    font-family: var(--font-heading);
    font-size: clamp(0.7rem, 2.7vw, 0.85rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-call-waiter {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-call-waiter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.btn-ask-bill {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-ask-bill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-extra-req {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    flex: 0 0 38px;
    min-width: 38px;
    padding: 9px 0;
}

.btn-cart-view {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #059669;
    position: relative;
}

.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #10b981;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .floating-bottom-bar {
        width: calc(100% - 14px);
        padding: 5px 6px;
        gap: 3px;
    }
    .bar-btn {
        padding: 8px 4px;
        font-size: 0.72rem;
        gap: 3px;
    }
    .btn-extra-req {
        flex: 0 0 34px;
        min-width: 34px;
    }
}

