/* === Multi-tenant brand theme (Phase 1 — additive only) === */
@import url('/brand/topdog/theme.css');

/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #D32F2F;
    --primary-dark: #B71C1C;
    --primary-light: #EF5350;
    --primary-bg: #FFF5F5;
    --dark: #1a1a1a;
    --dark-light: #2d2d2d;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #f5f5f5;
    --bg-white: #ffffff;
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --success: #2e7d32;
    --success-bg: #e8f5e9;
    --info: #1565c0;
    --info-bg: #e3f2fd;
    --error: #c62828;
    --error-bg: #ffebee;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --header-height: 85px;
    --sidebar-width: 240px;
    --cart-width: 400px;
    --max-width: 1280px;
    --transition: all 0.2s ease;
    --transition-slow: all 0.35s ease;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.2;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--dark);
    color: white;
}
.btn-secondary:hover {
    background: var(--dark-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* Disabled / unavailable button (e.g. delivery button when deliveries off) */
.btn-unavailable {
    position: relative;
    opacity: 0.55;
    background: #6b6b6b !important;
    cursor: not-allowed !important;
    overflow: visible;
}
.btn-unavailable:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #6b6b6b !important;
}
.btn-badge-unavailable {
    position: absolute;
    top: -10px;
    right: -8px;
    background: #d84315;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    white-space: nowrap;
    pointer-events: none;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--dark);
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(26,26,26,0.97);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: -12px;
}

.header-logo {
    height: 58px;
    width: auto;
    cursor: pointer;
    transition: var(--transition);
    /* 2026-05-19 — the logo PNG has internal whitespace below the artwork,
       so it visually drooped low in the header and felt like it was tucking
       under the hero carousel. Lifting the rendered element a few px brings
       the artwork up to optical centre of the bar. */
    transform: translateY(-4px);
}
.header-logo:hover { opacity: 0.85; }

.header-nav {
    /* 2026-05-19 — absolutely centered in the header so the two store
       badges always sit in the middle of the page regardless of how wide
       the left logo / right cart area become. */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    align-items: center;
}

.back-chevron {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.back-chevron i {
    color: #333;
    font-size: 14px;
    line-height: 1;
}

.header-nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 20px;
    color: rgba(255,255,255,0.65);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}
.nav-link.active {
    color: white;
    background: var(--primary);
}

.nav-link-app {
    position: relative;
    background: white;
    color: var(--primary);
    border-radius: var(--radius-sm);
    animation: flashRed 1.2s ease-in-out infinite;
}
.nav-link-app:hover {
    background: #f0f0f0;
}

/* ──────────────────────────────────────────────────────────────────────
   Store badges (Google Play + App Store) — replaces the single
   GET THE APP nav button on 2026-05-19. Both badges render at the same
   fixed pixel height so they're visually balanced regardless of source
   aspect ratio. Drops cleanly to icon-only on narrow viewports.
   ────────────────────────────────────────────────────────────────────── */
.store-badge-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.store-badge-link:hover { transform: translateY(-1px); }
.store-badge {
    height: 40px;
    width: auto;
    display: block;
    /* IE11 / Edge legacy guard — older Android Chrome 72 (POS tablet)
       sometimes upscales PNGs blurrily without this. */
    image-rendering: -webkit-optimize-contrast;
}
/* The App Store badge has more internal padding around the logo than the
   Google Play badge, so at the shared 40px height it visually reads smaller.
   Bumping just this one up to ~52px makes the visible artwork size match
   Google Play without distorting either image. */
.store-badge-link.app-store .store-badge {
    height: 52px;
}
.new-badge-on-store {
    position: absolute;
    top: -6px;
    right: -6px;
    /* Reuse the same yellow chip styling as the old .new-badge so the
       brand cue stays consistent. */
}

/* Header CTA text wrappers for the app-download strip. Compact, capped,
   and slightly tracked so they pair well with the badge artwork without
   competing visually. */
.app-cta-label {
    color: #fff;
    font-weight: 700;
    font-size: 17px;              /* 2026-05-20 — +20% from 14px */
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;               /* tighten so it sits at optical centre next to badges */
    /* small breathing room from the first badge */
    margin-right: 4px;
    animation: ctaFlash 0.9s ease-in-out infinite;
}
.app-cta-promo {
    /* 2026-05-20 — yellow chip removed. Now flat white text matching
       .app-cta-label so both sides of the badge row read as one
       symmetrical flashing CTA strip. */
    background: transparent;
    color: #fff;
    font-weight: 800;
    font-size: 16px;              /* 2026-05-20 — +20% from 13px */
    letter-spacing: 0.5px;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    white-space: nowrap;
    line-height: 1;
    text-transform: uppercase;
    animation: ctaFlash 0.9s ease-in-out infinite;
}
@keyframes ctaFlash {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.2; }
}

/* Hide both text wrappers on small screens so the badges keep room. */
@media (max-width: 768px) {
    .app-cta-label,
    .app-cta-promo { display: none; }
}

@keyframes flashRed {
    0%, 100% { color: var(--primary); }
    50% { color: #ff1744; }
}

.new-badge {
    position: absolute;
    top: -8px;
    right: -18px;
    background: #FFD700;
    color: #1a1a1a;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    transform: rotate(-15deg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    transition: var(--transition);
}
.cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.cart-count {
    min-width: 22px;
    height: 22px;
    background: white;
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.cart-bounce {
    animation: cartBounce 0.4s ease;
}

/* Account Button */
.account-btn {
    position: relative;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: white;
    border-radius: var(--radius-sm);
    font-size: 29px;
    transition: var(--transition);
    margin-right: 6px;
    gap: 6px;
    padding: 0 8px;
}
.account-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}
.account-btn.logged-in {
    color: #4CAF50;
}
.welcome-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Account Panel */
.account-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.account-overlay.active { display: block; }

.account-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;      /* iOS Safari URL bar fix 2026-05-19 */
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: white;
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.account-panel.active { right: 0; }

.account-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--dark);
    color: white;
}
.account-panel-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.account-panel-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.account-panel-close:hover { background: rgba(255,255,255,0.1); }

