:root {
    --primary: #E50000;
    --primary-dark: #cc0000;
    --bg-dark: #111111;
    --bg-card: #1E1E1E;
    --text-main: #FFFFFF;
    --text-muted: #AAAAAA;
    --accent: #FFC72C;
    --glass-bg: rgba(30, 30, 30, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Header & Hero */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(255, 199, 44, 0.3); /* Soft yellow glow matching the logo */
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.logo span { color: var(--primary); }

.user-profile {
    display: none;
    align-items: center;
    gap: 0.5rem;
}
.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}
.user-profile span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Auth Overlay */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}
.auth-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 0 40px rgba(229,0,0,0.3);
}
.auth-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.auth-overlay p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}
.google-btn {
    background: white;
    color: black;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
    transition: transform 0.2s;
}
.google-btn:active { transform: scale(0.95); }
.google-icon { width: 24px; height: 24px; }

.hero {
    height: 220px;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2)), url('images/combo_premium_1784306806187.png') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    position: relative;
}
.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Categories */
.category-nav {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
}
.category-nav::-webkit-scrollbar { display: none; }

.category-pill {
    padding: 0.8rem 1.5rem;
    background: var(--bg-card);
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: 0.3s ease;
}
.category-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(229, 0, 0, 0.4);
}

/* Menu Grid */
.menu-section {
    padding: 1.5rem;
    padding-bottom: 100px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}
.product-card:active { transform: scale(0.98); }

.product-image {
    width: 100%;
    height: 140px;
    background: #222;
    object-fit: cover;
}

.bestseller-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.product-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    flex: 1;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price {
    font-weight: 700;
    font-size: 1.1rem;
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(229, 0, 0, 0.3);
}

.qty-controls {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 4px;
}
.qty-controls.active { display: flex; }

.qty-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-count {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 16px;
    text-align: center;
}

/* Floating Cart Bar */
.cart-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--primary);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(229,0,0,0.4);
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    cursor: pointer;
}
.cart-bar.visible { transform: translateY(0); }
.cart-info { font-weight: 600; }
.cart-view { font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }

/* Checkout Sidebar/Modal */
.checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.checkout-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 24px 24px 0 0;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.cart-items {
    margin-bottom: 1.5rem;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    align-items: center;
}
.cart-item-name { font-weight: 600; }
.cart-item-price { color: var(--text-muted); font-size: 0.9rem; }

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

input {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}
input:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(229,0,0,0.3);
}
.submit-btn:disabled {
    background: #555;
    box-shadow: none;
}

