/**
 * TorFoods — EMBER Design System
 * Warm charcoal & amber design language
 * Fonts: DM Sans (body) + DM Serif Display (headings)
 */

/* ============================================================
   EMBER DESIGN TOKENS
   ============================================================ */
:root {
    --primary: #e85d04;
    --primary-dark: #d45003;
    --primary-light: #f48c06;
    --primary-rgb: 232, 93, 4;
    --primary-gradient: linear-gradient(135deg, #e85d04, #f48c06, #faa307);

    --secondary: #1e1e1e;
    --secondary-light: #2c2c2c;

    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --text-muted: #9a9a9a;

    --bg: #ffffff;
    --bg-light: #faf8f5;
    --bg-dark: #1e1e1e;
    --bg-warm: #f5f0eb;

    --border: #ebe6df;
    --border-light: #f3efe9;

    --shadow: 0 2px 12px rgba(30,30,30,0.06);
    --shadow-md: 0 4px 20px rgba(30,30,30,0.08);
    --shadow-lg: 0 8px 32px rgba(30,30,30,0.10);
    --shadow-warm: 0 4px 24px rgba(232,93,4,0.08);

    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-full: 50px;

    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --transition-fast: all 0.15s cubic-bezier(0.4,0,0.2,1);
    --transition-spring: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);

    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'DM Serif Display', Georgia, serif;

    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --order-header-height: 68px;
    --order-context-height: 48px;
    --order-pills-height: 52px;
    --order-cart-bar-height: 62px;
    --order-sidebar-width: 250px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.nav-open,
body.cart-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}


/* ============================================================
   CONTAINER
   ============================================================ */
.order-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ============================================================
   ORDER HEADER
   ============================================================ */
.order-header {
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease;
    overflow: visible;
}

.order-header.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border-bottom-color: transparent;
}

.order-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    height: 86px;
    gap: 16px;
}

.order-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    z-index: 101;
}

.order-header-logo img,
.order-logo img {
    height: 120px;
    width: auto;
    display: block;
    margin: -17px 0;
    transition: height 0.3s ease;
}

.order-header.scrolled .order-header-inner {
    height: 66px;
}

.order-header.scrolled .order-logo img,
.order-header.scrolled .order-header-logo img {
    height: 92px;
    margin: -13px 0;
}

.order-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary);
}

.order-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.order-header-branch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.order-header-branch:hover {
    background: var(--bg-warm);
    color: var(--text);
}

.order-header-branch .fa-chevron-down {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.order-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.order-type-delivery {
    background: #fff3e0;
    color: #e65100;
}

.order-type-pickup {
    background: #e0f2f1;
    color: #00695c;
}

.order-type-dinein {
    background: #f3e5f5;
    color: #6a1b9a;
}

.order-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.order-header-phone:hover {
    color: var(--primary);
}

.order-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.order-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-warm);
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    transition: var(--transition-fast);
}

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

/* Header: Cart, Account, Change link */
.order-header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}
.order-header-cart:hover {
    color: var(--primary);
    background: rgba(232,93,4,0.06);
}
.cart-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    box-shadow: 0 0 8px rgba(232,93,4,0.4);
}
.order-header-account {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}
.order-header-account:hover { color: var(--primary); }
.order-header-halal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.order-header-halal i {
    font-size: 0.6rem;
}
.order-header-change {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-xs);
    background: rgba(232,93,4,0.06);
    border: 1px solid rgba(232,93,4,0.12);
}
.order-header-change:hover { background: rgba(232,93,4,0.12); }
.order-header-type {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}
.order-header-type i { font-size: 0.7rem; }
.hide-mobile { }


/* ============================================================
   CART SIDEBAR (slide-in from right)
   ============================================================ */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30,30,30,0.45);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
body.cart-open .cart-overlay {
    display: block;
    opacity: 1;
}
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(30,30,30,0.12);
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    border-radius: 20px 0 0 20px;
}
body.cart-open .cart-sidebar {
    right: 0;
}
.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-sidebar-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin: 0;
}
.cart-sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.cart-sidebar-close:hover {
    background: var(--border);
    color: var(--text);
}
.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.cart-sidebar-empty {
    text-align: center;
    padding: 48px 0;
    color: var(--text-muted);
}
.cart-sidebar-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}
.cart-sidebar-empty p {
    font-size: 14px;
}
.cart-sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    flex-shrink: 0;
    background: var(--bg-light);
}
.cart-sidebar-totals {
    margin-bottom: 12px;
}
.cart-sidebar-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 3px 0;
    color: var(--text-light);
}
.cart-sidebar-row.total {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 6px;
}


/* ============================================================
   BUTTONS (shared)
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232,93,4,0.3);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: rgba(232,93,4,0.06);
    color: var(--primary);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}
.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}
.btn-block {
    display: flex;
    width: 100%;
}
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.text-success { color: var(--success); }

/* Hamburger */
.order-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px;
}