#accountPanelContent {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.acct-section {
    margin-bottom: 24px;
}
.acct-section h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0 0 12px;
}
.acct-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.acct-info-row i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}
.acct-info-row span {
    font-size: 14px;
    color: var(--text);
}
.acct-login-form {
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius-md);
    text-align: center;
}
.acct-login-form p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-light);
}
.acct-login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.acct-login-form input:focus {
    border-color: var(--primary);
    outline: none;
}
.acct-login-form button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.acct-login-form button:hover {
    background: var(--primary-dark);
}
.acct-logout-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.acct-logout-btn:hover {
    background: var(--primary);
    color: white;
}

/* Order History Cards */
.acct-orders-loading {
    text-align: center;
    color: #999;
    padding: 16px 0;
    font-size: 13px;
}
.acct-order-card {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}
.acct-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.acct-order-date {
    font-size: 12px;
    color: #666;
    display: block;
}
.acct-order-type {
    font-size: 11px;
    color: #888;
    display: block;
    margin-top: 2px;
}
.acct-order-type i {
    width: 14px;
    text-align: center;
    margin-right: 2px;
}
.acct-order-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.acct-order-items {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 8px;
}
.acct-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.acct-order-voucher {
    font-size: 11px;
    color: #34a853;
    background: #e8f5e9;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}
.acct-order-voucher i {
    margin-right: 3px;
    font-size: 10px;
}
.acct-reorder-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.2s;
}
.acct-reorder-btn:hover {
    background: #c41a1f;
}
.acct-reorder-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
@keyframes cartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.25); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 20px;
    transition: var(--transition);
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.15); }

/* ==================== MOBILE MENU ==================== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.open { display: block; opacity: 1; }

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    height: 100dvh;      /* iOS Safari URL bar fix 2026-05-19 */
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: var(--dark);
    z-index: 1002;
    transition: left 0.3s ease;
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.mobile-menu.open { left: 0; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.mobile-menu-logo { height: 40px; }
.mobile-menu-close {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 4px;
}
.mobile-nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
.mobile-nav-link i { width: 20px; text-align: center; }

/* ==================== HERO ==================== */
.hero {
    position: relative;
    height: 200px;
    background: url('../images/pizza-hero.webp') center/cover no-repeat, #1a1a1a;
    margin-top: var(--header-height);
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.88) 0%, rgba(211,47,47,0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    font-weight: 400;
    max-width: 520px;
    line-height: 1.5;
}

.hero-tagline {
    font-size: 33px;
    font-weight: 700;
    color: white;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* 2026-05-20 — SEO H1: visible-but-restrained subtitle in the hero. Sized down
   from a typical hero H1 so it doesn't compete with the existing tagline and
   buttons, but lives in the DOM so Google reads "Pizza in Bellbird Park" as
   the page's primary heading. */
.hero-h1 {
    font-size: clamp(14px, 2.2vw, 18px);
    font-weight: 500;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.5px;
    margin: 0 0 22px;
    text-align: center;
    line-height: 1.4;
    max-width: 640px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Footer delivery-areas line — small, low-emphasis so it doesn't compete with
   the brand tagline, but search engines and customers can both see which
   suburbs we cover. */
.footer-areas {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 6px;
    line-height: 1.5;
}
.footer-areas strong { color: rgba(255,255,255,0.9); font-weight: 600; }

.hero-actions {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-actions .btn {
    padding: clamp(14px, 2vw, 24px) clamp(28px, 4vw, 48px) !important;
    font-size: clamp(16px, 2vw, 22px) !important;
    border-radius: var(--radius-lg);
    gap: 12px;
}

/* ==================== SECTIONS ==================== */
.page-section {
    display: none;
}
.page-section.active {
    display: block;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 24px;
}

.specials-section {
    background: #1a1a1a;
    max-width: 100%;
    padding: 56px 24px;
}
.specials-section .section-header { margin-bottom: 40px; }
.specials-section .section-title { color: white; }
.specials-section .section-subtitle { color: rgba(255,255,255,0.6); }
.specials-section .specials-grid {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 8px;
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    padding: 40px 20px;
}

/* ==================== SPECIALS GRID ==================== */
.specials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    /* 2026-05-20 CLS fix: reserve vertical space (~one card row) so the
       Popular Picks section + footer don't jump up/down as the specials
       inject from the API. */
    min-height: 380px;
}

.specials-grid .special-card-static {
    width: calc(33.333% - 16px);
    max-width: 400px;
}
.specials-grid .special-card {
    width: calc(33.333% - 16px);
    max-width: 400px;
}

/* 2026-05-20 — Skeleton cards for FCP/CLS. Matches the natural ratio of
   the specials artwork (~4:5) so the layout reserves the exact pixel
   footprint the real cards will fill. Subtle dark fill blends into the
   black hero gradient — invisible to users on fast networks (replaced
   within ~600ms) but rock-solid for Lighthouse's first paint. */
.specials-grid .skel-card {
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, #1a1a1a 0%, #222 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.04);
}

.special-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-light);
}
.special-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.special-card-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.special-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.special-card:hover .special-card-image { transform: scale(1.05); }

.special-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 56px;
}

.special-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.special-card-body {
    padding: 20px;
}

/* Static special cards (user-uploaded promo images) */
.special-card-static {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.special-card-static-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.special-card-static:hover .special-card-static-img {
    transform: scale(1.03);
}

/* Specials grid inside menu page */
.specials-menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    grid-column: 1 / -1;
}
.specials-menu-grid .special-card-static {
    width: 30%;
    min-width: 200px;
    max-width: 350px;
}