/* Success State */
.success-state {
    display: none;
    text-align: center;
    padding: 2rem 0;
}
.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}
.tracker {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
}
.tracker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}
.track-step {
    background: var(--bg-card);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 2px solid rgba(255,255,255,0.1);
}
.track-step.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(229,0,0,0.5);
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    .logo-wrapper {
        gap: 0.5rem;
    }
    .logo {
        font-size: 1.4rem;
    }
    .brand-logo {
        width: 35px;
        height: 35px;
    }
    .user-profile span {
        display: none; /* Hide name on narrow screens to save space */
    }
    
    /* Auth Screen Fixes */
    .auth-overlay {
        padding: 1.5rem;
        overflow-y: auto;
    }
    .auth-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 1.5rem;
    }
    .auth-overlay h1 {
        font-size: 2rem;
    }
    .auth-overlay p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .google-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
    
    /* Hero & Categories */
    .hero {
        padding: 1.5rem 1rem;
        height: 180px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .category-nav {
        padding: 1rem;
    }
    .category-pill {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Menu Grid Fixes (Force exactly 2 items side-by-side) */
    .menu-section {
        padding: 1rem;
        padding-bottom: 100px;
    }
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .product-image {
        height: 110px;
    }
    .product-info {
        padding: 0.8rem;
    }
    .product-info h3 {
        font-size: 0.9rem;
    }
    .product-info p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    .price {
        font-size: 0.95rem;
    }
    .add-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    /* Drawer Fixes */
    .cart-bar {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 1rem;
    }
    .checkout-drawer {
        padding: 1.5rem;
    }
    .total-row {
        font-size: 1.1rem;
    }
}

.header-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.header-btn:hover {
    background: var(--primary);
    color: white;
}
.header-btn.logout-btn {
    border-color: #dc3545;
    color: #dc3545;
}
.header-btn.logout-btn:hover {
    background: #dc3545;
    color: white;
}
.cart-btn {
    position: relative;
}
.cart-btn .badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Bottom Navigation */
body {
    padding-bottom: 70px; /* Space for bottom nav */
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}
.nav-item {
    background: transparent;
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
}
.nav-icon {
    font-size: 1.4rem;
    position: relative;
}
.nav-item .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Profile Panel */
.profile-panel {
    position: fixed;
    bottom: 75px;
    right: 15px;
    background: var(--bg-dark);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
    min-width: 200px;
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}
.profile-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}
.profile-header span {
    font-weight: 600;
}
.profile-panel .logout-btn {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.profile-panel .logout-btn:hover {
    background: #dc3545;
    color: white;
}

/* PAGE SYSTEM */
.page {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}
.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nav Active State */
.nav-item.active {
    color: var(--primary);
}

/* ZOMATO FEATURES CSS */
.search-bar { width: 100%; padding: 15px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05); color: white; font-size: 1rem; margin-bottom: 15px; }
.filter-tabs { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 5px; }
.filter-tab { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05); color: white; white-space: nowrap; cursor: pointer; transition: 0.3s; }
.filter-tab.active { background: var(--primary); border-color: var(--primary); }
.veg-icon, .nonveg-icon { display: inline-block; width: 12px; height: 12px; border: 1px solid #4CAF50; border-radius: 2px; position: relative; margin-right: 5px; top: 2px; }
.veg-icon::after { content: ""; position: absolute; top: 2px; left: 2px; right: 2px; bottom: 2px; background: #4CAF50; border-radius: 50%; }
.nonveg-icon { border-color: #f44336; }
.nonveg-icon::after { content: ""; position: absolute; top: 2px; left: 2px; right: 2px; bottom: 2px; background: #f44336; border-radius: 50%; }
.rating-badge { display: inline-flex; align-items: center; gap: 4px; background: #4CAF50; color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; }
.bestseller-tag { position: absolute; top: 10px; left: 10px; background: #FFC107; color: black; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 5; }
.location-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 1.1rem; }
.location-icon { color: var(--primary); font-size: 1.5rem; }


/* LIVE CART BAR */
.cart-bar {
    position: fixed;
    bottom: -100px; /* Hidden state */
    left: 10px;
    right: 10px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 25px rgba(76, 175, 80, 0.4);
    z-index: 900;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.cart-bar.visible {
    bottom: 80px; /* Float above the bottom nav */
}
.cart-info {
    font-size: 1.1rem;
    font-weight: 800;
}
.cart-view {
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

/* LAYOUT TOGGLE UI */
.layout-toggle {
    display: flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}
.layout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.layout-btn.active {
    background: var(--primary);
    color: white;
}

/* --- Notification System --- */
.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.notification-bell .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    display: none;
}

.notification-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 320px;
    max-height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow-y: auto;
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.notification-dropdown.active {
    display: flex;
}

.notification-dropdown-header {
    padding: 15px;
    font-weight: 800;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.notification-item:hover {
    background: #f9f9f9;
}
.notification-item.unread {
    background: #fff5f5;
}
.notification-item-title {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}
.notification-item-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.notification-item-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
    align-self: flex-end;
}

/* --- Toast Notifications --- */
#toastContainer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: white;
    color: var(--text-dark);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--primary);
    pointer-events: auto;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== WEB MENU UX POLISH ========== */

/* Accessible icon button base */
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}
.icon-btn:hover,
.icon-btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}
.icon-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--primary);
}
.icon-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Notification bell with real icon */
.notification-bell {
    color: var(--text-main);
}
.notification-bell .icon-btn {
    position: relative;
}
.notification-bell .badge {
    top: 4px;
    right: 4px;
}

/* Location pin icon */
.location-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: rgba(229, 0, 0, 0.12);
    color: var(--primary);
}
.location-icon-svg svg {
    width: 22px;
    height: 22px;
}

/* Config-driven promo banner */
.promo-banner-wrap {
    padding: 0 1rem;
    margin-bottom: 15px;
}
.promo-banner-wrap.hidden {
    display: none !important;
}
.promo-banner {
    width: 100%;
    min-height: 110px;
    background: linear-gradient(135deg, #FF9800, #F44336);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
    overflow: hidden;
    position: relative;
}
.promo-banner-text {
    z-index: 2;
    max-width: 75%;
}
.promo-banner-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.45);
    line-height: 1.2;
}
.promo-banner-subtitle {
    margin: 6px 0 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.95;
}
.promo-banner-art {
    position: absolute;
    right: 12px;
    bottom: -8px;
    opacity: 0.85;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
}
.promo-banner-art svg {
    width: 72px;
    height: 72px;
}

