﻿.landing-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-logo-icon {
    width: 180px; /* adjust size */
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background: white; /* optional */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .landing-logo-icon img.logo-img {
        width: 100%;
        height: 100%;
    }



.landing-logo-icon1 {
    width: 80px; /* adjust size */
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: white; /* optional */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .landing-logo-icon1 img.logo-img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* or 'contain' if you want full logo visible */
    }


:root {
    /* 🎨 DYNAMIC THEME VARIABLES - Compatible with theme switcher */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #f1f5f9;
    --secondary-foreground: #334155;
    --success: #22c55e;
    --destructive: #ef4444;
    /* Neutral colors */
    --background: #ffffff;
    --surface: #f8fafc;
    --surface-hover: #f1f5f9;
    --border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100svh;
    overflow: hidden;
    background: var(--surface);
    color: var(--text-primary);
    user-select: none;
    -webkit-user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.image-skeleton {
    animation: shimmer 1.5s ease-in-out infinite;
}

.image-wrapper img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .image-wrapper img:not(.lazy-image) {
        opacity: 1;
    }

/* ========================================
   SCROLLBARS
======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0; /* light grey background */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #bfbfbf; /* medium grey scrollbar thumb */
    border-radius: 10px;
    transition: background 0.3s ease;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #a6a6a6; /* slightly darker grey on hover */
    }

/* ========================================
   CONTAINER
======================================== */
.kiosk-container {
    width: 100%;
    height: 100svh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   HEADER
======================================== */
.header {
    background: var(--background);
    padding: 20px 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    height: 88px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: all 0.3s ease;
}

.logo h1 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.time {
    font-weight: 700;
    /*color: var(--text-primary);*/
    font-size: 16px;
}

/* ========================================
   LANGUAGE SELECTOR
======================================== */
.language-selector {
    position: absolute;
    top: 24px;
    right: 32px;
    z-index: 200;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-button {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

    .language-button:hover {
        background: var(--surface-hover);
        border-color: var(--primary);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.language-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--background);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    overflow: hidden;
}

    .language-options.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.language-option {
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-weight: 500;
}

    .language-option:hover {
        background: var(--surface-hover);
    }

    .language-option.active {
        background: rgba(255, 255, 255, 0.95);
        color: black;
        font-weight: 600;
    }

.language-flag {
    font-size: 22px;
}

/* ========================================
   MAIN LAYOUT
======================================== */
.main-content {
    flex: 1;
    display: flex;
    height: calc(100svh - 88px);
    background: var(--surface);
}

/* ========================================
   NAVIGATION SIDEBAR
======================================== */
.navigation-sidebar {
    width: 280px;
    background: var(--background);
    box-shadow: var(--shadow-sm);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    z-index: 50;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding-bottom: calc(80px + 40px);
}

.nav-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding: 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    color: var(--text-muted);
}

.category-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* ========================================
   CATEGORY TAB IMAGES
======================================== */

/* Category tab container */
.category-tab-container {
    display: flex;
    align-items: center;
    gap: 1rem; /* 16px */
}

.subcategory-tab-container {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
}

/* Category icon images */
.category-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
}

.subcategory-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
}

/* Category text */
.category-name {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.subcategory-name {
    font-size: 0.875rem; /* 14px */
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.category-tab {
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-align: left;
    display: block;
    position: relative;
}

    /*   .category-tab:hover {
        background: var(--surface-hover);
        color: var(--text-primary);
    }*/

    .category-tab.active {
        background: var(--primary);
        color: white;
        box-shadow: var(--shadow-md);
    }

    /* Remove emoji icons since we're using images */
    .category-tab::before {
        content: none;
        display: none;
    }

/* Subcategories */
.subcategory-container {
    margin-left: 20px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 3px solid var(--primary-light);
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

    .subcategory-container.show {
        max-height: 600px;
        opacity: 1;
    }

.subcategory-tab {
    padding: 12px 20px;
    min-height: 52px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--background);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    border: 1px solid transparent;
    display: block;
}

    .subcategory-tab:hover {
        background: var(--surface-hover);
        transform: translateX(3px);
        border-color: var(--primary-light);
    }

    .subcategory-tab.active {
        font-weight: 600;
        border-color: var(--primary);
        transform: translateX(5px);
    }

/* Enhanced Scrollbar */
.category-tabs::-webkit-scrollbar {
    width: 8px;
}

.category-tabs::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 10px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

    .category-tabs::-webkit-scrollbar-thumb:hover {
        background: var(--primary-hover);
    }

/* Animation for subcategory slide */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.subcategory-tab {
    animation: slideInLeft 0.3s ease forwards;
}

/* Mobile responsive adjustments */
@media (max-width: 992px) {
    .navigation-sidebar {
        width: 100%;
        height: auto;
        flex-direction: column;
        overflow-x: visible;
        padding: 20px;
    }

    .nav-title {
        text-align: left;
        margin-bottom: 15px;
    }

    /* Individual category tabs */
    .category-tab {
        flex: 0 0 auto;
        min-width: 120px;
        max-width: 180px;
        padding: 12px 16px;
        background: transparent;
        color: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 0;
        font-size: 13px;
        font-weight: 600;
        white-space: normal;
        text-align: center;
        transition: all 0.3s ease;
        border-bottom: 3px solid transparent;
        position: relative;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        width: auto;
        line-height: 1.3;
    }

    .subcategory-container {
        margin-left: 15px;
        padding-left: 12px;
    }

    .subcategory-tab {
        padding: 14px 18px;
        font-size: 15px;
        min-height: 48px;
    }
}


/* Hide subcategory tabs in mobile navigation */
@media (max-width: 992px) {
    .navigation-sidebar .subcategory-tab {
        display: none !important;
    }

    /* Remove the subcategory container spacing on mobile */
    .navigation-sidebar .ml-6.mt-2.space-y-1 {
        display: none !important;
    }
}

/* Subcategory header styles */
.subcategory-header {
    position: relative;
}

    .subcategory-header:hover {
        opacity: 0.9;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    }

    .subcategory-header:active {
        transform: translateY(0);
    }

/* Collapsed state */
.subcategory-section.collapsed {
    max-height: 0 !important;
    margin-bottom: 0 !important;
    opacity: 0;
}

/* Smooth transitions */
.subcategory-section {
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

/* Icon animation */
.collapse-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .subcategory-header {
        font-size: 18px;
        padding: 14px 16px;
        margin: 16px 0 12px 0;
    }

    .subcategory-section {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .subcategory-section {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}


/* Subcategory image (40px circle) */
.subcategory-tab img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
}

/* Subcategory tab layout */
.subcategory-tab {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
}

    /* Active state */
    .subcategory-tab.active {
        background-color: #e5e7eb; /* bg-gray-300 */
    }



/* Mobile responsive adjustments */
@media (max-width: 992px) {
    .navigation-sidebar {
        width: 100%;
        height: auto;
        flex-direction: column;
        overflow-x: visible;
        padding: 0;
        border-right: none;
        background: transparent;
        box-shadow: none;
    }

    .nav-title {
        display: none;
    }

    /* Category tabs container - horizontal scroll */
    .category-tabs {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        gap: 0;
        padding: 0;
        background: var(--primary);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .category-tabs::-webkit-scrollbar {
            display: none;
        }

    /* Individual category tabs */
    .category-tab {
        flex: 0 0 auto;
        min-width: 120px;
        max-width: 180px;
        padding: 16px 12px;
        background: transparent;
        color: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 0;
        font-size: 13px;
        font-weight: 600;
        white-space: normal;
        text-align: center;
        transition: all 0.3s ease;
        border-bottom: 3px solid transparent;
        position: relative;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        width: auto;
        line-height: 1.3;
    }

        .category-tab.active {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border-bottom-color: white;
            box-shadow: none;
        }

    .category-tab-container {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .category-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
    }

    .category-name {
        font-size: 12px;
        text-align: center;
    }

    /* Hide subcategory container in sidebar completely */
    .navigation-sidebar .subcategory-container {
        display: none !important;
    }

    .navigation-sidebar .ml-6.mt-2.space-y-1 {
        display: none !important;
    }
}

/* ========================================
   CONTENT AREA
======================================== */
.content-area {
    flex: 1;
    display: flex;
    gap: 24px;
    padding: 24px;
    overflow: hidden;
}

/* ========================================
   MENU SECTION
======================================== */
.menu-section {
    flex: 5;
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 28px;
    padding-bottom: 120px; /* 👈 add extra space to prevent cutoff */
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}



.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.menu-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0;
}

.items-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    padding: 6px 14px;
    border-radius: 20px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch; /* Ensures all cards align in height */
}

/* ========================================
   MENU ITEMS
======================================== */
.menu-item {
    display: flex;
    flex-direction: column; /* Stack vertically */
    justify-content: space-between; /* Push footer to bottom */
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    overflow: hidden;
}

    .menu-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

    .menu-item.selected {
        border-color: var(--primary);
        background: var(--primary-light);
    }

.item-image {
    width: 100%;
    height: 66%;
    background: var(--surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    margin-bottom: 16px;
}

.item-info h3 {
    font-size: 17px;
    /* color: var(--text-primary); */
    margin-bottom: 8px;
    /* font-weight: 600; */
    /* word-break: break-word; */
    /* font-size: 15px; */
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    word-break: break-word;
}

.item-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-secondary);
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 14px;
}

    .add-btn:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* ========================================
   CART SECTION
======================================== */
.cart-section {
    flex: 1;
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    min-width: 380px;
    max-width: 420px;
    gap: 16px;
}

.cart-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.cart-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.cart-header h2 {
    font-size: 22px;
    margin: 0;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100svh - 320px);
    padding-right: 4px;
    /* Ensure it doesn't interfere with z-index */
    position: relative;
    z-index: auto;
}

    /* Better scrollbar styling */
    .cart-items::-webkit-scrollbar {
        width: 6px;
    }

    .cart-items::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .cart-items::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

        .cart-items::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

.empty-cart {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 24px;
    font-size: 15px;
    line-height: 1.6;
}

    .empty-cart::before {
        content: "🛒";
        font-size: 56px;
        display: block;
        margin-bottom: 16px;
        opacity: 0.5;
    }

/* ========================================
   CART ITEMS
======================================== */
.cart-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    gap: 10px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

    .cart-item:hover {
        box-shadow: var(--shadow-sm);
    }

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 6px;
}

.cart-item-price {
    color: var(--success);
    font-weight: 700;
    font-size: 16px;
}

.addon-line {
    margin: 4px 0;
    padding-left: 12px;
    border-left: 3px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addon-text {
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
    text-align: left;
}

.addon-price {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Quantity controls */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.quantity-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--background);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s ease;
    font-size: 16px;
}

    .qty-btn:hover {
        background: var(--primary-hover);
        transform: scale(1.1);
    }

.qty-display {
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 24px;
    text-align: center;
    font-size: 15px;
}

