/* catering-ui.css — Catering storefront overrides (neutral, no third-party naming) */

:root {
    --cat-accent: #80d4c5;
    --cat-accent-hover: #5ec3b2;
    --cat-accent-dark: #0f766e;
    --cat-gray-bg: #f4f4f5;
    --cat-border: #e4e4e7;
    --cat-text: #121212;
    --cat-muted: #6b7280;
    --cat-header-h: 56px;
    --cat-event-h: 50px;
    --cat-tabs-h: 46px;
}

body {
    background: #ffffff;
    color: var(--cat-text);
}

/* Full-width app shell (pickup-app default had max-width 390px) */
.pickup-app {
    width: 100% !important;
    max-width: none !important;
}

/* Kill all lateral padding on the main wrapper — each section controls its own. */
.pickup-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.route-menu .pickup-main,
.route-cart .pickup-main,
.route-checkout .pickup-main,
.route-orders .pickup-main,
.route-home .pickup-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Inner sections that DO need edges get a shared horizontal padding (12px, matches topbar). */
.cat-store-info,
.cat-menu-header,
.menu-list {
    padding-left: 12px;
    padding-right: 12px;
}

.category-tabs {
    padding-left: 12px;
    padding-right: 12px;
}

/* =========================
   Header (logo + icons)
   ========================= */
.pickup-header.cat-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--cat-border);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    padding: 0;
}

.cat-topbar {
    height: var(--cat-header-h);
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    background: #fff;
}

.cat-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    margin-right: auto;
}

.cat-logo img {
    height: 24px;
    width: auto;
    display: block;
}

.cat-topbar-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.cat-cartbtn .cart-badge {
    background: var(--cat-accent-dark);
}

.cat-iconbtn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--cat-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.cat-iconbtn:hover { background: var(--cat-gray-bg); }

.cat-iconbtn img,
.cat-iconbtn svg {
    width: 22px;
    height: 22px;
    display: block;
}

.cat-cartbtn .cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--cat-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Event details strip — flat white, no contrasting bg (avoids edge-bleed visual) */
.cat-event-strip {
    height: var(--cat-event-h);
    padding: 0 16px;
    background: #fff;
    border-top: 1px solid var(--cat-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cat-event-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.cat-event-copy strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--cat-text);
}

.cat-event-copy span {
    font-size: 12px;
    color: var(--cat-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-event-edit {
    appearance: none;
    background: none;
    border: none;
    font-weight: 700;
    font-size: 14px;
    color: var(--cat-text);
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 4px;
}

/* =========================
   Side drawer
   ========================= */
.cat-drawer {
    position: fixed;
    inset: 0;
    z-index: 120;
}

.cat-drawer[hidden] { display: none !important; }

.cat-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    animation: catFade .18s forwards;
}

.cat-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: min(86vw, 340px);
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 14px rgba(0,0,0,.15);
    transform: translateX(-100%);
    animation: catSlideIn .22s ease forwards;
}

.cat-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--cat-border);
}

.cat-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    flex: 1;
}

.cat-drawer-nav a {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cat-text);
    text-decoration: none;
    border-bottom: 1px solid #f1f1f4;
}

.cat-drawer-nav a:hover { background: var(--cat-gray-bg); }

.cat-drawer-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--cat-border);
    font-size: 12px;
    color: var(--cat-muted);
}

.cat-drawer-footer p { margin: 0; }

@keyframes catSlideIn { to { transform: translateX(0); } }
@keyframes catFade { to { opacity: 1; } }

/* =========================
   Search dropdown — compact card anchored below the search icon.
   No backdrop, single column, soft border-radius matching system style.
   ========================= */
.cat-search {
    position: fixed;
    top: calc(var(--cat-header-h) + 8px);
    right: 12px;
    width: min(380px, calc(100vw - 24px));
    max-height: min(72vh, 560px);
    z-index: 130;
    background: #fff;
    border: 1px solid var(--cat-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.22),
                0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: catSearchIn 0.18s ease;
}

@keyframes catSearchIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cat-search[hidden] { display: none !important; }

.cat-search-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--cat-border);
    background: #fff;
    flex-shrink: 0;
}

.cat-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--cat-muted);
    flex-shrink: 0;
}