.order-hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile nav */
.order-mobile-nav {
    display: none;
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.order-mobile-nav.open {
    display: block;
}

.order-mobile-nav-list {
    list-style: none;
    padding: 8px 0;
}

.order-mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text);
    font-size: 0.9375rem;
}

.order-mobile-nav-list li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.order-mobile-nav-branch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
}

.order-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30,30,30,0.4);
    z-index: 90;
}

.order-mobile-overlay.open {
    display: block;
}


/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.order-flash-container {
    position: relative;
    z-index: 80;
}

.order-flash {
    padding: 12px 0;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.order-flash-success { background: #d1fae5; color: #065f46; }
.order-flash-error   { background: #fee2e2; color: #991b1b; }
.order-flash-warning { background: #fff8e1; color: #e65100; }
.order-flash-info    { background: #e3f2fd; color: #1565c0; }

.order-flash .order-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-flash-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0 4px;
}

.order-flash-close:hover {
    opacity: 1;
}


/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.order-main {
    min-height: calc(100vh - var(--order-header-height) - 80px);
    padding-bottom: calc(var(--order-cart-bar-height) + 20px);
}


/* ============================================================
   ORDER CONTEXT BAR (Branch + Order Type)
   ============================================================ */
.order-context-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.order-context-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-context-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
}

.order-context-left > .fas {
    color: var(--primary);
    font-size: 1rem;
}

.order-context-branch {
    font-weight: 600;
    color: var(--text);
}

.order-context-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.order-context-change {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-context-change:hover {
    color: var(--primary-dark);
}


/* ============================================================
   SEARCH BAR
   ============================================================ */
.order-search-bar {
    background: var(--bg-light);
    padding: 18px 0 14px;
    position: relative;
    z-index: 50;
}

.order-search-wrapper {
    position: relative;
    max-width: 600px;
}

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

.order-search-input {
    width: 100%;
    height: 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0 48px 0 44px;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: var(--transition-fast);
}

.order-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232,93,4,0.08);
}

.order-search-input::placeholder {
    color: var(--text-muted);
}

.order-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: var(--radius-xs);
    background: var(--border);
    color: var(--text-light);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.order-search-clear:hover {
    background: var(--text-muted);
    color: #fff;
}


/* ============================================================
   DIETARY FILTER BAR
   ============================================================ */
.order-filter-bar {
    background: var(--bg-light);
    padding: 0 0 14px;
}

.order-filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.order-filter-pills::-webkit-scrollbar {
    display: none;
}

.order-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-fast);
}

.order-filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.order-filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.order-filter-pill.active .filter-badge {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.filter-badge-veg {
    background: #dcfce7;
    color: #16a34a;
}

.filter-badge-vegan {
    background: #ccfbf1;
    color: #0d9488;
}

.filter-badge-gf {
    background: #fef3c7;
    color: #d97706;
}


/* ============================================================
   MENU LAYOUT — Full width (no sidebar)
   ============================================================ */
.order-menu-layout {
    padding: 0 0 40px;
    background: var(--bg-light);
}

.order-menu-grid {
    display: block;
}

/* Hide old sidebar on all screens */
.order-sidebar {
    display: none;
}


/* ============================================================
   CATEGORY STRIP — Visual image cards (all screens)
   ============================================================ */
.order-cat-strip {
    display: flex;
    gap: 6px;
    padding: 16px 20px 14px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--order-header-height);
    z-index: 45;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
}

.order-cat-strip::-webkit-scrollbar {
    display: none;
}

/* Individual category chip — circle image + name */
.order-cat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    padding: 8px 6px 6px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    flex-shrink: 0;
}

.order-cat-pill:hover {
    background: var(--bg-warm);
}

/* Active state — amber underline + tint */
.order-cat-pill.active {
    background: rgba(232,93,4,0.06);
}
.order-cat-pill.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary-gradient);
}

/* Category image circle */
.order-cat-pill-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border);
    transition: var(--transition-fast);
    position: relative;
}

.order-cat-pill:hover .order-cat-pill-img {
    border-color: var(--primary-light);
}

.order-cat-pill.active .order-cat-pill-img {
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(232,93,4,0.2);
}

.order-cat-pill-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-cat-pill-img i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Category name */
.order-cat-pill-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    line-height: 1.2;
    transition: color 0.15s;
}

.order-cat-pill:hover .order-cat-pill-name {
    color: var(--text);
}

.order-cat-pill.active .order-cat-pill-name {
    color: var(--primary);
    font-weight: 700;
}

/* Item count badge on pill */
.order-cat-pill-count {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}


/* ============================================================
   MENU CONTENT AREA
   ============================================================ */
.order-menu-content {
    min-width: 0;
    padding: 0;
}


/* ============================================================
   MENU SECTION (per category)
   ============================================================ */
.order-menu-section {
    margin-bottom: 20px;
    scroll-margin-top: 200px;
}