.special-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.special-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.special-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.special-card-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

/* ==================== POPULAR GRID ==================== */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    /* 2026-05-20 CLS fix: reserve vertical space so footer doesn't jump */
    min-height: 300px;
}

/* 2026-05-20 — Skeleton placeholders for item cards. Matches the real
   `.item-card` footprint: 16:9 image area + ~85px body for text. Browser
   commits this layout during HTML parse, so when JS injects real cards
   there's no shift. */
.skel-item-card {
    background: #fafafa;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    height: 0;
    padding-bottom: calc(56.25% + 88px);  /* 16:9 image + body */
    overflow: hidden;
}

/* ==================== MENU LAYOUT ==================== */
.menu-layout {
    display: flex;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: var(--header-height);
    min-height: 100vh;
    min-height: 100dvh;       /* iOS Safari URL bar fix 2026-05-19 */
}

.category-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));   /* iOS Safari URL bar fix 2026-05-19 */
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-nav {
    padding: 8px 12px;
}

.category-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2px;
}
.category-nav-item:hover {
    background: var(--border-light);
    color: var(--text);
}
.category-nav-item.active {
    background: var(--primary);
    color: white;
}
.category-nav-item .cat-count {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.6;
}
.category-nav-item i { width: 18px; text-align: center; }

/* Mobile category bar */
.category-bar-mobile {
    display: none;
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-bar-mobile::-webkit-scrollbar { display: none; }

.category-chip {
    display: inline-block;
    padding: 8px 18px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    margin-right: 8px;
}
.category-chip:hover { background: var(--border); color: var(--text); }
.category-chip.active {
    background: var(--primary);
    color: white;
}

/* Menu Content */
.menu-content {
    flex: 1;
    padding: 24px;
    min-width: 0;
}

.menu-items-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}
.menu-items-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
}
.item-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.menu-items-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Menu category sections */
.menu-category-section {
    scroll-margin-top: 120px;
}

.menu-category-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}
.menu-category-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.menu-category-header h3 i { color: var(--primary); font-size: 18px; }
.menu-category-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.menu-category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.empty-menu {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-menu i { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-menu p { font-size: 16px; }

/* ==================== MENU ITEM CARD ==================== */
.item-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}
.item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}
.item-card.sold-out {
    opacity: 0.55;
    cursor: not-allowed;
}
.item-card.sold-out:hover { transform: none; box-shadow: var(--shadow-xs); }

.item-card-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
    /* 2026-05-20 CLS fix: reserve aspect ratio so the card height is committed
       before the image network response arrives. Without this, cards expand
       from 0 → ~140px as each image lands and content below shifts. */
    aspect-ratio: 16 / 9;
}

.item-card-image {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

/* TEST: Crop pizza images to half height — shows top half only */
.item-card-image-wrap.img-cropped {
    max-height: 140px;
}
.item-card-image-wrap.img-cropped .item-card-image {
    width: 100%;
    height: 200%;
    object-fit: cover;
    object-position: center top;
}
/* Tighten the card body when image is cropped */
.item-card:has(.img-cropped) .item-card-body {
    padding: 10px 14px;
}
.item-card:has(.img-cropped) .item-card-name {
    font-size: 14px;
    margin-bottom: 2px;
}
.item-card:has(.img-cropped) .item-card-desc {
    font-size: 12px;
    -webkit-line-clamp: 1;
    margin-bottom: 6px;
}
.item-card:has(.img-cropped) .item-card-footer {
    margin-top: auto;
}
/* Half & Half variant: show whole image scaled to fit, not cropped */
.item-card-image-wrap.img-cropped.img-cropped-contain {
    max-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f0eb;
}
.item-card-image-wrap.img-cropped.img-cropped-contain .item-card-image {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 140px;
    object-fit: contain;
    object-position: center;
}
.item-card:hover .item-card-image { transform: scale(1.03); }

.item-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    color: #ccc;
    font-size: 48px;
}

.sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.item-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.item-card-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.item-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-card-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.item-card-add {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    transition: var(--transition);
    flex-shrink: 0;
}
.item-card-add:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ==================== ITEM DETAIL MODAL ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    margin: 40px auto;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-image-wrap {
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.modal-close:hover { background: rgba(0,0,0,0.75); }

.modal-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background: #1a1a1a;
}

.modal-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: rgba(255,255,255,0.4);
    font-size: 64px;
}

.modal-body {
    padding: 24px;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Modal Sections (Size, Modifiers, Toppings) */
.modal-section {
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}
.modal-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.modal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.modal-section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.required-badge {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.info-badge {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

/* Size Options */
.size-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.size-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.size-option:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}
.size-option.active {
    border-color: var(--primary);
    background: var(--primary-bg);
}
.size-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.size-option.disabled:hover {
    border-color: var(--border);
    background: transparent;
}

.size-option-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.size-option-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.size-sold-out {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--border-light);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Modifier Options (dropdowns for pizza choices, drinks, etc.) */
.modifier-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modifier-option {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.modifier-option:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}
.modifier-option.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
}

.modifier-option-name { flex: 1; }
.modifier-option-price {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
}

/* Sold-out modifier option — greyed & non-interactive */
.modifier-option.sold-out-opt {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--border-light);
    border-color: var(--border);
    color: var(--text-muted);
    pointer-events: none;
}
.modifier-option.sold-out-opt .modifier-option-name {
    text-decoration: line-through;
}
.modifier-option-soldout {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: #E53935;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

.modifier-coming-soon {
    padding: 16px;
    background: var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.modifier-coming-soon i { margin-right: 8px; }

/* Modifier Dropdown (for pizza selection etc.) */
.modifier-dropdown-wrap {
    position: relative;
}
.modifier-dropdown {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    background: white;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: var(--transition);
}
.modifier-dropdown:hover { border-color: var(--primary-light); }
.modifier-dropdown:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(211,47,47,0.15); }
.modifier-dropdown-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

/* Default Toppings */
.default-toppings {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.default-topping {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--success-bg);
    border: 2px solid #a5d6a7;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
}
.default-topping:hover { opacity: 0.8; }
.default-topping.removed {
    background: var(--error-bg);
    border-color: #ef9a9a;
    color: var(--error);
    text-decoration: line-through;
}
.default-topping i { font-size: 14px; }

/* Extra Toppings */
.extra-toppings-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.topping-group-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.topping-group-label i { color: var(--primary); }

.topping-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.extra-topping {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}
.extra-topping:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}
.extra-topping.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}
.extra-topping-name { flex-shrink: 0; }
.extra-topping-price {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.extra-topping.active .extra-topping-price { color: var(--primary); }
.extra-topping i {
    font-size: 14px;
    margin-left: 2px;
}

/* Modal Footer */
.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    position: sticky;
    bottom: 0;
}