.cat-search-icon img,
.cat-search-icon svg {
    width: 18px;
    height: 18px;
}

.cat-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 6px 4px;
    background: transparent;
    color: var(--cat-text);
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}

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

/* Suppress the browser's native X clear button on input[type=search] —
   we render our own .cat-search-close so the duplicate X looks broken. */
.cat-search-input::-webkit-search-cancel-button,
.cat-search-input::-webkit-search-decoration,
.cat-search-input::-webkit-search-results-button,
.cat-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.cat-search-input::-ms-clear,
.cat-search-input::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

.cat-search-close {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cat-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.12s ease, color 0.12s ease;
}

.cat-search-close:hover {
    background: var(--cat-gray-bg);
    color: var(--cat-text);
}

.cat-search-close img,
.cat-search-close svg {
    width: 14px;
    height: 14px;
}

.cat-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.cat-search-empty {
    color: var(--cat-muted);
    padding: 28px 16px;
    text-align: center;
    font-size: 14px;
}

.cat-search-result {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--cat-text);
    border-bottom: 1px solid #f4f4f6;
    transition: background 0.12s ease;
}

.cat-search-result:last-child { border-bottom: 0; }

.cat-search-result:hover { background: var(--cat-gray-bg); }

.cat-search-result.no-image {
    grid-template-columns: minmax(0, 1fr) auto;
}

.cat-search-result-media {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--cat-gray-bg);
}

.cat-search-result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-search-result-body { min-width: 0; }

.cat-search-result-body strong {
    font-size: 14px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-search-result-body span {
    font-size: 12px;
    color: var(--cat-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-search-result-price {
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    color: var(--cat-accent-dark);
}

@media (min-width: 1024px) {
    .cat-search {
        top: 72px;
        right: max(16px, calc((100% - 1360px) / 2 + 16px));
        width: 420px;
    }
}

/* =========================
   Hero + restaurant info
   ========================= */
.cat-hero {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.cat-store-info {
    padding: 16px 16px 8px;
}

.cat-store-info h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
}

.cat-store-info .cat-reviews {
    font-size: 13px;
    color: var(--cat-muted);
    margin: 0 0 4px;
}

.cat-store-info .cat-reviews strong {
    color: var(--cat-text);
    font-weight: 700;
}

.cat-store-info address {
    font-style: normal;
    font-size: 13px;
    color: var(--cat-muted);
    margin: 0;
}

/* Menu title row + filter button */
.cat-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px 8px;
}

.cat-menu-header h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.cat-filter-btn {
    appearance: none;
    background: #fff;
    border: 1px solid var(--cat-text);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cat-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cat-filter-btn img {
    width: 10px;
    height: 10px;
    display: block;
}

/* =========================
   Sticky category tabs
   ========================= */
.pickup-header.cat-header {
    /* overall height used as sticky offset root */
}

.category-tabs {
    position: sticky;
    top: calc(var(--cat-header-h) + var(--cat-event-h));
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--cat-border);
    display: flex;
    gap: 18px;
    padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px));
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    height: var(--cat-tabs-h);
    align-items: flex-end;
    scroll-behavior: auto;
    scroll-padding-inline: 16px;
    touch-action: pan-x pinch-zoom;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    user-select: none;
}

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

.category-tabs .category-tab {
    white-space: nowrap;
    text-decoration: none;
    color: var(--cat-muted);
    font-size: 14px;
    font-weight: 600;
    position: relative;
    padding: 0 0 10px;
    flex-shrink: 0;
}

.category-tabs .category-tab:first-child {
    margin-left: 2px;
}

.category-tabs .category-tab.active {
    color: var(--cat-text);
}

.category-tabs .category-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cat-accent);
    border-radius: 0;
}

/* =========================
   Menu list + product cards
   ========================= */
.menu-list {
    display: block;
    margin-top: 0;
    gap: 0;
    padding: 0 12px 120px;
}

.menu-list .menu-category {
    scroll-margin-top: calc(var(--cat-header-h) + var(--cat-event-h) + var(--cat-tabs-h) + 6px);
    margin-bottom: 0;
}

.menu-list .menu-category > header {
    background: #f8f8fa;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 800;
    color: var(--cat-text);
    margin: 6px 0 4px;
    border-radius: 10px;
    text-transform: none;
}

