/* ===== DESIGN SYSTEM ===== */
:root {
    /* Colors - NanBurger Yellow & Black Theme */
    --primary: #FFD200;
    --primary-light: #FFE033;
    --primary-dark: #E5BC00;
    --primary-glow: rgba(255, 210, 0, 0.35);

    /* Accent Colors */
    --accent-green: #00D26A;
    --accent-red: #FF3B30;
    --accent-yellow: #FFD200;
    --accent-blue: #007AFF;

    /* Dark Background - True Black */
    --bg: #0a0a0a;
    --bg-warm: #0d0d0d;
    --bg-elevated: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #252525;
    --surface: #2a2a2a;
    --surface-light: #333333;

    /* Gradient backgrounds */
    --bg-gradient: linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
    --card-gradient: linear-gradient(145deg, #1f1f1f 0%, #141414 100%);

    --text: #FFFFFF;
    --text-secondary: #999999;
    --text-tertiary: #666666;

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-warm: rgba(255, 210, 0, 0.2);

    /* Typography */
    --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Syne', sans-serif;

    /* Spacing */
    --safe-bottom: env(safe-area-inset-bottom, 20px);
    --nav-height: 70px;

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-2xl: 32px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --shadow-warm: 0 4px 20px rgba(255, 107, 0, 0.15);

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-warm);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input {
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
}

/* ===== APP CONTAINER ===== */
.app {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg-gradient);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-warm);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--r-md);
    transition: all 0.2s var(--ease);
    position: relative;
}

.nav-item .nav-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.nav-item .nav-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-tertiary);
    transition: all 0.2s var(--ease);
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: color 0.2s var(--ease);
}

.nav-item.active .nav-icon svg {
    stroke: var(--primary);
}

.nav-item.active span {
    color: var(--primary);
}

.nav-item:active {
    transform: scale(0.95);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s var(--ease-spring);
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== HEADER ===== */
.header {
    padding: 16px 16px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to bottom, var(--bg-warm) 80%, transparent);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-info h1 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.halal-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-green);
    background: rgba(0, 210, 106, 0.15);
    padding: 2px 6px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(0, 210, 106, 0.3);
}

.status {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.status.open {
    color: var(--accent-green);
}

.status.open::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.header-action {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
}

.header-action svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
}

.header-action:active {
    transform: scale(0.95);
    background: var(--surface);
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    border-radius: var(--r-lg);
    padding: 14px 18px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-warm);
    color: #000;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120px;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(20deg);
}

.promo-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.promo-tag {
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 10px;
    border-radius: var(--r-sm);
    white-space: nowrap;
}

.promo-content p {
    font-size: 13px;
    line-height: 1.3;
}

.promo-content strong {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ===== CATEGORY PILLS ===== */
.category-section {
    padding: 0 16px;
    margin-bottom: 20px;
    position: sticky;
    top: 110px;
    z-index: 40;
    background: linear-gradient(to bottom, var(--bg-warm) 80%, transparent);
    padding-bottom: 16px;
}

.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding: 4px 0;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    flex-shrink: 0;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease);
    scroll-snap-align: start;
}

.pill:active {
    transform: scale(0.97);
}

.pill.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: #000;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}

/* ===== MENU CONTENT ===== */
.menu-content {
    padding: 0 16px;
}

.category-group {
    margin-bottom: 32px;
}

.category-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-warm), transparent);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.25s var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.product-card:hover {
    border-color: var(--border-warm);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-warm);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:active {
    transform: scale(0.98);
}

.product-icon {
    font-size: 36px;
    line-height: 1;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 8px;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.product-price .menu-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.product-price .solo-price {
    font-size: 11px;
    color: var(--text-tertiary);
}

.product-add {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    transition: all 0.2s var(--ease);
    box-shadow: var(--shadow-glow);
}

.product-add:active {
    transform: scale(0.9);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #FFA000 100%);
    border-radius: var(--r-sm);
    font-size: 9px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.popular {
    background: linear-gradient(135deg, var(--accent-red) 0%, #FF6B6B 100%);
    color: white;
}

/* ===== SHEETS ===== */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    z-index: 200;
    pointer-events: none;
    cursor: pointer;
}

.sheet-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Product Sheet Backdrop - Container for modal */
.product-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    z-index: 215;
    pointer-events: none;
    cursor: pointer;
    /* Flexbox to center the modal inside */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.product-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--bg-elevated);
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    border-top: 1px solid var(--border-warm);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 210;
    display: flex;
    flex-direction: column;
}