.edit-btn {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .edit-btn:hover {
        background: #0284c7;
    }

.remove-btn {
    background: var(--destructive);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .remove-btn:hover {
        background: #dc2626;
    }

/* ========================================
   CART SUMMARY
======================================== */
.cart-summary {
    flex-shrink: 0; /* Prevents summary from shrinking */
    border-top: 2px solid var(--border);
    padding: 16px 24px;
    background: var(--surface);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-total {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface);
    border-radius: var(--radius-md);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

    .cart-total-row.subtotal {
        font-size: 16px;
        color: var(--text-secondary);
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border);
    }

    .cart-total-row.final-total {
        font-size: 20px;
        font-weight: 700;
        color: var(--text-secondary);
        padding-top: 10px;
        border-top: 2px solid var(--border);
    }

.checkout-btn {
    width: 100%;
    padding: 18px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .checkout-btn:hover:not(:disabled) {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .checkout-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Cart Items Container - Add this to make items scrollable */
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 24px;
    min-height: 0;
}

    /* Scrollbar styling */
    .cart-items-container::-webkit-scrollbar {
        width: 6px;
    }

    .cart-items-container::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .cart-items-container::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

/* ========================================
   MODAL (SUCCESS/ADDON)
======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .modal.show {
        opacity: 1;
        pointer-events: auto;
    }

    .modal.close {
        opacity: 0;
        pointer-events: none;
    }


.modal-content {
    background: var(--background);
    padding: 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 40px;
}

.modal h2 {
    color: var(--success);
    font-size: 20px;
    font-weight: 700;
}

.order-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.close-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.2s ease;
}

    .close-btn:hover {
        background: var(--primary-hover);
    }

/* ========================================
   ADDON MODAL
======================================== */
/* Add-on Modal Styles */
#addonModal {
    /*display: none;*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#addonModalContent {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90svh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-item-name {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Add-on Form */
.addon-form {
    margin-bottom: 24px;
}

/* Add-on Categories */
.addon-category {
    background: white;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.addon-category-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: flex;
/*    justify-content: space-between;
*/    align-items: center;
    cursor: pointer;
    user-select: none;
}

.selected-count {
    color: #10b981;
    font-weight: 700;
}

.max-selection {
    font-size: 11px;
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Add-on Options */
.addon-options-wrapper {
    overflow: hidden;
    transition: all 0.3s ease;
}

.addon-category.collapsed .addon-options-wrapper {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.addon-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

    /* Modifier Items with Quantity Controls */
    .addon-options > div[data-item-no] {
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        padding: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        transition: all 0.2s ease;
    }

        .addon-options > div[data-item-no]:hover {
            border-color: var(--primary);
            box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);
        }

        .addon-options > div[data-item-no] img {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .addon-options > div[data-item-no] > div:first-child {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }

        .addon-options > div[data-item-no] .text-sm {
            flex: 1;
            min-width: 0;
        }

        .addon-options > div[data-item-no] .font-medium {
            font-size: 14px;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .addon-options > div[data-item-no] .text-gray-600 {
            font-size: 13px;
            color: #6b7280;
        }

/* Quantity Controls */
.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

    .qty-control button {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: var(--primary);
        color: white;
        border: none;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

        .qty-control button:hover:not(:disabled) {
            background: var(--primary);
            transform: scale(1.05);
        }

        .qty-control button:disabled {
            background: #d1d5db;
            cursor: not-allowed;
            opacity: 0.5;
        }

.qty-count {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #1f2937;
}

/* Addon Labels (Checkboxes) - HIDDEN CHECKBOX */
.addon-label {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    position: relative;
}

    .addon-label:hover {
        border-color: var(--primary);
        box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);
    }

    .addon-label:has(.addon-checkbox:checked) {
        border-color: #10b981;
        background: #f0fdf4;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
    }

    .addon-label > div {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .addon-label img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
        flex-shrink: 0;
    }

    /* Hide the actual checkbox */
    .addon-label .addon-checkbox {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
        pointer-events: none;
    }

    /* Hide custom checkbox as well */
    .addon-label .checkbox-custom {
        display: none;
    }

    .addon-label .addon-text {
        flex: 1;
        min-width: 0;
    }

        .addon-label .addon-text .font-medium {
            font-size: 15px;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 4px;
            line-height: 1.4;
        }

        .addon-label .addon-text .text-sm {
            font-size: 13px;
            color: #6b7280;
        }

    /* Visual indicator for selected state (optional checkmark) */
    .addon-label:has(.addon-checkbox:checked)::after {
        content: '✓';
        position: absolute;
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
        background: #10b981;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: bold;
    }

/* Remark Section */
.remark-section {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 20px;
    margin-top: 16px;
}

    .remark-section .addon-category-title {
        color: #92400e;
        margin-bottom: 12px;
    }

    .remark-section .addon-label {
        background: white;
    }

        .remark-section .addon-label:hover {
            border-color: #f59e0b;
        }

        .remark-section .addon-label:has(.addon-checkbox:checked) {
            border-color: #f59e0b;
            background: #fffbeb;
        }

            .remark-section .addon-label:has(.addon-checkbox:checked)::after {
                background: #f59e0b;
            }

/* Buttons */
/* Buttons */
.btn-add-to-cart {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
}

.start-over-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 17px 30px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .start-over-btn:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.btn-add-to-cart:not(:disabled) {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

    .btn-add-to-cart:not(:disabled):hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
    }

.btn-add-to-cart:disabled {
    background: #d1d5db;
    color: #9ca3af;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Scrollbar Styling */
#addonModalContent::-webkit-scrollbar {
    width: 8px;
}

#addonModalContent::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#addonModalContent::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

    #addonModalContent::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Error Message */
.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #addonModalContent {
        padding: 24px;
        max-height: 95svh;
    }

    .addon-options {
        grid-template-columns: 1fr;
    }

    .modal-item-name {
        font-size: 20px;
    }

    .btn-add-to-cart {
        font-size: 16px;
        padding: 14px 20px;
    }

    .addon-label img,
    .addon-options > div[data-item-no] img {
        width: 50px;
        height: 50px;
    }

    .addon-label .addon-text .font-medium {
        font-size: 14px;
    }
}

/* ========================================
   LANDING PAGE
======================================== */
#landingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    /* Add your restaurant background image here */
    background-image: url('../img/LIHO-OUTLET2.jpg');
/*    background-image: url('../img/fnb-harrys-resorts-world-sentosa.jpg');
*/    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

    /* Dark overlay for better text readability */
    #landingOverlay::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5); /* 50% dark overlay */
        z-index: 0;
    }

/* Ensure specific content appears above the overlay */
.landing-container,
.language-selector,
.landing-footer {
    position: relative;
    z-index: 1;
}

/* When landing page is hidden */
#landingOverlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ========================================
   LANDING PAGE ELEMENTS STYLING
======================================== */

/* Landing container styling */
.landing-container {
    text-align: center;
    padding: 32px;
    padding-bottom: 120px; /* Add space for footer */
    max-width: 1200px;
    width: 100%;
}
/* Landing header with enhanced visibility */
.landing-header {
    /*margin-bottom: 60px;*/
    animation: fadeInDown 0.8s ease;
}

/* Logo styling with white background for contrast */
.landing-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.landing-logo-icon {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.8);
}

    .landing-logo-icon img.logo-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Welcome text with enhanced visibility */
.landing-welcome {
    font-size: 20px;
    color: #ffffff;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 600;
}

/* ========================================
   OPTION CARDS WITH GLASSMORPHISM
======================================== */

.landing-options {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 40px; /* Add space above footer */
    animation: fadeInUp 0.8s ease 0.3s both;
}

.landing-option {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 48px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 360px;
    position: relative;
}

    .landing-option:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        border-color: var(--primary);
        background: rgba(255, 255, 255, 0.98);
    }

.landing-option-icon {
    font-size: 72px;
    /*margin-bottom: 24px;*/
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.landing-option:hover .landing-option-icon {
    transform: scale(1.15);
}

.landing-option-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.landing-option-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.landing-option-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .landing-option-btn:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

/* ========================================
   LANGUAGE SELECTOR ON LANDING PAGE
======================================== */

.language-selector {
    position: absolute;
    top: 24px;
    right: 32px;
    z-index: 200;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-button {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .language-button:hover {
        background: rgba(255, 255, 255, 1);
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

.language-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

    .language-options.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* ========================================
   FOOTER WITH TIME
======================================== */

.landing-footer {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    font-size: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.landing-time {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 992px) {
    .landing-options {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .landing-option {
        width: 100%;
        max-width: 400px;
    }

    .landing-logo-icon {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .language-selector {
        top: 16px;
        right: 20px;
    }

    .landing-welcome {
        font-size: 18px;
    }

    .landing-option {
        padding: 32px 24px;
    }

    .landing-option-icon {
        font-size: 56px;
    }

    .landing-option-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .landing-logo-icon {
        width: 120px;
        height: 120px;
    }

    .landing-welcome {
        font-size: 16px;
    }

    .landing-option-icon {
        font-size: 48px;
    }

    .landing-option-title {
        font-size: 22px;
    }

    .landing-footer {
        padding: 12px 24px;
        font-size: 14px;
    }

    .landing-time {
        font-size: 18px;
    }
}


/* ========================================
   BOTTOM NAVIGATION (MOBILE)
======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    display: none; /* Start hidden by default */
    justify-content: space-around;
    align-items: center;
    z-index: 999; /* Below modals (1000+) but above content */
    height: 80px;
    /* Smooth transitions */
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

    /* Show state - added by JavaScript */
    .bottom-nav.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Alternative: Control via display only */
    .bottom-nav[style*="display: flex"] {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        background: transparent;
    }

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px 24px;
    border-radius: 16px;
    position: relative;
    background: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: white;
}

    .nav-item:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
        filter: brightness(1.1);
    }

    .nav-item:active {
        transform: translateY(-2px) scale(1.02);
    }

.nav-icon {
    font-size: 28px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-item:hover .nav-icon {
    transform: scale(1.15) rotate(-5deg);
}

.nav-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: white;
    text-transform: uppercase;
}

.cart-badge {
    position: absolute;
    top: -9px;
    right: -2px;
    background: #ef4444;
    color: white;
    border-radius: 12px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: badgePop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

#navSubtotal {
    font-weight: 700;
    font-size: 15px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* Empty cart state - deprecated, handled by JS now */
.bottom-nav.cart-empty {
    display: none;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */


/* Mobile - show when cart has items and no modals open */
@media (max-width: 992px) {
    /* Ensure main content has bottom padding for nav */
    .main-content {
        padding-bottom: 100px; /* 80px nav + 20px buffer */
    }

    .menu-section {
        padding-bottom: 120px; /* Extra space for scrolling */
    }

    /* When modals are open, ensure bottom nav is hidden */
    body:has(.modal[style*="display: flex"]) .bottom-nav,
    body:has(.modal[style*="display: block"]) .bottom-nav,
    body:has(.cart-modal.active) .bottom-nav,
    body:has(#addonModal[style*="display: flex"]) .bottom-nav {
        display: none !important;
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    .bottom-nav {
        padding: 10px 16px;
        height: 70px;
    }

    .nav-item {
        padding: 12px 20px;
        gap: 12px;
    }

    .nav-icon {
        font-size: 24px;
    }

    .nav-label {
        font-size: 12px;
    }

    #navSubtotal {
        font-size: 14px;
        padding: 5px 12px;
    }
}

@media (max-width: 768px) {
    .landing-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        padding: 8px 12px;
        height: 65px;
    }

    .nav-item {
        padding: 10px 16px;
        gap: 10px;
    }

    .nav-icon {
        font-size: 22px;
    }

    .nav-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .landing-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
}



/* ========================================
   ENHANCED MODAL INTERACTIONS
======================================== */

/* Ensure modals sit above bottom nav */
.modal,
.cart-modal,
#addonModal,
#successModal {
    z-index: 1000;
}



.cart-modal-overlay {
    z-index: 1000;
}

/* Prevent scroll when modals open */
body.modal-open {
    overflow: hidden;
}


/* ========================================
   SUCCESS MODAL STYLES
======================================== */

/* Order Info Header */
.order-info-header {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
}

    .order-info-row:last-child {
        margin-bottom: 0;
    }

.order-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-info-value {
    font-weight: 600;
}

/* Order Items Section */
.order-items-section {
    margin-bottom: 12px;
}

.order-items-title {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #111827;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-items-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Order Item Card */
.order-item-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Item Image */
.order-item-image {
    flex-shrink: 0;
}

    .order-item-image img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }

/* Item Details */
.order-item-details {
    flex: 1;
    min-width: 0;
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 4px;
}



.order-item-qty-badge {
    display: inline-block;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    margin-right: 6px;
    font-weight: 600;
}

.order-item-name {
    font-weight: 700;
    color: #111827;
    font-size: 14px;
    line-height: 1.3;
}

.order-item-price {
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
    margin-left: 8px;
}

.order-item-base-price {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    text-align: left;
    line-height: 1.4;
}

/* Item Remarks */
.order-item-remarks {
    font-size: 11px;
    color: #374151;
    background: #f3f4f6;
    padding: 3px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Addons/Modifications Section */
.order-item-addons {
    margin-top: 6px;
    padding: 6px;
    background: #f9fafb;
    border-radius: 6px;
    text-align: left;
}

.order-addon-item {
    font-size: 12px;
    color: #374151;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

    .order-addon-item:last-child {
        margin-bottom: 0;
    }

.order-addon-content {
    flex: 1;
}

.order-addon-prefix {
    font-weight: 700;
}

.order-addon-name {
    font-weight: 600;
}

.order-addon-qty {
    margin-left: 4px;
}

.order-addon-remarks {
    font-size: 11px;
    color: #374151;
    margin-top: 2px;
    padding-left: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-addon-price {
    white-space: nowrap;
    margin-left: 8px;
    color: #6b7280;
    font-weight: 600;
}

/* Price Summary Section */
.order-price-summary {
    background: #f9fafb;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    color: #6b7280;
}

    .summary-row:last-child {
        margin-bottom: 0;
    }

.summary-label {
    font-weight: 700;
}

.summary-value {
    color: #111827;
    font-weight: 600;
}

.summary-discount .summary-value {
    color: #ef4444;
}

.summary-total {
    font-size: 16px;
    font-weight: 800;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px solid #e5e7eb;
    color: #111827;
}

/* Empty State */
.order-empty-state {
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
    font-size: 14px;
}

.order-empty-icon {
    display: block;
    margin: 0 auto 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-item-card {
        padding: 8px;
    }

    .order-item-image img {
        width: 50px;
        height: 50px;
    }

    .order-item-name {
        font-size: 13px;
    }

    .order-item-price {
        font-size: 14px;
    }

    .order-price-summary {
        padding: 10px;
    }
}

/* ========================================
   LOADING/TRANSITION STATES
======================================== */

/* Prevent layout shift during transitions */
.bottom-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    z-index: 998;
}

@media (max-width: 768px) {
    .bottom-nav-container {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .bottom-nav-container {
        height: 65px;
    }
}
/* ========================================
   CART MODAL (MOBILE)
======================================== */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /*backdrop-filter: blur(4px);*/
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    /*transition: all 0.3s ease;*/
}

    .cart-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 475px;
    max-width: 100vw;
    height: 100svh;
    background: var(--background);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}

    .cart-modal.active {
        transform: translateX(0);
    }

    .cart-modal .cart-header {
        background: var(--primary);
        color: white;
        padding: 9px;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    .cart-modal .cart-icon {
        font-size: 24px;
    }

    .cart-modal h2 {
        font-size: 22px;
        margin: 0;
        flex: 1;
        font-weight: 700;
        width: 100%;
        padding: 18px 20px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: var(--radius-md);
        font-size: 17px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

    .close-cart:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.cart-modal .cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-modal .cart-items {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.cart-modal .cart-summary {
    padding: 16px;
    border-top: 2px solid var(--border);
    background: var(--surface);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.cart-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    animation: slideIn 0.3s ease forwards;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.shake {
    animation: shake 0.4s ease;
}

.error-border {
    border-color: var(--destructive) !important;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1200px) {
    .content-area {
        flex-direction: column;
    }

    .cart-section {
        min-width: 100%;
        max-width: 100%;
        max-height: 400px;
    }
}

@media (max-width: 992px) {
    .navigation-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 16px;
        height: auto;
    }

    .nav-title {
        display: none;
    }

    .category-tabs {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }

    .category-tab {
        flex: 0 0 auto;
        min-width: 140px;
    }

    .subcategory-container {
        display: none;
    }

    .main-content {
        padding-bottom: 80px;
    }

    .bottom-nav {
        display: flex;
    }

    .cart-section {
        display: none;
    }

    .landing-options {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .landing-option {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
        height: 72px;
    }

    .logo-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .header-info {
        font-size: 14px;
        gap: 16px;
    }

    .language-selector {
        top: 16px;
        right: 20px;
    }

    .menu-section {
        padding: 28px;
        padding-bottom: calc(80px + 40px); /* nav height + some breathing space */
        overflow-y: auto;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    .menu-title {
        font-size: 20px;
    }

    .landing-title {
        font-size: 36px;
    }

    .landing-subtitle {
        font-size: 20px;
    }

    .cart-modal {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .landing-title {
        font-size: 28px;
    }

    .landing-option {
        padding: 32px 24px;
    }

    .landing-option-icon {
        font-size: 56px;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.hidden {
    display: none !important;
}


/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-cart-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-cart-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.empty-cart-subtext {
    font-size: 14px;
    color: #999;
}

/* Cart Item Card */
.cart-item-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease;
}

    .cart-item-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

/* Main Item Section */
.cart-item-main {
    margin-bottom: 12px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.cart-item-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.cart-item-qty-badge {
    background: #3b82f6;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
    min-width: 32px;
    text-align: center;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    word-break: break-word;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Remarks */
.cart-item-remarks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.remark-tag {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* Modifications Section */
.cart-modifications {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    border-left: 3px solid #e5e7eb;
}

.cart-modification-item {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

    .cart-modification-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .cart-modification-item:first-child {
        padding-top: 0;
    }

.cart-modification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.cart-modification-name {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
}

    .cart-modification-name::before {
        content: '+ ';
        color: #9ca3af;
    }

.cart-modification-price {
    font-size: 13px;
    color: #059669;
    font-weight: 600;
    flex-shrink: 0;
}

.cart-modification-remarks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: 12px;
}

    .cart-modification-remarks .remark-tag {
        font-size: 11px;
        padding: 3px 8px;
        background: #e0e7ff;
        color: #3730a3;
    }

/* Actions Section */
.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 2px;
}

.cart-qty-btn {
    width: 53px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

    .cart-qty-btn:hover {
        background: #e5e7eb;
        color: #1f2937;
    }

    .cart-qty-btn:active {
        transform: scale(0.95);
    }

    .cart-qty-btn svg {
        display: block;
    }

.cart-qty-display {
    min-width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.cart-action-buttons {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.cart-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .cart-action-btn svg {
        flex-shrink: 0;
    }

.cart-edit-btn {
    color: #3b82f6;
    border-color: #bfdbfe;
}

    .cart-edit-btn:hover {
        background: #eff6ff;
        border-color: #93c5fd;
    }

.cart-remove-btn {
    color: #ef4444;
    border-color: #fecaca;
}

    .cart-remove-btn:hover {
        background: #fef2f2;
        border-color: #fca5a5;
    }

.cart-action-btn:active {
    transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 480px) {
    .cart-item-card {
        padding: 14px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 15px;
    }

    .cart-action-buttons {
        flex-wrap: wrap;
    }

    .cart-action-btn {
        flex: 1;
        min-width: 80px;
        justify-content: center;
        font-size: 12px;
        padding: 7px 10px;
    }

    .cart-modifications {
        padding: 10px;
    }
}


/* Cart Item Quantity */
.cart-item-qty {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    flex-shrink: 0;
}


.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

    .summary-row.total {
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
        margin-top: 8px;
    }



/* Modification Row Structure - Following original design */
.cart-modification-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 6px;
}

.cart-modification-prefix {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.cart-modification-name {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.cart-modification-qty {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    text-align: right;
    min-width: 30px;
}

.cart-modification-qty-spacer {
    min-width: 30px;
}

.cart-modification-price {
    font-size: 13px;
    color: #059669;
    font-weight: 600;
    text-align: right;
    min-width: 60px;
}

.cart-modification-price-spacer {
    min-width: 60px;
}

.cart-modification-header {
    display: none;
}

.cart-modification-name::before {
    content: none;
}
/* Container for the entire cart sidebar */
.cart-sidebar {
    display: flex;
    flex-direction: column;
    height: 100svh;
    max-height: 100svh;
}

/* Cart header (YOUR ORDER title) - fixed at top */
.cart-header {
    flex-shrink: 0;
    padding: 20px;
    background: var(--primary-color);
    color: white;
}

/* Cart items area - scrollable */
/* Cart Sidebar Container */
.cart-sidebar {
    display: flex;
    flex-direction: column;
    height: 100svh;
    max-height: 100svh;
}

/* Cart Items Container - Takes remaining space and scrolls */
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 24px;
    min-height: 0; /* Important for flex scrolling */
}

/* Cart Summary - Sticks to bottom naturally */
.cart-summary {
    flex-shrink: 0; /* Prevents shrinking */
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 2px solid #e5e7eb;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

    .cart-summary-row.total {
        font-size: 18px;
        font-weight: bold;
        padding-top: 12px;
        border-top: 2px solid #d1d5db;
        margin-top: 8px;
        margin-bottom: 12px;
    }

.place-order-btn {
    width: 100%;
    padding: 16px;
    background: #1e40af;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.checkout-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.empty-cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: #ef4444;
    flex: 0 0 auto;
}

    .empty-cart-btn:hover:not(:disabled) {
        background-color: #fef2f2;
        border-color: #fca5a5;
    }

    .empty-cart-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        border-color: #e5e7eb;
        color: #9ca3af;
    }

.checkout-btn {
    flex: 1;
    /* Keep your existing checkout-btn styles */
}

/* Empty Cart Confirmation Modal */
.empty-cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

    .empty-cart-modal-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

.empty-cart-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.empty-cart-modal-overlay.active .empty-cart-modal {
    transform: translateY(0);
    opacity: 1;
}

.empty-cart-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background-color: #fef2f2;
    border-radius: 50%;
}

.empty-cart-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    text-align: center;
}

.empty-cart-modal-message {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 24px 0;
    text-align: center;
}

.empty-cart-modal-actions {
    display: flex;
    gap: 12px;
}

.empty-cart-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

    .empty-cart-modal-btn.cancel-btn {
        background-color: #f3f4f6;
        color: #374151;
    }

        .empty-cart-modal-btn.cancel-btn:hover {
            background-color: #e5e7eb;
        }

    .empty-cart-modal-btn.confirm-btn {
        background-color: #ef4444;
        color: white;
    }

        .empty-cart-modal-btn.confirm-btn:hover {
            background-color: #dc2626;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Error Modal Styles - Enhanced with Lighter Background */
.error-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(30, 41, 59, 0.6) 100%);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

    .error-modal-overlay.active {
        display: flex !important;
        opacity: 1;
    }

.error-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 520px;
    width: 90%;
    max-height: 85svh;
    overflow-y: auto;
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.error-modal-overlay.active .error-modal {
    transform: scale(1) translateY(0);
}

/* Scrollbar styling for modal */
.error-modal::-webkit-scrollbar {
    width: 8px;
}

.error-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.error-modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

    .error-modal::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

.error-modal-icon {
    text-align: center;
    margin-bottom: 24px;
    animation: iconEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .error-modal-icon svg {
        filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.3));
    }

@keyframes iconEntrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.error-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.error-modal-message {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 400;
}

.error-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center; /* ✅ Changed back to center */
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.error-modal-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent; /* ✅ Consistent border for all buttons */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    min-width: 130px;
    height: 48px; /* ✅ Fixed height */
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box; /* ✅ Ensures padding/border are included in height */
}

    .error-modal-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .error-modal-btn:active::before {
        width: 300px;
        height: 300px;
    }


    .error-modal-btn.retry-btn {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        /* Border already set in base class */
    }


        .error-modal-btn.retry-btn:hover {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .error-modal-btn.retry-btn:active {
            transform: translateY(0);
        }

        .error-modal-btn.retry-btn svg {
            animation: spin 1s linear infinite;
            animation-play-state: paused;
        }

        .error-modal-btn.retry-btn:active svg {
            animation-play-state: running;
        }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.error-modal-btn.close-btn {
    background: #f3f4f6;
    color: #6b7280;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid #e5e7eb; /* ✅ Now matches retry button border width */
}


    .error-modal-btn.close-btn:hover {
        background: #e5e7eb;
        color: #374151;
        transform: translateY(-1px);
        border-color: #d1d5db;
    }

.error-modal-details {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    margin-top: 20px;
}

.error-details-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s ease;
    user-select: none;
}

    .error-details-toggle:hover {
        background: #f9fafb;
        color: #374151;
    }

    .error-details-toggle svg {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
    }

.error-modal-details.expanded .error-details-toggle svg {
    transform: rotate(180deg);
}

.error-details-content {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 10px;
    border: 1px solid #fecaca;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #dc2626;
    overflow-x: auto;
    max-height: 250px;
    white-space: pre-wrap;
    word-break: break-all;
    animation: slideDown 0.3s ease;
}

.error-modal-details.expanded .error-details-content {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 250px;
    }
}

.error-details-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.error-details-content::-webkit-scrollbar-track {
    background: #fee2e2;
    border-radius: 3px;
}

.error-details-content::-webkit-scrollbar-thumb {
    background: #fca5a5;
    border-radius: 3px;
}

    .error-details-content::-webkit-scrollbar-thumb:hover {
        background: #f87171;
    }

/* Mobile responsiveness fix */
@media (max-width: 640px) {
    .error-modal-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .error-modal-btn {
        width: 100%;
        min-width: unset;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .error-modal-overlay,
    .error-modal,
    .error-modal-icon,
    .error-modal-btn,
    .error-details-toggle svg,
    .error-details-content {
        animation: none !important;
        transition: none !important;
        flex-shrink: 0;
    }
}

/* Optional: Even lighter background alternative */
.error-modal-overlay.light-mode {
    background: rgba(100, 116, 139, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.menu-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 18px;
    color: #666;
}

.menu-item img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .menu-item img.loaded {
        opacity: 1;
    }

.image-placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* ============================================
   MOBILE-FIRST IMPROVEMENTS
============================================ */

/* Mobile: Stack everything vertically */
@media (max-width: 992px) {
    /* Hide desktop navigation sidebar */
    .navigation-sidebar {
        display: none !important;
    }

    /* Full-width content area */
    .content-area {
        padding: 12px;
        flex-direction: column;
    }

    /* Full-width menu section */
    .menu-section {
        width: 100%;
        padding: 16px;
        padding-bottom: 100px; /* Space for bottom nav */
    }

    /* Hide desktop cart section */
    .cart-section {
        display: none !important;
    }

    /* Bottom nav shows only on mobile */
    .bottom-nav {
        display: flex !important;
    }

    /* Improve menu grid on mobile */
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    /* Larger touch targets for menu items */
    .menu-item {
        min-height: 220px;
    }

    .add-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    /* Single column menu grid */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Horizontal layout for menu items */
    .menu-item {
        flex-direction: row;
        min-height: auto;
        padding: 12px;
    }

    .item-image {
        width: 80px;
        height: 80px;
        margin-right: 12px;
        margin-bottom: 0;
    }

    /* Reduce header size */
    .header {
        padding: 12px 16px;
        height: 64px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo h1 {
        font-size: 18px;
    }
}

/* ============================================
   ADDON MODAL MOBILE FIXES
============================================ */
@media (max-width: 768px) {
    #addonModalContent {
        max-width: 100%;
        width: 100%;
        max-height: 100svh;
        border-radius: 0;
        padding: 16px;
    }

    #addonModal {
        padding: 0;
        align-items: flex-start;
    }

    .addon-options {
        grid-template-columns: 1fr !important;
    }

    .modal-item-name {
        font-size: 18px;
    }

    .btn-add-to-cart {
        position: sticky;
        bottom: 0;
        width: 100%;
        z-index: 100;
    }
}

/* ============================================
   CART MODAL MOBILE FIXES
============================================ */
@media (max-width: 768px) {
    .cart-modal {
        width: 100%;
        max-width: 100vw;
    }

    .cart-item-card {
        padding: 12px;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   LANDING PAGE MOBILE FIXES
============================================ */
@media (max-width: 768px) {
    .landing-container {
        padding: 20px;
        padding-bottom: 100px;
    }

    .landing-logo-icon {
        width: 120px;
        height: 120px;
    }

    .landing-welcome {
        font-size: 16px;
    }

    .landing-options {
        gap: 20px;
        margin-top: 40px;
    }

    .landing-option {
        width: 100%;
        max-width: 100%;
        padding: 32px 24px;
    }
}

/* ============================================
   MOBILE-FIRST RESPONSIVE CSS
   For Kiosk Self-Ordering System
============================================ */

/* ============================================
   BASE MOBILE STYLES (< 768px)
============================================ */
@media (max-width: 767px) {

    /* Body & Container */
    body {
        font-size: 14px;
        overflow-x: hidden;
    }

    .kiosk-container {
        height: 100svh;
        width: 100%;
        overflow-x: hidden;
    }

    /* ========================================
       HEADER - MOBILE COMPACT
    ======================================== */
    .header {
        padding: 12px 16px;
        height: 60px;
        flex-wrap: nowrap;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .logo h1 {
        font-size: 18px;
        display: none; /* Hide on very small screens */
    }

    .landing-logo-icon1 {
        width: 40px;
        height: 40px;
    }

    .header-info {
        font-size: 13px;
        gap: 12px;
    }

    .time {
        font-size: 14px;
    }

    .start-over-btn {
        padding: 10px 16px;
        font-size: 13px;
        gap: 4px;
    }

        .start-over-btn svg {
            width: 14px;
            height: 14px;
        }

    /* ========================================
       LANGUAGE SELECTOR - MOBILE
    ======================================== */
    .language-selector {
        top: 12px;
        right: 12px;
    }

    .language-button {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
    }

    .language-flag {
        font-size: 18px;
    }

    .language-options {
        min-width: 160px;
        right: 0;
    }

    .language-option {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* ========================================
       MAIN CONTENT LAYOUT
    ======================================== */
    .main-content {
        flex-direction: column;
        padding: 0;
        height: calc(100svh - 60px);
        padding-bottom: 80px; /* Space for bottom nav */
    }

    /* Hide desktop sidebar */
    .navigation-sidebar {
        display: none !important;
    }

    /* Hide desktop cart */
    .cart-section {
        display: none !important;
    }

    /* ========================================
       CONTENT AREA - FULL WIDTH
    ======================================== */
    .content-area {
        flex: 1;
        padding: 12px;
        gap: 0;
        width: 100%;
        overflow-y: auto;
    }

    /* ========================================
       MENU SECTION - MOBILE OPTIMIZED
    ======================================== */
    .menu-section {
        width: 100%;
        padding: 16px 12px;
        padding-bottom: 100px; /* Extra space for bottom nav */
        border-radius: 12px;
    }

    .menu-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .menu-title {
        font-size: 20px;
    }

    .items-count {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* ========================================
       MENU GRID - SINGLE COLUMN
    ======================================== */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* ========================================
       MENU ITEMS - HORIZONTAL LAYOUT
    ======================================== */
    .menu-item {
        display: flex;
        flex-direction: row;
        min-height: auto;
        padding: 12px;
        gap: 12px;
    }

    .item-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .item-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

        .item-info h3 {
            font-size: 15px;
            margin-bottom: 4px;
            line-height: 1.3;
        }

    .item-description {
        font-size: 13px;
        margin-bottom: 8px;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .item-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .item-price {
        font-size: 18px;
    }

    .add-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 14px;
        max-width: 100%;
    }

    /* ========================================
       BOTTOM NAVIGATION - MOBILE ONLY
    ======================================== */
    .bottom-nav {
        display: flex !important;
        padding: 10px 16px;
        height: 70px;
        background: var(--primary);
        /*box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);*/
    }

    .nav-item {
        padding: 12px 20px;
        gap: 12px;
    }

    .nav-icon {
        font-size: 24px;
    }

    .nav-label {
        font-size: 12px;
    }

    .cart-badge {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
        top: -8px;
        right: -6px;
    }

    #navSubtotal {
        font-size: 14px;
        padding: 5px 12px;
    }

    /* ========================================
       CART MODAL - FULL SCREEN ON MOBILE
    ======================================== */
    .cart-modal-overlay {
        background: rgba(0, 0, 0, 0.5);
    }

    .cart-modal {
        width: 100%;
        max-width: 100vw;
        height: 100svh;
        border-radius: 0;
    }

        .cart-modal .cart-header {
            padding: 16px;
        }

        .cart-modal .cart-icon {
            font-size: 20px;
        }

        .cart-modal h2 {
            font-size: 20px;
            padding: 16px;
        }

    .close-cart {
        font-size: 24px;
        padding: 6px;
    }

    /* ========================================
       CART ITEMS - MOBILE LAYOUT
    ======================================== */
    .cart-item-card {
        padding: 12px;
        margin-bottom: 10px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-header {
        gap: 10px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 15px;
    }

    .cart-item-qty {
        font-size: 14px;
    }

    .cart-qty-controls {
        gap: 8px;
        padding: 2px;
    }

    .cart-qty-btn {
        width: 28px;
        height: 28px;
    }

        .cart-qty-btn svg {
            width: 10px;
            height: 10px;
        }

    .cart-qty-display {
        min-width: 28px;
        font-size: 14px;
    }

    .cart-action-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }

    .cart-action-btn {
        flex: 1;
        min-width: 80px;
        font-size: 12px;
        padding: 8px 12px;
        justify-content: center;
    }

        .cart-action-btn svg {
            width: 12px;
            height: 12px;
        }

    /* ========================================
       CART SUMMARY - MOBILE
    ======================================== */
    .cart-summary {
        padding: 16px;
    }

    .cart-total-row {
        font-size: 13px;
    }

        .cart-total-row.subtotal {
            font-size: 15px;
        }

        .cart-total-row.final-total {
            font-size: 18px;
        }

    .checkout-actions {
        gap: 8px;
    }

    .empty-cart-btn {
        padding: 10px 14px;
        font-size: 12px;
    }

    .checkout-btn {
        padding: 14px 16px;
        font-size: 16px;
    }

    /* ========================================
       ADDON MODAL - MOBILE OPTIMIZED
    ======================================== */
    #addonModal {
        padding: 0;
        align-items: flex-start;
    }

    #addonModalContent {
        max-width: 100%;
        width: 100%;
        max-height: 100svh;
        height: 100svh;
        border-radius: 0;
        padding: 16px;
        overflow-y: auto;
    }

    .modal-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .modal-title {
        font-size: 12px;
    }

    .modal-item-name {
        font-size: 20px;
    }

    /* Addon Categories */
    .addon-category {
        padding: 12px;
        margin-bottom: 16px;
    }

    .addon-category-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .max-selection {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* Addon Options - Single Column */
    .addon-options {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .addon-label {
        padding: 10px;
    }

        .addon-label img {
            width: 50px;
            height: 50px;
        }

        .addon-label .addon-text .font-medium {
            font-size: 14px;
        }

        .addon-label .addon-text .text-sm {
            font-size: 12px;
        }

    /* Quantity Controls in Modal */
    .addon-options > div[data-item-no] {
        padding: 10px;
    }

        .addon-options > div[data-item-no] img {
            width: 50px;
            height: 50px;
        }

    .qty-control {
        gap: 6px;
    }

        .qty-control button {
            width: 28px;
            height: 28px;
            font-size: 16px;
        }

    .qty-count {
        min-width: 28px;
        font-size: 15px;
    }

    /* Modal Buttons */
    .btn-add-to-cart {
        font-size: 16px;
        padding: 14px 20px;
        position: sticky;
        bottom: 0;
        width: 100%;
        z-index: 100;
        margin-top: 16px;
    }

    /* ========================================
       LANDING PAGE - MOBILE
    ======================================== */
    .landing-container {
        padding: 40px 20px;
        padding-bottom: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        min-height: 100svh;
    }

    .landing-header {
        margin-bottom: 30px;
    }

    .landing-logo-icon {
        width: 100px;
        height: 100px;
        margin: 0 auto 16px;
    }

    .landing-welcome {
        font-size: 15px;
        padding: 0 20px;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        line-height: 1.5;
    }

    .landing-options {
        flex-direction: column;
        gap: 16px;
        margin-top: 30px;
        width: 100%;
        max-width: 100%;
        align-items: center;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .landing-option {
        width: 100%;
        max-width: 400px;
        padding: 24px 20px;
        margin: 0;
        box-sizing: border-box;
    }

    .landing-option-icon {
        font-size: 48px;
        margin-bottom: 12px;
    }

    .landing-option-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .landing-option-desc {
        font-size: 14px;
        margin-bottom: 16px;
        line-height: 1.4;
    }

    .landing-option-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .landing-footer {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 20px;
        font-size: 13px;
        width: auto;
        max-width: 90%;
    }

    .landing-time {
        font-size: 16px;
        margin-bottom: 4px;
    }

    /* ========================================
       SUCCESS MODAL - MOBILE
    ======================================== */
    .modal-content {
        max-width: 100%;
        width: 100%;
        padding: 20px;
        max-height: 95svh;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .modal h2 {
        font-size: 18px;
    }

    .order-number {
        font-size: 20px;
    }

    .order-item-card {
        padding: 10px;
    }

    .order-item-image img {
        width: 50px;
        height: 50px;
    }

    .order-item-name {
        font-size: 13px;
    }

    .order-item-price {
        font-size: 14px;
    }

    .order-item-qty-badge {
        font-size: 11px;
        padding: 2px 6px;
    }

    .close-btn {
        padding: 12px 28px;
        font-size: 15px;
    }

    /* ========================================
       ERROR MODAL - MOBILE
    ======================================== */
    .error-modal {
        max-width: 95%;
        width: 95%;
        padding: 24px;
    }

    .error-modal-title {
        font-size: 22px;
    }

    .error-modal-message {
        font-size: 15px;
    }

    .error-modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .error-modal-btn {
        width: 100%;
        min-width: unset;
        padding: 12px 24px;
    }

    /* ========================================
       EMPTY CART MODAL - MOBILE
    ======================================== */
    .empty-cart-modal {
        max-width: 90%;
        width: 90%;
        padding: 24px;
    }

    .empty-cart-modal-icon {
        width: 56px;
        height: 56px;
    }

    .empty-cart-modal-title {
        font-size: 18px;
    }

    .empty-cart-modal-message {
        font-size: 13px;
    }

    .empty-cart-modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .empty-cart-modal-btn {
        width: 100%;
    }
}

/* ============================================
   MOBILE-FIRST RESPONSIVE CSS
   For Kiosk Self-Ordering System
============================================ */

/* ============================================
   BASE MOBILE STYLES (< 768px)
============================================ */
@media (max-width: 767px) {

    /* Body & Container */
    body {
        font-size: 14px;
        overflow-x: hidden;
    }

    .kiosk-container {
        height: 100svh;
        width: 100%;
        overflow-x: hidden;
    }

    /* ========================================
       HEADER - MOBILE COMPACT
    ======================================== */
    .header {
        padding: 12px 16px;
        height: 60px;
        flex-wrap: nowrap;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .logo h1 {
        font-size: 18px;
        display: none; /* Hide on very small screens */
    }

    .landing-logo-icon1 {
        width: 40px;
        height: 40px;
    }

    .header-info {
        font-size: 13px;
        gap: 12px;
    }

    .time {
        font-size: 14px;
    }

    .start-over-btn {
        padding: 10px 16px;
        font-size: 13px;
        gap: 4px;
    }

        .start-over-btn svg {
            width: 14px;
            height: 14px;
        }

    /* ========================================
       LANGUAGE SELECTOR - MOBILE
    ======================================== */
    .language-selector {
        top: 12px;
        right: 12px;
    }

    .language-button {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
    }

    .language-flag {
        font-size: 18px;
    }

    .language-options {
        min-width: 160px;
        right: 0;
    }

    .language-option {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* ========================================
       MAIN CONTENT LAYOUT
    ======================================== */
    .main-content {
        flex-direction: column;
        padding: 0;
        height: calc(100svh - 60px);
        /*padding-bottom: 20px;*/ /* Space for bottom nav */
    }

    /* ========================================
   MOBILE CATEGORY TABS - IMPROVED TEXT HANDLING
============================================ */
    @media (max-width: 767px) {
        .navigation-sidebar {
            display: flex !important;
            width: 100%;
            height: auto;
            min-height: 75px;
            flex-direction: row;
            padding: 0px 0;
            margin: 0;
            background: var(--primary);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            position: sticky;
            top: 0;
            z-index: 99;
            border-right: none;
            border-bottom: 2px solid rgba(255, 255, 255, 0);
            /* Hide scrollbar */
            scrollbar-width: none;
            -ms-overflow-style: none;
            /* Show enhanced scrollbar */
            /*scrollbar-width: thin;*/
            scrollbar-color: rgba(255, 255, 255, 0) transparent;
        }

            /* Hide scrollbar for Webkit browsers */
            .navigation-sidebar::-webkit-scrollbar {
                display: none;
                width: 0;
                height: 0;
                background: transparent;
            }

        /* Rest of your existing mobile styles... */
        .nav-title {
            display: none;
        }

        .category-tabs {
            display: flex;
            flex-direction: row;
            gap: 0;
            flex-wrap: nowrap;
            width: auto;
            padding: 0;
            margin: 0;
            position: relative;
            align-items: stretch;
        }

        .category-tab {
            flex: 0 0 auto;
            min-width: 100px;
            max-width: 130px;
            padding: 8px 10px;
            background: var(--primary);
            color: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 0;
            font-size: 11px;
            font-weight: 600;
            white-space: normal;
            text-align: center;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
            position: relative;
            cursor: pointer;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            height: auto;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            /* Hover/Active feedback */
            .category-tab:active {
                background: rgba(255, 255, 255, 0.1);
            }

            /* Active state */
            .category-tab.active {
                background: rgba(255, 255, 255, 0.15);
                color: #ffffff;
                border-bottom-color: #ffffff;
                box-shadow: none;
                font-weight: 700;
            }

        /* Tab container for icon + text */
        .category-tab-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            pointer-events: none;
            width: 100%;
            padding: 2px;
        }

        /* Category icons - smaller on mobile */
        .category-icon {
            width: 50px;
            height: 50px;
            min-width: 28px;
            min-height: 28px;
            /* max-width: 28px;
            max-height: 28px;*/
            margin: 0 auto;
            filter: brightness(1.2);
            flex-shrink: 0;
        }

        .category-tab.active .category-icon {
            filter: brightness(1.5);
        }

        /* Category name - BETTER WRAPPING */
        .category-name {
            font-size: 10px;
            font-weight: 600;
            line-height: 1.2;
            text-align: center;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            word-break: break-word;
            hyphens: auto;
            width: 100%;
            max-height: 3.6em;
        }

        /* First and last tab padding */
        .category-tab:first-child {
            padding-left: 12px;
        }

        .category-tab:last-child {
            padding-right: 12px;
        }

        /* Hide subcategories on mobile */
        .subcategory-container {
            display: none !important;
        }
    }

    /* ============================================
   EXTRA SMALL PHONES FIX
============================================ */
    @media (max-width: 380px) {
        .category-tab {
            min-width: 90px;
            max-width: 110px;
            padding: 8px 8px;
        }

        .category-name {
            font-size: 9px;
            -webkit-line-clamp: 3;
            max-height: 3.6em;
        }

        .category-icon {
            width: 24px;
            height: 24px;
            min-width: 24px;
            min-height: 24px;
            max-width: 24px;
            max-height: 24px;
        }
    }

    @media (max-width: 992px) and (orientation: landscape) {
        .navigation-sidebar {
            min-height: 65px;
            padding: 6px 0;
        }

        .category-tabs-wrapper {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: white;
            border-bottom: 1px solid #e5e7eb;
            padding: 8px 0;
            transform: translateZ(0);
            will-change: transform;
        }

        /* Horizontal scrolling container */
        .category-tabs {
            display: flex;
            flex-direction: row;
            gap: 0;
            flex-wrap: nowrap;
            width: auto;
            padding: 0;
            margin: 0;
            position: relative;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            height: auto;
            min-height: 80px;
        }

            .category-tabs::-webkit-scrollbar {
                display: none;
            }

        /* Individual category tabs */
        .category-tab {
            flex: 0 0 auto;
            min-width: 150px;
            background: transparent;
            color: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 0;
            font-size: 14px;
            font-weight: 600;
            text-align: center;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
            position: relative;
            cursor: pointer;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            /* Remove position:sticky from individual tabs */
            position: relative !important;
            top: auto !important;
        }

            /* STICKY CATEGORY FIX - Use a different approach */
            .category-tab.mobile-sticky {
                /* For mobile, we'll use a different visual indicator */
                background: linear-gradient(135deg, #00338E 0%, #1e40af 100%) !important;
                color: white !important;
                font-weight: 700 !important;
                border: none !important;
                box-shadow: 0 4px 12px rgba(0, 51, 142, 0.4);
                /* We'll handle the "sticky" effect differently */
                position: relative;
            }

            /* Active state */
            .category-tab.active {
                color: #ffffff;
                border-bottom-color: #ffffff;
                font-weight: 700;
            }

        /* Tab container for icon + text */
        .category-tab-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            pointer-events: none;
        }

        /* Category icons */
        .category-icon {
            width: 50px;
            height: 50px;
            min-width: 28px;
            min-height: 28px;
            margin: 0 auto;
            filter: brightness(1.2);
        }

        .category-tab.active .category-icon {
            filter: brightness(1.5);
        }

        /* Category name */
        .category-name {
            font-size: 12px;
            font-weight: 600;
            line-height: 1.2;
            text-align: center;
            display: block;
        }

        .category-tab-container {
            gap: 3px;
        }

        .category-icon {
            width: 24px;
            height: 24px;
            min-width: 24px;
            min-height: 24px;
            max-width: 24px;
            max-height: 24px;
        }
    }

    /* Hide nav title on mobile */
    .nav-title {
        display: none;
    }

    /* Category tabs container */
    .category-tabs {
        min-height: 65px;
    }

    .category-tab {
        min-width: 90px;
        max-width: 120px;
        padding: 6px 8px;
    }

    .category-name {
        font-size: 10px;
        -webkit-line-clamp: 2;
        max-height: 2.4em;
    }

    .category-tab-container {
        gap: 3px;
    }

    .category-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        max-width: 24px;
        max-height: 24px;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-tab.mobile-sticky {
        left: 0 !important;
    }

    /* Active indicator */
    /*.category-tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 3px;
            background: #ffffff;
            border-radius: 2px 2px 0 0;
            box-shadow: 0 -2px 4px rgba(255, 255, 255, 0.3);
        }*/

    /* Tab container for icon + text */
    .category-tab-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        pointer-events: none;
    }

    /* Category icons - smaller on mobile */
    .category-icon {
        width: 50px;
        height: 50px;
        min-width: 28px;
        min-height: 28px;
        /*max-width: 28px;
    max-height: 28px;*/
        margin: 0 auto;
        filter: brightness(1.2);
    }

    .category-tab.active .category-icon {
        filter: brightness(1.5);
    }

    /* Category name */
    .category-name {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        display: block;
    }

    /* Hide subcategories on mobile */
    .subcategory-container {
        display: none !important;
    }

    /* First and last tab padding */
    .category-tab:first-child {
        /*padding-left: 24px;*/
        width: 150px;
    }

    .category-tab:last-child {
        /*padding-right: 24px;*/
        width: 150px;
    }
    /* Hide desktop cart */
    .cart-section {
        display: none !important;
    }

    /* ========================================
       CONTENT AREA - FULL WIDTH
    ======================================== */
    .content-area {
        flex: 1;
        padding: 12px;
        gap: 0;
        width: 100%;
        overflow-y: auto;
    }

    /* ========================================
       MENU SECTION - MOBILE OPTIMIZED
    ======================================== */
    .menu-section {
        width: 100%;
        padding: 16px 12px;
        padding-bottom: 100px; /* Extra space for bottom nav */
        border-radius: 12px;
    }

    .menu-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .menu-title {
        font-size: 20px;
    }

    .items-count {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* ========================================
       MENU GRID - SINGLE COLUMN
    ======================================== */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* ========================================
       MENU ITEMS - HORIZONTAL LAYOUT
    ======================================== */
    .menu-item {
        display: flex;
        flex-direction: row;
        min-height: auto;
        padding: 12px;
        gap: 12px;
    }

    .item-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .item-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 5px;
    }

        .item-info h3 {
            font-size: 15px;
            margin-bottom: 4px;
            line-height: 1.3;
        }

    .item-description {
        font-size: 13px;
        margin-bottom: 8px;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .item-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .item-price {
        font-size: 18px;
    }

    .add-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 14px;
        max-width: 100%;
    }

    /* ========================================
       BOTTOM NAVIGATION - MOBILE ONLY
    ======================================== */
    .bottom-nav {
        display: flex !important;
        padding: 10px 16px;
        height: 70px;
        background: white;
        /*box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);*/
    }

    .nav-item {
        padding: 12px 20px;
        gap: 12px;
    }

    .nav-icon {
        font-size: 24px;
    }

    .nav-label {
        font-size: 12px;
    }

    .cart-badge {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
        top: -8px;
        right: -6px;
    }

    #navSubtotal {
        font-size: 14px;
        padding: 5px 12px;
    }

    /* ========================================
       CART MODAL - FULL SCREEN ON MOBILE
    ======================================== */
    .cart-modal-overlay {
        background: rgba(0, 0, 0, 0.5);
    }

    .cart-modal {
        width: 100%;
        max-width: 100vw;
        height: 100svh;
        border-radius: 0;
    }

        .cart-modal .cart-header {
            padding: 13px;
        }

        .cart-modal .cart-icon {
            font-size: 20px;
        }

        .cart-modal h2 {
            font-size: 16px;
            font-size: 16px;
            padding: 16px;
        }

    .close-cart {
        font-size: 24px;
        padding: 6px;
    }

    /* ========================================
       CART ITEMS - MOBILE LAYOUT
    ======================================== */
    .cart-item-card {
        padding: 12px;
        margin-bottom: 10px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-header {
        gap: 10px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 15px;
    }

    .cart-item-qty {
        font-size: 14px;
    }

    .cart-qty-controls {
        gap: 8px;
        padding: 2px;
    }

    .cart-qty-btn {
        width: 52px;
        height: 28px;
    }

        .cart-qty-btn svg {
            width: 10px;
            height: 10px;
        }

    .cart-qty-display {
        min-width: 28px;
        font-size: 14px;
    }

    .cart-action-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }

    .cart-action-btn {
        flex: 1;
        min-width: 80px;
        font-size: 12px;
        padding: 8px 12px;
        justify-content: center;
    }

        .cart-action-btn svg {
            width: 12px;
            height: 12px;
        }

    /* ========================================
       CART SUMMARY - MOBILE
    ======================================== */
    .cart-summary {
        padding: 16px;
    }

    .cart-total-row {
        font-size: 13px;
    }

        .cart-total-row.subtotal {
            font-size: 15px;
        }

        .cart-total-row.final-total {
            font-size: 18px;
        }

    .checkout-actions {
        gap: 8px;
    }

    .empty-cart-btn {
        padding: 10px 14px;
        font-size: 12px;
    }

    .checkout-btn {
        padding: 14px 16px;
        font-size: 16px;
    }

    /* ========================================
       ADDON MODAL - MOBILE OPTIMIZED
    ======================================== */
    #addonModal {
        padding: 0;
        align-items: flex-start;
    }

    #addonModalContent {
        max-width: 100%;
        width: 85%;
        height: 90%;
        border-radius: 10px;
        padding: 20px;
        overflow-y: auto;
        margin-top: 10%;
    }

    .modal-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .modal-title {
        font-size: 12px;
    }

    .modal-item-name {
        font-size: 16px;
    }

    /* Addon Categories */
    .addon-category {
        padding: 12px;
        margin-bottom: 16px;
    }

    .addon-category-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .max-selection {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* Addon Options - Single Column */
    .addon-options {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .addon-label {
        padding: 10px;
    }

        .addon-label img {
            width: 50px;
            height: 50px;
        }

        .addon-label .addon-text .font-medium {
            font-size: 14px;
        }

        .addon-label .addon-text .text-sm {
            font-size: 12px;
        }

    /* Quantity Controls in Modal */
    .addon-options > div[data-item-no] {
        padding: 10px;
    }

        .addon-options > div[data-item-no] img {
            width: 50px;
            height: 50px;
        }

    .qty-control {
        gap: 6px;
    }

        .qty-control button {
            width: 28px;
            height: 28px;
            font-size: 16px;
        }

    .qty-count {
        min-width: 28px;
        font-size: 15px;
    }

    /* Modal Buttons */
    .btn-add-to-cart {
        font-size: 16px;
        padding: 14px 20px;
        position: sticky;
        bottom: 0;
        width: 100%;
        z-index: 100;
        margin-top: 16px;
    }

    /* ========================================
       LANDING PAGE - MOBILE
    ======================================== */
    .landing-container {
        padding: 80px 16px;
        padding-bottom: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 10%;
    }

    .landing-logo-icon {
        width: 120px;
        height: 120px;
    }

    .landing-welcome {
        font-size: 16px;
        padding: 0 16px;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .landing-options {
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
        width: 100%;
        max-width: 100%;
        align-items: center;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .landing-option {
        width: 100%;
        max-width: 100%;
        padding: 32px 24px;
        margin: 0;
        box-sizing: border-box;
    }

    .landing-option-icon {
        font-size: 56px;
        margin-bottom: 10px;
    }

    .landing-option-title {
        font-size: 24px;
    }

    .landing-option-desc {
        font-size: 15px;
        /*margin-bottom: 24px;*/
    }

    .landing-option-btn {
        padding: 14px 28px;
        font-size: 12px;
    }

    .landing-footer {
        bottom: 20px;
        padding: 12px 24px;
        font-size: 14px;
    }

    .landing-time {
        font-size: 14px;
    }

    /* ========================================
       SUCCESS MODAL - MOBILE
    ======================================== */
    .modal-content {
        max-width: 100%;
        width: 100%;
        padding: 20px;
        max-height: 95svh;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .modal h2 {
        font-size: 15px;
    }

    .order-number {
        font-size: 18px;
    }

    .order-item-card {
        padding: 10px;
    }

    .order-item-image img {
        width: 50px;
        height: 50px;
    }

    .order-item-name {
        font-size: 13px;
    }

    .order-item-price {
        font-size: 14px;
    }

    .order-item-qty-badge {
        font-size: 11px;
        padding: 2px 6px;
    }

    .close-btn {
        padding: 12px 28px;
        font-size: 15px;
    }

    /* ========================================
       ERROR MODAL - MOBILE
    ======================================== */
    .error-modal {
        max-width: 95%;
        width: 95%;
        padding: 24px;
    }

    .error-modal-title {
        font-size: 22px;
    }

    .error-modal-message {
        font-size: 15px;
    }

    .error-modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .error-modal-btn {
        width: 100%;
        min-width: unset;
        padding: 12px 24px;
    }

    /* ========================================
       EMPTY CART MODAL - MOBILE
    ======================================== */
    .empty-cart-modal {
        max-width: 90%;
        width: 90%;
        padding: 24px;
    }

    .empty-cart-modal-icon {
        width: 56px;
        height: 56px;
    }

    .empty-cart-modal-title {
        font-size: 18px;
    }

    .empty-cart-modal-message {
        font-size: 13px;
    }

    .empty-cart-modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .empty-cart-modal-btn {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .category-tab.mobile-sticky {
        position: sticky !important;
        left: 0;
        top: auto !important;
        z-index: 100;
    }
}

@media (max-width: 992px) and (orientation: landscape) {
    .category-tab.mobile-sticky {
        left: 0 !important;
    }
}

/* ============================================
   SMALL PHONES (< 480px)
============================================ */
@media (max-width: 479px) {

    /* Further reduce sizes for very small screens */
    .header {
        padding: 10px 12px;
        height: 60px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .landing-logo-icon1 {
        width: 36px;
        height: 36px;
    }

    .header-info {
        font-size: 12px;
    }

    .start-over-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Bottom nav - more compact */
    .bottom-nav {
        height: 80px;
        /*padding: 8px 12px;*/
    }

    .nav-item {
        padding: 10px 16px;
        gap: 10px;
    }

    .nav-icon {
        font-size: 22px;
    }

    .nav-label {
        font-size: 11px;
    }

    #navSubtotal {
        font-size: 13px;
    }

    /* Menu items - more compact */
    .menu-item {
        padding: 10px;
    }

    .item-image {
        width: 80px;
        height: 80px;
    }

    .item-info h3 {
        font-size: 14px;
    }

    .item-description {
        font-size: 12px;
    }

    .item-price {
        font-size: 16px;
    }

    /* Landing page - smaller */
    .landing-logo-icon {
        width: 100px;
        height: 100px;
    }

    .landing-welcome {
        font-size: 14px;
    }

    .landing-option {
        padding: 24px 20px;
    }

    .landing-option-icon {
        font-size: 48px;
    }

    .landing-option-title {
        font-size: 14px;
    }

    .landing-option-desc {
        font-size: 12px;
    }



    /* Desktop - 2 columns if you want */

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-item {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        background: var(--background);
        border-radius: var(--radius-lg);
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid var(--border);
        overflow: hidden;
        min-height: 130px; /* 👈 Use min-height instead of fixed height */
    }

        .menu-item:hover {
            transform: translateY(-2px); /* 👈 Subtle lift */
            box-shadow: var(--shadow-md); /* 👈 Lighter shadow */
            border-color: var(--primary);
        }

    .item-image {
        width: 130px; /* 👈 Slightly smaller to match your image */
        min-width: 130px;
        height: 100%;
        flex-shrink: 0;
        background: var(--surface);
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

        .item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 👈 Ensures image fills space nicely */
        }



    .item-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-top: auto; /* 👈 Push to bottom */
    }

    /* For grid layout - single column on mobile, 2 columns on larger screens */
    .menu-grid {
        display: grid;
        grid-template-columns: 1fr; /* 👈 Single column */
        gap: 16px;
        align-items: stretch;
    }
}

/* ============================================
   LANDSCAPE MODE - OPTIMIZE FOR HORIZONTAL
============================================ */
@media (max-width: 992px) and (orientation: landscape) {

    .landing-options {
        flex-direction: row;
        gap: 20px;
    }

    .landing-option {
        flex: 1;
        max-width: 50%;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .addon-options {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   TOUCH-FRIENDLY ENHANCEMENTS
============================================ */
@media (max-width: 992px) {

    /* Larger touch targets */
    button,
    .nav-item,
    .menu-item,
    .cart-action-btn,
    .language-option,
    .category-tab,
    .addon-label {
        min-height: 44px; /* iOS recommended touch target */
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

        /* Remove hover effects on mobile */
        .menu-item:hover,
        .nav-item:hover,
        .cart-action-btn:hover,
        .add-btn:hover,
        .checkout-btn:hover {
            transform: none;
        }

        /* Add active states for touch feedback */
        .menu-item:active {
            transform: scale(0.98);
            opacity: 0.9;
        }

        .add-btn:active,
        .checkout-btn:active,
        .cart-action-btn:active {
            transform: scale(0.95);
        }

    /* Smooth scrolling */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent text selection on buttons */
    button,
    .nav-item,
    .cart-action-btn {
        -webkit-user-select: none;
        user-select: none;
        padding: 15px;
    }
}

/* ============================================
   SAFE AREAS FOR NOTCHED DEVICES
============================================ */
@supports (padding: max(0px)) {
    @media (max-width: 992px) {
        .header {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
            padding-top: max(12px, env(safe-area-inset-top));
        }

        .bottom-nav {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
            padding-bottom: max(10px, env(safe-area-inset-bottom));
        }

        .cart-modal {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
============================================ */
@media (max-width: 992px) {

    /* Disable animations on low-end devices */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Optimize image rendering */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
============================================ */
@media (max-width: 992px) {

    /* Larger text for better readability */
    @media (prefers-contrast: high) {
        body {
            font-size: 16px;
        }

        .item-info h3 {
            font-size: 16px;
        }

        .cart-item-name {
            font-size: 15px;
        }
    }

    /* Focus states for keyboard navigation */
    button:focus-visible,
    input:focus-visible,
    .addon-label:focus-within {
        outline: 3px solid var(--primary);
        outline-offset: 2px;
    }
}

/* ============================================
   AUTO-SCROLL CONTROL STYLES
============================================ */
.auto-scroll-control {
    position: fixed;
    bottom: 90px; /* Above bottom nav */
    right: 16px;
    z-index: 98;
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
    animation-delay: 2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auto-scroll-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

    .auto-scroll-toggle:active {
        transform: scale(0.95);
    }

    .auto-scroll-toggle.active {
        background: var(--primary);
        border-color: var(--primary);
    }

    .auto-scroll-toggle .icon-play,
    .auto-scroll-toggle .icon-pause {
        width: 16px;
        height: 16px;
        transition: opacity 0.2s ease;
    }

.auto-scroll-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress indicator */
.auto-scroll-toggle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: white;
    border-radius: 0 0 24px 24px;
    width: 0;
    transition: width 5s linear;
}

.auto-scroll-toggle.active::before {
    width: 100%;
}

/* Hide on desktop */
@media (min-width: 993px) {
    .auto-scroll-control {
        display: none !important;
    }
}

/* ============================================
   CATEGORY TAB PROGRESS INDICATOR
============================================ */
.category-tab.active.auto-scrolling::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    animation: progressBar 5s linear;
    border-radius: 0;
}

@keyframes progressBar {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Ensure allergen badge is always visible */
.allergen-badge {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Make sure the flex container doesn't hide content */
.item-info > div[style*="display: flex"] {
    min-height: auto;
    align-items: flex-start;
}

/* Ensure image wrapper displays correctly */
.image-wrapper img {
    display: block !important;
}

/* Prevent any potential hiding of allergen badges */
[style*="flex-shrink: 0"] img.allergen-badge {
    display: block !important;
    visibility: visible !important;
}

/* ============================================
   PRELOAD ANIMATIONS
   ============================================ */

/* Skeleton loader for menu items */
.skeleton-loader {
    background: linear-gradient( 90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100% );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Skeleton for menu grid */
.menu-item-skeleton {
    width: 100%;
    height: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
}

.skeleton-text {
    width: 80%;
    height: 20px;
    margin-bottom: 0.5rem;
}

.skeleton-text-short {
    width: 60%;
    height: 16px;
    margin-bottom: 0.75rem;
}

.skeleton-button {
    width: 100px;
    height: 36px;
    margin-top: 1rem;
    margin-left: auto;
}

/* Image loading state */
.image-loading {
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
}

    .image-loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100% );
        animation: shimmer 1.5s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Image fade-in when loaded */
.menu-item img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .menu-item img.loaded {
        opacity: 1;
    }

/* Cart image loading */
.cart-item-image {
    position: relative;
    background: #f0f0f0;
}

    .cart-item-image.loading::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100% );
        animation: shimmer 1.5s infinite;
    }

/* Spinner loader for data */
.data-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 1rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Category tabs skeleton */
.category-tab-skeleton {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
}

    .category-tab-skeleton .skeleton-tab {
        width: 120px;
        height: 48px;
        border-radius: 8px;
    }


/* ========================================
   CART ITEM ACTIONS - RESPONSIVE LAYOUT
======================================== */

/* Desktop & Tablet - Horizontal Layout */
.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    gap: 12px;
    border-top: 1px solid #f3f4f6;
}

/* Quantity Controls - Left Side */
.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 2px;
    flex-shrink: 0;
    order: 1;
    height: 44px; /* Fixed container height */
}

.cart-qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #374151;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

    .cart-qty-btn:hover {
        background: #e5e7eb;
        color: #1f2937;
    }

    .cart-qty-btn:active {
        transform: scale(0.90);
        background: #d1d5db;
        transition: all 0.05s ease;
    }

    .cart-qty-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.cart-qty-display,
.cart-qty-value {
    min-width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Action Buttons Container - Right Side */
.cart-action-buttons {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    order: 2;
    min-width: 0;
    height: 44px; /* Match qty controls height */
}

/* Base Button Styles - ALL SAME HEIGHT */
.cart-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
    height: 40px; /* FIXED HEIGHT - same as qty buttons */
    border: 1.5px solid;
    border-radius: 8px;
    background: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    flex-shrink: 0;
}

    .cart-action-btn:active {
        transform: scale(0.98);
    }

    .cart-action-btn svg {
        flex-shrink: 0;
        width: 13px;
        height: 13px;
        transition: transform 0.2s ease;
    }

/* ========================================
   BUTTON WIDTHS - DESKTOP/TABLET
======================================== */

/* Takeaway - Fixed width */
.cart-takeaway-btn {
    min-width: 100px;
    padding: 0 10px;
}

/* Edit - Fixed width */
.cart-edit-btn {
    min-width: 70px;
    padding: 0 8px;
}

/* Remove - Fixed width */
.cart-remove-btn {
    min-width: 90px;
    padding: 0 10px;
}

/* ========================================
   BUTTON THEMES
======================================== */

/* Takeaway - Yellow */
.cart-takeaway-btn {
    border-color: #fef08a;
    background: #fffbeb;
    color: #ca8a04;
}

    .cart-takeaway-btn:hover {
        background: #fef08a;
        border-color: #facc15;
        color: #a16207;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(234, 179, 8, 0.25);
    }

        .cart-takeaway-btn:hover svg {
            transform: scale(1.1);
        }

/* Edit - Blue */
.cart-edit-btn {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

    .cart-edit-btn:hover {
        background: #dbeafe;
        border-color: #60a5fa;
        color: #1d4ed8;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
    }

        .cart-edit-btn:hover svg {
            transform: scale(1.1);
        }

/* Remove - Red */
.cart-remove-btn {
    border-color: #fecaca;
    background: #fef2f2;
    color: #ef4444;
}

    .cart-remove-btn:hover {
        background: #fee2e2;
        border-color: #fca5a5;
        color: #dc2626;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
    }

        .cart-remove-btn:hover svg {
            transform: scale(1.1);
        }

/* ========================================
   MOBILE — FORCE SMALLER QTY CONTROLS
======================================== */
@media (max-width: 640px) {

    /* FORCE override full box */
    .cart-item-actions .cart-qty-controls {
        background: none !important;
        padding: 0 !important;
        gap: 6px !important;
        display: flex !important;
        align-items: center !important;
        height: auto !important;
    }

    /* FORCE smaller minus/plus buttons */
    .cart-item-actions .cart-qty-btn {
        background: #f1f5f9 !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Smaller number */
    .cart-item-actions .cart-qty-display,
    .cart-item-actions .cart-qty-value {
        font-size: 14px !important;
        min-width: 28px !important;
        text-align: center !important;
    }

    /* Reduce spacing above action buttons */
    .cart-item-actions {
        gap: 5px !important;
        margin-top: 0 !important;
        padding-top: 10px !important;
    }

    /* Adjust action buttons container */
    .cart-action-buttons {
        height: auto !important;
        gap: 5px !important;
    }

    /* Smaller action buttons on mobile */
    .cart-action-btn {
        height: 36px !important;
        font-size: 11px !important;
        padding: 0 8px !important;
    }

    .cart-takeaway-btn {
        min-width: 85px !important;
    }

    .cart-edit-btn {
        min-width: 60px !important;
    }

    .cart-remove-btn {
        min-width: 75px !important;
    }
}

/* SMALL MOBILE (480px) */
@media (max-width: 480px) {
    .cart-item-actions .cart-qty-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 13px !important;
    }

    .cart-item-actions .cart-qty-display,
    .cart-item-actions .cart-qty-value {
        font-size: 13px !important;
        min-width: 26px !important;
    }

    .cart-item-actions .cart-qty-controls {
        gap: 0px !important;
    }

    .cart-action-btn {
        height: 34px !important;
        font-size: 10px !important;
    }

        .cart-action-btn svg {
            width: 12px !important;
            height: 12px !important;
        }
}

/* EXTRA SMALL (380px) */
@media (max-width: 380px) {
    .cart-item-actions .cart-qty-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
        border-radius: 4px !important;
    }

    .cart-item-actions .cart-qty-display,
    .cart-item-actions .cart-qty-value {
        font-size: 12px !important;
        min-width: 24px !important;
    }

    .cart-item-actions .cart-qty-controls {
        gap: 4px !important;
    }

    .cart-action-btn {
        height: 32px !important;
        font-size: 9px !important;
        padding: 0 6px !important;
    }

    .cart-takeaway-btn {
        min-width: 75px !important;
    }

    .cart-edit-btn {
        min-width: 55px !important;
    }

    .cart-remove-btn {
        min-width: 65px !important;
    }
}




.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.login-modal {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #f3f4f6;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

    .back-arrow:hover {
        background: #e5e7eb;
        color: #374151;
        transform: translateX(-3px);
    }

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

    .login-header h2 {
        font-size: 2rem;
        color: #1f2937;
        margin-bottom: 10px;
    }

    .login-header p {
        color: #6b7280;
        font-size: 1rem;
    }

.success-message,
.error-message {
    display: none;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.success-message {
    background: #10b981;
    color: white;
}

.error-message {
    background: #ef4444;
    color: white;
}

    .success-message.show,
    .error-message.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }

.login-form {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.phone-input-wrapper {
    display: flex;
    gap: 10px;
}

.country-code {
    flex-shrink: 0;
    width: 100px;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.phone-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .phone-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

.login-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .login-btn:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(101, 163, 154, 0.4);
    }

    .login-btn:active {
        transform: translateY(0);
    }

/* Member/Guest option cards - subtle styling */
.member-option-card {
    cursor: pointer;
}

.guest-option-card {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .login-modal {
        padding: 40px 25px;
        width: 95%;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }
}
/* ============================================
   MEMBER BADGE STYLES
   ============================================ */

.member-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    max-width: 300px;
}

    .member-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    }

.member-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.member-tier {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-points {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.member-logout {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

    .member-logout:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .member-logout svg {
        width: 16px;
        height: 16px;
        stroke: white;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .member-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        gap: 8px;
    }

    .member-name {
        font-size: 0.85rem;
    }

    .member-tier {
        font-size: 0.7rem;
    }

    .member-points {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .member-logout {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   OPTIMIZED VOUCHER SYSTEM CSS
   Focus: Performance, Reduced Animations, GPU Acceleration
============================================ */

/* ============================================
   VOUCHER BANNER (In Cart) - COMPACT VERSION
============================================ */
.voucher-banner {
    position: relative; /* Changed from sticky */
    z-index: 10;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 16px 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.voucher-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0; /* Allow text to shrink */
}

.voucher-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.voucher-text {
    flex: 1;
    min-width: 0; /* Allow text to wrap/truncate */
}

    .voucher-text strong {
        font-size: 15px;
        color: #92400e;
        display: block;
        margin-bottom: 2px;
        font-weight: 700;
        line-height: 1.3;
    }

    .voucher-text p {
        font-size: 12px;
        color: #78350f;
        margin: 0;
        font-weight: 500;
        line-height: 1.3;
    }

.voucher-banner-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

    .voucher-banner-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
    }

    .voucher-banner-btn:active {
        transform: translateY(0);
    }

/* Mobile optimization */
@media (max-width: 480px) {
    .voucher-banner {
        padding: 10px 12px;
        margin: 10px 12px;
        gap: 10px;
        border-radius: 10px;
    }

    .voucher-icon {
        font-size: 24px;
    }

    .voucher-text strong {
        font-size: 14px;
    }

    .voucher-text p {
        font-size: 11px;
    }

    .voucher-banner-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
/* ============================================
   FLOATING ACTION BUTTON (FAB)
============================================ */
.voucher-fab {
    position: fixed;
    bottom: 160px;
    right: 24px;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease; /* Simplified */
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed: animation */
}

    .voucher-fab:hover {
        transform: scale(1.05);
    }

    .voucher-fab:active {
        transform: scale(0.95);
    }

.fab-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 14px;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ============================================
   FULLSCREEN VOUCHERS MODAL
============================================ */
.fullscreen-vouchers-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
}

    .fullscreen-vouchers-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.fullscreen-vouchers-content {
    width: 95%;
    height: 95%;
    max-width: 1400px;
    max-height: 90vh;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transform: translateZ(0);
}

/* ============================================
   MODAL HEADER
============================================ */
.vouchers-modal-header {
    padding: 24px 32px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    flex-wrap: wrap;
    gap: 16px;
    flex-shrink: 0;
}

    .vouchers-modal-header h2 {
        margin: 0;
        font-size: 1.75rem;
        font-weight: 700;
        color: #111827;
    }

.close-vouchers-btn {
    background: #f3f4f6;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .close-vouchers-btn:hover {
        background: #fee2e2;
        color: #ef4444;
        transform: rotate(90deg);
    }

/* ============================================
   FILTER BUTTONS
============================================ */
.voucher-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.voucher-filter-btn {
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s ease;
}

    .voucher-filter-btn:hover {
        background: #f9fafb;
        border-color: var(--primary);
        color: var(--primary);
    }

    .voucher-filter-btn.active {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
        color: white;
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

/* ============================================
   VOUCHERS GRID
============================================ */
.fullscreen-vouchers-grid {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    align-content: start;
    background: #f9fafb;
    contain: layout style paint;
    will-change: scroll-position;
}

    .fullscreen-vouchers-grid::-webkit-scrollbar {
        width: 10px;
    }

    .fullscreen-vouchers-grid::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    .fullscreen-vouchers-grid::-webkit-scrollbar-thumb {
        background: var(--primary, #2563eb);
        border-radius: 10px;
        border: 2px solid #f1f5f9;
    }

/* ============================================
   VOUCHER CARD
============================================ */
.voucher-card-full {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    contain: layout style;
}

    .voucher-card-full:hover {
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .voucher-card-full.selected {
        border-color: #10b981;
        background: #f0fdf4;
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
    }

        .voucher-card-full.selected::after {
            content: '✓';
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            background: #10b981;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
        }

/* ============================================
   VOUCHER CARD HEADER
============================================ */
.voucher-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.voucher-image-large {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.voucher-info-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* ============================================
   TYPE BADGES
============================================ */
.voucher-type-badge-small {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

    .voucher-type-badge-small.issued_reward {
        background: #dbeafe;
        color: #1e40af;
        border: 1px solid rgba(30, 64, 175, 0.3);
    }

    .voucher-type-badge-small.reward {
        background: #fed7aa;
        color: #c2410c;
        border: 1px solid rgba(194, 65, 12, 0.3);
    }

/* ============================================
   VOUCHER NAME & CODE
============================================ */
.voucher-name-full {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.voucher-code {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    background: var(--primary-light, #eff6ff);
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px dashed var(--primary);
    align-self: flex-start;
    letter-spacing: 0.05em;
}

/* ============================================
   VOUCHER DETAILS
============================================ */
.voucher-details {
    background: #f0fdf4;
    border-radius: 10px;
    padding: 16px;
    border-left: 3px solid #10b981;
}

.voucher-discount-rule {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .voucher-discount-rule::before {
        content: '💰';
        font-size: 1.1rem;
    }

.voucher-quantity {
    font-size: 0.9rem;
    color: #047857;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .voucher-quantity::before {
        content: '📊';
        font-size: 0.95rem;
    }

/* ============================================
   EXPIRY WARNING
============================================ */
.voucher-expiry {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #dc2626;
    font-weight: 600;
    padding: 10px 12px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

    .voucher-expiry::before {
        content: '⏰';
        font-size: 1rem;
    }

/* ============================================
   SELECT BUTTON
============================================ */
.voucher-select-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

    .voucher-select-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    }

    .voucher-select-btn:active {
        transform: translateY(0);
    }

    .voucher-select-btn.selected {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }

/* ============================================
   NO VOUCHERS STATE
============================================ */
.no-vouchers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.no-vouchers-icon {
    font-size: 4rem;
    opacity: 0.4;
}

.no-vouchers p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   LOADING STATES
============================================ */
.vouchers-loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.vouchers-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.vouchers-loading-text {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* ============================================
   CART VOUCHER DISPLAY (In Cart Summary)
============================================ */
.voucher-discount-row {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 12px 16px !important;
    border-radius: 8px;
    margin: 8px 0 !important;
    border: 1px solid #fbbf24 !important;
}

.voucher-discount-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.voucher-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.voucher-icon {
    font-size: 16px;
}

.voucher-name {
    font-weight: 600;
    color: #92400e;
    font-size: 14px;
}

.voucher-amount {
    font-weight: 700 !important;
    color: #b45309 !important;
}

.remove-voucher-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: rgba(185, 28, 28, 0.1);
    border: 1px solid rgba(185, 28, 28, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
}

    .remove-voucher-btn:hover {
        background: rgba(185, 28, 28, 0.2);
        transform: scale(1.1);
    }

    .remove-voucher-btn svg {
        color: #b91c1c;
    }




/* ============================================
   VOUCHER BANNER (In Cart)
============================================ */
.voucher-banner {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.voucher-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.voucher-banner .voucher-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.voucher-text {
    flex: 1;
    min-width: 0;
}

    .voucher-text strong {
        font-size: 15px;
        color: #92400e;
        display: block;
        margin-bottom: 2px;
        font-weight: 700;
        line-height: 1.3;
    }

    .voucher-text p {
        font-size: 12px;
        color: #78350f;
        margin: 0;
        font-weight: 500;
        line-height: 1.3;
    }

.voucher-banner-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

    .voucher-banner-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
    }

    .voucher-banner-btn:active {
        transform: translateY(0);
    }

/* ============================================
   RESPONSIVE - TABLET
============================================ */
@media (max-width: 992px) {
    .fullscreen-vouchers-content {
        width: 96%;
        height: 96%;
    }

    .fullscreen-vouchers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
        padding: 20px;
    }

    .voucher-card-full {
        padding: 16px;
    }

    .voucher-image-large {
        width: 70px;
        height: 70px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
============================================ */
@media (max-width: 768px) {
    .fullscreen-vouchers-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .fullscreen-vouchers-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
    }

    .vouchers-modal-header {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

        .vouchers-modal-header h2 {
            font-size: 1.4rem;
        }

    .voucher-filters {
        width: 100%;
        justify-content: center;
    }

    .voucher-filter-btn {
        flex: 1;
        min-width: 70px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .voucher-card-full {
        padding: 14px;
    }

    .voucher-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .voucher-image-large {
        width: 100%;
        max-width: 120px;
        height: 120px;
    }

    .voucher-info-full {
        align-items: center;
    }

    .voucher-banner {
        flex-direction: column;
        padding: 12px;
        margin: 10px 12px;
    }

    .voucher-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .voucher-banner .voucher-icon {
        font-size: 24px;
    }

    .voucher-text strong {
        font-size: 14px;
    }

    .voucher-text p {
        font-size: 11px;
    }

    .voucher-banner-btn {
        padding: 8px 16px;
        font-size: 13px;
        width: 100%;
    }
}

/* ============================================
   ACCESSIBILITY
============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for better accessibility */
.voucher-select-btn:focus-visible,
.voucher-filter-btn:focus-visible,
.close-vouchers-btn:focus-visible,
.voucher-banner-btn:focus-visible {
    outline: 3px solid var(--primary, #059669);
    outline-offset: 2px;
}

/* Success Banner Styles */
.voucher-modal-success-banner {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 24px 24px 24px;
    display: none;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
    animation: slideDown 0.3s ease;
}

    /* Success Banner Content */
    .voucher-modal-success-banner.show {
        display: flex;
    }

.voucher-success-icon {
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.voucher-success-message {
    flex: 1;
    color: #065f46;
    font-weight: 500;
    font-size: 0.875rem;
}

.voucher-success-close {
    background: none;
    border: none;
    color: #065f46;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

    .voucher-success-close:hover {
        background: rgba(6, 95, 70, 0.1);
    }

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive success banner */
@media (max-width: 768px) {
    .voucher-modal-success-banner {
        margin: 0 16px 16px 16px;
        padding: 14px 16px;
        gap: 12px;
    }

    .voucher-success-message {
        font-size: 0.8rem;
    }
}

.voucher-modal-success-banner.show {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.success-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.success-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

    .success-text strong {
        font-size: 15px;
        font-weight: 700;
        color: #065f46;
        line-height: 1.3;
    }

.success-savings {
    font-size: 14px;
    font-weight: 600;
    color: #047857;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .success-savings::before {
        content: '💰';
        font-size: 15px;
    }

/* Auto-dismiss animation */
.voucher-modal-success-banner.hiding {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ============================================
   RESPONSIVE - MOBILE
============================================ */
@media (max-width: 768px) {
    .voucher-modal-success-banner {
        padding: 14px 16px;
        margin: 0 16px 20px 16px;
    }

    .success-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .success-text strong {
        font-size: 14px;
    }

    .success-savings {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .voucher-modal-success-banner {
        padding: 12px 14px;
        margin: 0 12px 16px 12px;
        gap: 10px;
    }

    .success-banner-content {
        gap: 10px;
    }

    .success-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .success-text strong {
        font-size: 13px;
    }

    .success-savings {
        font-size: 12px;
    }
}


/* ============================================
   MODAL CONTAINER
============================================ */
/* ============================================
   MODAL CONTAINER
============================================ */
.voucher-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 900px;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    z-index: 1000;
}

/* ============================================
   MODAL HEADER
============================================ */
.voucher-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border-gray);
}

.voucher-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.voucher-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px;
    border-radius: 4px;
}

    .voucher-close-btn:hover {
        color: var(--accent-red);
        background: var(--bg-primary);
    }

/* ============================================
   TAB NAVIGATION
============================================ */
.voucher-tabs {
    display: flex;
    justify-content: flex-start;
    padding: 0 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-gray);
}

.voucher-tab {
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    border: none;
    background: none;
}

    .voucher-tab:hover {
        color: var(--text-primary);
    }

    .voucher-tab.active {
        color: var(--text-primary);
        font-weight: 600;
    }

        .voucher-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--accent-green);
        }

.voucher-tab-count {
    margin-left: 4px;
    color: inherit;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ============================================
   SAVINGS BANNER (Top Green Bar)
============================================ */
.voucher-savings-banner {
    background: var(--bg-secondary);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--accent-orange);
    font-weight: 500;
    gap: 8px;
}

.voucher-savings-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voucher-savings-amount {
    color: var(--accent-orange);
    font-weight: 600;
}

.voucher-savings-check {
    color: var(--accent-green);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ============================================
   VOUCHERS GRID
============================================ */
.voucher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 24px;
    background: var(--bg-primary);
    overflow-y: auto;
    max-height: 400px;
}

/* Empty state */
.voucher-grid-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--text-secondary);
    text-align: center;
    grid-column: 1 / -1;
}

/* ============================================
   VOUCHER CARD
============================================ */
.voucher-card {
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    height: fit-content;
}

    .voucher-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

/* Issued Badge */
.voucher-issued-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--info-bg, #dbeafe);
    color: var(--info-text, #1d4ed8);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gift Icon */
.voucher-gift-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* Voucher Card Title */
.voucher-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 8px 0 4px;
    line-height: 1.4;
}

/* Voucher Code */
.voucher-code-pill {
    background: var(--pill-bg);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Discount Info */
.voucher-discount-info {
    background: var(--warning-bg, #fef3c7);
    color: var(--accent-orange);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.voucher-discount-icon {
    font-size: 1rem;
}

/* Select Button */
.voucher-select-button {
    background: var(--button-primary);
    color: var(--button-text, white);
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .voucher-select-button:hover {
        background: var(--button-primary-hover);
        transform: translateY(-1px);
    }

    .voucher-select-button:active {
        transform: translateY(0);
    }

    .voucher-select-button:disabled {
        background: var(--text-secondary);
        color: var(--surface);
        cursor: not-allowed;
        transform: none;
        opacity: 0.6;
    }

/* ============================================
   SUCCESS BANNER
============================================ */
.voucher-modal-success-banner {
    background: var(--success-bg, linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%));
    border: 2px solid var(--accent-green);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 24px 24px 24px;
    display: none;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
    animation: slideDown 0.3s ease;
}

    .voucher-modal-success-banner.show {
        display: flex;
    }

.voucher-success-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface);
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.voucher-success-message {
    flex: 1;
    color: var(--success-text, #065f46);
    font-weight: 500;
    font-size: 0.875rem;
}

.voucher-success-close {
    background: none;
    border: none;
    color: var(--success-text, #065f46);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

    .voucher-success-close:hover {
        background: var(--bg-primary);
    }

/* ============================================
   FOCUS STATES
============================================ */
.voucher-select-btn:focus-visible,
.voucher-filter-btn:focus-visible,
.close-vouchers-btn:focus-visible,
.voucher-banner-btn:focus-visible,
.voucher-close-btn:focus-visible,
.voucher-tab:focus-visible,
.voucher-select-button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   SCROLLBAR STYLING
============================================ */
.voucher-grid::-webkit-scrollbar {
    width: 6px;
}

.voucher-grid::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 9999px;
}

.voucher-grid::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 9999px;
}

    .voucher-grid::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
    }

/* ============================================
   ANIMATIONS
============================================ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 768px) {
    .voucher-modal {
        width: 100%;
        height: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
        max-height: 100vh;
    }

    .voucher-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        max-height: none;
    }

    .voucher-tabs {
        justify-content: space-around;
        padding: 0 16px;
        overflow-x: auto;
    }

    .voucher-tab {
        font-size: 0.75rem;
        padding: 10px 12px;
        flex-shrink: 0;
    }

    .voucher-header {
        padding: 12px 16px;
    }

    .voucher-title {
        font-size: 1.25rem;
    }

    .voucher-savings-banner {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .voucher-modal-success-banner {
        margin: 0 16px 16px 16px;
        padding: 14px 16px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .voucher-card {
        padding: 16px 12px 12px;
    }

    .voucher-gift-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .voucher-card-title {
        font-size: 1rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .voucher-modal,
    .voucher-card,
    .voucher-select-button,
    .voucher-close-btn,
    .voucher-tab {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

        .voucher-card:hover {
            transform: none;
        }
}

/* Backdrop overlay */
.voucher-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--backdrop, rgba(0, 0, 0, 0.5));
    z-index: 999;
}

/* Success Banner Close Button */
.success-banner-close {
    background: none;
    border: none;
    color: #065f46;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .success-banner-close:hover {
        background: rgba(6, 95, 70, 0.1);
    }

    .success-banner-close:focus-visible {
        outline: 2px solid #10b981;
        outline-offset: 2px;
    }

    .success-banner-close svg {
        display: block;
    }

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Enhanced animations */
.voucher-modal-success-banner {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .voucher-modal-success-banner.show {
        opacity: 1;
        transform: translateY(0);
    }

    .voucher-modal-success-banner.hiding {
        opacity: 0;
        transform: translateY(-10px);
    }


/* ========================================
   NAVIGATION SIDEBAR - DESKTOP
======================================== */
.navigation-sidebar {
    width: 280px;
    background: var(--background, #ffffff);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.1));
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    z-index: 50;
    border-right: 1px solid var(--border, #e5e7eb);
    overflow-y: auto;
    padding-bottom: calc(80px + 40px);
    position: relative;
}

.nav-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted, #6b7280);
    margin-bottom: 20px;
    padding: 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

    /* Enhanced Scrollbar - Desktop */
    .category-tabs::-webkit-scrollbar {
        width: 8px;
    }

    .category-tabs::-webkit-scrollbar-track {
        background: var(--surface, #f9fafb);
        border-radius: 10px;
    }

    .category-tabs::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

        .category-tabs::-webkit-scrollbar-thumb:hover {
            background: var(--primary);
        }

/* ========================================
   CATEGORY TABS - DESKTOP
======================================== */
.category-tab {
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary, #4b5563);
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    position: relative;
}

    /*    .category-tab:hover {
        background: var(--surface-hover, #f3f4f6);
        color: var(--primary);
    }*/

    /*    .category-tab.active {
        background: var(--primary, #1e40af);
        color: white;
        box-shadow: var(--shadow-md, 0 4px 6px rgba(0,0,0,0.1));
    }*/

    .category-tab::before {
        content: none;
        display: none;
    }

/* Category tab container */
.category-tab-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Category icon images */
.category-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
}

/* Category text */
.category-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

/* ========================================
   SUBCATEGORIES - DESKTOP
======================================== */
/*.ml-6 {
    margin-left: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.space-y-1 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .space-y-1.hidden {
        display: none;
    }*/

.subcategory-tab {
    padding: 10px 12px;
    min-height: 48px;
    border: none;
    border-radius: 6px;
    background: var(--background, #ffffff);
    color: var(--text-secondary, #4b5563);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    border: 1px solid transparent;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

    .subcategory-tab:hover {
        background: var(--surface-hover, #f3f4f6);
        border-color: var(--primary-light);
    }

    .subcategory-tab.active,
    .subcategory-tab.bg-gray-300 {
        font-weight: 600;
        border-color: var(--primary, #1e40af);
        background-color: #e5e7eb;
    }

    /* Subcategory tab images */
    .subcategory-tab img {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
        object-fit: cover;
        border-radius: 50%;
        flex-shrink: 0;
        display: block;
    }

    .subcategory-tab span {
        flex: 1;
        line-height: 1.4;
        font-size: 14px;
    }

/* ========================================
   MOBILE RESPONSIVE (max-width: 992px)
======================================== */
@media (max-width: 992px) {
    .navigation-sidebar {
        width: 100%;
        height: auto;
        flex-direction: column;
        overflow-x: visible;
        overflow-y: visible;
        padding: 0;
        border-right: none;
        background: transparent;
        box-shadow: none;
        padding-bottom: 0;
    }

    .nav-title {
        display: none;
    }

    /* Category tabs container - horizontal scroll */
    .category-tabs {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        gap: 0;
        padding: 0;
        background: var(--primary, #1e40af);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

        .category-tabs::-webkit-scrollbar {
            display: none;
        }

    /* Individual category tabs - Mobile */
    .category-tab {
        flex: 0 0 auto;
        min-width: 100px;
        max-width: 150px;
        padding: 12px 8px;
        background: transparent;
        color: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 0;
        font-size: 12px;
        font-weight: 600;
        white-space: normal;
        text-align: center;
        transition: all 0.2s ease;
        border-bottom: 3px solid transparent;
        position: relative;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        /*        width: auto;
*/ line-height: 1.3;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: none;
    }

        /*       .category-tab:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .category-tab.active,
        .category-tab.bg-gray-300 {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border-bottom-color: white;
            box-shadow: none;
        }*/

        .category-tab.active {
            /*background-color: white !important;
            color: #00338E !important;*/ /* Use your primary color */
            font-weight: 600;
            /*border-left: 4px solid #00338E !important;*/
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            width: 150px;
        }

        .category-tab:hover:not(.active) {
            background-color: #f3f4f6 !important; /* gray-100 */
        }

    .category-tab-container {
        flex-direction: column;
        gap: 6px;
        align-items: center;
        justify-content: center;
    }

    .category-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
    }

    .category-name {
        font-size: 11px;
        text-align: center;
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }

    /* Hide desktop subcategory container */
    .navigation-sidebar .ml-6,
    .navigation-sidebar .mt-2,
    .navigation-sidebar .space-y-1 {
        display: none !important;
    }

    .navigation-sidebar .subcategory-tab {
        display: none !important;
    }
}

/* ========================================
   MOBILE SUBCATEGORY BAR
======================================== */
.mobile-subcategory-bar {
    display: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 12px 16px;
    background: var(--background, #ffffff);
    border-bottom: 1px solid var(--border, #e5e7eb);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    max-height: 60px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

    .mobile-subcategory-bar::-webkit-scrollbar {
        display: none;
    }

/* Show on mobile only */
@media (max-width: 992px) {
    .mobile-subcategory-bar {
        display: flex;
    }

        /* Completely hide when empty */
        .mobile-subcategory-bar:empty {
            display: none !important;
            height: 0 !important;
            padding: 0 !important;
            border: none !important;
            margin: 0 !important;
            min-height: 0 !important;
        }
}

/* Hide on desktop */
@media (min-width: 993px) {
    .mobile-subcategory-bar {
        display: none !important;
    }
}

.mobile-subcategory-btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    background: var(--surface, #f9fafb);
    color: var(--text-secondary, #4b5563);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    scroll-snap-align: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-width: 80px;
    text-align: center;
    line-height: 1.4;
}

    .mobile-subcategory-btn.active {
        background: var(--primary, #1e40af);
        color: white;
        border-color: var(--primary, #1e40af);
        font-weight: 600;
        transform: scale(1.02);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .mobile-subcategory-btn:active {
        transform: scale(0.98);
    }


#emptyCartModalOverlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

    #emptyCartModalOverlay.active {
        opacity: 1;
        pointer-events: auto;
    }


.cart-modifier-category {
    margin-top: 8px;
}

.cart-modifier-category-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    padding-left: 4px;
}

.cart-modification-item {
    margin-left: 8px;
}

.cart-modification-prefix {
    color: #9ca3af;
    margin-right: 4px;
}

/* Temperature Selection Styles */
.addon-category[data-category-code="TEMPERATURE"] .addon-label {
    position: relative;
    color: #374151; /* Default gray text */
}

    /* Selected state styling */
    .addon-category[data-category-code="TEMPERATURE"] .addon-label.selected {
        border-color: #10b981 !important;
        background-color: #f0fdf4 !important;
        color: #065f46 !important; /* Darker green text when selected */
    }

    /* Text styling */
    .addon-category[data-category-code="TEMPERATURE"] .addon-label span {
        color: inherit;
    }

    .addon-category[data-category-code="TEMPERATURE"] .addon-label .font-semibold {
        color: #111827; /* Dark text for main label */
    }

    .addon-category[data-category-code="TEMPERATURE"] .addon-label.selected .font-semibold {
        color: #065f46; /* Green text when selected */
    }

    .addon-category[data-category-code="TEMPERATURE"] .addon-label .text-gray-600 {
        color: #4b5563; /* Gray for subtitle */
    }

    .addon-category[data-category-code="TEMPERATURE"] .addon-label.selected .text-gray-600 {
        color: #047857; /* Lighter green when selected */
    }

    /* Checkmark indicator */
    .addon-category[data-category-code="TEMPERATURE"] .addon-label.selected::after {
        content: "✓";
        position: absolute;
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        background-color: #10b981;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 16px;
    }


/* Make the entire card clickable */
.addon-category[data-category-code="TEMPERATURE"] .addon-label {
    cursor: pointer;
    user-select: none;
}

/* Modal Container */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 960px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.wizard-container {
    min-height: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
    border-radius: 16px;
}

/* Sticky Header */
.wizard-header {
    text-align: center;
    padding: 20px;
    border-bottom: 2px solid #e5e7eb;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.wizard-subtitle {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    word-break: break-word;
    margin: 0;
}

/* Sticky Progress Bar */
.wizard-progress {
    padding: 20px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #f3f4f6;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .progress-step.active {
        background: var(--primary);
        color: white;
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    }

    .progress-step.completed {
        background: #10b981;
        color: white;
    }

.progress-line {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Scrollable Content Area */
.wizard-content {
    flex: 1;
    padding: 24px 24px 160px 24px; /* Extra bottom padding for sticky footer */
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

    /* Custom Scrollbar */
    .wizard-content::-webkit-scrollbar {
        width: 8px;
    }

    .wizard-content::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 10px;
    }

    .wizard-content::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 10px;
    }

        .wizard-content::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
    text-align: center;
    letter-spacing: 0.05em;
}

.step-subtitle {
    text-align: center;
    color: #6b7280;
    margin: 0 0 32px 0;
    font-size: 14px;
}

/* Grid Layout for Options */
.options-grid {
    display: grid;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 0 8px;
}

.options-single {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.options-multiple {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Ensure 3-column layout on desktop */
@media (min-width: 768px) {
    .options-single {
        grid-template-columns: repeat(2, 1fr);
    }

    .options-multiple {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 2-column on tablets */
@media (max-width: 767px) and (min-width: 481px) {
    .options-single,
    .options-multiple {
        grid-template-columns: repeat(2, 1fr);
    }
}

.option-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: white;
    min-height: 140px;
    position: relative;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

    .option-card:hover {
        border-color: #10b981;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.option-input {
    display: none;
}

.option-card:has(.option-input:checked) {
    border-color: #10b981;
    background: #f0fdf4;
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.option-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: contain;
    margin-bottom: 16px;
}

.option-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.4;
}

.option-price {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    margin-top: auto;
}

/* List Layout for Quantity Options */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
}

    .option-row:hover {
        border-color: #d1d5db;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

.option-image-small {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.option-info {
    flex: 1;
    text-align: left;
    min-width: 0; /* Allows text truncation if needed */
}

/* Quantity Controls */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    user-select: none; /* Prevent text selection on tap */
}

    .qty-btn:hover {
        background: var(--primary-hover);
        transform: scale(1.05);
    }

    .qty-btn:active {
        transform: scale(0.95);
    }

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    color: #1f2937;
}

/* Sticky Navigation Footer */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #ffffff;
    border-top: 2px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    gap: 16px;
}

    /* Alternative: Floating style navigation */
    .wizard-navigation.floating {
        margin: 0 16px 16px 16px;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }

.wizard-btn {
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    user-select: none;
}

.wizard-back {
    background: #f3f4f6;
    color: #374151;
}

    .wizard-back:hover {
        background: #e5e7eb;
        transform: translateX(-2px);
    }

    .wizard-back:active {
        transform: translateX(0);
    }

.wizard-next {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

    .wizard-next:hover {
        background: var(--primary-hover);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        transform: translateY(-1px);
    }

    .wizard-next:active {
        transform: translateY(0);
    }

    .wizard-next.disabled,
    .wizard-next:disabled {
        background: #d1d5db;
        cursor: not-allowed;
        box-shadow: none;
        opacity: 0.6;
    }

        .wizard-next.disabled:hover,
        .wizard-next:disabled:hover {
            transform: none;
        }

/* Mobile Responsive - Tablet & Large Phones */
@media (max-width: 768px) {
    .modal {
        padding: 0;
        align-items: stretch;
    }

    .modal-content {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }

    .wizard-container {
        max-height: 100vh;
        border-radius: 0;
    }

    .wizard-header {
        padding: 18px 16px;
    }

    .wizard-title {
        font-size: 1.375rem; /* 22px */
    }

    .wizard-subtitle {
        font-size: 15px;
    }

    .wizard-progress {
        padding: 16px;
    }

    .progress-step {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .progress-line {
        width: 32px;
    }

    .wizard-content {
        padding: 24px 16px 110px 16px;
    }

    .step-title {
        font-size: 1.125rem; /* 18px */
        margin-bottom: 16px;
    }

    .step-subtitle {
        margin-bottom: 24px;
    }

    /* Single column grid on mobile */
    .options-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 14px;
    }

    .option-card {
        min-height: 130px;
        padding: 22px 16px;
    }

    .option-icon {
        font-size: 2.75rem;
        margin-bottom: 10px;
    }

    .option-image {
        width: 70px;
        height: 70px;
    }

    .option-name {
        font-size: 15px;
    }

    .option-price {
        font-size: 14px;
    }

    .options-list {
        gap: 15px;
    }

    .option-row {
        padding: 14px 12px;
        gap: 12px;
    }

    .option-image-small {
        width: 56px;
        height: 56px;
    }

    /* Better touch targets on mobile */
    .qty-btn {
        width: 45px;
        height: 38px;
        font-size: 20px;
    }

    .qty-display {
        font-size: 17px;
        min-width: 28px;
    }

    .wizard-navigation {
        padding: 16px;
        gap: 12px;
    }

    .wizard-btn {
        padding: 14px 24px;
        font-size: 15px;
        flex: 1;
        min-height: 48px; /* Better touch target */
    }

    .wizard-back svg {
        width: 18px;
        height: 18px;
    }
}

/* Small Mobile - Extra adjustments for small screens */
@media (max-width: 480px) {
    .wizard-header {
        padding: 16px 12px;
    }

    .wizard-title {
        font-size: 1.25rem; /* 20px */
    }

    .wizard-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    .wizard-progress {
        padding: 14px 12px;
    }

    .progress-step {
        width: 60px;
        height: 35px;
        font-size: 12px;
    }

    .progress-line {
        width: 28px;
    }

    .progress-text {
        font-size: 13px;
    }

    .wizard-content {
        padding: 20px 1px 160px 1px;
        /*        padding: 20px 12px 100px 12px;*/
    }

    .step-title {
        font-size: 1.063rem; /* 17px */
        margin-bottom: 14px;
        letter-spacing: 0.02em;
    }

    .step-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .options-grid {
        gap: 12px;
    }

    .option-card {
        min-height: 120px;
        padding: 20px 14px;
    }

    .option-icon {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }

    .option-image {
        width: 64px;
        height: 64px;
        margin-bottom: 12px;
    }

    .option-name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .option-price {
        font-size: 13px;
    }

    .option-row {
        padding: 5px 15px;
        gap: 10px;
    }

    .option-image-small {
        width: 50px;
        height: 50px;
    }

    .qty-btn {
        width: 45px;
        height: 36px;
        font-size: 15px;
    }

    .qty-display {
        font-size: 16px;
        min-width: 26px;
    }

    .wizard-navigation {
        padding: 14px 12px;
        gap: 10px;
    }

    .wizard-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px; /* Minimum touch target */
    }

        .wizard-btn svg {
            width: 16px;
            height: 16px;
        }
}

/* Extra Small Screens */
@media (max-width: 375px) {
    .wizard-header {
        padding: 14px 10px;
    }

    .wizard-title {
        font-size: 1.125rem; /* 18px */
    }

    .wizard-subtitle {
        font-size: 13px;
    }

    .wizard-content {
        padding: 18px 10px 95px 10px;
    }

    .step-title {
        font-size: 1rem; /* 16px */
    }

    .option-card {
        padding: 18px 12px;
    }

    .wizard-btn {
        padding: 11px 18px;
        font-size: 13.5px;
    }
}

/* Landscape Mobile - Optimize for landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .wizard-container {
        max-height: 100vh;
    }

    .wizard-header {
        padding: 12px 16px;
    }

    .wizard-progress {
        padding: 12px 16px;
    }

    .progress-steps {
        margin-bottom: 8px;
    }

    .wizard-content {
        padding: 20px 16px 90px 16px;
    }

    .step-title {
        font-size: 1.125rem;
        margin-bottom: 12px;
    }

    .step-subtitle {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .option-card {
        min-height: 110px;
        padding: 16px 12px;
    }

    .option-icon {
        font-size: 2.25rem;
        margin-bottom: 6px;
    }

    .wizard-navigation {
        padding: 12px 16px;
    }

    .wizard-btn {
        padding: 10px 20px;
        min-height: 40px;
    }
}


/* ============================================ */
/* PROMOTION POPUP MODAL STYLES */
/* ============================================ */
.promotion-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    animation: fadeIn 0.2s forwards;
}

    .promotion-modal-overlay.active {
        display: flex;
        opacity: 1;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.promotion-modal {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    max-width: 90%;
    width: 600px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    animation: modalSlideUp 0.5s ease forwards 0.2s;
}

@keyframes modalSlideUp {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.promotion-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .promotion-close-btn:hover {
        background: #fff;
        color: #333;
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

/* Promotion Header with Image */
.promotion-header {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    .promotion-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: repeating-linear-gradient( 45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px );
        animation: slidePattern 20s linear infinite;
    }

@keyframes slidePattern {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}


.promotion-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.promotion-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Promotion Content */
.promotion-content {
    padding: 40px 32px;
    text-align: center;
}

.promotion-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary, #D3281B), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promotion-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.promotion-description {
    font-size: 16px;
    color: #888;
    line-height: 1.8;
    margin: 0 0 32px 0;
}

/* Promotion Features */
.promotion-features {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
}

.promotion-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .promotion-feature:hover {
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transform: translateX(4px);
    }

.promotion-feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.promotion-feature-text {
    flex: 1;
}

.promotion-feature-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px 0;
}

.promotion-feature-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* CTA Buttons */
.promotion-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promotion-btn {
    padding: 18px 32px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promotion-btn-primary {
    background: linear-gradient(135deg, var(--primary, #D3281B), #ff6b6b);
    color: white;
    box-shadow: 0 8px 24px rgba(211, 40, 27, 0.3);
}

    .promotion-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(211, 40, 27, 0.4);
    }

.promotion-btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
}

    .promotion-btn-secondary:hover {
        background: #f8f9fa;
        border-color: #ccc;
        color: #333;
    }

/* Timer Countdown (Optional) */
.promotion-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #fff3cd, #fff9e6);
    border-radius: 12px;
    border: 2px dashed #ffc107;
}

.promotion-timer-label {
    font-size: 14px;
    font-weight: 600;
    color: #856404;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promotion-timer-value {
    font-size: 20px;
    font-weight: 800;
    color: #ff6b6b;
    font-variant-numeric: tabular-nums;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .promotion-modal {
        max-width: 95%;
        width: 95%;
        max-height: 90vh;
    }


    .promotion-content {
        padding: 32px 24px;
    }

    .promotion-title {
        font-size: 26px;
    }

    .promotion-subtitle {
        font-size: 16px;
    }

    .promotion-btn {
        padding: 16px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .promotion-modal {
        border-radius: 16px;
    }



    .promotion-title {
        font-size: 22px;
    }

    .promotion-feature {
        padding: 12px;
    }

    .promotion-feature-icon {
        font-size: 20px;
    }
}

/* Auto-show animation delay */
.promotion-modal-overlay.auto-show {
    animation-delay: 0.5s;
}