.order-menu-section-header {
    margin-bottom: 14px;
    padding: 22px 0 6px;
}

.order-menu-section-title {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 400;
    margin: 0 0 4px;
    color: var(--text);
}

.order-menu-section-desc {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin: 0;
}


/* ============================================================
   ITEM CARDS GRID — Vertical Cards on Desktop
   ============================================================ */
.order-menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}


/* ============================================================
   INDIVIDUAL ITEM CARD — VERTICAL layout (image top, info below)
   ============================================================ */
.order-item-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    padding: 0;
    overflow: hidden;
    animation: emberSlideUp 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

.order-item-card:nth-child(1) { animation-delay: 0s; }
.order-item-card:nth-child(2) { animation-delay: 0.05s; }
.order-item-card:nth-child(3) { animation-delay: 0.06s; }
.order-item-card:nth-child(4) { animation-delay: 0.09s; }
.order-item-card:nth-child(5) { animation-delay: 0.12s; }
.order-item-card:nth-child(6) { animation-delay: 0.15s; }

.order-item-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
    transform: translateY(-4px);
}

.order-item-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    flex: 1;
    gap: 0;
    min-width: 0;
}

.order-item-link:hover {
    color: inherit;
}


/* Item image — full width on top */
.order-item-image {
    position: relative;
    width: 100%;
    min-width: unset;
    height: 180px;
    border-radius: 0;
    overflow: hidden;
    background: var(--bg-warm);
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.order-item-card:hover .order-item-image img {
    transform: scale(1.06);
}

.order-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-warm), var(--border));
    color: var(--text-muted);
    font-size: 2rem;
}


/* Badges: NEW / POPULAR */
.order-item-badge {
    position: absolute;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    line-height: 1.3;
    z-index: 2;
}

.order-item-badge-new {
    top: 10px;
    left: 10px;
    background: var(--success);
    color: #fff;
}

.order-item-badge-popular {
    top: 10px;
    right: 10px;
    background: #ff6b35;
    color: #fff;
}

.order-item-badge-popular .fas {
    font-size: 0.55rem;
}

.order-item-badge-bestseller {
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}
.order-item-badge-bestseller .fas {
    font-size: 0.55rem;
}

/* Estimated Time Bar */
.order-est-time {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
}
.order-est-time-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
}
.order-est-time-inner .fas {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Offer tag */
a .order-item-offer-tag,
.order-item-link .order-item-offer-tag,
.order-item-offer-tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 4px;
    background: var(--success) !important;
    color: #fff !important;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-top: 4px;
    margin-bottom: 2px;
    line-height: 1.4;
    text-decoration: none !important;
    animation: offerPulse 2s ease-in-out infinite;
}

a .order-item-offer-tag .fas,
.order-item-link .order-item-offer-tag .fas,
.order-item-offer-tag .fas {
    font-size: 0.58rem;
    color: #fff !important;
}

@keyframes offerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Item detail page offer badge */
.item-badge-offer {
    top: auto !important;
    bottom: 12px;
    left: 12px;
    right: auto;
    background: var(--success);
    color: #fff;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 3;
    animation: offerPulse 2s ease-in-out infinite;
}

.item-badge-offer .fas {
    font-size: 0.65rem;
    margin-right: 3px;
}


/* Item info — below image with padding */
.order-item-info {
    padding: 14px 16px 44px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.order-item-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px;
    color: var(--text);
}

.order-item-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}


/* Dietary badges */
.order-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.order-dietary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-xs);
    line-height: 1;
}

.order-dietary-veg {
    background: #dcfce7;
    color: #166534;
}

.order-dietary-vegan {
    background: #d1fae5;
    color: #065f46;
}

.order-dietary-gf {
    background: #fff8e1;
    color: #e65100;
}

.order-spice-indicator {
    display: inline-flex;
    gap: 1px;
    color: #ef4444;
    font-size: 0.7rem;
}

.order-item-cal {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* Price row */
.order-item-price-row {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.order-item-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.order-price-from {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.order-price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.order-price-compare {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: line-through;
}


/* Add button — shows text on desktop, icon-only on mobile */
.order-item-add-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 36px;
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-spring);
    z-index: 3;
    box-shadow: 0 2px 10px rgba(232,93,4,0.25);
    text-decoration: none;
    white-space: nowrap;
}

.order-item-add-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(232,93,4,0.35);
    color: #fff;
}

.order-item-add-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    transform: none;
}

.order-item-add-btn .fa-check,
.order-item-add-btn .fa-spinner {
    color: #fff;
}

.add-btn-text {
    display: inline;
    font-size: 0.8rem;
    font-weight: 600;
}

.add-btn-icon {
    font-size: 0.7rem;
    display: none;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */
.order-menu-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.order-menu-empty-visible {
    display: flex;
}

.order-menu-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.order-menu-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.order-menu-empty p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 0 20px;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.order-btn-primary {
    background: var(--primary-gradient);
    color: #fff;
}

.order-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,93,4,0.3);
    color: #fff;
}