.cart-sheet.active {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--surface-light);
    border-radius: var(--r-full);
    margin: 12px auto;
    flex-shrink: 0;
}

.sheet-header {
    padding: 0 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.sheet-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.clear-cart {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-red);
    padding: 6px 12px;
    border-radius: var(--r-sm);
    transition: background 0.2s;
}

.clear-cart:hover {
    background: rgba(255, 59, 48, 0.1);
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-cart.hidden {
    display: none;
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-cart p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.empty-cart span {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
}

.cart-item-icon {
    font-size: 32px;
    line-height: 1;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-options {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    padding: 4px;
    border-radius: var(--r-sm);
}

.cart-control-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--r-sm);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s var(--ease);
}

.cart-control-btn:active {
    transform: scale(0.9);
}

.cart-control-btn.delete {
    color: var(--accent-red);
}

.cart-item-qty {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Sheet Footer */
.sheet-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.sheet-footer.hidden {
    display: none;
}

.cart-summary {
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row .free {
    color: var(--accent-green);
    font-weight: 600;
}

.summary-row.total {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
}

.checkout-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--r-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s var(--ease);
}

.checkout-btn:active {
    transform: scale(0.98);
}

.checkout-price {
    font-weight: 700;
}

/* ===== PRODUCT SHEET ===== */
.product-sheet {
    position: relative;
    width: 100%;
    max-height: 90vh;
    background: var(--bg-elevated);
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    border-top: 1px solid var(--border-warm);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: default;
}

.product-sheet.active {
    transform: translateY(0);
}

.sheet-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--surface);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.sheet-close:hover {
    background: var(--surface-light);
}

.sheet-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
}

.product-header {
    padding: 24px 20px 16px;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.08) 0%, transparent 100%);
}

.product-icon-large {
    font-size: 72px;
    line-height: 1;
    margin-bottom: 12px;
    display: inline-block;
    animation: bounceIn 0.5s var(--ease-spring);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.product-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--r-sm);
    font-size: 11px;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 0 20px 20px;
    text-align: center;
}

.product-info h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Price Options */
.product-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.price-option {
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.price-option:active {
    transform: scale(0.98);
}

.price-option.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 0, 0.1);
    box-shadow: var(--shadow-glow);
}

.price-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.price-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.price-includes {
    display: block;
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Product Options */
.product-options {
    padding: 0 20px;
    overflow-y: auto;
    flex: 1;
}

.option-group {
    margin-bottom: 20px;
}

.option-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.option-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-chip {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease);
}

.option-chip:active {
    transform: scale(0.97);
}

.option-chip.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    font-weight: 600;
}

/* Product Footer */
.product-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--bg-elevated);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 8px 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border-radius: var(--r-sm);
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
}

.qty-btn:active {
    transform: scale(0.9);
    background: var(--surface-light);
}

.qty-value {
    font-size: 18px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.add-to-cart-btn {
    flex: 1;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--r-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s var(--ease);
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

/* ===== SEARCH VIEW ===== */
.search-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(var(--nav-height) + var(--safe-bottom));
    background: var(--bg-warm);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease);
    overflow-y: auto;
}

.search-view.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-header {
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
}

.search-input-wrapper svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-tertiary);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    font-size: 16px;
    color: var(--text);
}

.search-input-wrapper input::placeholder {
    color: var(--text-tertiary);
}