.menu-list .menu-category > header h3 {
    font-size: 14px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.2px;
}

.menu-list .menu-category > header p { display: none; }

/* Product card (left: text, right: square image) */
.menu-list .product-card {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 12px;
    padding: 14px 4px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--cat-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    align-items: stretch;
    transition: box-shadow .15s ease, transform .15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.menu-list .product-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

/* No-image variant — single column when there's no .product-media block.
   Applies at every viewport (mobile + desktop). */
.menu-list .product-card.no-image {
    grid-template-columns: 1fr;
}

.menu-list .product-card .product-copy {
    padding-left: 10px;
}

.menu-list .product-card .product-media {
    padding-right: 10px;
}

.menu-list .product-card .product-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.menu-list .product-card .product-copy h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--cat-text);
}

.menu-list .product-card .product-category-label {
    font-size: 12px;
    color: var(--cat-muted);
    font-weight: 600;
    margin: 0;
}

.menu-list .product-card .product-copy p {
    font-size: 13px;
    color: var(--cat-muted);
    line-height: 1.45;
    margin: 2px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-list .product-card .product-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 6px;
}

.menu-list .product-card .product-price-row strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--cat-text);
}

.menu-list .product-card .dietary-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.menu-list .product-card .dietary-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(128, 212, 197, 0.18);
    color: var(--cat-accent-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    border: none;
}

.menu-list .product-card .dietary-badge img,
.menu-list .product-card .dietary-badge svg,
.menu-list .product-card .dietary-badge i {
    width: 12px;
    height: 12px;
}

.menu-list .product-card .product-media {
    display: flex;
    align-items: flex-start;
}

.menu-list .product-card .product-media-frame {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--cat-gray-bg);
    position: relative;
    align-self: flex-start;
}

.menu-list .product-card .product-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-list .product-card .product-media-plus {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-list .product-card .product-media-plus img {
    width: 16px;
    height: 16px;
}

/* =========================
   Floating cart strip
   ========================= */
.cat-cart-strip {
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    z-index: 90;
    background: transparent;
    pointer-events: none;
}

.cat-cart-strip a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2e8158;
    color: #fff !important;
    height: 52px;
    border-radius: var(--radius, 4px);
    padding: 0 22px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    pointer-events: auto;
}

