@import url('font/quicksand.css');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --red:         #e22510;
    --red-dark:    #45140e;
    --red-light:   #c72716;
    --gold:        #f5a623;
    --gold-light:  #ffd166;
    --dark:        #1a1a1a;
    --dark-2:      #2c2c2c;
    --dark-3:      #3d3d3d;
    --gray:        #6b6b6b;
    --gray-light:  #e8e0d8;
    --glass-bg:    rgba(241, 181, 28, 0.40);
    --white:       #ffffff;
    --white2:      #fafaf8;
    --admin-bg:    #f4f5f7;
    --green:       #28a745;

    --topbar-h:    4.5rem;
    --sidebar-w:   22rem;
    --radius:      10px;
    --radius-lg:   16px;
    --shadow-sm:   0 2px 8px  rgba(0,0,0,0.10);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.16);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.22);
    --transition:  0.2s ease;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.06);
    --accent-transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* Cart drawer — hidden until triggered */
.mobile-cart-overlay,
.mobile-cart-drawer { display: flex; flex-direction: column; }
.mobile-cart-overlay { display: none; }
.mobile-cart-drawer { transform: translateY(100%); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: var(--topbar-h);
    font-family: 'DM Sans', 'quicksand', sans-serif;
    background-color: var(--white2);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    overflow: hidden; /* desktop: no body scroll — app handles it */
}

#app {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

a  { text-decoration: none; color: inherit; }
form { width: 100%; }
img { max-width: 100%; }

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
    height: var(--topbar-h);
    background-image: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 60%, var(--red-light) 100%);
    display: flex;
    align-items: stretch;
    color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 0 2rem;
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 1030;
    gap: 0.25rem;
    overflow-y: hidden;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo > img {
    width: 8.5rem;
    margin-right: 1.5rem;
    filter: brightness(0) invert(1);
    transition: transform var(--transition);
}
.logo:hover > img { transform: scale(1.04); }

.nav-tab {
    padding: 0 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 3px solid transparent;
    transition: background-color var(--transition), color var(--transition);
    white-space: nowrap;
    
}
.nav-tab:hover { color: var(--white); background-color: rgba(255,255,255,0.15); text-decoration: none; }
.nav-tab.active { color: var(--gold-light); background-color: rgba(0,0,0,0.15); border-bottom-color: var(--gold-light); }
.nav-tab img { height: 1.5rem; margin-bottom: 0.25rem; opacity: 0.9; }
.nav-tab.active img {
    filter: brightness(0) saturate(100%) invert(93%) sepia(18%) saturate(797%) hue-rotate(316deg) brightness(109%) contrast(101%);
    opacity: 1;
}

.user-info { margin-left: auto; display: flex; align-items: center; gap: 0.55rem; }
.user-info img { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); }
.user-info .username { display: block; font-weight: 700; color: var(--white); font-size: 0.88rem; }
.user-info a,
.user-info button.sign-out { color: var(--gold-light); font-size: 0.75rem; padding: 0; background: none; border: none; cursor: pointer; }

a.sign-in {
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 2rem;
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    padding: 0.3rem 1rem;
    transition: all var(--transition);
}
a.sign-in:hover { background-color: rgba(255,255,255,0.2); color: var(--gold-light); border-color: var(--gold-light); }