/* Menu loading skeleton */
.menu-skeleton {
    padding: 0 1rem 100px 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}
.skeleton-img {
    width: 100%;
    height: 120px;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-body {
    padding: 10px;
}
.skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-line.short { width: 55%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.btn {
    height: 32px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Out of stock / unavailable product cards */
.menu-item.unavailable,
.menu-item-grid.unavailable {
    opacity: 1 !important;
    filter: grayscale(0.95);
    background: #161616 !important;
    border-color: #333 !important;
    pointer-events: none;
    cursor: not-allowed;
}
.menu-item.unavailable img,
.menu-item-grid.unavailable img {
    opacity: 0.45;
    filter: grayscale(1);
}
.unavailable-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 6;
    background: #374151;
    color: #f3f4f6;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.unavailable-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.unavailable-label svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* Larger tap targets for add / qty controls */
.add-btn,
button.add-btn {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}
.qty-btn,
button.qty-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.35rem !important;
    touch-action: manipulation;
    border-radius: 8px;
}
.qty-controls.active,
.qty-controls {
    min-height: 48px;
    padding: 2px 4px !important;
}
.filter-tab {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    touch-action: manipulation;
}
.layout-btn {
    min-width: 44px;
    min-height: 44px;
}
.search-bar {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 1rem;
}

/* Clearer sticky cart total bar */
.cart-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: -120px;
    background: linear-gradient(135deg, #E50000 0%, #b80000 100%);
    color: white;
    padding: 12px 14px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 28px rgba(229, 0, 0, 0.45);
    z-index: 900;
    transition: bottom 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.35s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 64px;
    transform: none;
}
.cart-bar.visible {
    bottom: 78px;
    transform: none;
}
.cart-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.cart-count-pill {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.cart-bar-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.cart-bar-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}
.cart-bar-total {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
}
.cart-bar-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    min-height: 44px;
}
.cart-bar-right svg {
    width: 18px;
    height: 18px;
}

/* Bottom nav larger targets + SVG icons */
.bottom-nav {
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--glass-border);
}
.nav-item {
    min-width: 64px;
    min-height: 56px;
    padding: 6px 8px;
    gap: 2px;
    touch-action: manipulation;
    color: var(--text-muted);
}
.nav-item .nav-icon {
    font-size: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.nav-item .nav-icon svg {
    width: 24px;
    height: 24px;
}
.nav-item .badge {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}
.nav-item span:not(.nav-icon):not(.badge) {
    font-size: 0.72rem;
    font-weight: 600;
}
.nav-item.active {
    color: var(--primary);
}

/* Profile rows with icons */
.profile-row {
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    min-height: 56px;
    touch-action: manipulation;
}
.profile-row:last-child {
    border-bottom: none;
}
.profile-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.profile-row-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.profile-row-icon svg {
    width: 20px;
    height: 20px;
}
.profile-row-label {
    font-size: 1.05rem;
    font-weight: 600;
}
.profile-row-chevron {
    color: var(--text-muted);
    display: inline-flex;
}
.profile-row-chevron svg {
    width: 18px;
    height: 18px;
}

/* Cart item remove button */
.cart-remove-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 77, 79, 0.12);
    border: 1px solid rgba(255, 77, 79, 0.35);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ff4d4f;
    touch-action: manipulation;
}
.cart-remove-btn svg {
    width: 18px;
    height: 18px;
}

/* Focus visibility for interactive filter/layout controls */
.layout-btn:focus-visible,
.filter-tab:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .promo-banner-title {
        font-size: 1.25rem;
    }
    .promo-banner-art svg {
        width: 56px;
        height: 56px;
    }
    .cart-bar {
        left: 10px;
        right: 10px;
        padding: 10px 12px;
    }
    .cart-bar.visible {
        bottom: 72px;
    }
    .cart-bar-total {
        font-size: 1.05rem;
    }
    .cart-bar-right {
        padding: 8px 12px;
        font-size: 0.78rem;
    }
    .menu-skeleton {
        gap: 10px;
    }
}