/* ============================================================
   MOBILE CART SUMMARY BAR (fixed bottom — GRADIENT)
   ============================================================ */
.order-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--primary-gradient);
    height: var(--order-cart-bar-height);
    box-shadow: 0 -4px 20px rgba(232,93,4,0.2);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    border-radius: 16px 16px 0 0;
}

.order-cart-bar.visible {
    transform: translateY(0);
}

.order-cart-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--order-cart-bar-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    color: #fff;
    text-decoration: none;
}

.order-cart-bar-inner:hover {
    color: #fff;
}

.order-cart-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-cart-bar-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-xs);
    font-size: 0.8125rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.order-cart-bar-label {
    font-size: 1rem;
    font-weight: 600;
}

.order-cart-bar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-cart-bar-checkout-text {
    font-size: 1rem;
    font-weight: 600;
}

.order-cart-bar-dot {
    opacity: 0.6;
    font-size: 1.2rem;
}

.order-cart-bar-total {
    font-size: 1.0625rem;
    font-weight: 700;
}

.order-cart-bar-minorder {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.9;
    background: rgba(255,255,255,0.15);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}


/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.order-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--secondary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 200;
    white-space: nowrap;
}

.order-toast .fa-check-circle {
    color: var(--success);
}

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

.order-toast-error {
    background: var(--danger);
}

.order-toast-error .fa-check-circle {
    display: none;
}


/* ============================================================
   ORDER FOOTER
   ============================================================ */
.order-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 40px;
}

.order-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.order-footer-copy {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin: 0;
}

.order-footer-links {
    display: flex;
    gap: 16px;
}

.order-footer-links a {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.order-footer-links a:hover {
    color: var(--primary);
}

.order-footer-powered {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 8px 0 0;
}

.order-footer-powered a {
    color: var(--text-muted);
    font-weight: 600;
}

.order-footer-powered a:hover {
    color: var(--primary);
}


/* ============================================================
   CART PAGE STYLES
   ============================================================ */
.cart-page {
    padding: 30px 0 60px;
}

.cart-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.cart-page-header h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin: 0;
}

.cart-page-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-warm);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* Cart empty state */
.cart-empty-page {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.cart-empty-page h2 {
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.cart-empty-page p {
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Cart layout */
.cart-page-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.cart-page-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-page-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    position: relative;
    transition: var(--transition-fast);
}

.cart-page-item:hover {
    box-shadow: var(--shadow);
}

.cart-page-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-page-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-page-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm);
    color: var(--text-muted);
    font-size: 1.5rem;
}

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

.cart-page-item-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.cart-page-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.cart-page-option-tag {
    font-size: 0.7rem;
    background: var(--bg-light);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
}

.cart-page-item-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 4px 0 0;
}

/* Offer badge (shared between cart + checkout) */
.offer-badge {
    display: inline-block;
    background: var(--success);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}
.offer-badge i {
    font-size: 0.5rem;
    margin-right: 2px;
}

.cart-page-unit-price {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.cart-page-item-qty {
    flex-shrink: 0;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--bg-light);
    color: var(--text);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background: var(--primary);
    color: #fff;
}

.qty-value {
    width: 36px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.cart-page-item-total {
    flex-shrink: 0;
    min-width: 70px;
    text-align: right;
}

.cart-page-line-total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.cart-page-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.cart-page-remove:hover {
    background: #fee2e2;
    color: var(--danger);
}

.cart-page-continue {
    margin-top: 8px;
}

/* Cart summary sidebar */
.cart-page-summary-wrap {
    position: sticky;
    top: calc(var(--order-header-height) + 20px);
}

.cart-page-summary {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.cart-page-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.cart-summary-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin: 0 0 16px;
}

.cart-summary-lines {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cart-summary-line.cart-summary-total-line {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.cart-summary-discount {
    color: var(--success);
}

.cart-summary-tax-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.coupon-applied-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(232,93,4,0.08);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    margin-left: 6px;
}

.coupon-remove-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.65rem;
    padding: 0 2px;
}

.cart-coupon-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition-fast);
}

.coupon-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,93,4,0.08);
}

.coupon-message {
    font-size: 0.75rem;
    margin-top: 6px;
}

.cart-min-order-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-top: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.8rem;
    color: #e65100;
}