/* ==================== SPECIAL MODAL STYLES ==================== */

/* Slot overview */
.special-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.special-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: white;
}
.special-slot.configured {
    border-color: var(--success);
    background: var(--success-bg);
}
.special-slot-info {
    flex: 1;
    min-width: 0;
}
.special-slot-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2px;
}
.special-slot-pizza {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}
.slot-mods {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
}
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pizza picker */
.picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
}
.picker-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
}
.picker-back {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: var(--transition);
}
.picker-back:hover { background: var(--border); }
.picker-back-img {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    color: white;
    backdrop-filter: blur(4px);
}
.picker-back-img:hover { background: rgba(0,0,0,0.75); }

.picker-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}
.picker-group {
    margin-bottom: 24px;
}
.picker-group-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.picker-group-label i { color: var(--primary); }

.picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}
.picker-pizza-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.picker-pizza-card:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.picker-pizza-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.picker-pizza-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-light);
    color: var(--text-muted);
    font-size: 28px;
}
.picker-pizza-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

/* Customizer */
.customizer-slot-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-bg);
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}
.customizer-slot-label i { margin-right: 4px; }

/* Base Sauce Selector */
.base-sauce-section {
    background: var(--primary-bg);
    margin-left: -24px;
    margin-right: -24px;
    padding: 20px 24px !important;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}
.base-sauce-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.base-sauce-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: white;
}
.base-sauce-option:hover { border-color: var(--primary-light); }
.base-sauce-option.active {
    border-color: var(--primary);
    background: white;
}
.radio-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
}
.radio-dot.checked {
    border-color: var(--primary);
}
.radio-dot.checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
}
.base-sauce-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.base-sauce-price {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: auto;
}
.base-sauce-option.active .base-sauce-price {
    color: var(--primary);
    font-weight: 600;
}

.base-size-section {
    margin-top: 0;
}

.special-customizer-footer {
    display: flex;
    gap: 12px;
}
.special-customizer-footer .btn {
    flex: 1;
}

.modal-add-btn {
    flex: 1;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: white;
}
.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--border); }
.qty-value {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
}

/* ==================== CART SIDEBAR ==================== */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
}
.cart-overlay.open { display: block; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -440px;
    width: var(--cart-width);
    height: 100vh;
    height: 100dvh;    /* 2026-05-19 — iOS Safari URL bar fix: dvh respects
                          the dynamic viewport height so the cart footer +
                          checkout button never sit underneath the bottom
                          address bar. Falls through to 100vh on browsers
                          older than Safari 15.4 / Chrome 108. */
    background: var(--bg-white);
    z-index: 1501;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    /* Respect iOS home-indicator safe area when present */
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.cart-sidebar.open { right: 0; }

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
    flex-shrink: 0;
}
.cart-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: var(--transition);
}
.cart-close:hover { background: var(--border); }

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.cart-empty i {
    font-size: 56px;
    margin-bottom: 16px;
    color: var(--border);
}
.cart-empty p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}
.cart-empty span {
    font-size: 14px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}

.cart-item-left { flex-shrink: 0; }

.cart-item-image {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

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

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 2px;
}

.cart-item-mods {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.cart-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.cart-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text);
    font-size: 10px;
    transition: var(--transition);
}
.cart-qty-btn:hover { background: var(--border); }
.cart-qty-value {
    width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--dark);
}

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

.cart-item-remove {
    flex-shrink: 0;
    background: none;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 13px;
}
.cart-item-remove:hover { background: var(--error-bg); color: var(--error); }

/* Special Combo Breakdown in Cart */
.cart-item-special {
    flex-direction: column;
}
.cart-item-special .cart-item-left {
    display: none;
}
.cart-item-special .cart-item-info {
    width: 100%;
}
.cart-item-special .cart-item-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
}
.cart-item-special .cart-item-remove {
    position: absolute;
    top: 16px;
    right: 0;
}
.cart-item-special {
    position: relative;
}

.cart-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    padding: 8px 0;
}

.cart-breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 10px;
    background: var(--bg);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.cart-breakdown-header {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-breakdown-header i {
    font-size: 11px;
    color: var(--primary);
    width: 14px;
    text-align: center;
}
.cart-breakdown-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-breakdown-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    padding-left: 20px;
}

.cart-breakdown-details {
    font-size: 11px;
    color: var(--text-muted);
    padding-left: 20px;
    font-style: italic;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
}

.cart-summary {
    margin-bottom: 16px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 4px 0;
    font-weight: 600;
}
.cart-summary-row span:last-child { font-weight: 800; color: var(--dark); font-size: 18px; }

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    right: 16px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 360px;
}
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: var(--success);
    color: white;
}
.toast-error {
    background: var(--error);
    color: white;
}
.toast-info {
    background: var(--info);
    color: white;
}