.search-clear {
    width: 24px;
    height: 24px;
    background: var(--surface);
    border-radius: var(--r-full);
    font-size: 16px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.search-clear.visible {
    opacity: 1;
}

.search-results {
    padding: 0 16px;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
    overflow-y: auto;
    height: calc(100% - 80px);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-green);
    padding: 12px 24px;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 300;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ===== DESKTOP LAYOUT ===== */
@media (min-width: 768px) {
    :root {
        --nav-height: 0px;
    }

    .app {
        max-width: 100%;
        margin: 0;
    }

    /* Hide bottom nav on desktop */
    .bottom-nav {
        display: none;
    }

    /* Desktop header with navigation */
    .header {
        padding: 20px 40px 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 30px;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }

    .header-top {
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .promo-banner {
        flex: 1;
        margin-bottom: 0;
        max-width: 400px;
    }

    .header-desktop-nav {
        display: flex;
        gap: 8px;
        margin-left: auto;
    }

    .desktop-nav-btn {
        padding: 10px 20px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--r-md);
        font-size: 14px;
        font-weight: 500;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s;
    }

    .desktop-nav-btn:hover {
        background: var(--surface);
        color: var(--text);
    }

    .desktop-nav-btn.primary {
        background: var(--primary);
        border-color: var(--primary);
        color: #000;
        font-weight: 700;
    }

    .desktop-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Main content with sidebar layout */
    .main-content {
        padding-top: 120px;
        padding-bottom: 40px;
        display: flex;
        max-width: 1400px;
        margin: 0 auto;
    }

    /* Categories sidebar on desktop */
    .category-section {
        position: fixed;
        top: 120px;
        left: 40px;
        width: 200px;
        padding: 0;
        background: transparent;
        z-index: 50;
    }

    .category-pills {
        flex-direction: column;
        overflow: visible;
        gap: 6px;
    }

    .pill {
        padding: 12px 18px;
        border-radius: var(--r-md);
        text-align: left;
        justify-content: flex-start;
    }

    /* Menu content takes remaining space */
    .menu-content {
        flex: 1;
        margin-left: 260px;
        padding: 0 40px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .product-card {
        padding: 20px;
    }

    .product-icon {
        font-size: 44px;
    }

    .product-name {
        font-size: 16px;
    }

    /* Desktop sheets are modals */
    .cart-sheet {
        bottom: auto;
        top: 50%;
        left: 50%;
        right: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0.95);
        max-width: 500px;
        width: 90%;
        max-height: 80vh;
        border-radius: var(--r-2xl);
    }

    .cart-sheet.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }

    /* Product sheet is inside backdrop - use different centering */
    .product-backdrop {
        align-items: center;
        justify-content: center;
    }

    .product-sheet {
        max-width: 500px;
        width: 90%;
        max-height: 80vh;
        border-radius: var(--r-2xl);
        transform: scale(0.95) translateY(20px);
    }

    .product-sheet.active {
        transform: scale(1) translateY(0);
    }

    .sheet-handle {
        display: none;
    }

    .sheet-footer {
        padding-bottom: 20px;
    }

    .product-footer {
        padding-bottom: 20px;
    }

    .toast {
        bottom: 40px;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .menu-content {
        margin-left: 280px;
        padding: 0 60px;
    }

    .category-section {
        left: 60px;
        width: 220px;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideUp 0.4s var(--ease) forwards;
}

/* ===== CHECKOUT MODAL ===== */
.checkout-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    position: relative;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    background: var(--bg-elevated);
    border-radius: var(--r-2xl);
    border: 1px solid var(--border-warm);
    padding: 24px;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s var(--ease-out);
    overflow-y: auto;
}

.checkout-backdrop.active .checkout-modal {
    transform: scale(1) translateY(0);
}

.checkout-header {
    text-align: center;
    margin-bottom: 24px;
}

.checkout-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.checkout-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-group input {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 16px;
    color: var(--text);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-group select {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 16px;
    color: var(--text);
    width: 100%;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.success-pickup-time {
    font-size: 18px;
    color: var(--primary);
    margin: 12px 0;
}

.checkout-summary {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--r-md);
    margin-top: 8px;
}

.checkout-summary .summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
}

.checkout-total {
    color: var(--primary);
}

.confirm-order-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s;
}

.confirm-order-btn:hover {
    transform: translateY(-2px);
}

.confirm-order-btn:active {
    transform: scale(0.98);
}

.confirm-order-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Checkout Success */
.checkout-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.checkout-success.show {
    display: block;
}

.checkout-form.hidden {
    display: none;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.checkout-success h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent-green);
}

.success-order-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: var(--r-md);
    margin: 16px 0;
    display: inline-block;
}

.checkout-success p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.close-success-btn {
    margin-top: 24px;
    padding: 14px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.close-success-btn:hover {
    background: var(--surface);
}

/* ===== INFO VIEW ===== */
.info-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(var(--nav-height) + var(--safe-bottom));
    background: var(--bg-warm);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease);
    overflow-y: auto;
    padding-bottom: 40px;
}

.info-view.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.info-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.15) 0%, transparent 100%);
}

.info-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 16px;
}

.info-header h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.info-tagline {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-content {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-card-icon {
    font-size: 28px;
    line-height: 1;
}

.info-card-content {
    flex: 1;
}

.info-card-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.info-card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.info-link:hover {
    text-decoration: underline;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hours-grid span:nth-child(even) {
    color: var(--text);
    font-weight: 500;
    text-align: right;
}

.info-footer {
    text-align: center;
    padding: 30px 20px;
}

.info-footer p {
    color: var(--text-tertiary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-btn {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
}