.cart-min-order-warning i {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.cart-checkout-btn {
    margin-top: 16px;
    background: var(--primary-gradient) !important;
    border: none !important;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: var(--transition-fast);
}
.cart-checkout-btn:hover {
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
    transform: translateY(-1px);
}

.cart-order-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.cart-order-info p {
    margin: 0 0 4px;
}

.change-order-type-link {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}


/* ============================================================
   RESPONSIVE: TABLET (max 991px)
   ============================================================ */
@media (max-width: 991px) {

    /* Category strip: smaller on tablet */
    .order-cat-pill-img {
        width: 54px;
        height: 54px;
    }
    .order-cat-pill {
        min-width: 72px;
    }
    .order-cat-pill-name {
        max-width: 72px;
    }

    /* Cards become HORIZONTAL on tablet/mobile */
    .order-menu-items {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .order-item-card {
        flex-direction: row;
        padding: 14px;
        overflow: visible;
    }

    .order-item-link {
        flex-direction: row;
        gap: 14px;
    }

    .order-item-image {
        width: 110px;
        min-width: 110px;
        height: 110px;
        border-radius: var(--radius-sm);
    }

    /* Add button: icon-only on mobile */
    .add-btn-text { display: none; }
    .add-btn-icon { display: inline; }
    .order-item-add-btn {
        width: 36px;
        min-width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
    }

    /* Hide mini-cart on tablet/mobile */
    .order-mini-cart { display: none !important;
    }

    .order-item-info {
        padding: 0 0 28px 0;
    }

    /* Header adjustments */
    .order-header-phone span,
    .hide-mobile {
        display: none;
    }

    .order-hamburger {
        display: flex;
    }

    .cart-sidebar {
        width: 100%;
        max-width: 100vw;
        right: -100%;
        border-radius: 0;
    }

    /* Cart page layout */
    .cart-page-layout {
        grid-template-columns: 1fr;
    }

    .cart-page-summary-wrap {
        position: static;
    }
}


/* ============================================================
   RESPONSIVE: MOBILE (max 640px)
   ============================================================ */
@media (max-width: 640px) {

    .order-container {
        padding: 0 16px;
    }

    /* Two-row header on mobile: Logo+Actions top, Branch info bottom */
    .order-header {
        height: auto;
    }
    .order-header-inner,
    .order-header.scrolled .order-header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
        gap: 0;
    }
    .order-logo {
        order: 1;
    }
    .order-logo img,
    .order-header.scrolled .order-logo img {
        margin: 0;
    }
    .order-logo img {
        height: 84px;
    }
    .order-header.scrolled .order-logo img {
        height: 64px;
    }
    .order-header-actions {
        order: 2;
        margin-left: auto;
    }
    .order-header-info {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }
    .order-header-branch {
        font-size: 0.8rem;
        padding: 4px 10px;
        max-width: none;
        overflow: visible;
        white-space: nowrap;
    }
    .order-header-type {
        display: flex;
        font-size: 0.75rem;
    }
    .order-header-change {
        font-size: 0.75rem;
        padding: 3px 10px;
        flex-shrink: 0;
    }

    /* Smaller item cards on mobile */
    .order-item-image {
        width: 90px;
        min-width: 90px;
        height: 90px;
    }

    .order-item-name {
        font-size: 0.875rem;
    }

    .order-item-desc {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .order-item-card {
        padding: 12px;
    }

    .order-item-add-btn {
        width: 32px;
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
        bottom: 10px;
        right: 10px;
    }

    /* Category strip smaller on mobile — top is set dynamically via JS --order-header-height */
    .order-cat-strip {
        gap: 4px;
        padding: 12px 10px 10px;
    }
    .order-cat-pill-img {
        width: 48px;
        height: 48px;
    }
    .order-cat-pill {
        min-width: 66px;
        padding: 6px 4px 4px;
    }
    .order-cat-pill-name {
        font-size: 0.65rem;
        max-width: 66px;
    }

    /* Context bar compact */
    .order-context-left {
        font-size: 0.8125rem;
    }

    .order-context-type {
        font-size: 0.65rem;
    }

    /* Section titles */
    .order-menu-section-title {
        font-size: 1.2rem;
    }

    /* Cart bar */
    .order-cart-bar-label {
        font-size: 0.9375rem;
    }

    /* Search */
    .order-search-input {
        height: 42px;
        font-size: 0.875rem;
    }

    /* Toast */
    .order-toast {
        bottom: calc(var(--order-cart-bar-height) + 12px);
        font-size: 0.8125rem;
        padding: 10px 18px;
    }

    /* Footer */
    .order-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Cart page */
    .cart-page-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cart-page-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-page-item-total {
        min-width: auto;
    }
}


/* ============================================================
   DESKTOP: 2-column layout with Mini-Cart (min 992px)
   ============================================================ */
@media (min-width: 992px) {
    .order-menu-grid {
        display: grid;
        grid-template-columns: 1fr 300px;
        grid-template-rows: auto 1fr;
        gap: 0 28px;
        align-items: start;
    }
    .order-sidebar { grid-column: 1 / -1; display: none; }
    .order-cat-strip { grid-column: 1 / -1; }
    .order-menu-content { grid-column: 1; grid-row: 2; }
    .order-mini-cart { grid-column: 2; grid-row: 2; }

    /* 2 columns when mini-cart takes space */
    .order-menu-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Hide mobile cart bar on desktop */
    .order-cart-bar { display: none !important; }
}

/* ============================================================
   RESPONSIVE: LARGE DESKTOP (min 1400px) — 3 columns
   ============================================================ */
@media (min-width: 1400px) {
    .order-container {
        max-width: 1360px;
    }
    .order-menu-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}


/* ============================================================
   ANIMATIONS — EMBER Staggered Entrance
   ============================================================ */
@keyframes emberSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cartBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.cart-badge-bounce {
    animation: cartBounce 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
}


/* ============================================================
   DESKTOP MINI-CART (sticky sidebar)
   ============================================================ */
.order-mini-cart {
    display: block;
    position: sticky;
    top: calc(var(--order-header-height, 68px) + 140px);
    align-self: start;
    z-index: 46;
    margin-top: 120px;
}

.mini-cart-inner {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.mini-cart-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.mini-cart-title .fas {
    color: var(--primary);
    font-size: 0.95rem;
}

.mini-cart-empty {
    display: none;
    text-align: center;
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.mini-cart-empty.visible {
    display: block;
}

.mini-cart-items {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.mini-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.8125rem;
}

.mini-cart-item:last-child {
    border-bottom: none;
}

.mini-cart-item-qty {
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    min-width: 28px;
}

.mini-cart-item-name {
    flex: 1;
    color: var(--text);
    line-height: 1.3;
}

.mini-cart-item-price {
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
}

.mini-cart-summary {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-bottom: 14px;
}

.mini-cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    padding: 4px 0;
    color: var(--text-light);
}

.mini-cart-total-row {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.mini-cart-progress {
    margin-bottom: 14px;
}

.mini-cart-progress-bar {
    height: 6px;
    background: var(--bg-warm);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.mini-cart-progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.mini-cart-progress.met .mini-cart-progress-fill {
    background: var(--success);
}

.mini-cart-progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mini-cart-progress.met .mini-cart-progress-text {
    color: var(--success);
}

.mini-cart-progress-text .fa-check-circle {
    color: var(--success);
    margin-right: 4px;
}

.mini-cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.mini-cart-checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,93,4,0.3);
    color: #fff;
}

.mini-cart-checkout-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.mini-cart-view-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: none;
}

.mini-cart-view-link:hover {
    color: var(--primary);
}


/* ============================================================
   ITEM DETAIL MODAL / BOTTOM SHEET
   ============================================================ */
.item-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.item-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.item-modal {
    position: fixed;
    z-index: 501;
    background: var(--bg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);

    /* Desktop: centered modal */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 520px;
    max-width: 92vw;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.item-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.item-modal-inner {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.item-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}

.item-modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.item-modal-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Modal image */
.item-modal-image {
    width: 100%;
    height: 260px;
    background: var(--bg-warm);
    overflow: hidden;
}

.item-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-modal-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

/* Modal content */
.item-modal-content {
    padding: 20px 20px 10px;
}

.item-modal-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0 0 6px;
    color: var(--text);
}

.item-modal-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 12px;
}

.item-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.item-modal-offer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--success);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