.toast i { font-size: 18px; flex-shrink: 0; }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    margin-top: 60px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    height: 50px;
    /* width: auto + the HTML width/height attrs => respect aspect-ratio.
       Without this, global "img { max-width:100% }" stretches the logo to
       fill the footer-brand column (~576px wide) and squashes Quick Links
       + Contact into too-narrow columns. */
    width: auto;
    margin-bottom: 12px;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    transition: var(--transition);
}
.footer-links a:hover { color: white; }
.footer-contact p {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    /* Allow <br> inside the address line to force a line break: <br> becomes
       a flex item with flex-basis: 100%, pushing the parenthetical onto the
       next row. Without this, flex nowrap put the (Diagonally...) text
       beside the street address. */
    flex-wrap: wrap;
}
.footer-contact p > i {
    flex: 0 0 auto;
    line-height: 1.5;
    margin-top: 2px;
}
.footer-contact p > br {
    flex-basis: 100%;
    width: 100%;
    height: 0;
}
.footer-contact p > span {
    /* Let the wrapped parenthetical span the full row width once <br> bumps it down */
    flex: 1 1 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 20px 24px;
    font-size: 13px;
}

/* ==================== LOADING ==================== */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
.loading-overlay.show { display: flex; }

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-spinner p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .category-sidebar { display: none; }
    .category-bar-mobile { display: block; }
    .menu-layout { flex-direction: column; }
    .menu-content { padding: 16px; }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .specials-grid { gap: 16px; }
    .specials-grid .special-card-static { width: calc(50% - 8px); max-width: none; }
    .specials-grid .special-card { width: calc(50% - 8px); max-width: none; }
    .specials-menu-grid { gap: 16px; }
    .specials-menu-grid .special-card-static { width: calc(50% - 8px); max-width: none; }
}

@media (max-width: 768px) {
    :root {
        --header-height: 75px;
    }
    
    .header-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .header-logo { height: 38px; }

    .hero { height: 220px; }
    .hero-title { font-size: clamp(18px, 5.5vw, 28px); letter-spacing: -1px; }
    .hero-tagline { font-size: clamp(16px, 5vw, 24px); letter-spacing: 3px; white-space: nowrap; margin-bottom: 16px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 28px; }
    .hero-content { padding: 0 16px; }
    .hero-actions { flex-direction: row; gap: 8px; }
    .hero-actions .btn { flex: 1; justify-content: center; padding: 12px 8px !important; font-size: clamp(13px, 3.5vw, 16px) !important; white-space: nowrap; }

    .section-container { padding: 40px 16px; }
    .section-title { font-size: 24px; }

    .specials-grid { grid-template-columns: 1fr; gap: 16px; }
    .specials-grid .special-card-static { width: 100%; }
    .specials-grid .special-card { width: 100%; }
    .special-card-image-wrap { height: 170px; }

    .popular-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .menu-items-grid { gap: 32px; }
    .menu-category-items { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .item-card-image-wrap { }
    .item-card-body { padding: 12px; }
    .item-card-name { font-size: 13px; }
    .item-card-desc { font-size: 11px; -webkit-line-clamp: 1; margin-bottom: 8px; }
    .item-card-price { font-size: 15px; }
    .item-card-add { width: 32px; height: 32px; font-size: 13px; }

    .cart-sidebar { width: 100%; right: -100%; }

    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        max-height: 100dvh;     /* 2026-05-19 — iOS Safari URL bar fix */
        margin: 0;
        border-radius: 0;
        height: 100vh;
        height: 100dvh;         /* same — keeps modal-footer above the bottom address bar */
        display: flex;
        flex-direction: column;
        /* Respect the home-indicator safe area so the Add-to-Special / Add-to-Order button never
           sits beneath the iOS bottom inset. */
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .modal-overlay { padding: 0; align-items: stretch; }
    .modal-image { max-height: 250px; }
    .modal-body { flex: 1; overflow-y: auto; }
    .modal-footer { position: static; }

    .toast-container {
        left: 16px;
        right: 16px;
    }
    .toast { max-width: 100%; }

    .menu-items-header h2 { font-size: 22px; }

    .extra-topping { font-size: 12px; padding: 6px 12px; }
    .modifier-option { font-size: 12px; padding: 8px 12px; }
    .size-option { padding: 12px 14px; }
}

@media (max-width: 480px) {
    .popular-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .menu-items-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .item-card-image-wrap { }
    .hero { height: 200px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 15px; }
}


/* ==================== CHECKOUT STYLES ==================== */
#section-checkout { padding: 24px 0; padding-top: 80px; }
.checkout-container { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* Progress Bar */
.checkout-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    padding: 0 12px;
}
.checkout-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--border);
    z-index: 0;
}
.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1;
}
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}
.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.checkout-step.active .step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.checkout-step.active .step-label { color: var(--primary); }
.checkout-step.completed .step-num {
    background: #43A047;
    border-color: #43A047;
    color: #fff;
}
.checkout-step.completed .step-label { color: #43A047; }

/* Cards */
.co-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.co-card-header { margin-bottom: 20px; }
.co-card-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.co-card-header h2 i { color: var(--primary); font-size: 20px; }
.co-card-sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* Order Type Toggle */
.co-order-type {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.co-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}
.co-type-option:hover { border-color: var(--primary-light); color: var(--primary); }
.co-type-option.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
}
.co-type-option i { font-size: 18px; }

/* Items List */
.co-items-list { margin-bottom: 16px; }
.co-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.co-item:last-child { border-bottom: none; }
.co-item-qty {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.co-item-info { flex: 1; }
.co-item-name { font-weight: 600; font-size: 14px; color: var(--dark); }
.co-item-mods { display: flex; flex-direction: column; gap: 2px; margin-top: 3px; }
.co-item-mods small { font-size: 12px; color: var(--text-muted); }
.co-item-price { font-weight: 700; font-size: 14px; color: var(--dark); flex-shrink: 0; }

/* Summary */
.co-summary, .co-payment-summary { padding-top: 16px; border-top: 2px dashed var(--border); }
.co-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-light);
}
.co-summary-total {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 2px solid var(--dark);
}
.co-surcharge { font-size: 13px !important; color: var(--text-muted) !important; }
.co-surcharge-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.co-surcharge-note i { color: var(--primary); }