.user-info-tab { cursor: default; max-width: 150px; overflow: hidden; }
.user-email { font-size: 0.68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.logout-tab { font-weight: 700; font-size: 0.68rem; }
.toggle-switch { position:relative; display:inline-block; width:42px; height:24px; cursor:pointer; margin:0; }
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-slider { position:absolute; inset:0; background:#ccc; border-radius:24px; transition:background 0.2s; }
.toggle-slider:before { content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition:transform 0.2s; }
.toggle-switch input:checked + .toggle-slider { background:#28a745; }
.toggle-switch input:checked + .toggle-slider:before { transform:translateX(18px); }
/* =============================================
   DESKTOP LAYOUT  (≥768px)
   .content is a flex-row; .main scrolls; .sidebar is fixed-width column
   ============================================= */
.content {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;          /* clip children so each scrolls independently */
    background-color: var(--white2);
}

/* .main = left scrollable area */
.main {
    flex: 1 1 0;
    min-width: 0;
    overflow-y: auto;
    padding: 1.5rem !important;
    background: var(--admin-bg);
}
/* ══════════════════════════════════════════════
   MODERN SIDEBAR — Desktop (≥768px)
   Premium food-app style like Grab/Uber Eats
   ══════════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #f8f7f5;
    border-left: 1px solid #e8e3dc;
    color: var(--dark);
    overflow: hidden;
}

/* ── Header ── */
.sidebar-header {
    padding: 1.1rem 1.2rem 0.9rem;
    background: #fff;
    border-bottom: 1px solid #f0ece6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-header-left h2 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 0.1rem 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.sidebar-header-left h2 .cart-badge {
    background: var(--red);
    color: #fff;
    border-radius: 2rem;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.08rem 0.5rem;
    line-height: 1.4;
}
.sidebar-header .store-name {
    font-size: 0.72rem;
    color: #999;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.sidebar-header-icon {
    width: 2.4rem; height: 2.4rem;
    background: linear-gradient(135deg, #fff5f0, #ffe0d6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(226,37,16,0.15);
    flex-shrink: 0;
}

/* ── Scrollable items area ── */
.order-contents-wrapper {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 0.8rem 0.9rem;
    background-color: var(--dark-);
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

/* ── Empty state ── */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: #bbb;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.8;
    gap: 0.5rem;
}
.empty-cart-icon {
    font-size: 3rem;
    opacity: 0.35;
    line-height: 1;
}
.empty-cart-title { font-weight: 700; color: #aaa; font-size: 0.9rem; }
.empty-cart-sub { font-size: 0.78rem; color: #ccc; }

/* ── Cart item card ── */
.cart-item {
    background: #fff;
    border-radius: 14px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    border: 1px solid #f0ece6;
    transition: all 0.18s ease;
    position: relative;
}
.cart-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); transform: translateY(-1px); }

.cart-item-icon {
    width: 2.2rem; height: 2.2rem;
    background: linear-gradient(135deg, #fff5f0, #ffe8e0);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cart-item .title {
    flex: 1;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--dark);
    line-height: 1.3;
}

.item-price {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--dark);
    white-space: nowrap;
    margin-right: 20px;
}
.item-price::before { content: '$'; font-weight: 400; font-size: 0.72rem; opacity: 0.55; margin-right: 1px; }

.delete-item {
    width: 1.4rem; height: 1.4rem;
    border-radius: 50%;
    background: #f2ede8;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #bbb;
    font-size: 0.6rem;
    font-weight: 900;
    transition: all 0.15s;
    text-decoration: none;
    flex-shrink: 0;
    position: static;
    border: none;
}
.delete-item:hover { background: #ffe0dc; color: var(--red); text-decoration: none; }

/* ── Promo code section ── */
.sidebar-promo {
    margin: 0 0.9rem 0;
    border-radius: 12px;
    background: #fff;
    border: 1.5px dashed #e0d8d0;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.sidebar-promo:focus-within { border-color: var(--red); border-style: solid; }
.sidebar-promo-toggle {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem; font-weight: 600;
    color: var(--red); cursor: pointer;
    background: none; border: none; width: 100%;
    font-family: inherit; text-align: left;
}
.sidebar-promo-toggle:hover { background: #fff8f6; }
.sidebar-promo-toggle .promo-arrow { margin-left: auto; font-size: 0.7rem; transition: transform 0.2s; color: #ccc; }
.sidebar-promo-toggle .promo-arrow.open { transform: rotate(180deg); }
.sidebar-promo-input-row {
    display: none;
    padding: 0 0.7rem 0.7rem;
    gap: 0.5rem;
    align-items: center;
}
.sidebar-promo-input-row.open { display: flex; }
.sidebar-promo-input-row input {
    flex: 1; border: 1.5px solid #e8e3dc; border-radius: 8px;
    padding: 0.45rem 0.7rem; font-size: 0.82rem;
    font-family: inherit; outline: none;
    text-transform: uppercase; letter-spacing: 0.05em;
    transition: border-color 0.15s;
}
.sidebar-promo-input-row input:focus { border-color: var(--red); }
.sidebar-promo-input-row input::placeholder { text-transform: none; letter-spacing: 0; color: #ccc; }
.sidebar-promo-apply {
    background: var(--red); color: #fff;
    border: none; border-radius: 8px;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem; font-weight: 700;
    font-family: inherit; cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.sidebar-promo-apply:hover { background: var(--red-dark); }
/* orders admin styles */
  .orders-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .orders-title {
        font-family: 'Arial Black', sans-serif;
        color: var(--red);
        margin: 0;
        font-size: 1.4rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .orders-count {
        background: var(--red);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 2px 10px;
        border-radius: 20px;
        vertical-align: middle;
    }

    /* Filter pills */
    .filter-bar {
        display: flex;
        gap: 0.4rem;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
    }
    .filter-pill {
        padding: 0.4rem 1rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        border: 1.5px solid #e0e0e0;
        background: #fff;
        color: #666;
        cursor: pointer;
        transition: all 0.15s;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .filter-pill:hover { border-color: #aaa; color: #333; }
    .filter-pill.active {
        background: #1a1a1a;
        color: #fff;
        border-color: #1a1a1a;
    }
    .filter-pill .pill-count {
        background: rgba(255,255,255,0.25);
        border-radius: 10px;
        padding: 0 6px;
        font-size: 0.7rem;
    }
    .filter-pill:not(.active) .pill-count {
        background: #f0f0f0;
        color: #888;
    }

    /* Order cards */
    .order-card {
        background: #fff;
        border-radius: 14px;
        border: 1.5px solid #f0f0f0;
        margin-bottom: 0.75rem;
        overflow: hidden;
        transition: box-shadow 0.2s;
    }
    .order-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
    .order-card-inner {
        display: grid;
        grid-template-columns: 90px 1fr 1fr 1fr 160px;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }
    @media (max-width: 900px) {
        .order-card-inner { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 600px) {
        .order-card-inner { grid-template-columns: 1fr; }
    }

    .order-col-label {
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #aaa;
        margin-bottom: 4px;
    }

    /* Order ID */
    .order-id { font-size: 1.15rem; font-weight: 900; color: #1a1a1a; }
    .order-time { font-size: 0.75rem; color: #aaa; margin-top: 2px; }

    /* Customer avatar */
    .customer-row { display: flex; align-items: center; gap: 10px; }
    .customer-avatar {
        width: 36px; height: 36px; border-radius: 50%;
        background: #fff3e0;
        color: #e65100;
        font-weight: 700; font-size: 0.9rem;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }
    .customer-name { font-weight: 700; font-size: 0.88rem; color: #1a1a1a; }
    .customer-address { font-size: 0.75rem; color: #aaa; margin-top: 1px; }

    /* Pizza badges */
    .pizza-badge {
        display: inline-block;
        background: #fff8f0;
        border: 1px solid #ffe0b2;
        color: #e65100;
        border-radius: 6px;
        font-size: 0.72rem;
        font-weight: 600;
        padding: 2px 8px;
        margin: 2px 2px 2px 0;
    }

    /* Price */
    .order-price { font-size: 1.1rem; font-weight: 900; color: #1a1a1a; }
    .order-location { font-size: 0.75rem; color: #aaa; margin-top: 2px; }

    /* Status select */
    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0.35rem 0.75rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        margin-bottom: 6px;
    }
    .status-dot { width: 7px; height: 7px; border-radius: 50%; }
    .status-select-styled {
        width: 100%;
        border: 1.5px solid #e0e0e0;
        border-radius: 10px;
        padding: 0.4rem 0.75rem;
        font-size: 0.82rem;
        font-weight: 600;
        background: #fafafa;
        cursor: pointer;
        outline: none;
        transition: border-color 0.2s;
    }
    .status-select-styled:focus { border-color: #aaa; }
    .synced-badge {
        font-size: 0.65rem;
        background: #e8f5e9;
        color: #2e7d32;
        border-radius: 6px;
        padding: 2px 8px;
        font-weight: 700;
        text-align: center;
        margin-top: 4px;
        display: block;
        letter-spacing: 0.04em;
    }

    /* Status colors */
    .status-preparing   { background: #fff8e1; color: #f57f17; }
    .status-out         { background: #fff3e0; color: #e65100; }
    .status-delivered   { background: #e8f5e9; color: #2e7d32; }
    .status-cancelled   { background: #fce4ec; color: #c62828; }

    /* Empty state */
    .empty-state {
        text-align: center;
        padding: 4rem 2rem;
        color: #aaa;
    }
    .empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* my order styles */
  .myorders-wrap {
        max-width: 720px;
        margin: 0 auto;
        padding: 1.5rem 1rem;
    }
    .myorders-title {
        font-family: 'Arial Black', sans-serif;
        color: var(--red);
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .order-card {
        background: #fff;
        border-radius: 14px;
        border: 1.5px solid #f0f0f0;
        margin-bottom: 0.75rem;
        overflow: hidden;
        transition: box-shadow 0.2s, border-color 0.2s;
    }
    .order-card:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        border-color: #e0e0e0;
    }
    .order-card-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .order-card-left { display: flex; align-items: center; gap: 14px; }
    .order-icon {
        width: 44px; height: 44px;
        border-radius: 12px;
        background: #fff8f0;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    .order-id { font-size: 1rem; font-weight: 900; color: #1a1a1a; }
    .order-date { font-size: 0.75rem; color: #aaa; margin-top: 2px; }
    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0.3rem 0.85rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
    }
    .status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
    .status-preparing  { background: #fff8e1; color: #f57f17; }
    .status-out        { background: #fff3e0; color: #e65100; }
    .status-delivered  { background: #e8f5e9; color: #2e7d32; }
    .status-cancelled  { background: #fce4ec; color: #c62828; }

    .order-card-body {
        padding: 0 1.25rem 0.75rem;
        border-top: 1px solid #f5f5f5;
        margin-top: 0.25rem;
    }
    .pizza-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f9f9f9;
        font-size: 0.85rem;
    }
    .pizza-row:last-child { border-bottom: none; }
    .pizza-name { display: flex; align-items: center; gap: 8px; color: #333; font-weight: 500; }
    .pizza-price { font-weight: 700; color: #1a1a1a; }

    .order-card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1.25rem;
        background: #fafafa;
        border-top: 1px solid #f0f0f0;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .order-total { font-size: 0.85rem; color: #fefefe; }
    .order-total strong { color: #ffffff; font-size: 1rem; }

    .track-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--red, #d63626);
        color: #fff;
        border: none;
        border-radius: 20px;
        padding: 0.4rem 1.1rem;
        font-size: 0.82rem;
        font-weight: 700;
        text-decoration: none;
        transition: opacity 0.15s;
    }
    .track-btn:hover { opacity: 0.88; color: #fff; }

    /* Progress bar */
    .progress-wrap { padding: 0.5rem 1.25rem 0.75rem; }
    .progress-steps {
        display: flex;
        align-items: center;
        gap: 0;
        margin-bottom: 4px;
    }
    .progress-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        position: relative;
    }
    .step-dot {
        width: 22px; height: 22px;
        border-radius: 50%;
        border: 2px solid #e0e0e0;
        background: #fff;
        display: flex; align-items: center; justify-content: center;
        font-size: 0.65rem;
        font-weight: 700;
        color: #ccc;
        z-index: 1;
        transition: all 0.3s;
    }
    .step-dot.done {
        background: #2e7d32;
        border-color: #2e7d32;
        color: #fff;
    }
    .step-dot.active {
        background: var(--red, #d63626);
        border-color: var(--red, #d63626);
        color: #fff;
    }
    .step-line {
        flex: 1;
        height: 2px;
        background: #e0e0e0;
        margin-top: -11px;
        transition: background 0.3s;
    }
    .step-line.done { background: #2e7d32; }
    .step-labels {
        display: flex;
        justify-content: space-between;
        font-size: 0.65rem;
        color: #aaa;
        margin-top: 4px;
    }
    .step-label { flex: 1; text-align: center; font-weight: 600; }
    .step-label.active { color: var(--red, #d63626); }
    .step-label.done { color: #2e7d32; }

    /* Empty state */
    .empty-state {
        text-align: center;
        padding: 5rem 2rem;
    }
    .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
    .empty-title { font-size: 1.2rem; font-weight: 700; color: #333; margin-bottom: 0.5rem; }
    .empty-sub { font-size: 0.88rem; color: #aaa; margin-bottom: 1.5rem; }

    .refresh-indicator {
        font-size: 0.72rem;
        color: #aaa;
        text-align: right;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
    }
/* ── Order summary footer ── */
.order-total {
    background: #ffffff;
    border-top: 1px solid #f0ece6;
    padding: 0.9rem 1.1rem 1.1rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.75rem;
}
.order-total.hidden { display: none; }

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray-light);
    padding: 0.3rem 0;
}
.order-summary-row span:last-child { font-weight: 600; color: var(--admin-bg); }

.order-summary-divider {
    height: 1px;
    background: #f0ece6;
    margin: 0.4rem 0;
}

.order-summary-row.total-row {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gray-light);
    padding: 0.5rem 0 0.2rem;
}
.order-summary-row.total-row span:last-child { color: var(--white); font-size: 1.05rem; }

.total-price { font-weight: 800; }
.total-price::before { content: '$'; font-weight: 400; font-size: 0.8rem; opacity: 0.55; margin-right: 1px; }

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.85rem;
    background: linear-gradient(135deg, #c0392b, var(--red));
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(226,37,16,0.3);
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}
.checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(226,37,16,0.4); color: #fff; text-decoration: none; background: linear-gradient(135deg, #a93226, #c0392b); }
.checkout-btn:active { transform: scale(0.98); }
.checkout-btn.disabled { opacity: 0.4; pointer-events: none; cursor: not-allowed; box-shadow: none; }
.checkout-btn-arrow { font-size: 1rem; transition: transform 0.2s; }
.checkout-btn:hover .checkout-btn-arrow { transform: translateX(3px); }

/* ── Mobile: hide sidebar, show floating button + drawer ── */
.mobile-cart-btn { display: none;}
.mobile-cart-overlay { display: none; }
.mobile-cart-drawer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1300;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
    
}

.mobile-cart-overlay.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1200; backdrop-filter: blur(2px);}
.mobile-cart-drawer.open { transform: translateY(0); }
.mobile-cart-drawer .drawer-handle { width: 2.5rem; height: 4px; background: #ddd; border-radius: 2px; margin: 0.75rem auto 0.5rem; flex-shrink: 0; }
.mobile-cart-drawer .drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1.2rem 0.75rem; flex-shrink: 0; border-bottom: 1px solid #f0ece6; }
.mobile-cart-drawer .drawer-header h2 { font-size: 1rem; font-weight: 800; color: var(--dark); margin: 0; }
.mobile-cart-drawer .drawer-close { background: #f5f0eb; border: none; color: #999; font-size: 0.8rem; font-weight: 800; cursor: pointer; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-cart-drawer .drawer-items { flex: 1; padding: 0.75rem 1rem;  }
.mobile-cart-drawer .drawer-empty { color: #aaa; text-align: center; padding: 2rem 1rem; font-size: 0.9rem; line-height: 2;  }
.mobile-cart-drawer .drawer-footer { padding: 0.75rem 1rem 1.5rem; flex-shrink: 0; border-top: 1px solid #f0ece6; }
.mobile-cart-drawer .drawer-checkout-btn { display: block; width: 100%; background: linear-gradient(135deg, var(--red-dark), var(--red)); color: #fff; border: none; border-radius: 12px; padding: 0.9rem; font-size: 1rem; font-weight: 800; font-family: inherit; cursor: pointer; text-align: center; box-shadow: 0 4px 16px rgba(226,37,16,0.3); }
.mobile-cart-drawer .drawer-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--dark); }
.mobile-cart-drawer .drawer-total strong { font-size: 1.2rem; font-weight: 800; color: var(--red); }


.order-contents-wrapper { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; flex-shrink: 0; }

.order-contents {
    overflow-y: auto;
    padding: 1.6rem 1.2rem 1rem;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--dark-3) transparent;
}

.order-contents h2 {
    color: var(--gold-light);
    background-color: var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Cart items */
.cart-item {
    background-color: var(--dark-2);
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius);
    margin-top: 0.7rem;
    position: relative;
    border: 1px solid rgba(255,255,255,0.06);
    transition: background-color var(--transition);
}
.cart-item:hover { background-color: var(--dark-3); }
.cart-item .title { font-weight: 600; font-size: 0.88rem; color: var(--white); margin-bottom: 0.2rem; padding-right: 1.5rem; }
.cart-item ul { padding: 0; margin: 0.3rem 0 0 0; }
.cart-item li { list-style-type: none; font-size: 0.76rem; color: var(--gray); }

.item-price { font-weight: 600; font-size: 0.82rem; color: var(--gold-light); margin-top: 0.3rem; }
.item-price::before { content: '$'; font-weight: 400; font-size: 0.72rem; margin-right: 0.1rem; opacity: 0.75; }

.delete-item {
    position: absolute; top: 0.5rem; right: 0.5rem;
    width: 1.4rem; height: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--gray);
    border-radius: 50%; font-size: 0.7rem; font-weight: 700;
    transition: all var(--transition);
}
.delete-item:hover { color: var(--white); background-color: var(--red); text-decoration: none; }

.empty-cart {
    text-align: center; margin: auto; padding: 2rem 1rem;
    font-size: 0.95rem; color: var(--gray); line-height: 1.8;
}

/* Order total bar — always pinned at bottom of sidebar */
.order-total {
    background: linear-gradient(145deg, var(--red-dark), var(--red));
    min-height: 4.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--white);
    font-size: 0.95rem;
    padding: 0.75rem 1.2rem;
    gap: 0.5rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.order-total .total-price { font-weight: 700; font-size: 1.35rem; }
.order-total .total-price::before { content: '$'; font-weight: 400; font-size: 0.95rem; margin-right: 0.1rem; opacity: 0.8; }

.order-total .btn {
    margin-left: auto;
    font-weight: 700; font-size: 0.8rem;
    letter-spacing: 0.05em; text-transform: uppercase;
    border-radius: 2rem; padding: 0.42rem 1.1rem;
    background-color: var(--gold); color: var(--dark);
    border: none; transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.order-total .btn:hover { background-color: var(--gold-light); transform: scale(1.04); }

/* =============================================
   PIZZA CARDS
   ============================================= */
.pizza-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1.25rem;
    padding-left: 0;
    list-style: none;
    width: 100%;
    
}


.pizza-cards > li {
    height: 11rem;
    position: relative;
    background-size: cover; background-position: center;
    border-radius: var(--radius-lg);
    list-style-type: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer; overflow: hidden;
}
.pizza-cards > li:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); }

.pizza-info {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0) 100%);
    padding: 1rem 1.1rem; color: var(--white);
    cursor: pointer; text-shadow: 0 1px 4px rgba(0,0,0,0.6); line-height: 1.3rem;
    border-radius: var(--radius-lg);
}
.pizza-info .title {
    color: var(--white); font-size: 1.2rem;
    font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
    display: block; margin-bottom: 0.25rem;
}
.pizza-info .price {
    position: absolute; bottom: 0.7rem; right: 0.9rem;
    font-size: 1.1rem; font-weight: 700;
    padding: 0.2rem 0.7rem; border-radius: 2rem;
    background-color: var(--glass-bg); color: var(--white);
    line-height: 1.8rem; box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
}
.price::before { content: '$'; font-weight: 400; font-size: 0.85rem; margin-right: 0.1rem; opacity: 0.85; }

/* =============================================
   DIALOG / MODAL
   ============================================= */
.dialog-container {
    position: fixed; inset: 0;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000; display: flex;
    animation: fadeIn 0.2s ease;
    padding: 1rem;
}

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

.dialog {
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
    z-index: 2001;
    align-self: center; margin: auto;
    width: 680px;
    max-width: 100%;
    max-height: calc(100vh - 2rem);
    border-radius: var(--radius-lg); overflow: hidden;
    animation: slideUp 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes slideUp { from { transform: translateY(40px) scale(0.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

.dialog-title {
    background: linear-gradient(135deg, var(--dark-2), var(--dark));
    color: var(--white); padding: 1.4rem 1.8rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-shrink: 0;
}
.dialog-title h2 { color: var(--white); font-size: 1.3rem; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; margin: 0 0 0.25rem 0; }
.dialog-title p, .dialog-title span { color: rgba(255,255,255,0.65); font-size: 0.86rem; margin: 0; }

.dialog-body {
    flex-grow: 1; overflow-y: auto;
    padding: 1.4rem 1.8rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.dialog-body > div { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 0 1rem; margin: 0; }
.dialog-body label { text-align: right; font-weight: 600; font-size: 0.8rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; margin: 0; }
.dialog-body input[type=range] { flex-grow: 1; width: 60%; }
.dialog-body .size-label {
    font-weight: 700; font-size: 0.95rem; color: var(--dark);
    background: var(--white2); border: 1.5px solid var(--gray-light);
    border-radius: var(--radius); padding: 0.28rem 0.7rem;
    text-align: center; display: inline-block; width: fit-content;
}
.size-wrapper { display: flex; flex-direction: row; gap: 0.3rem; justify-content: center; align-items: center; }
.dialog-body select {
    width: 100%; border: 1.5px solid var(--gray-light); border-radius: var(--radius);
    padding: 0.45rem 0.75rem; font-family: inherit; font-size: 0.88rem;
    background-color: var(--white); color: var(--dark); cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition); appearance: auto;
}
.dialog-body select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }

/* Toppings */
.dialog .toppings { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; }
.dialog .topping {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: var(--white); padding: 0.28rem 0.7rem; border-radius: 2rem;
    font-weight: 600; font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(192,57,43,0.3);
    transition: transform var(--transition), box-shadow var(--transition);
}
.dialog .topping:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(192,57,43,0.4); }
.dialog .topping-price { font-weight: 400; font-size: 0.72rem; opacity: 0.85; }
.dialog .topping-price::before { content: '$'; }
.delete-topping {
    background: rgba(255,255,255,0.2); border: none; color: var(--white);
    width: 1.15rem; height: 1.15rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.65rem; font-weight: 700; padding: 0;
    transition: background var(--transition);
}
.delete-topping:hover { background: rgba(255,255,255,0.4); }

.dialog-buttons {
    height: 4.5rem; flex-shrink: 0;
    display: flex; align-items: center;
    background: linear-gradient(to right, #f8f8f8, #f0f0f0);
    padding: 0 1.8rem; gap: 0.8rem;
    border-top: 1px solid var(--gray-light);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.dialog-buttons .btn-secondary {
    background: none; border: 1.5px solid var(--gray-light); color: var(--gray);
    border-radius: 2rem; padding: 0.38rem 1.1rem; font-weight: 600; font-size: 0.8rem; transition: all var(--transition);
}
.dialog-buttons .btn-secondary:hover { border-color: var(--dark); color: var(--dark); background: rgba(0,0,0,0.05); }
.dialog-buttons .btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71); border: none; color: var(--white);
    border-radius: 2rem; padding: 0.38rem 1.3rem; font-weight: 700; font-size: 0.8rem;
    letter-spacing: 0.04em; box-shadow: 0 2px 8px rgba(39,174,96,0.35); transition: all var(--transition);
}
.dialog-buttons .btn-success:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(39,174,96,0.45); }

.dialog .price { font-weight: 800; font-size: 1.55rem; color: var(--red); letter-spacing: -0.02em; }
.dialog .price::before { content: '$'; font-size: 1rem; font-weight: 400; opacity: 0.7; margin-right: 0.1rem; vertical-align: super; }
.mr-center { flex: 1; text-align: center; font-size: 0.8rem; color: var(--gray); font-weight: 500; }

/* =============================================
   CHECKOUT
   ============================================= */
.checkout-button {
    display: block; width: fit-content;
    background-color: var(--red-light); color: var(--white);
    font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
    border-radius: 2rem; padding: 0.55rem 1.6rem;
    margin: 1.5rem auto 0; cursor: pointer; border: none;
    transition: all var(--transition);
}
.checkout-button:hover { background-color: var(--red); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(226,37,16,0.45); }

.checkout-cols { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.checkout-cols h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--red); margin-bottom: 1.1rem; font-size: 1.1rem; }
.checkout-cols > div {
    flex: 1; min-width: 260px;
    border: 1.5px solid var(--gray-light); background: rgba(255,255,255,0.85);
    padding: 1.4rem 1.2rem; border-radius: var(--radius-lg); box-shadow: var(--card-shadow);
}

.form-field { display: grid; grid-template-columns: 38% 62%; align-items: center; gap: 0.4rem; margin: 0.55em 0; padding: 0.2rem 0; }
.form-field > label { font-weight: 500; font-size: 0.86rem; color: var(--gray); }
.form-field > div { flex-grow: 1; }
.form-field input, .form-field select {
    width: 100%; border: 1.5px solid var(--gray-light); border-radius: var(--radius);
    padding: 0.38rem 0.7rem; font-family: inherit; font-size: 0.88rem;
    appearance: auto; cursor: pointer; background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.form-message { padding: 0.5rem; font-weight: 600; font-size: 0.86rem; }

.valid.modified:not([type=checkbox]) { outline: 2px solid var(--glass-bg); border-radius: var(--radius); }
.invalid { outline: 2px solid var(--red-light); border-radius: var(--radius); }
.validation-message { color: var(--red-light); font-size: 0.8rem; margin-top: 0.2rem; }

/* =============================================
   ADMIN / ORDERS
   ============================================= */
.filter-pill-container {
    background: #fff; padding: 0.35rem; border-radius: 50px;
    display: inline-flex; gap: 0.2rem;
    box-shadow: var(--card-shadow); border: 1px solid #eee; flex-wrap: wrap;
}
.btn-filter { border-radius: 50px; padding: 0.35rem 1.1rem; font-size: 0.82rem; font-weight: 600; transition: var(--accent-transition); border: none; }
.order-card { background: white; border-radius: 12px; transition: var(--accent-transition); position: relative; overflow: hidden; }
.order-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important; }
.order-id-label { font-family: 'Monaco', 'Consolas', monospace; color: #222; letter-spacing: -0.5px; }
.badge-pizza { background: #f1f3f5; color: #495057; font-weight: 500; border: none; padding: 0.4em 0.8em; }
.status-select { cursor: pointer; transition: var(--accent-transition); }
.status-select:hover { filter: brightness(0.95); }
.fw-black { font-weight: 900; }
.animate-fade-in { animation: fadeIn 0.4s ease; }

/* =============================================
   ORDER TRACKING
   ============================================= */
.track-order { background-color: var(--white); box-shadow: var(--shadow-md); height: 100%; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; }
.track-order > div { overflow-y: hidden; }
.track-order-title { background-color: #f7f3ef; display: flex; align-items: center; padding: 1.1rem 1.8rem; border-bottom: 1.5px solid var(--gray-light); }
.track-order-title h2 { color: var(--red); font-size: 1rem; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; margin: 0; text-transform: uppercase; }
.track-order-body { flex-grow: 1; display: flex; }
.track-order-details { overflow-y: auto; padding: 1.4rem 1.8rem; flex-grow: 1; }
.track-order-map { width: 350px; flex-shrink: 0; }

.status-preparing { color: var(--red-light); }
.status-delivered  { color: var(--green); }
.status-out        { color: #000; }

/* =============================================
   RANGE SLIDER
   ============================================= */
input[type=range] { --webkit-appearance: none; width: 100%; height: 6px; background: var(--gray-light); border-radius: 3px; outline: none; margin: 10px 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 22px; width: 22px; border-radius: 50%; background: var(--red); cursor: pointer; box-shadow: 0 2px 6px rgba(192,57,43,0.4); transition: background var(--transition), transform var(--transition); }
input[type=range]::-webkit-slider-thumb:hover { background: var(--red-dark); transform: scale(1.15); }
input[type=range]::-moz-range-thumb { height: 22px; width: 22px; border-radius: 50%; background: var(--red); cursor: pointer; border: none; box-shadow: 0 2px 6px rgba(192,57,43,0.4); }
input[type=range]:focus { outline: none; }

/* =============================================
   LOADING / ERROR / FOOTER / SCROLLBAR
   ============================================= */
.loading-bar { position: absolute; top: calc(50% - 3px); left: calc(50% - 200px); width: 400px; height: 5px; background-color: rgba(255,255,255,0.3); border-radius: 3px; overflow: hidden; }
.loading-bar::after { content: ''; display: block; width: 160px; height: 100%; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: progressbar-slide 1.2s infinite ease-in-out; }
@keyframes progressbar-slide { 0% { transform: translateX(-160px); } 100% { transform: translateX(400px); } }

#blazor-error-ui { background: #fff3cd; border-top: 3px solid var(--gold); bottom: 0; box-shadow: 0 -2px 8px rgba(0,0,0,0.15); display: none; left: 0; padding: 0.7rem 1.5rem; position: fixed; width: 100%; z-index: 9999; font-size: 0.9rem; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: 0.6rem; font-size: 1.1rem; opacity: 0.6; transition: opacity var(--transition); }
#blazor-error-ui .dismiss:hover { opacity: 1; }

footer.p-2 { text-align: center; font-size: 0.76rem; color: var(--gray); padding: 0.55rem 1.2rem; border-top: 1px solid var(--gray-light); background: var(--white); flex-shrink: 0; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(0,0,0,0.32); }

/* =============================================
   MISC
   ============================================= */
.configured-pizza-item { display: flex; flex-direction: row; gap: 0.5rem; }
.form-group.row > .col-form-label { text-align: right; }

.stat-card { background: #fff; border: 2px solid var(--red); border-radius: var(--radius); padding: 0.9rem 1.2rem; min-width: 140px; flex: 1; box-shadow: 0 2px 6px rgba(0,0,0,0.07); }
.stat-label { font-size: 0.75rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-size: 1.9rem; font-weight: 900; color: var(--red); line-height: 1.1; }
.stat-sub   { font-size: 0.82rem; color: #555; margin-top: 0.1rem; }

/* =============================================
   RESPONSIVE — LARGE  ≥1200px
   ============================================= */
@media (min-width: 1200px) {
    :root { --sidebar-w: 22rem; }
    .pizza-cards { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
}

/* =============================================
   RESPONSIVE — MEDIUM  768px–1199px
   ============================================= */
@media (max-width: 1199px) and (min-width: 768px) {
    :root { --sidebar-w: 18rem; }
    .pizza-cards { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
    .top-bar { padding: 0 1.25rem; }
    .logo > img { width: 7.5rem; margin-right: 1rem; }
    .nav-tab { padding: 0 0.9rem; font-size: 0.64rem; }
    .nav-tab img { height: 1.35rem; }
}

/* =============================================
   RESPONSIVE — MOBILE  ≤767px
   Key insight: .content renders @Body which contains
   BOTH .main AND .sidebar as siblings.
   We flip .content to column, then let the whole page scroll.
   ============================================= */
@media (max-width: 767px) {
    :root { --topbar-h: 3.8rem; }

    /* Let the full page scroll on mobile */
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100%;
    }

    #app {
        overflow: visible;
        flex: none;
        min-height: calc(100vh - var(--topbar-h));
        display: flex;
        flex-direction: column;
    }

    /* ── Top bar shrinks ── */
    .top-bar { padding: 0 0.75rem; gap: 0; }
    .logo > img { width: 5.5rem; margin-right: 0.5rem; }
    .nav-tab { padding: 0 0.65rem; font-size: 0.6rem; letter-spacing: 0.02em; }
    .nav-tab img { height: 1.25rem; margin-bottom: 0.1rem; }

    /* ── .content becomes a column; no overflow clipping ── */
    .content {
        flex-direction: column;
        overflow: visible;
        flex: 1;
        min-height: 0;
    }
   

    /* ── .main: full width, no inner scrolling ── */
    .main {
        flex: none;
        width: 100%;
        overflow-y: visible;
        padding: 1rem !important;
        min-height: 0;
    }

    /* ── Pizza cards: 2 columns ── */
    .pizza-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        
    }
    .pizza-cards > li { height: 9.5rem; }
    .pizza-info .title { font-size: 1rem; }
    .pizza-info .price { font-size: 0.88rem; line-height: 1.6rem; padding: 0.12rem 0.5rem; }

    /* ── Hide desktop sidebar on mobile ── */
    .sidebar { display: none !important; }

    /* ── Show floating cart button on mobile ── */
    .mobile-cart-btn {
        display: flex !important;
        position: fixed;
        bottom: 1.2rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        z-index: 1100;
        background: linear-gradient(135deg, var(--red-dark), var(--red));
        color: #fff;
        border: none;
        border-radius: 3rem;
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
        font-weight: 700;
        font-family: inherit;
        box-shadow: 0 6px 24px rgba(226,37,16,0.45);
        cursor: pointer;
        align-items: center;
        gap: 0.75rem;
        min-width: 220px;
        justify-content: space-between;
        white-space: nowrap;
    }
    .mobile-cart-btn .cart-count {
        background: var(--gold);
        color: var(--dark);
        border-radius: 2rem;
        padding: 0.1rem 0.6rem;
        font-size: 0.8rem;
        font-weight: 800;
    }

    footer.p-2 { position: static; padding-bottom: 5rem; }

    .dialog-container {
        padding: 0;
        align-items: flex-end;
    }

    .dialog {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        animation: sheetUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }

    @keyframes sheetUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    .dialog-title { padding: 1rem 1.1rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .dialog-title h2 { font-size: 1.1rem; }
    .dialog-body { padding: 0.9rem 1.1rem; gap: 0.75rem; }

    /* Labels go above inputs on mobile */
    .dialog-body > div { grid-template-columns: 1fr; gap: 0.15rem; }
    .dialog-body label { text-align: left; }
    .dialog-body .size-wrapper { justify-content: flex-start; }
    .dialog-body .size-label { min-width: 5rem; font-size: 0.82rem; margin-top: 0; }
    .dialog-body select { max-width: 100%; }
    .dialog-buttons { padding: 0 1.1rem; gap: 0.6rem; height: 3.8rem; border-radius: 0; }

    /* ── Checkout ── */
    .checkout-cols { flex-direction: column; gap: 0.9rem; }
    .checkout-cols > div { min-width: unset; padding: 1rem 0.9rem; }
    .form-field { grid-template-columns: 1fr; gap: 0.2rem; }
    .form-field > label { font-size: 0.82rem; }

    /* ── Track order: hide map ── */
    .track-order-map { display: none; }
    .track-order-details { padding: 1rem 1.1rem; }

    footer.p-2 { font-size: 0.72rem; }
}

/* =============================================
   RESPONSIVE — EXTRA SMALL  ≤420px
   ============================================= */
@media (max-width: 420px) {
    .pizza-cards { grid-template-columns: 1fr; gap: 0.75rem; }
    .pizza-cards > li { height: 11rem; }
    .top-bar { padding: 0 0.5rem; }
    .logo > img { width: 4.8rem; margin-right: 0.35rem; }
    /* nav - */
    .nav-tab div { display: flex;  font-size: 0.7rem;}
    .nav-tab { padding: 0 0.6rem; }
    .nav-tab img { height: 1.4rem; margin-bottom: 0; }
}