/* Option groups */
.item-modal-group {
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.item-modal-group.error {
    border-color: var(--danger);
}

.item-modal-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-warm);
}

.item-modal-group-name {
    font-weight: 600;
    font-size: 0.875rem;
    flex: 1;
}

.item-modal-group-req {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--danger);
    background: #fef2f2;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
}

.item-modal-group-max {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.item-modal-group-options {
    padding: 4px 0;
}

.item-modal-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.875rem;
}

.item-modal-option:hover {
    background: var(--bg-light);
}

.item-modal-option input[type="radio"],
.item-modal-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.item-modal-option-name {
    flex: 1;
    color: var(--text);
}

.item-modal-option-price {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Special instructions */
.item-modal-instructions {
    padding: 0 0 6px;
}

.item-modal-instructions label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.item-modal-instructions textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    resize: vertical;
    transition: border-color 0.2s;
}

.item-modal-instructions textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Sticky footer with quantity + add button */
.item-modal-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.item-modal-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.item-modal-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-warm);
    color: var(--text);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.item-modal-qty-btn:hover {
    background: var(--border);
}

.item-modal-qty-val {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9375rem;
}

.item-modal-add-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.item-modal-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,93,4,0.3);
}

.item-modal-add-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.item-modal-add-price {
    font-weight: 700;
}

.item-modal-loading {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

body.modal-open {
    overflow: hidden;
}

/* ============================================================
   ITEM MODAL — MOBILE: Bottom Sheet
   ============================================================ */
@media (max-width: 640px) {
    .item-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }

    .item-modal.open {
        transform: translateY(0);
    }

    .item-modal-inner {
        max-height: 92vh;
    }

    .item-modal-image {
        height: 200px;
    }

    .item-modal-footer {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    }
}

/* ============================================================
   SKELETON LOADERS
   ============================================================ */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