/* Actions */
.co-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.co-actions .btn { padding: 14px 28px; font-size: 15px; }
.btn-lg { font-size: 16px !important; padding: 16px 32px !important; }
.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border);
}
.btn-outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-pay {
    background: #43A047 !important;
    box-shadow: 0 4px 12px rgba(67,160,71,0.3);
    min-width: 40%;
    max-width: 90%;
    min-height: 56px;
    padding: 18px 32px !important;
    font-size: 17px !important;
    /* Flexbox for unambiguous icon + text centering — previously relied on
       text-align:center which misaligns slightly when the icon is present */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    white-space: nowrap;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.btn-pay:hover { background: #388E3C !important; }

/* Phone Form */
.co-form { display: flex; flex-direction: column; gap: 16px; }
.co-field { display: flex; flex-direction: column; gap: 6px; }
.co-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.co-field input, .co-field textarea, .co-field select {
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    color: var(--dark);
    background: var(--bg-white);
}
.co-field input:focus, .co-field textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(211,47,47,0.1);
}
.co-field input:disabled { background: var(--bg); color: var(--text-muted); }
.co-field-row { display: flex; gap: 12px; }
.co-field-row .co-field { flex: 1; }
.co-field-sm { max-width: 110px; flex: 0 0 110px !important; }
.co-optional { font-weight: 400; text-transform: none; color: var(--text-muted); font-size: 12px; }

/* Phone Input */
.co-phone-input {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}
.co-phone-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(211,47,47,0.1); }
.co-phone-prefix {
    padding: 12px 14px;
    background: var(--bg);
    font-weight: 700;
    color: var(--text-light);
    font-size: 15px;
    border-right: 2px solid var(--border);
}
.co-phone-input input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
}

/* OTP Inputs */
.co-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.co-otp-digit {
    width: 48px !important;
    height: 56px;
    text-align: center;
    font-size: 24px !important;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
}
.co-otp-digit:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(211,47,47,0.15);
}

/* Verified Badge */
.co-verified {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
}
.co-verified i { font-size: 20px; }

/* Error */
.co-error {
    color: var(--error);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    background: var(--error-bg);
    border-radius: 8px;
}

/* Divider */
.co-divider { height: 1px; background: var(--border); margin: 20px 0; }
.co-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.co-section-title i { color: var(--primary); }

/* Address Search */
.co-address-search { position: relative; }
.co-address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
}
.co-address-suggestion {
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
}
.co-address-suggestion:hover { background: var(--primary-bg); color: var(--primary); }
.co-address-suggestion i { color: var(--primary); font-size: 12px; flex-shrink: 0; }

/* Pickup Info */
.co-pickup-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--bg);
    border-radius: 12px;
    margin-top: 8px;
}
.co-pickup-info > i { font-size: 24px; color: var(--primary); margin-top: 2px; }
.co-pickup-info strong { font-size: 15px; color: var(--dark); }
.co-pickup-info p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.co-pickup-time { color: var(--primary) !important; font-weight: 600; margin-top: 4px !important; }

/* Stripe Card Element */
.co-stripe-form { margin-bottom: 8px; }
.co-stripe-form label { font-size: 13px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; display: block; }
.co-card-element {
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-white);
    transition: var(--transition);
}
.co-card-element:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(211,47,47,0.1); }

/* Payment Method Selector */
.co-payment-method-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
button.co-payment-option, .co-payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    background: var(--bg-white);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 10;
}
.co-payment-option:hover {
    border-color: var(--primary);
    color: var(--text-dark);
}
.co-payment-option.selected {
    border-color: var(--primary);
    background: rgba(211,47,47,0.05);
    color: var(--primary);
}
.co-payment-option i {
    font-size: 18px;
}
.co-cash-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f0faf0;
    border-radius: 10px;
    border: 1px solid #c8e6c9;
    margin-bottom: 8px;
}

/* Stripe Trust Badge */
.co-stripe-trust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.co-stripe-trust-text {
    font-size: 11px;
    color: #666;
    flex: 1;
    min-width: 180px;
    line-height: 1.4;
}
.co-stripe-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}
.co-stripe-logo {
    height: 18px;
    width: auto;
    vertical-align: middle;
}
.co-stripe-lock {
    color: #4CAF50;
    font-size: 14px;
}