.cat-cart-strip a span { color: #fff; }

/* =========================
   Order details modal — lift above the sticky header/tabs
   ========================= */
.order-details-modal {
    z-index: 200 !important;
}

.order-details-modal .order-details-backdrop {
    z-index: 201;
}

.order-details-modal .order-details-sheet {
    z-index: 202;
}

.cat-cart-strip a:hover { background: #246b47; }

/* Inside the quickview modal, hide the duplicate "back" arrow — leave only the close X */
.cat-quickview .product-hero-back {
    display: none !important;
}

/* =========================
   Product quickview modal
   ========================= */
.cat-quickview {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: #fff;
    overflow-y: auto;
}

.cat-quickview[hidden] { display: none !important; }

.cat-quickview-close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    z-index: 160;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cat-quickview-close img { width: 22px; height: 22px; }

.cat-quickview-loading {
    padding: 48px;
    text-align: center;
    color: var(--cat-muted);
}

/* =========================
   Global padding rescue for other routes
   ========================= */
.route-menu .pickup-main > *:not(.cat-hero):not(.menu-list):not(.category-tabs):not(.cat-store-info):not(.cat-menu-header) {
    padding-left: 16px;
    padding-right: 16px;
}

/* Add-to-cart sticky bar: full-bleed, glued to bottom via position: sticky from app.css */
.product-sticky-bar {
    width: 100% !important;
    max-width: none !important;
    padding: 12px 16px max(8px, env(safe-area-inset-bottom, 0px)) !important;
    z-index: 95 !important;
}

.product-add-btn {
    background: #2e8158 !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: var(--radius, 4px) !important;
}

/* =========================
   Product hero action buttons — remove card bg/shadow, bigger icon
   ========================= */
.product-hero-action {
    background: transparent !important;
    box-shadow: none !important;
}

.product-hero-action img {
    width: 30px !important;
    height: 30px !important;
}

/* =========================
   Square card message — always visible
   ========================= */
.sq-card-message {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

/* =========================
   Checkout / Cart / Orders page-header left padding
   ========================= */
.route-checkout .page-header,
.route-cart .page-header,
.route-orders .page-header {
    padding-left: 12px;
    padding-right: 12px;
}

/* =========================
   Track Orders page padding
   ========================= */
.route-orders .pickup-main > *:not(.cat-hero) {
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

/* Orders list + cards */
.route-orders .orders-list {
    padding-left: 12px;
    padding-right: 12px;
}

/* =========================
   Track order card — item detail rows
   ========================= */
.track-items-list {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-item-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.track-item-qty {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary, #2aaa8a);
    min-width: 28px;
    flex-shrink: 0;
    padding-top: 1px;
}

.track-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.track-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.track-item-mods {
    font-size: 12px;
    color: var(--color-muted, #888);
    line-height: 1.3;
}

.track-item-notes {
    font-size: 12px;
    color: var(--color-muted, #888);
    font-style: italic;
    line-height: 1.3;
}

.track-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 1px;
}

/* inline-form (orders search) padding */
.route-orders .inline-form {
    padding-left: 12px;
    padding-right: 12px;
}

/* Track order — product thumbnail */
.track-item-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}
.track-item-thumb-empty {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #f0f0f0;
    flex-shrink: 0;
}

/* Remove any leftover green/dark-green hardcoded colors in the product page */
.product-sheet .btn-primary,
.product-sheet .section-title h2 {
    color: var(--cat-text);
}

/* Shopping / checkout pages keep their own padding */
.route-cart main,
.route-checkout main,
.route-orders main {
    padding-left: 0;
    padding-right: 0;
}

.route-cart .pickup-main {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 16px !important;
}

/* Sections no longer need their own lateral padding — pickup-main already provides it */

.route-cart .cart-complete-bar {
    width: 100% !important;
    max-width: none !important;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box;
}

.route-cart .cart-complete-bar .btn {
    width: 100% !important;
}

.route-checkout .checkout-submit-bar {
    width: 100% !important;
    max-width: none !important;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box;
}

.route-checkout .checkout-submit-bar .btn {
    width: 100% !important;
}

/* =========================
   Responsive tweaks
   ========================= */
@media (min-width: 720px) {
    .cat-hero { max-height: 320px; }
    .menu-list .product-card { grid-template-columns: 1fr 150px; }
    .menu-list .product-card .product-media-frame { width: 150px; height: 150px; }
}

/* Home should not inherit negative margins from pickup defaults. */
.route-home .step1-hero-media {
    margin: 0;
    border-radius: 0;
}

.route-home .step1-intro,
.route-home .step1-cta-group,
.route-home .quick-add-home,
.route-home .gift-card-home {
    padding-left: 12px;
    padding-right: 12px;
}

.pickup-main-product {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Default (mobile-first): the desktop main wrapper is transparent on mobile. */
.pickup-main-wrap {
    display: block;
}

/* Side cart panel is desktop-only. Kept in DOM so it reflects cart state without JS. */
.side-cart {
    display: none;
}

/* =========================
   Desktop layout (≥1024px)
   ezCater-inspired: full top-bar, 2-col home/menu (content + sticky side-cart),
   single-column cart/checkout, product detail as modal overlay.
   Mobile-first base above is fully preserved — every desktop rule lives below.
   ========================= */
@media (min-width: 1024px) {
    body {
        background: #ffffff;
    }

    .pickup-app {
        background: transparent;
        min-height: 100vh;
        padding: 0 !important;
    }

    .pickup-app-no-nav,
    .pickup-app-product {
        padding-bottom: 0;
    }

    /* Hide mobile-only floating UI on desktop */
    .bottom-nav { display: none !important; }
    .cat-cart-strip { display: none !important; }

    /* ── Header: full-width sticky, top-bar centered to 1360px (same calc as main wrap) ── */
    .pickup-header.cat-header {
        padding: 0 max(24px, calc((100% - 1360px) / 2));
        z-index: 60;
    }

    .cat-topbar {
        height: 64px;
        padding: 0;
        gap: 12px;
    }

    .cat-logo img { height: 32px; }

    /* Cat-event-strip bleeds past header lateral padding so the bottom divider
       (border-top) spans full viewport width — like cat-topbar's bottom line. */
    .cat-event-strip {
        padding: 0;
        height: 52px;
        background: #fff;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: max(24px, calc((100vw - 1360px) / 2));
        padding-right: max(24px, calc((100vw - 1360px) / 2));
    }

    /* ── Main wrapper: same calc as header on the left only; right side is
       flush so the side-cart column sits against the viewport edge. ── */
    .pickup-main-wrap {
        display: block;
        max-width: none;
        margin: 0;
        padding: 0;
        padding-left: max(24px, calc((100% - 1360px) / 2));
    }

    .pickup-main-wrap:not(.has-side-cart) {
        padding-bottom: 64px;
    }

    .pickup-main-wrap.has-side-cart {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        column-gap: 0;
        align-items: stretch;
    }

    .pickup-main {
        padding: 0 !important;
        min-width: 0;
    }

    .pickup-main-wrap.has-side-cart > .pickup-main {
        grid-column: 1;
        padding: 0 32px 64px 0 !important;
        min-width: 0;
        width: 100%;
    }

    /* Sections inside main no longer need lateral padding override */
    .menu-list,
    .category-tabs,
    .cat-store-info,
    .cat-menu-header {
        padding-left: 0;
        padding-right: 0;
    }

    .menu-list { padding-bottom: 24px; }

    /* Hero bleeds the right padding so it meets the side-cart column border */
    .pickup-main-wrap.has-side-cart > .pickup-main > .cat-hero {
        margin-right: -32px;
    }

    .cat-hero { margin: 0; }

    .cat-store-info { padding-top: 24px; }

    .route-menu .pickup-main > *:not(.cat-hero):not(.menu-list):not(.category-tabs):not(.cat-store-info):not(.cat-menu-header) {
        padding-left: 0;
        padding-right: 0;
    }

    /* Sticky tabs sit below header+event strip */
    .category-tabs {
        position: sticky;
        top: calc(64px + 52px);
        z-index: 50;
    }

    /* ── Side cart: a flush right-side column, not a floating card ── */
    .side-cart {
        display: flex;
        grid-column: 2;
        position: sticky;
        top: calc(64px + 52px);
        flex-direction: column;
        height: calc(100vh - 116px);
        background: #fff;
        border: 0;
        border-left: 1px solid var(--cat-border);
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
        margin: 0;
    }

    .side-cart-header {
        padding: 16px 18px 12px;
        border-bottom: 1px solid var(--cat-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .side-cart-header h2 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
    }

    .side-cart-header span {
        font-size: 12px;
        color: var(--cat-muted);
    }

    .side-cart-promo {
        padding: 10px 18px;
        background: rgba(128, 212, 197, 0.22);
        color: var(--cat-text);
    }

    .side-cart-promo p {
        margin: 0;
        font-size: 12px;
        line-height: 1.3;
        text-align: center;
    }

    .side-cart-promo p strong { font-weight: 700; }

    .side-cart-progress {
        margin-top: 6px;
        height: 2px;
        background: rgba(0, 0, 0, 0.18);
    }

    .side-cart-progress span {
        display: block;
        height: 100%;
        background: var(--cat-accent-dark);
    }

    .side-cart-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 14px 18px;
    }

    .side-cart-empty {
        text-align: center;
        padding: 28px 8px;
    }

    .side-cart-empty p {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        color: var(--cat-text);
    }

    .side-cart-empty small {
        display: block;
        margin-top: 6px;
        font-size: 12px;
        color: var(--cat-muted);
        line-height: 1.4;
    }

    .side-cart-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 14px;
    }

    .side-cart-item {
        display: grid;
        grid-template-columns: 48px 1fr auto;
        gap: 10px;
        align-items: start;
    }

    .side-cart-item.no-image {
        grid-template-columns: 1fr auto;
    }

    .side-cart-item-media {
        width: 48px;
        height: 48px;
        border-radius: 6px;
        overflow: hidden;
        background: var(--cat-gray-bg);
    }

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

    .side-cart-item-body { min-width: 0; }

    .side-cart-item-body strong {
        display: block;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.3;
        color: var(--cat-text);
    }

    .side-cart-item-body small {
        display: block;
        margin-top: 2px;
        font-size: 11px;
        color: var(--cat-muted);
        line-height: 1.3;
    }

    .side-cart-item-total {
        font-size: 13px;
        font-weight: 700;
        color: var(--cat-text);
        white-space: nowrap;
    }

    .side-cart-footer {
        padding: 14px 18px 16px;
        border-top: 1px solid var(--cat-border);
        background: #fff;
        display: grid;
        gap: 8px;
    }

    .side-cart-summary {
        display: grid;
        gap: 4px;
        margin-bottom: 4px;
    }

    .side-cart-summary > div {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: var(--cat-muted);
    }

    .side-cart-summary > div strong {
        font-weight: 700;
        color: var(--cat-text);
    }

    .side-cart-checkout {
        background: #2e8158 !important;
        color: #fff !important;
        min-height: 48px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        font-weight: 700;
        border-radius: var(--radius, 4px);
    }

    .side-cart-checkout:hover { background: #246b47 !important; }

    .side-cart-checkout-disabled {
        background: #d1d5db !important;
        color: #6b7280 !important;
        cursor: not-allowed;
    }

    .side-cart-view-link {
        text-align: center;
        font-size: 12px;
        color: var(--cat-muted);
        text-decoration: underline;
    }

    /* ── Hero/menu tweaks ── */
    .cat-hero { max-height: 360px; aspect-ratio: 16 / 6; }
    .cat-store-info h1 { font-size: 26px; }
    .cat-menu-header h2 { font-size: 24px; }

    /* Menu list: each category becomes a 2-col grid of cards (header spans both) */
    .menu-list { display: block; }

    .menu-list .menu-category {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 12px;
        margin-bottom: 24px;
    }

    .menu-list .menu-category > header {
        grid-column: 1 / -1;
        padding: 12px 18px;
        font-size: 16px;
    }

    .menu-list .menu-category > header h3 { font-size: 16px; }

    .menu-list .product-card {
        grid-template-columns: minmax(0, 1fr) 140px;
        padding: 16px;
        margin-bottom: 0;
        height: 100%;
    }

    .menu-list .product-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .menu-list .product-card .product-media-frame {
        width: 140px;
        height: 140px;
    }

    .menu-list .product-card.no-image {
        grid-template-columns: 1fr;
    }

    /* ── Cart page: centered single column ── */
    .route-cart .pickup-main-wrap {
        max-width: 880px;
        margin: 0 auto;
        padding: 24px 24px 64px;
    }

    .route-cart .pickup-main {
        padding: 0 !important;
    }

    .cart-item {
        grid-template-columns: 96px 1fr auto;
        padding: 12px;
    }

    .route-cart .cart-complete-bar {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        border-top: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 16px;
    }

    .route-cart .cart-complete-bar .btn { min-height: 52px; font-size: 16px; }

    /* ── Checkout page: 2-col layout (form + summary), no side-cart ── */
    .route-checkout .pickup-main-wrap {
        max-width: 1080px;
        margin: 0 auto;
        padding: 24px 24px 64px;
    }

    .route-checkout .pickup-main { padding: 0 !important; }

    .checkout-layout {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    .checkout-summary {
        position: sticky;
        top: 140px;
    }

    .route-checkout .checkout-submit-bar {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        border-top: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 16px;
        grid-column: 1 / -1;
    }

    .route-checkout .checkout-submit-bar .btn { min-height: 52px; font-size: 16px; }

    /* ── Orders / confirmation pages ── */
    .route-orders .pickup-main-wrap,
    .route-confirmation .pickup-main-wrap {
        max-width: 720px;
        margin: 0 auto;
        padding: 24px 24px 64px;
    }

    .route-orders .pickup-main > *:not(.cat-hero) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .route-orders .orders-list,
    .route-orders .inline-form {
        padding-left: 0;
        padding-right: 0;
    }

    /* ── Product detail as modal overlay ──
       Same treatment as pickup: header is hidden by the layout on product routes,
       body gets a dark backdrop, product-sheet becomes a centered scrollable card
       with the sticky add-to-cart bar properly anchored to its bottom. */
    body[class*="route-product-"] {
        background: rgba(15, 23, 42, 0.55);
    }

    body[class*="route-product-"] .pickup-app {
        background: transparent;
        min-height: 100vh;
        padding: 32px 16px !important;
        display: grid;
        place-items: start center;
    }

    body[class*="route-product-"] .pickup-main-wrap,
    body[class*="route-product-"] .pickup-main-product {
        max-width: 720px;
        width: 100%;
        margin: 0;
        padding: 0 !important;
        display: block;
    }

    body[class*="route-product-"] .product-sheet {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
        min-height: 0;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        padding-bottom: 0;
    }

    body[class*="route-product-"] .product-sheet-hero { height: 320px; }

    /* Hero action icons keep their own visual treatment — no extra bg/shadow on desktop */
    body[class*="route-product-"] .product-hero-back,
    body[class*="route-product-"] .product-hero-close {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0;
        top: 16px;
        width: 32px;
        height: 32px;
    }

    body[class*="route-product-"] .product-hero-back { left: 16px; }
    body[class*="route-product-"] .product-hero-close { right: 16px; }

    body[class*="route-product-"] .product-sticky-bar {
        position: sticky !important;
        bottom: 0 !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
    }

    body[class*="route-product-"] .product-sheet-body h1 {
        font-size: 24px;
    }

    /* The catering quickview modal already overlays — it's fine on desktop, just constrain */
    .cat-quickview {
        padding: 32px 16px;
    }

    /* ── Order details modal: center as proper dialog (mobile uses anchored sheet) ── */
    .order-details-backdrop {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
    }

    .order-details-sheet {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        width: min(560px, 92vw) !important;
        max-height: 86vh;
        bottom: auto !important;
        border-radius: 14px;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    }

    /* ── Catering side drawer: less needed on desktop but keep functional. ── */
    .cat-drawer-panel {
        width: min(360px, 28vw);
    }
}

@media (min-width: 1280px) {
    .menu-list .product-card { grid-template-columns: minmax(0, 1fr) 160px; }
    .menu-list .product-card .product-media-frame { width: 160px; height: 160px; }
}

/* =========================
   Home CTAs (pickup-only) — pair of buttons under the store info card,
   stacked on mobile, side-by-side on desktop. */
.home-cta-row {
    display: grid;
    gap: 8px;
    padding: 12px 12px 4px;
}

@media (min-width: 720px) {
    .home-cta-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* Store tagline below the reviews row on home */
.cat-store-tag {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--cat-muted);
}

/* Make <button class="product-card"> behave like the <a> version: no native
   button chrome, full-card click target, same look. */
button.product-card {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
    background: #fff;
}

button.product-card:focus-visible {
    outline: 2px solid var(--cat-accent-dark);
    outline-offset: 2px;
}

/* Subtle "Add combo / Choose amount" hint pill on the right of bundle/gift cards */
.bundle-add-hint {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--cat-accent-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

/* Gift card card: keep the prompt visible without an image — works as a
   compact CTA card inside the same menu-list grid. */
.gift-card-promo {
    border-style: dashed;
}

/* =========================
   Pickup-only overrides — accommodate the sticky promo-bar that sits ABOVE
   the cat-header on pickup (catering doesn't have one). Each sticky element
   shifts down by --promo-bar-h so they stack correctly.
   ========================= */
:root { --promo-bar-h: 30px; }

.promo-bar {
    position: sticky;
    top: 0;
    z-index: 61;
}

.pickup-header.cat-header {
    top: var(--promo-bar-h);
}

/* Sticky category tabs sit just below header + event-strip + promo-bar */
.category-tabs {
    top: calc(var(--promo-bar-h) + var(--cat-header-h) + var(--cat-event-h));
}

/* Side-cart desktop: extend the column up to the bottom of the sticky header
   stack so its border-left reaches the very top below the header (no gap). */
@media (min-width: 1024px) {
    .side-cart {
        top: calc(var(--promo-bar-h) + var(--cat-header-h) + var(--cat-event-h));
        height: calc(100vh - (var(--promo-bar-h) + var(--cat-header-h) + var(--cat-event-h)));
    }
}

/* =========================
   Home (pickup) — trim the menu-list bottom padding so the three stacked
   sections (Customer Favorites · Combos · Gift Cards) don't generate huge
   empty gaps on mobile. Default is 120px (matches catering /menu); on home
   we override to 16px between sections, 48px after the last.
   ========================= */
.route-home .menu-list {
    padding-bottom: 16px;
}

.route-home .menu-list:last-of-type {
    padding-bottom: 48px;
}

.route-home .cat-menu-header {
    padding-top: 16px;
    padding-bottom: 6px;
}

/* =========================
   Cart line items — no-image variant (drop the grey 72px placeholder when
   the product has no real photo). Matches the .product-card.no-image
   pattern used in menu/home grids and the side-cart.
   ========================= */
.cart-item.no-image {
    grid-template-columns: 1fr auto;
}

.upsell-card.no-image {
    grid-template-columns: 1fr;
}

.upsell-card.no-image .upsell-media { display: none; }

/* "Add more items" link on the cart page — plain underlined text, no fill.
   Mirrors the pattern catering uses above the gift-card panel. */
.cart-add-more {
    text-align: center;
    margin: 18px 0 12px;
}

.cart-add-more a {
    display: inline-block;
    color: var(--c-text, #111);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
    padding-bottom: 2px;
    line-height: 1.2;
}

.cart-add-more a:hover { border-bottom-color: rgba(0, 0, 0, 0.55); }

/* Bundle-card / gift-card-promo loading state — fades the card while the
   server is processing the add. Used by initQuickAddBundles. */
.product-card.is-loading,
.bundle-add-btn.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

/* =========================
   Bundle card — single explicit "Add combo" CTA in teal, no extra plus
   icon on the photo, no hint pill on the price row. Footer pushes the price
   left and the button bottom-right of the copy column.
   ========================= */
.bundle-card .bundle-card-footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bundle-card .bundle-card-footer strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--cat-text);
}

.bundle-add-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 999px;
    background: #80d4c5;
    color: #121212;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: background 0.15s ease, transform 0.12s ease;
}

.bundle-add-btn:hover {
    background: #5ec3b2;
    transform: translateY(-1px);
}

.bundle-add-btn:focus-visible {
    outline: 2px solid var(--cat-accent-dark);
    outline-offset: 2px;
}

/* Bundle-card no longer needs the small + plus on the photo. Hide it
   defensively in case some legacy markup still renders one. */
.bundle-card .product-media-plus { display: none; }

/* =========================
   Modifier variant <select> — sub-size picker rendered inline next to the
   radio. The whole modifier-option is still the click target for the radio,
   but the select traps its own clicks (onclick/onchange stopPropagation in
   the view) so picking a size doesn't toggle the radio.
   ========================= */
.modifier-variant-select {
    appearance: none;
    -webkit-appearance: none;
    margin-top: 6px;
    padding: 6px 28px 6px 10px;
    border: 1px solid var(--c-border, rgba(0,0,0,0.1));
    border-radius: 6px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    color: var(--c-text, #121212);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    max-width: 200px;
    width: fit-content;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.modifier-variant-select:hover { border-color: rgba(0, 0, 0, 0.25); }

.modifier-variant-select:focus {
    outline: none;
    border-color: var(--cat-accent-dark, #0f766e);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

/* When the modifier has variants, the select takes over from the inline
   "+$X.XX" label as the live price source — keep both visible (label updates
   to reflect the chosen variant) but tighten the layout so they don't fight. */
.modifier-option.has-variants .modifier-option-copy { gap: 4px; }

/* Product detail — when the product has no image registered, collapse the
   gray hero block. Mobile already had this rule in app.css but the desktop
   override (height:320px) was winning over it via equal specificity. These
   rules sit AFTER that 320px declaration so they always win. Both naming
   variants covered (-empty suffix used by pickup, --no-image BEM by catering). */
.product-sheet-hero.product-sheet-hero--no-image,
.product-sheet-hero.product-sheet-hero-empty,
.product-sheet-no-hero .product-sheet-hero {
    height: 48px;
    background: transparent;
    overflow: visible;
}

.product-sheet-no-hero .product-sheet-body {
    padding-top: 4px;
}

@media (min-width: 1024px) {
    body[class*="route-product-"] .product-sheet-hero.product-sheet-hero--no-image,
    body[class*="route-product-"] .product-sheet-hero.product-sheet-hero-empty,
    body[class*="route-product-"] .product-sheet-no-hero .product-sheet-hero {
        height: 56px;
    }
}