.skeleton-pills {
    display: flex;
    gap: 16px;
    padding: 10px 20px;
    overflow: hidden;
}
.skeleton-pill {
    width: 64px;
    flex-shrink: 0;
    text-align: center;
}
.skeleton-pill-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}
.skeleton-pill-text {
    width: 50px;
    height: 10px;
    margin: 8px auto 0;
    border-radius: 5px;
}
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}
.skeleton-card {
    height: 300px;
    border-radius: var(--radius);
}
.skeleton-section-title {
    width: 160px;
    height: 22px;
    margin-bottom: 16px;
    border-radius: 6px;
}
@media (max-width: 991px) {
    .skeleton-grid { grid-template-columns: 1fr; }
    .skeleton-card { height: 100px; border-radius: 12px; }
}
/* Hide skeleton when real content loaded */
.menu-loaded .skeleton-loader { display: none; }

/* Modal skeleton */
.item-modal-skeleton {
    padding: 20px;
}
.item-modal-skeleton .skel-image {
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.item-modal-skeleton .skel-title {
    width: 60%;
    height: 22px;
    margin-bottom: 10px;
}
.item-modal-skeleton .skel-desc {
    width: 90%;
    height: 14px;
    margin-bottom: 8px;
}
.item-modal-skeleton .skel-desc-short {
    width: 50%;
    height: 14px;
    margin-bottom: 20px;
}
.item-modal-skeleton .skel-option-row {
    width: 100%;
    height: 44px;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* ============================================================
   UPSELL SUGGESTIONS (in modal after add-to-cart)
   ============================================================ */
.item-modal-upsell {
    display: none;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
}
.item-modal-upsell.visible {
    display: block;
}
.item-modal-upsell-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.item-modal-upsell-title i {
    color: var(--primary);
    font-size: 13px;
}
.upsell-items {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.upsell-item {
    flex: 0 0 140px;
    background: var(--bg-warm);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1.5px solid transparent;
}
.upsell-item:hover {
    border-color: var(--primary);
    background: #fff;
}
.upsell-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto 6px;
    display: block;
}
.upsell-item-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    color: var(--text-muted);
    font-size: 18px;
}
.upsell-item-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.upsell-item-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}
.upsell-item-add {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.upsell-item-add:hover {
    background: var(--primary-dark, #d4520a);
}

/* ============================================================
   CHECKOUT — STEP INDICATOR
   ============================================================ */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 16px 0;
}
.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    transition: var(--transition-fast);
    cursor: default;
    white-space: nowrap;
}
.checkout-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--border-light);
    color: var(--text-muted);
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.checkout-step.active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
}
.checkout-step.active .checkout-step-num {
    background: var(--primary);
    color: #fff;
}
.checkout-step.completed .checkout-step-num {
    background: var(--success, #10b981);
    color: #fff;
}
.checkout-step.completed .checkout-step-num::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
}
.checkout-step.completed .checkout-step-num span {
    display: none;
}
.checkout-step-connector {
    width: 30px;
    height: 2px;
    background: var(--border-light);
    flex-shrink: 0;
}
.checkout-step-connector.completed {
    background: var(--success, #10b981);
}
@media (max-width: 600px) {
    .checkout-step {
        padding: 6px 8px;
        font-size: 12px;
        gap: 5px;
    }
    .checkout-step-num {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    .checkout-step-connector { width: 16px; }
    .checkout-step-label { display: none; }
}

/* ============================================================
   CHECKOUT — INLINE VALIDATION
   ============================================================ */
.form-row input.input-error,
.form-row textarea.input-error {
    border-color: var(--danger, #ef4444);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.form-row input.input-valid,
.form-row textarea.input-valid {
    border-color: var(--success, #10b981);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}
.form-error {
    display: block;
    font-size: 12px;
    color: var(--danger, #ef4444);
    margin-top: 4px;
    min-height: 0;
    transition: all 0.2s ease;
}
.form-error:empty {
    display: none;
}
.form-row .input-icon-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}
.form-row .input-icon-status.valid { color: var(--success, #10b981); }
.form-row .input-icon-status.invalid { color: var(--danger, #ef4444); }

/* ============================================================
   COMBO BUILDER (Meal Deals)
   ============================================================ */
.order-combos-section {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 2px dashed rgba(0,0,0,0.06);
}
.order-combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.order-combo-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.order-combo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.order-combo-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(232,93,4,0.08), rgba(232,93,4,0.02));
    overflow: hidden;
}
.order-combo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.order-combo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
}
.order-combo-badge {
    position: absolute;
    top: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.order-combo-badge-popular {
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}
.order-combo-badge-popular i { font-size: 0.7rem; margin-right: 3px; }
.order-combo-badge-save {
    right: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}
.order-combo-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.order-combo-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
}
.order-combo-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 12px;
    line-height: 1.4;
}
.order-combo-meta {
    margin-bottom: 14px;
}
.order-combo-slots-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-warm);
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.order-combo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
}
.order-combo-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}
.order-combo-price-was {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.order-combo-price-now {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}
.order-combo-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, transform 0.1s ease;
}
.order-combo-btn:hover { background: var(--primary-dark); }
.order-combo-btn:active { transform: scale(0.97); }
.order-combo-btn i { font-size: 0.75rem; }

/* COMBO MODAL */
.combo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: cmbFadeIn 0.2s ease;
}
@keyframes cmbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.combo-modal {
    background: var(--bg);
    width: 100%;
    max-width: 600px;
    max-height: 92vh;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: cmbSlideUp 0.25s cubic-bezier(.4,0,.2,1);
}
@keyframes cmbSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.combo-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.15s ease;
}
.combo-modal-close:hover { background: rgba(0,0,0,0.85); }
.combo-modal-body {
    overflow-y: auto;
    flex: 1;
}
.cmb-hero {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: rgba(232,93,4,0.08);
}
.cmb-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 4rem;
    opacity: 0.35;
}
.cmb-content {
    padding: 22px 24px 100px;
}
.cmb-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text);
}
.cmb-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0 0 14px;
    line-height: 1.5;
}
.cmb-save-banner {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}
.cmb-slots {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.cmb-slot {
    border-top: 1px solid var(--border);
    padding-top: 18px;
}
.cmb-slot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.cmb-slot-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.cmb-slot-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}
.cmb-slot-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.cmb-slot-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.cmb-item-option {
    cursor: pointer;
    position: relative;
}
.cmb-item-option input { position: absolute; opacity: 0; pointer-events: none; }
.cmb-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    text-align: center;
    transition: all 0.15s ease;
    height: 100%;
}
.cmb-item-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-warm);
    display: block;
    flex-shrink: 0;
}
.cmb-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmb-item-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
}
.cmb-item-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
}
.cmb-item-tick {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    display: none;
    align-items: center;
    justify-content: center;
}
.cmb-item-option input:checked ~ .cmb-item-card {
    border-color: var(--primary);
    background: rgba(232,93,4,0.04);
}
.cmb-item-option input:checked ~ .cmb-item-card .cmb-item-tick { display: flex; }
.cmb-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 14px 24px;
    margin: 22px -24px -100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 -8px 20px rgba(0,0,0,0.06);
}
.cmb-price-block {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.cmb-price-was {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.cmb-price-now {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}
.cmb-add-btn {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease;
}
.cmb-add-btn:hover { background: var(--primary-dark); }
.cmb-add-btn:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 540px) {
    .combo-modal-overlay { padding: 0; align-items: flex-end; }
    .combo-modal { max-height: 95vh; border-radius: 16px 16px 0 0; }
    .cmb-hero { height: 160px; }
    .cmb-content { padding: 18px 18px 110px; }
    .cmb-footer { padding: 12px 18px; margin: 18px -18px -110px; }
    .cmb-slot-items { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* ============================================================
   STAMP CARD HERO (on /order/menu when customer is logged in + stamps mode)
   ============================================================ */
.order-stamp-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--card-color, #6f4e37), color-mix(in srgb, var(--card-color, #6f4e37) 70%, #000));
    color: #fff;
    border-radius: 14px;
    margin-bottom: 22px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.order-stamp-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    color: #fff;
}
.order-stamp-hero-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.order-stamp-hero-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.order-stamp-hero-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.order-stamp-hero-text {
    font-size: 0.85rem;
    opacity: 0.92;
}
.order-stamp-hero-progress {
    background: rgba(255,255,255,0.18);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    backdrop-filter: blur(4px);
}
.order-stamp-hero-num { white-space: nowrap; }

@media (max-width: 540px) {
    .order-stamp-hero { padding: 14px 16px; gap: 10px; }
    .order-stamp-hero-name { font-size: 0.95rem; }
    .order-stamp-hero-text { font-size: 0.78rem; }
    .order-stamp-hero-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .order-stamp-hero-progress { padding: 6px 12px; font-size: 0.9rem; }
}

/* ============================================================
   DIETARY / RELIGIOUS FLAG PILLS
   ============================================================ */
.tf-flag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.4;
    margin-right: 4px;
    margin-bottom: 4px;
    white-space: nowrap;
}
.tf-flag i { font-size: 0.65rem; }
.tf-flag-md { font-size: 0.78rem; padding: 4px 12px; }
.tf-flag-md i { font-size: 0.7rem; }

/* CART PAGE: Combo line block */
.cart-page-item-combo {
    margin: 8px 0 6px;
    padding: 10px 12px;
    background: rgba(232,93,4,0.04);
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
}
.cart-page-combo-label {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.cart-page-combo-label i { font-size: 0.65rem; margin-right: 3px; }
.cart-page-combo-picks {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}
.cart-page-combo-picks li {
    padding: 2px 0;
    line-height: 1.4;
}
.cart-page-combo-picks strong {
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 4px;
}
.cart-page-combo-modifier {
    color: var(--primary);
    font-size: 0.78rem;
    margin-left: 4px;
}