/* Secure Note */
.co-secure-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.co-secure-note i { color: #43A047; }

/* Success Card */
.co-success-card { text-align: center; padding: 40px 24px; }
.co-success-icon { margin-bottom: 16px; }
.co-success-icon i { font-size: 64px; color: #43A047; }
.co-success-card h2 { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.co-success-msg { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; }
.co-order-details {
    text-align: left;
    background: var(--bg);
    border-radius: 12px;
    padding: 16px;
}
.co-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.co-detail-row:last-child { border-bottom: none; }
.co-detail-row > i { color: var(--primary); font-size: 16px; margin-top: 2px; width: 20px; text-align: center; }
.co-detail-row strong { font-size: 13px; color: var(--text-muted); display: block; }
.co-detail-row span { font-size: 15px; font-weight: 600; color: var(--dark); }

/* Voucher/Discount Code */
.co-voucher-section {
    margin: 16px 0;
    padding: 14px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.co-voucher-input-wrap {
    display: flex;
    gap: 8px;
}
.co-voucher-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.co-voucher-input:focus {
    outline: none;
    border-color: var(--primary);
}
.co-voucher-btn {
    white-space: nowrap;
    padding: 10px 16px !important;
}
.co-voucher-msg {
    font-size: 13px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
}
.co-voucher-msg.success {
    color: #2e7d32;
    background: #e8f5e9;
}
.co-voucher-msg.error {
    color: #c62828;
    background: #ffebee;
}
.co-discount-row {
    color: #2e7d32 !important;
}
.co-discount-row span {
    color: #2e7d32 !important;
    font-weight: 600;
}

/* Receipt Docket */
.co-receipt-docket {
    margin-top: 24px;
    padding: 20px 0 0;
    border-top: 2px dashed var(--border-light);
    display: flex;
    justify-content: center;
}

.btn-download-invoice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1a7a3a 0%, #22963f 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(26, 122, 58, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    letter-spacing: 0.3px;
}
.btn-download-invoice:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(26, 122, 58, 0.25);
}
.btn-download-invoice:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.btn-download-invoice i {
    font-size: 18px;
}
.btn-download-loading {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.co-receipt-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}
.co-receipt-title i {
    color: var(--primary);
    margin-right: 6px;
}
.co-receipt-img-wrap {
    display: flex;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.co-receipt-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}
.co-receipt-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.co-receipt-btn {
    font-size: 13px !important;
    padding: 8px 18px !important;
    text-decoration: none;
}
.co-receipt-loading {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
}
.co-receipt-spinner {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
}
.co-receipt-error {
    color: var(--text-muted);
    font-size: 13px;
    padding: 20px;
}

/* Btn Link */
.btn-link {
    background: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}

/* Half & Half Card */
.item-card-halfhalf {
    cursor: pointer;
    border: 2px dashed var(--primary);
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}
.item-card-halfhalf .item-card-image-wrap {
    flex: 1 1 auto;
    min-height: 0;
}
.item-card-halfhalf .item-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item-card-halfhalf .item-card-body {
    flex: 0 0 auto;
}
.item-card-halfhalf:hover { border-style: solid; transform: translateY(-3px); }
.halfhalf-visual, .halfhalf-visual-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #b71c1c 100%);
    color: #fff;
    font-size: 28px;
    gap: 6px;
}
.halfhalf-visual-lg { height: 80px; border-radius: 12px; font-size: 36px; margin-bottom: 12px; }
.halfhalf-divider {
    width: 2px;
    height: 50%;
    background: rgba(255,255,255,0.5);
    transform: rotate(15deg);
}
.halfhalf-price { color: var(--primary) !important; font-weight: 800 !important; }
.hh-header { text-align: center; }

/* Mobile Checkout */
@media (max-width: 768px) {
    .checkout-container { padding: 0 12px; }
    .co-card { padding: 18px; }
    .co-otp-digit { width: 42px !important; height: 48px; font-size: 20px !important; }
    .co-actions { flex-direction: column; }
    .co-actions .btn { width: 100%; text-align: center; justify-content: center; }
    .co-field-row { flex-direction: column; gap: 12px; }
    .co-field-sm { max-width: 100%; flex: 1 !important; }
    .checkout-progress { padding: 0; }
    .step-label { font-size: 10px; }
}

/* ==================== UPSELL MODAL ==================== */
.upsell-modal {
    padding: 16px;
    text-align: center;
}
.upsell-header { margin-bottom: 12px; }
.upsell-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #ff6b35, #D32F2F);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px; color: #fff;
}
.upsell-header h2 {
    font-size: 20px; font-weight: 800; color: #1a1a1a; margin: 0 0 4px;
}
.upsell-header p {
    font-size: 13px; color: #666; margin: 0;
}
.upsell-items {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 14px;
}
.upsell-card {
    width: 160px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}
.upsell-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.upsell-card.upsell-added {
    border-color: #4CAF50;
    background: #f0fff0;
}
.upsell-card-img-wrap {
    width: 100%; height: 80px; position: relative; overflow: hidden;
    background: #f5f5f5;
}
.upsell-card-img {
    width: 100%; height: 100%; object-fit: cover;
}
.upsell-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #f5f5f5; color: #ccc; font-size: 28px;
}
.upsell-discount-badge {
    position: absolute; top: 6px; left: 6px;
    background: #4CAF50; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
}
.upsell-card-body {
    padding: 6px 10px 8px;
}
.upsell-card-name {
    display: block;
    font-size: 12px; font-weight: 600; color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
    min-height: 0;
}
.upsell-card-prices {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 6px;
}
.upsell-original-price {
    font-size: 11px; color: #999;
    text-decoration: line-through;
}
.upsell-discount-price {
    font-size: 14px; font-weight: 700; color: #D32F2F;
}
.upsell-add-btn {
    width: 100%; font-size: 12px; padding: 5px 10px !important;
}
.upsell-footer {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.upsell-footer .btn-lg {
    min-width: 240px;
}
.upsell-skip-btn {
    background: none; border: none;
    color: #888; font-size: 12px;
    cursor: pointer; text-decoration: underline;
    padding: 4px 8px;
}
.upsell-skip-btn:hover { color: #555; }

@media (max-width: 600px) {
    .upsell-items { gap: 8px; }
    .upsell-card { width: 130px; }
    .upsell-card-img-wrap { height: 65px; }
    .upsell-header h2 { font-size: 16px; }
}

/* Included Items in Specials */
.included-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.included-item-card {
    background: var(--surface, #f8f8f8);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
}
.included-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
}
.included-item-name {
    color: var(--text-primary, #1a1a1a);
}
.included-badge {
    background: var(--secondary, #4CAF50);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.included-modifier-group {
    margin-top: 10px;
}
.included-mod-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #666);
    margin-bottom: 6px;
    display: block;
}
.sauce-radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.sauce-radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    background: white;
}
.sauce-radio-option:hover {
    border-color: var(--primary, #e63946);
}
.sauce-radio-option.active {
    border-color: var(--primary, #e63946);
    background: rgba(230, 57, 70, 0.06);
}
.sauce-radio-option .radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ccc;
    position: relative;
    flex-shrink: 0;
}
.sauce-radio-option .radio-dot.checked {
    border-color: var(--primary, #e63946);
}
.sauce-radio-option .radio-dot.checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary, #e63946);
}

/* ==================== LOYALTY POINTS — checkout ==================== */
.co-loyalty-section {
    margin: 12px 0 8px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fffaf2 0%, #fff7ea 100%);
    border: 1px solid #f5d693;
    border-radius: 12px;
    /* Reserve the full active-state height so the page doesn't jump
       when the customer increases / decreases the redemption amount. */
    min-height: 138px;
    box-sizing: border-box;
}
@media (max-width: 480px) {
    .co-loyalty-section { min-height: 196px; }
}
.co-loyalty-section.co-loyalty-active {
    border-color: #f5a623;
    background: linear-gradient(135deg, #fff5e0 0%, #ffefcd 100%);
    box-shadow: 0 1px 4px rgba(245,166,35,0.15);
}
.co-loyalty-section.co-loyalty-blocked { opacity: 0.85; }
.co-loyalty-row {
    display: flex; align-items: center; gap: 12px;
}
.co-loyalty-icon {
    width: 36px; height: 36px; flex: 0 0 36px;
    background: #f5a623; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.co-loyalty-text { flex: 1; min-width: 0; }
.co-loyalty-title {
    font-weight: 700; font-size: 15px; color: #333; margin-bottom: 2px;
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.co-loyalty-balance-inline {
    font-weight: 600; font-size: 12px; color: #b07816;
    background: #fff3d8; padding: 2px 8px; border-radius: 10px;
}
.co-loyalty-sub { font-size: 12px; color: #7a6a4f; line-height: 1.4; }
.co-loyalty-balance {
    font-weight: 700; font-size: 13px; color: #b07816;
    white-space: nowrap; padding: 4px 10px;
    background: #fff3d8; border-radius: 14px;
}
.co-loyalty-controls {
    display: flex; gap: 10px; margin-top: 10px; align-items: center; flex-wrap: wrap;
}
.co-ly-stepper {
    display: flex; align-items: center; gap: 0;
    background: #fff; border: 1px solid #e8d4a3; border-radius: 999px;
    padding: 4px;
}
.co-ly-step {
    width: 32px; height: 32px;
    border: none; background: #fff5e0; color: #b07816;
    border-radius: 50%; cursor: pointer;
    font-size: 18px; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.co-ly-step:hover { background: #f5a623; color: #fff; }
.co-ly-step:active { transform: scale(0.94); }
.co-ly-current {
    padding: 0 14px; min-width: 110px; text-align: center;
    font-size: 14px; color: #333;
}
.co-ly-current strong { color: #b07816; }
.co-ly-current-d {
    display: block; font-size: 11px; color: #7a6a4f; margin-top: 1px;
}
.co-ly-apply, .co-ly-clear {
    flex: 0 0 auto;
}
@media (max-width: 480px) {
    .co-loyalty-controls { gap: 8px; }
    .co-ly-stepper { flex: 1; justify-content: space-between; }
    .co-ly-current { flex: 1; }
}

/* ==================== LOYALTY POINTS — account panel ==================== */
.acct-loy-card {
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg, #fff5e0 0%, #ffefcd 100%);
    border: 1px solid #f5d693; border-radius: 12px;
    padding: 14px 16px; margin-bottom: 12px;
}
.acct-loy-balance-block {
    flex: 0 0 auto; text-align: center; padding-right: 14px;
    border-right: 1px solid #f0d391;
}
.acct-loy-balance-num {
    font-size: 32px; font-weight: 800; color: #b07816; line-height: 1;
}
.acct-loy-balance-label {
    font-size: 11px; color: #7a6a4f; letter-spacing: 1px;
    text-transform: uppercase; margin-top: 2px;
}
.acct-loy-balance-meta { flex: 1; min-width: 0; }
.acct-loy-balance-value { font-weight: 700; color: #333; font-size: 16px; }
.acct-loy-balance-hint { color: #7a6a4f; font-size: 12px; margin-top: 4px; line-height: 1.4; }
.acct-loy-history { font-size: 13px; }
.acct-loy-history-title {
    font-weight: 700; font-size: 12px; text-transform: uppercase;
    color: #888; margin: 8px 0 6px; letter-spacing: 0.5px;
}
.lyh-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px solid #f0f0f0;
}
.lyh-row:last-child { border-bottom: none; }
.lyh-meta { flex: 1; min-width: 0; padding-right: 10px; }
.lyh-type { font-weight: 600; color: #333; font-size: 13px; }
.lyh-date { color: #999; font-size: 11px; margin-top: 1px; }
.lyh-note { color: #666; font-size: 11px; margin-top: 2px; font-style: italic; }
.lyh-pts { font-weight: 700; font-size: 14px; white-space: nowrap; flex: 0 0 auto; }
.lyh-pos { color: #27ae60; }
.lyh-neg { color: #D32F2F; }

/* ==================== LOYALTY — Top-bar scrolling marquee ==================== */
/* Core animation only — most layout/colors are set inline on the element
   itself to survive any CSS override. */
@keyframes lyMarqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* When marquee is visible, bump the CSS variable that every page offsets by
   so the hero / menu / sticky filters don't get hidden under it. */
body.has-loyalty-marquee { --header-height: 122px; }
@media (max-width: 768px) {
    body.has-loyalty-marquee { --header-height: 107px; }
    #loyaltyMarquee { top: 75px !important; font-size: 11px !important; letter-spacing: 1px !important; padding: 6px 0 !important; }
    #loyaltyMarquee .ly-marquee-track { animation-duration: 18s !important; gap: 40px !important; padding-right: 40px !important; }
}
@media (prefers-reduced-motion: reduce) {
    #loyaltyMarquee .ly-marquee-track { animation-duration: 60s !important; }
}
