/* ==================================================
   APPVELOX UX RESTORATION — BATCH 1
   Approved global visual foundation only.

   This file is intentionally loaded last. Keep rules scoped to the routed
   content area so the desktop and mobile shells remain a Batch 2 concern.
================================================== */

:root {
    --ux-primary: #e53935;
    --ux-primary-hover: #cf2f2b;
    --ux-page-bg: #fafafa;
    --ux-surface: #fff;
    --ux-text: #222;
    --ux-muted: #666;
    --ux-border: #ececec;
    --ux-control-border: #d5d5d5;
    --ux-control-soft: #f5f5f7;
    --ux-disabled: #aaa;
    --ux-radius-control: 10px;
    --ux-radius-card: 14px;
    --ux-radius-large: 18px;
    --ux-radius-pill: 30px;
    --ux-shadow-soft: 0 5px 18px rgba(0, 0, 0, .05);
    --ux-shadow-card: 0 8px 25px rgba(0, 0, 0, .06);
    --ux-content-max: 1600px;
}

html,
body {
    background: var(--ux-page-bg);
}

body {
    color: var(--ux-text);
    font-family: var(
        --bs-font-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif
    );
    font-size: 1rem;
    line-height: 1.5;
}

/* Keep the approved neutral palette inside routed content without changing
   status-specific success, warning, error, tracking, or unread colors. */
main.velox-content {
    --catalog-red: var(--ux-primary);
    --catalog-red-dark: var(--ux-primary-hover);
    --catalog-ink: var(--ux-text);
    --catalog-muted: var(--ux-muted);
    --catalog-line: var(--ux-border);
    --catalog-soft: var(--ux-page-bg);

    color: var(--ux-text);
    background: var(--ux-page-bg);
}

/* The approved homepage container is fluid up to 1600px. Preserve the
   purpose-built limits required by denser transactional views. */
main.velox-content > :where(
    .catalog-page,
    .catalog-section,
    .catalog-marketing-section,
    .catalog-home-hero
) {
    width: 100%;
    max-width: var(--ux-content-max);
    margin-right: auto;
    margin-left: auto;
}

main.velox-content > :where(.cart-page, .checkout-page) {
    max-width: 1380px;
}

main.velox-content > .customer-account-page {
    max-width: 1180px;
}

main.velox-content > :where(
    .catalog-product-detail-page,
    .order-detail-page,
    .tracking-page
) {
    max-width: 1500px;
}

/* Approved headings use the inherited system face, neutral ink, and a
   confident 700 weight. Sizes remain component-owned until later batches. */
main.velox-content :where(
    .catalog-page-header,
    .catalog-section-heading,
    .catalog-merchant-copy,
    .catalog-product-panel,
    .velox-foundation-card
) :where(h1, h2) {
    color: var(--ux-text);
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.2;
}

/* Generic routed cards only. Commerce-specific merchant, product, cart,
   checkout, order, tracking, wallet, and notification cards are deferred. */
main.velox-content .velox-foundation-card {
    background: var(--ux-surface);
    border-color: var(--ux-border);
    border-radius: var(--ux-radius-card);
    box-shadow: var(--ux-shadow-soft);
}

main.velox-content .velox-state {
    color: var(--ux-muted);
    background: var(--ux-page-bg);
    border-radius: 12px;
}

main.velox-content .velox-alert {
    border-radius: var(--ux-radius-control);
}

/* Common full-page form controls. Radio buttons, checkboxes, hidden inputs,
   compact cart quantities, and shell search controls are deliberately out of
   scope. */
main.velox-content .velox-auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
main.velox-content .customer-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
main.velox-content .customer-form textarea,
main.velox-content .checkout-address-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
main.velox-content .checkout-address-form textarea,
main.velox-content .checkout-card select,
main.velox-content .order-cancel textarea {
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ux-text);
    background: var(--ux-surface);
    border: 1px solid var(--ux-control-border);
    border-radius: var(--ux-radius-control);
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

main.velox-content .customer-form textarea,
main.velox-content .checkout-address-form textarea,
main.velox-content .order-cancel textarea {
    min-height: 88px;
    resize: vertical;
}

main.velox-content .velox-auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
main.velox-content .customer-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
main.velox-content .customer-form textarea:focus,
main.velox-content .checkout-address-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
main.velox-content .checkout-address-form textarea:focus,
main.velox-content .checkout-card select:focus,
main.velox-content .order-cancel textarea:focus {
    background: var(--ux-surface);
    border-color: var(--ux-primary);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, .15);
}

main.velox-content :where(
    .velox-auth-form,
    .customer-form,
    .checkout-address-form,
    .order-cancel
) :where(label, .checkout-field-label) {
    color: var(--ux-text);
    font-weight: 600;
}

main.velox-content :where(
    .velox-auth-form,
    .customer-form,
    .checkout-address-form,
    .order-cancel
) :where(input, textarea)::placeholder,
main.velox-content .catalog-search-form input::placeholder {
    color: #777;
    opacity: 1;
}

main.velox-content .velox-auth-form input:disabled,
main.velox-content .customer-form input:disabled,
main.velox-content .customer-form textarea:disabled,
main.velox-content .checkout-address-form input:disabled,
main.velox-content .checkout-address-form textarea:disabled,
main.velox-content .checkout-card select:disabled,
main.velox-content .order-cancel textarea:disabled {
    color: #777;
    background: #f5f5f5;
    border-color: var(--ux-border);
    cursor: not-allowed;
}

main.velox-content :where(
    .catalog-configuration,
    .checkout-address-choice,
    .checkout-default-check,
    .customer-checkbox
) input {
    accent-color: var(--ux-primary);
}

/* Search fields correspond directly to the approved 48px modal/header search
   primitive while retaining the current form, query, and submit behavior. */
main.velox-content .catalog-search-form > div {
    background: var(--ux-control-soft);
    border-color: transparent;
    border-radius: 24px;
}

main.velox-content .catalog-search-form > div:focus-within {
    background: var(--ux-surface);
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--ux-primary);
}

main.velox-content .catalog-search-form input {
    color: var(--ux-text);
    background: transparent;
}

/* Named application actions only—never the raw button or anchor elements. */
main.velox-content .btn {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--ux-radius-control);
    font-weight: 600;
    transition: color .2s ease, background .2s ease, border-color .2s ease,
        box-shadow .2s ease, transform .2s ease;
}

main.velox-content .btn-danger,
main.velox-content .catalog-search-form button,
main.velox-content .catalog-add-button,
main.velox-content .cart-checkout-button,
main.velox-content .checkout-place-button,
main.velox-content .checkout-address-form button,
main.velox-content .order-cancel button {
    color: #fff;
    background: var(--ux-primary);
    border-color: var(--ux-primary);
    border-radius: var(--ux-radius-control);
    font-weight: 700;
}

main.velox-content .btn-danger:hover,
main.velox-content .catalog-search-form button:hover,
main.velox-content .catalog-add-button:hover,
main.velox-content .cart-checkout-button:hover,
main.velox-content .checkout-place-button:hover,
main.velox-content .checkout-address-form button:hover,
main.velox-content .order-cancel button:hover {
    color: #fff;
    background: var(--ux-primary-hover);
    border-color: var(--ux-primary-hover);
}

main.velox-content :where(
    .catalog-primary-link,
    .catalog-pagination a,
    .cart-quantity-form button,
    .cart-remove-button,
    .checkout-refresh-button,
    .order-success-actions > a
) {
    border-radius: var(--ux-radius-control);
    font-weight: 600;
}

main.velox-content .btn:disabled,
main.velox-content .catalog-search-form button:disabled,
main.velox-content .catalog-add-button:disabled,
main.velox-content .cart-checkout-button.is-disabled,
main.velox-content .checkout-place-button:disabled,
main.velox-content .checkout-place-button.is-disabled,
main.velox-content .checkout-address-form button:disabled,
main.velox-content .order-cancel button:disabled {
    color: #fff;
    background: var(--ux-disabled);
    border-color: var(--ux-disabled);
    box-shadow: none;
    cursor: not-allowed;
    opacity: .75;
}

/* Restore the approved denser page rhythm at desktop sizes without changing
   component grids, sticky columns, or responsive breakpoints. */
@media (min-width: 768px) {
    main.velox-content > .catalog-page {
        padding-top: 28px;
        padding-bottom: 40px;
    }

    main.velox-content > :where(.catalog-section, .catalog-marketing-section) {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    main.velox-content > .velox-foundation-page {
        padding: 28px 20px;
    }

    main.velox-content .velox-foundation-card {
        padding: 28px;
    }
}

/* Retain the approved mobile type baseline while leaving the current 1100,
   900, 600, and 420px component breakpoints intact. */
@media (max-width: 767px) {
    html,
    body {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    main.velox-content .btn,
    main.velox-content :where(input, select, textarea),
    main.velox-content .catalog-search-form > div {
        transition: none;
    }
}

/* ==================================================
   UX Restoration Batch 2 — Shared Shell
   ================================================== */

:root {
    --ux-shell-header-height: 72px;
    --ux-shell-sidebar-width: 210px;
    --ux-shell-sidebar-mini: 72px;
    --ux-shell-drawer-width: 300px;
    --ux-shell-mobile-row-height: 56px;
    --ux-shell-mobile-header-height: 127px;
    --ux-shell-bottom-nav-height: 70px;
    --ux-shell-header-z: 1200;
    --ux-shell-overlay-z: 1250;
    --ux-shell-drawer-z: 1300;
    --ux-shell-modal-z: 5000;
}

/* Desktop header: approved 72px white bar, compact logo, pill search, and
   dynamic cart badge. The forms, route URLs, and count hook remain current. */
.velox-header {
    height: var(--ux-shell-header-height);
    background: var(--ux-surface);
    border-bottom: 1px solid var(--ux-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    z-index: var(--ux-shell-header-z);
}

.velox-header-container {
    height: 100%;
    gap: 20px;
    padding: 0 25px;
}

.velox-header-left {
    min-width: 0;
    gap: 18px;
}

.velox-logo img {
    width: auto;
    height: 46px;
}

.velox-menu-btn,
.velox-delivery-btn,
.velox-address-btn,
.velox-cart {
    flex: 0 0 auto;
}

.velox-menu-btn {
    width: 42px;
    height: 42px;
    color: var(--ux-text);
    background: transparent;
    border: 0;
    border-radius: 10px;
}

.velox-menu-btn:hover {
    color: var(--ux-primary);
    background: #f5f5f5;
}

.velox-delivery-btn {
    min-height: 40px;
    padding: 0 18px;
    color: var(--ux-primary);
    background: #fff3f3;
    border: 0;
    border-radius: var(--ux-radius-pill);
    font-size: 14px;
    font-weight: 600;
}

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

.velox-address-btn {
    min-width: 0;
    padding: 10px 16px;
    color: var(--ux-text);
    border-radius: 12px;
}

.velox-address-btn span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.velox-address-btn:hover {
    color: var(--ux-text);
    background: #f8f8f8;
}

.velox-search {
    min-width: 180px;
    max-width: 720px;
}

.velox-search input {
    height: 48px;
    color: var(--ux-text);
    background: #f5f5f5;
    border-radius: var(--ux-radius-pill);
}

.velox-search input:focus {
    background: var(--ux-surface);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, .15);
}

.velox-cart {
    color: var(--ux-text);
    font-size: 28px;
}

.velox-cart:hover {
    color: var(--ux-primary);
}

.velox-cart-count,
.cart-badge,
.bottom-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--ux-primary);
    border: 2px solid var(--ux-surface);
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
}

.velox-cart-count {
    top: -9px;
    right: -11px;
    min-width: 24px;
    height: 24px;
    padding: 0 5px;
    font-size: 11px;
}

/* Desktop sidebar: retain the approved 210px and 72px modes while aligning
   the routed content offset to the mode actually visible. */
.home5-sidepanel {
    top: var(--ux-shell-header-height);
    width: var(--ux-shell-sidebar-width);
    height: calc(100vh - var(--ux-shell-header-height));
    background: var(--ux-surface);
    border-right: 1px solid var(--ux-border);
    box-shadow: 2px 0 10px rgba(0, 0, 0, .025);
    z-index: 1100;
}

.home5-sidepanel-nav {
    padding: 4px 8px;
}

.home5-sidepanel-link {
    position: relative;
    height: 48px;
    gap: 14px;
    padding: 0 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.home5-sidepanel-link:hover {
    color: var(--ux-primary);
    background: #f7f7f7;
}

.home5-sidepanel-link.active {
    padding-left: 16px;
    color: var(--ux-primary);
    background: #fff5f5;
    border-left: 4px solid var(--ux-primary);
    font-weight: 600;
}

.home5-sidepanel-link .customer-unread-badge {
    margin-left: auto;
}

/* Drawer and overlay: approved 300px/52px presentation. Shell layers stay
   below the existing 5000/5010 modal stack so commerce dialogs remain usable. */
.velox-menu-panel {
    top: var(--ux-shell-header-height);
    left: calc(-1 * (var(--ux-shell-drawer-width) + 40px));
    width: var(--ux-shell-drawer-width);
    height: calc(100vh - var(--ux-shell-header-height));
    background: var(--ux-surface);
    border-right: 1px solid var(--ux-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
    z-index: var(--ux-shell-drawer-z);
}

.velox-menu-overlay {
    top: var(--ux-shell-header-height);
    background: rgba(0, 0, 0, .45);
    z-index: var(--ux-shell-overlay-z);
}

.velox-menu-profile {
    gap: 15px;
    padding: 25px;
}

.velox-menu-avatar {
    width: 60px;
    height: 60px;
    color: #999;
    background: #f2f2f2;
    font-size: 28px;
}

.velox-menu-user {
    min-width: 0;
}

.velox-menu-user h5 {
    overflow: hidden;
    color: var(--ux-text);
    font-size: 20px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.velox-menu-user a {
    color: green;
    font-size: 15px;
}

.velox-menu-item {
    position: relative;
    width: 100%;
    height: 52px;
    gap: 18px;
    padding: 0 25px;
    color: var(--ux-text);
    background: transparent;
    border: 0;
    font-size: 17px;
    text-align: left;
}

.velox-menu-item:hover {
    color: var(--ux-text);
    background: #f8f8f8;
}

.velox-menu-item.active {
    color: var(--ux-primary);
    background: #f8f8f8;
    box-shadow: inset 4px 0 0 var(--ux-primary);
    font-weight: 600;
}

.velox-menu-item-unavailable,
.velox-menu-item-unavailable:hover {
    color: var(--ux-text);
    background: transparent;
    cursor: default;
}

.velox-menu-item .customer-unread-badge {
    margin-left: auto;
}

.velox-menu-logout-form {
    margin: 0;
}

.velox-menu-logout {
    color: var(--ux-primary);
}

.velox-menu-panel hr {
    margin: 10px 0;
}

.velox-menu-btn:focus-visible,
.velox-address-btn:focus-visible,
.velox-cart:focus-visible,
.velox-search input:focus-visible,
.home5-sidepanel-link:focus-visible,
.velox-menu-item:focus-visible,
.mobile-menu-btn:focus-visible,
.mobile-header-icon:focus-visible,
.mobile-search input:focus-visible,
.velox-bottom-nav a:focus-visible {
    outline: 3px solid rgba(229, 57, 53, .3);
    outline-offset: 2px;
}

@media (min-width: 1200px) {
    main.velox-content {
        margin-left: 205px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .home5-sidepanel {
        width: var(--ux-shell-sidebar-mini);
    }

    main.velox-content {
        margin-left: var(--ux-shell-sidebar-mini);
    }

    .velox-address-btn {
        display: none;
    }

    .home5-sidepanel-link {
        justify-content: center;
        padding: 0;
    }

    .home5-sidepanel-link.active {
        padding: 0;
    }

    .home5-sidepanel-link > span:nth-child(2) {
        display: none;
    }

    .home5-sidepanel-link span.customer-unread-badge:last-child {
        position: absolute;
        top: 5px;
        right: 5px;
        display: inline-flex;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border: 2px solid var(--ux-surface);
        font-size: 9px;
    }
}

@media (min-width: 768px) and (max-width: 960px) {
    .velox-delivery-btn {
        display: none;
    }

    .velox-header-container {
        gap: 14px;
        padding: 0 18px;
    }
}

/* Mobile shell: reserve the full fixed header and safe bottom-nav footprint,
   retain the approved 56px row/46px search/70px navigation proportions, and
   keep all layers beneath application modals. */
@media (max-width: 767px) {
    html {
        padding-top: 0;
        padding-bottom: 0;
    }

    body {
        padding-top: var(--ux-shell-mobile-header-height);
        padding-bottom: calc(
            var(--ux-shell-bottom-nav-height) + 16px + env(safe-area-inset-bottom)
        );
    }

    .mobile-layout {
        padding-top: 0;
    }

    main.velox-content {
        min-width: 0;
    }

    .velox-mobile-header {
        background: var(--ux-surface);
        border-bottom: 1px solid var(--ux-border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
        z-index: var(--ux-shell-header-z);
    }

    .mobile-header-inner {
        height: var(--ux-shell-mobile-row-height);
        min-height: var(--ux-shell-mobile-row-height);
        gap: 10px;
        padding: 0 15px;
    }

    .mobile-menu-btn {
        width: 46px;
        height: 46px;
        color: var(--ux-text);
        background: var(--ux-surface);
        border: 1px solid var(--ux-border);
        border-radius: 14px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
    }

    .mobile-address {
        min-width: 0;
        padding: 8px 12px;
        border-bottom: 0;
    }

    .mobile-address strong {
        color: var(--ux-text);
        font-size: 16px;
    }

    .mobile-header-right {
        display: flex;
        align-items: center;
    }

    .mobile-header-icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        color: var(--ux-text);
        border-radius: 12px;
        font-size: 22px;
        text-decoration: none;
    }

    .mobile-header-icon:hover {
        color: var(--ux-primary);
        background: #f8f8f8;
    }

    .cart-badge {
        top: -1px;
        right: -2px;
        min-width: 20px;
        height: 20px;
        padding: 0 4px;
        font-size: 9px;
    }

    .mobile-search {
        padding: 10px 15px 15px;
        background: var(--ux-surface);
    }

    .mobile-search input {
        height: 46px;
        color: var(--ux-text);
        background: #f5f5f5;
        border-radius: var(--ux-radius-pill);
    }

    .mobile-search input:focus {
        background: var(--ux-surface);
        box-shadow: 0 0 0 2px rgba(229, 57, 53, .18);
    }

    .velox-menu-panel {
        top: var(--ux-shell-mobile-header-height);
        left: 0;
        width: min(var(--ux-shell-drawer-width), calc(100vw - 48px));
        height: calc(100dvh - var(--ux-shell-mobile-header-height));
        transform: translateX(-105%);
        transition: transform .3s ease;
        z-index: var(--ux-shell-drawer-z);
    }

    .velox-menu-panel.active {
        left: 0;
        transform: translateX(0);
    }

    .velox-menu-overlay {
        top: var(--ux-shell-mobile-header-height);
        transition: opacity .25s ease, visibility .25s ease;
        z-index: var(--ux-shell-overlay-z);
    }

    .velox-bottom-nav {
        height: calc(
            var(--ux-shell-bottom-nav-height) + env(safe-area-inset-bottom)
        );
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--ux-surface);
        border-top: 1px solid var(--ux-border);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, .08);
        z-index: 1100;
    }

    .velox-bottom-nav a {
        position: relative;
        min-width: 0;
        min-height: 56px;
        color: #777;
        font-size: 11px;
        font-weight: 500;
    }

    .velox-bottom-nav a:hover,
    .velox-bottom-nav a.active {
        color: var(--ux-primary);
    }

    .velox-bottom-nav a i {
        margin-bottom: 4px;
        font-size: 20px;
    }

    .bottom-nav-badge,
    .velox-bottom-nav .customer-unread-badge {
        position: absolute;
        top: 5px;
        left: calc(50% + 7px);
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        margin: 0;
        border: 2px solid var(--ux-surface);
        font-size: 9px;
    }
}

@media (max-width: 420px) {
    .mobile-header-inner,
    .mobile-search {
        padding-right: 10px;
        padding-left: 10px;
    }

    .mobile-address strong {
        font-size: 14px;
    }

    .velox-bottom-nav a {
        font-size: 10px;
    }
}

/* Admin-managed Home Hero carousel. It preserves the frozen hero footprint. */
body.route-home main.velox-content .velox-hero[data-home-hero] {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

body.route-home main.velox-content .home-hero-viewport {
    position: relative;
    min-height: 150px;
}

body.route-home main.velox-content .velox-hero[data-home-hero] .home-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 150px;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background-color: var(--home-hero-background, #c91717);
    transition: opacity .28s ease;
}

body.route-home main.velox-content .velox-hero[data-home-hero] .home-hero-slide.is-active {
    position: relative;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

body.route-home main.velox-content .home-hero-background,
body.route-home main.velox-content .home-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

body.route-home main.velox-content .home-hero-background {
    object-fit: cover;
}

body.route-home main.velox-content .home-hero-overlay {
    background: linear-gradient(90deg, rgba(20, 10, 10, .76), rgba(20, 10, 10, .12));
}

body.route-home main.velox-content .velox-hero[data-home-hero] .hero-content {
    position: relative;
    z-index: 1;
    width: min(62%, 680px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .32);
}

body.route-home main.velox-content .velox-hero[data-home-hero] .hero-content h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    overflow-wrap: anywhere;
}

body.route-home main.velox-content .home-hero-sponsored {
    display: inline-flex;
    margin-bottom: 5px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, .22);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

body.route-home main.velox-content .home-hero-dots {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 11px;
    display: flex;
    gap: 6px;
}

body.route-home main.velox-content .home-hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 50%;
    background: rgba(255,255,255,.42);
}

body.route-home main.velox-content .home-hero-dots button.is-active {
    width: 20px;
    border-radius: 999px;
    background: #fff;
}

@media (max-width: 767px) {
    body.route-home main.velox-content .home-hero-viewport,
    body.route-home main.velox-content .velox-hero[data-home-hero] .home-hero-slide {
        min-height: 110px;
    }

    body.route-home main.velox-content .velox-hero[data-home-hero] .hero-content {
        width: calc(100% - 8px);
    }

    body.route-home main.velox-content .velox-hero[data-home-hero] .hero-content h1 {
        max-width: 92%;
        font-size: 24px;
    }

    body.route-home main.velox-content .velox-hero[data-home-hero] .hero-content p {
        max-width: 88%;
    }

    body.route-home main.velox-content .home-hero-dots {
        right: 12px;
        bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.route-home main.velox-content .velox-hero[data-home-hero] .home-hero-slide { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
    .velox-menu-panel,
    .velox-menu-overlay,
    .home5-sidepanel,
    .home5-sidepanel-link,
    .velox-menu-item,
    .velox-bottom-nav a {
        transition: none;
    }
}

/* ==================================================
   UX Restoration Batch 3 — Homepage
   ================================================== */

body.route-home main.velox-content > :where(
    .home-hero,
    .home-services,
    .home-section,
    .home-catalog
) {
    width: 100%;
    max-width: var(--ux-content-max);
    margin-right: auto;
    margin-left: auto;
}

body.route-home main.velox-content .home-hero {
    padding: 34px 8px 4px;
}

body.route-home main.velox-content .home-hero .velox-hero-banner {
    min-height: 250px;
    padding: 28px 48px;
    background: linear-gradient(135deg, #ef2d24, #c91717);
    border-radius: 24px;
}

body.route-home main.velox-content .home-hero .hero-content {
    width: 50%;
    color: #fff;
}

body.route-home main.velox-content .home-hero .hero-content h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(2.65rem, 4vw, 3.375rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.02;
}

body.route-home main.velox-content .home-hero .hero-content p {
    max-width: 540px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .92);
    font-size: 18px;
    line-height: 1.5;
}

body.route-home main.velox-content .home-hero .hero-btn {
    min-height: 46px;
    padding: 12px 28px;
    color: var(--ux-primary);
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    font-size: 16px;
    font-weight: 700;
}

body.route-home main.velox-content .home-hero .hero-btn:hover {
    color: var(--ux-primary);
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
    transform: translateY(-3px);
}

body.route-home main.velox-content .home-hero .hero-image {
    width: 46%;
}

body.route-home main.velox-content .home-hero .hero-image img {
    width: 100%;
    max-width: 430px;
}

/* Six approved shortcut tiles, all backed by registered current routes. */
body.route-home main.velox-content .home-services {
    padding: 5px 8px 12px;
}

body.route-home main.velox-content .home-services .services-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

body.route-home main.velox-content .home-services .service-card {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 74px;
    gap: 12px;
    padding: 12px 16px;
    color: var(--ux-text);
    background: var(--ux-surface);
    border: 1px solid #efefef;
    border-radius: 14px;
    box-shadow: var(--ux-shadow-soft);
    text-decoration: none;
}

body.route-home main.velox-content .home-services .service-card:hover {
    color: var(--ux-text);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

body.route-home main.velox-content .home-services .service-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 3px;
    object-fit: contain;
    background: #fff5f5;
    border-radius: 10px;
}

body.route-home main.velox-content .home-services .service-info {
    min-width: 0;
}

body.route-home main.velox-content .home-services .service-info h2 {
    margin: 0;
    overflow: hidden;
    color: var(--ux-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.route-home main.velox-content .home-services .service-info p {
    margin: 2px 0 0;
    overflow: hidden;
    color: #777;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.route-home main.velox-content .home-section {
    padding: 18px 8px;
}

body.route-home main.velox-content .home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

body.route-home main.velox-content .home-section-heading h2 {
    margin: 0;
    color: var(--ux-text);
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.15;
}

body.route-home main.velox-content .home-section-heading p {
    margin: 4px 0 0;
    color: var(--ux-muted);
    font-size: 14px;
}

body.route-home main.velox-content .home-section-heading > a {
    flex: 0 0 auto;
    color: var(--ux-primary-hover);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

body.route-home main.velox-content .home-section-heading > a:hover {
    color: var(--ux-primary);
    text-decoration: underline;
}

body.route-home main.velox-content :where(
    .home-type-rail,
    .home-highlight-rail,
    .home-brand-rail,
    .home-merchant-rail
) {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body.route-home main.velox-content :where(
    .home-type-rail,
    .home-highlight-rail,
    .home-brand-rail,
    .home-merchant-rail
)::-webkit-scrollbar {
    display: none;
}

/* Real merchant types presented through the old circular category language. */
body.route-home main.velox-content .home-type-rail {
    gap: 18px;
    padding: 2px 0 8px;
}

body.route-home main.velox-content .home-type-item {
    display: grid;
    flex: 0 0 86px;
    gap: 8px;
    justify-items: center;
    color: var(--ux-text);
    scroll-snap-align: start;
    text-align: center;
    text-decoration: none;
}

body.route-home main.velox-content .home-type-item > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

body.route-home main.velox-content .home-type-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

body.route-home main.velox-content .home-type-item strong {
    max-width: 86px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
}

body.route-home main.velox-content .home-type-item:hover > span {
    border-color: rgba(229, 57, 53, .3);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

body.route-home main.velox-content .home-empty-note {
    margin: 0;
    padding: 16px;
    color: var(--ux-muted);
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    border-radius: 12px;
}

/* Static Velox service presentation. These are service explanations, not API
   promotions, prices, offers, availability, or delivery promises. */
body.route-home main.velox-content .home-highlight-rail {
    gap: 16px;
    padding-bottom: 6px;
}

body.route-home main.velox-content .home-highlight-card {
    position: relative;
    display: flex;
    flex: 0 0 calc((100% - 48px) / 4);
    align-items: center;
    justify-content: space-between;
    min-width: 220px;
    height: 120px;
    gap: 12px;
    overflow: hidden;
    padding: 18px;
    color: var(--ux-text);
    background: linear-gradient(135deg, #fff 45%, #fff1f0);
    border: 1px solid var(--ux-border);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    scroll-snap-align: start;
    text-decoration: none;
}

body.route-home main.velox-content .home-highlight-card:nth-child(even) {
    background: linear-gradient(135deg, #fff 45%, #f4f5ff);
}

body.route-home main.velox-content .home-highlight-card > span {
    display: grid;
    gap: 5px;
}

body.route-home main.velox-content .home-highlight-card small {
    color: var(--ux-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.route-home main.velox-content .home-highlight-card strong {
    max-width: 175px;
    font-size: 15px;
    line-height: 1.3;
}

body.route-home main.velox-content .home-highlight-card img {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

body.route-home main.velox-content .home-highlight-card:hover {
    color: var(--ux-text);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .09);
    transform: translateY(-3px);
}

body.route-home main.velox-content .home-catalog {
    min-width: 0;
}

body.route-home main.velox-content .home-data-state {
    padding: 18px 8px 36px;
}

/* API-backed merchant logos in the approved compact brand rail. */
body.route-home main.velox-content .home-brand-rail {
    gap: 12px;
    padding: 2px 0 8px;
}

body.route-home main.velox-content .home-brand-item {
    display: grid;
    flex: 0 0 104px;
    gap: 7px;
    justify-items: center;
    color: var(--ux-text);
    scroll-snap-align: start;
    text-align: center;
    text-decoration: none;
}

body.route-home main.velox-content .home-brand-item > span {
    width: 92px;
    height: 92px;
    overflow: hidden;
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

body.route-home main.velox-content .home-brand-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.route-home main.velox-content .home-brand-item strong {
    width: 100%;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.route-home main.velox-content .home-brand-item:hover > span {
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    transform: translateY(-4px);
}

/* Real merchant discovery rail using the approved 290px recommendation card
   rhythm, without fake ratings, times, offers, or prices. */
body.route-home main.velox-content .home-merchant-rail {
    gap: 18px;
    padding: 2px 0 8px;
}

body.route-home main.velox-content .home-merchant-card {
    display: grid;
    flex: 0 0 290px;
    gap: 10px;
    color: var(--ux-text);
    scroll-snap-align: start;
    text-decoration: none;
}

body.route-home main.velox-content .home-merchant-image {
    position: relative;
    display: block;
    height: 120px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 18px;
}

body.route-home main.velox-content .home-merchant-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.route-home main.velox-content :where(.home-merchant-image, .home-store-image) > .catalog-status {
    position: absolute;
    right: auto;
    bottom: 9px;
    left: 9px;
    padding: 6px 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    font-size: 11px;
}

body.route-home main.velox-content .home-merchant-copy {
    display: grid;
    gap: 3px;
}

body.route-home main.velox-content .home-merchant-copy > small {
    color: var(--ux-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

body.route-home main.velox-content .home-merchant-copy > strong {
    overflow: hidden;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.route-home main.velox-content .home-merchant-copy > span {
    overflow: hidden;
    color: var(--ux-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.route-home main.velox-content .home-merchant-card:hover {
    color: var(--ux-text);
}

body.route-home main.velox-content .home-merchant-card:hover .home-merchant-image > img {
    transform: scale(1.04);
}

/* API-backed old-style store grid. */
body.route-home main.velox-content .home-stores-heading > span {
    flex: 0 0 auto;
    padding: 6px 11px;
    color: var(--ux-text);
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius-pill);
    font-size: 12px;
    font-weight: 700;
}

body.route-home main.velox-content .home-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 10px;
}

body.route-home main.velox-content .home-store-card {
    min-width: 0;
    overflow: hidden;
    color: var(--ux-text);
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    border-radius: 18px;
    box-shadow: var(--ux-shadow-card);
    text-decoration: none;
}

body.route-home main.velox-content .home-store-image {
    position: relative;
    display: block;
    height: 130px;
    overflow: hidden;
    background: #f5f5f5;
}

body.route-home main.velox-content .home-store-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.route-home main.velox-content .home-store-copy {
    display: grid;
    gap: 4px;
    padding: 10px 14px 13px;
}

body.route-home main.velox-content .home-store-copy > strong {
    overflow: hidden;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.route-home main.velox-content .home-store-copy > small {
    color: #777;
    font-size: 12px;
}

body.route-home main.velox-content .home-store-copy > span {
    overflow: hidden;
    color: var(--ux-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.route-home main.velox-content .home-store-card:hover {
    color: var(--ux-text);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
    transform: translateY(-4px);
}

body.route-home main.velox-content :where(
    .home-type-item,
    .home-highlight-card,
    .home-brand-item,
    .home-merchant-card,
    .home-store-card
):focus-visible {
    outline: 3px solid rgba(229, 57, 53, .3);
    outline-offset: 3px;
}

@media (min-width: 768px) and (max-width: 1199px) {
    body.route-home main.velox-content .home-services .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.route-home main.velox-content .home-highlight-card {
        flex-basis: calc((100% - 32px) / 3);
    }
}

@media (min-width: 768px) and (max-width: 960px) {
    body.route-home main.velox-content .home-hero .velox-hero-banner {
        min-height: 220px;
        padding: 24px 32px;
    }

    body.route-home main.velox-content .home-hero .hero-content h1 {
        font-size: 2.6rem;
    }

    body.route-home main.velox-content .home-highlight-card {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (max-width: 767px) {
    body.route-home main.velox-content .home-hero {
        padding: 4px 0;
    }

    body.route-home main.velox-content .home-hero .velox-hero-banner {
        min-height: 110px;
        padding: 13px;
        border-radius: 18px;
    }

    body.route-home main.velox-content .home-hero .hero-content {
        width: 100%;
    }

    body.route-home main.velox-content .home-hero .hero-content h1 {
        margin-bottom: 8px;
        font-size: 24px;
        letter-spacing: -.5px;
        line-height: 1.05;
    }

    body.route-home main.velox-content .home-hero .hero-content p {
        max-width: 300px;
        margin-bottom: 12px;
        font-size: 13px;
        line-height: 1.35;
    }

    body.route-home main.velox-content .home-hero .hero-btn {
        min-height: 38px;
        padding: 8px 18px;
        font-size: 13px;
    }

    body.route-home main.velox-content .home-hero .hero-image {
        display: none;
    }

    body.route-home main.velox-content .home-services {
        padding: 4px 0 10px;
    }

    body.route-home main.velox-content .home-services .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.route-home main.velox-content .home-services .service-card {
        min-height: 64px;
        height: auto;
        gap: 9px;
        padding: 9px;
        border-radius: 12px;
    }

    body.route-home main.velox-content .home-services .service-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    body.route-home main.velox-content .home-services .service-info h2 {
        font-size: 12px;
    }

    body.route-home main.velox-content .home-services .service-info p {
        font-size: 9px;
    }

    body.route-home main.velox-content .home-section {
        padding: 12px 0;
    }

    body.route-home main.velox-content .home-section-heading {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }

    body.route-home main.velox-content .home-section-heading h2 {
        font-size: 20px;
    }

    body.route-home main.velox-content .home-section-heading p {
        font-size: 12px;
    }

    body.route-home main.velox-content .home-section-heading > a {
        font-size: 12px;
    }

    body.route-home main.velox-content .home-type-rail {
        gap: 12px;
        padding-bottom: 6px;
    }

    body.route-home main.velox-content .home-type-item {
        flex-basis: 68px;
        gap: 6px;
    }

    body.route-home main.velox-content .home-type-item > span {
        width: 52px;
        height: 52px;
    }

    body.route-home main.velox-content .home-type-item img {
        width: 36px;
        height: 36px;
    }

    body.route-home main.velox-content .home-type-item strong {
        max-width: 68px;
        font-size: 11px;
    }

    body.route-home main.velox-content .home-highlight-rail {
        gap: 12px;
    }

    body.route-home main.velox-content .home-highlight-card {
        flex-basis: 85%;
        min-width: 250px;
        height: 130px;
        padding: 16px;
        border-radius: 16px;
    }

    body.route-home main.velox-content .home-brand-rail {
        gap: 10px;
    }

    body.route-home main.velox-content .home-brand-item {
        flex-basis: 68px;
    }

    body.route-home main.velox-content .home-brand-item > span {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    body.route-home main.velox-content .home-brand-item strong {
        font-size: 10px;
    }

    body.route-home main.velox-content .home-merchant-rail {
        gap: 12px;
    }

    body.route-home main.velox-content .home-merchant-card {
        flex-basis: 85%;
        max-width: 310px;
    }

    body.route-home main.velox-content .home-merchant-image {
        height: 140px;
        border-radius: 16px;
    }

    body.route-home main.velox-content .home-merchant-copy > strong {
        font-size: 17px;
    }

    body.route-home main.velox-content .home-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.route-home main.velox-content .home-store-image {
        height: 105px;
    }

    body.route-home main.velox-content .home-store-copy {
        padding: 8px;
    }

    body.route-home main.velox-content .home-store-copy > strong {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body.route-home main.velox-content .home-store-grid {
        grid-template-columns: 1fr;
    }

    body.route-home main.velox-content .home-store-image {
        height: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.route-home main.velox-content :where(
        .home-hero .hero-btn,
        .service-card,
        .home-type-item > span,
        .home-highlight-card,
        .home-brand-item > span,
        .home-merchant-image > img,
        .home-store-card
    ) {
        transition: none;
    }
}

/* ==================================================
   UX Restoration Batch 3.1 — Homepage Fidelity Pass
   Exact homepage-source alignment with appvelox_old.
   ================================================== */

body.route-home main.velox-content > :where(
    .home-hero,
    .home-services,
    .home-section,
    .home-catalog
) {
    width: 100%;
    max-width: 1600px;
    margin-right: auto;
    margin-left: auto;
}

body.route-home main.velox-content .velox-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 8px;
}

/* Old master hero: 150px minimum, compact 10px/15px inset, 45/50 split. */
body.route-home main.velox-content .home-hero {
    padding: 34px 0 4px;
}

body.route-home main.velox-content .home-hero .velox-hero-banner {
    min-height: 150px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #ef2d24, #c91717);
    border-radius: 24px;
}

body.route-home main.velox-content .home-hero .hero-content {
    width: 45%;
}

body.route-home main.velox-content .home-hero .hero-content h1 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.02;
}

body.route-home main.velox-content .home-hero .hero-content p {
    max-width: none;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .92);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

body.route-home main.velox-content .home-hero .hero-btn {
    min-height: 0;
    gap: 12px;
    padding: 15px 34px;
    color: #e53935;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    font-size: 17px;
    font-weight: 700;
}

body.route-home main.velox-content .home-hero .hero-image {
    width: 50%;
}

body.route-home main.velox-content .home-hero .hero-image img {
    width: 100%;
    max-width: 430px;
}

/* Old six-card service row, including original order, copy, and dimensions. */
body.route-home main.velox-content .home-services {
    margin: 5px 0 0;
    padding: 0;
}

body.route-home main.velox-content .home-services .services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

body.route-home main.velox-content .home-services .service-card {
    height: 74px;
    gap: 12px;
    padding: 12px 16px;
    color: #222;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
}

body.route-home main.velox-content .home-services .service-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: #fff5f5;
    border-radius: 10px;
}

body.route-home main.velox-content .home-services .service-info h5 {
    margin: 0;
    overflow: hidden;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.route-home main.velox-content .home-services .service-info p {
    margin: 2px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.2;
}

/* Master section headings are single-line and do not carry Batch 3 subtitles. */
body.route-home main.velox-content .home-old-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

body.route-home main.velox-content .home-old-heading :where(h3, h4) {
    margin: 0;
    color: #222;
    letter-spacing: normal;
}

body.route-home main.velox-content .home-old-heading h3 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

/* Old circular cuisine rail, populated only by current merchant types. */
body.route-home main.velox-content .home-types {
    margin-top: 6px;
    padding: 0;
}

body.route-home main.velox-content .home-types .home-old-heading {
    margin-bottom: 8px;
}

body.route-home main.velox-content .home-type-rail {
    gap: 18px;
    padding: 0 0 15px;
}

body.route-home main.velox-content .home-type-item {
    display: block;
    flex: 0 0 90px;
    min-width: 90px;
    color: #222;
    text-align: center;
}

body.route-home main.velox-content .home-type-item .home-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: auto;
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

body.route-home main.velox-content .home-type-item .home-type-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

body.route-home main.velox-content .home-type-item > span {
    display: block;
    max-width: none;
    margin-top: 12px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.route-home main.velox-content .home-type-item:hover .home-type-icon {
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
    transform: translateY(-4px);
}

/* Old promotion-card geometry reused for honest static service artwork. */
body.route-home main.velox-content .home-service-highlights {
    margin: 5px 0 0;
    padding: 0;
}

body.route-home main.velox-content .home-service-highlights .home-old-heading h3 {
    margin: 0 0 .5rem;
}

body.route-home main.velox-content .home-highlight-rail {
    gap: 20px;
    padding: 0;
}

body.route-home main.velox-content .home-highlight-card {
    position: relative;
    display: block;
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
    height: 120px;
    padding: 0;
    overflow: hidden;
    color: #111;
    background: #fff;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

body.route-home main.velox-content .home-highlight-card:nth-child(even) {
    background: #fff;
}

body.route-home main.velox-content .home-highlight-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.route-home main.velox-content .home-highlight-card .promotion-status {
    position: absolute;
    right: auto;
    bottom: 14px;
    left: 14px;
    display: block;
    padding: 10px 18px;
    color: #111;
    background: #fff;
    border-radius: 30px;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
}

body.route-home main.velox-content .home-highlight-card:hover {
    color: #111;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    transform: none;
}

/* Old brand rail: logos only, 92px squares, six-pixel desktop rhythm. */
body.route-home main.velox-content :where(.home-brand-section, .home-nearby-brand-section) {
    padding: 18px 0;
}

body.route-home main.velox-content .home-brand-rail {
    gap: 6px;
    padding: 0 0 8px;
}

body.route-home main.velox-content .home-brand-item {
    display: block;
    flex: 0 0 calc((100% - 48px) / 9);
    color: #222;
    text-align: left;
}

body.route-home main.velox-content .home-brand-logo {
    width: 92px;
    height: 92px;
    overflow: hidden;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

body.route-home main.velox-content .home-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.route-home main.velox-content .home-brand-item:hover .home-brand-logo {
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    transform: translateY(-4px);
}

/* Old recommended-card structure with API name/location and real availability. */
body.route-home main.velox-content .home-merchant-section {
    padding: 18px 0 0;
}

body.route-home main.velox-content .home-merchant-section .home-old-heading {
    margin-bottom: 25px;
}

body.route-home main.velox-content .home-merchant-section .home-old-heading h4 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

body.route-home main.velox-content .home-merchant-rail {
    gap: 18px;
    padding: 0;
    scroll-snap-type: x mandatory;
}

body.route-home main.velox-content .home-merchant-card {
    display: block;
    flex: 0 0 290px;
    color: #222;
}

body.route-home main.velox-content .home-merchant-image {
    position: relative;
    height: 110px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 18px;
}

body.route-home main.velox-content .home-merchant-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.route-home main.velox-content .home-merchant-image > .catalog-status {
    position: absolute;
    right: auto;
    bottom: 12px;
    left: 12px;
    padding: 8px 14px;
    color: #000;
    background: #fff;
    border-radius: 25px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
}

body.route-home main.velox-content .home-merchant-copy {
    display: block;
    padding-top: 12px;
}

body.route-home main.velox-content .home-merchant-copy h4 {
    margin: 0 0 6px;
    overflow: hidden;
    color: #222;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.route-home main.velox-content .home-merchant-copy p {
    margin: 0;
    overflow: hidden;
    color: #666;
    font-size: 15px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Old All Stores grid and content hierarchy; ratings/offers remain omitted. */
body.route-home main.velox-content .home-store-section {
    padding: 5px 0;
}

body.route-home main.velox-content .home-store-section .home-stores-heading {
    align-items: center;
    margin-bottom: 5px;
}

body.route-home main.velox-content .home-store-section .home-stores-heading h2 {
    margin: 0;
    color: #222;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

body.route-home main.velox-content .home-store-section .home-stores-heading p {
    margin: 4px 0 0;
    color: #777;
    font-size: 16px;
}

body.route-home main.velox-content .home-stores-heading > .store-count {
    flex: 0 0 auto;
    padding: 5px;
    color: #222;
    background: #fff;
    border: 0;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
}

body.route-home main.velox-content .home-store-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 10px;
}

body.route-home main.velox-content .home-store-card {
    overflow: hidden;
    color: #222;
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

body.route-home main.velox-content .home-store-image {
    position: relative;
    height: 130px;
    overflow: hidden;
    background: #f5f5f5;
}

body.route-home main.velox-content .home-store-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.route-home main.velox-content .home-store-image > .catalog-status {
    position: absolute;
    top: 15px;
    right: auto;
    bottom: auto;
    left: 14px;
    padding: 8px 14px;
    color: #fff;
    background: #e53935;
    border-radius: 10px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
}

body.route-home main.velox-content .home-store-image > .catalog-status.is-unavailable {
    background: #666;
}

body.route-home main.velox-content .home-store-copy {
    display: block;
    padding: 10px 14px;
}

body.route-home main.velox-content .home-store-copy h4 {
    margin: 0;
    overflow: hidden;
    color: #222;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.route-home main.velox-content .home-store-copy .store-rating {
    margin: 2px 0 0;
    overflow: hidden;
    color: #555;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.route-home main.velox-content .home-store-card:hover {
    color: #222;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
    transform: translateY(-6px);
}

body.route-home main.velox-content :where(
    .home-type-item,
    .home-highlight-card,
    .home-brand-item,
    .home-merchant-card,
    .home-store-card
):focus-visible {
    outline: 3px solid rgba(229, 57, 53, .3);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    body.route-home main.velox-content .velox-container {
        padding: 0;
    }

    body.route-home main.velox-content .home-hero {
        padding: 4px 0;
    }

    body.route-home main.velox-content .home-hero .velox-hero-banner {
        min-height: 110px;
        padding: 13px;
        border-radius: 18px;
    }

    body.route-home main.velox-content .home-hero .hero-content {
        width: 100%;
    }

    body.route-home main.velox-content .home-hero .hero-content h1 {
        margin-bottom: 8px;
        font-size: 24px;
        letter-spacing: -.5px;
        line-height: 1.05;
    }

    body.route-home main.velox-content .home-hero .hero-content p {
        margin-bottom: 12px;
        font-size: 13px;
        line-height: 1.4;
    }

    body.route-home main.velox-content .home-hero .hero-btn {
        height: 38px;
        min-height: 38px;
        padding: 0 18px;
        font-size: 14px;
    }

    body.route-home main.velox-content .home-hero .hero-image {
        display: none;
    }

    body.route-home main.velox-content .home-services {
        padding: 0;
    }

    body.route-home main.velox-content .home-services .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.route-home main.velox-content .home-services .service-card {
        min-height: 0;
        height: auto;
        padding: 10px;
        border-radius: 12px;
    }

    body.route-home main.velox-content .home-services .service-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    body.route-home main.velox-content .home-services .service-info h5 {
        font-size: 12px;
    }

    body.route-home main.velox-content .home-services .service-info p {
        font-size: 9px;
    }

    body.route-home main.velox-content .home-old-heading {
        margin-bottom: 12px;
    }

    body.route-home main.velox-content .home-old-heading h3,
    body.route-home main.velox-content .home-merchant-section .home-old-heading h4 {
        font-size: 22px;
    }

    body.route-home main.velox-content .home-types {
        margin-top: 8px;
    }

    body.route-home main.velox-content .home-type-rail {
        gap: 12px;
        padding-bottom: 10px;
    }

    body.route-home main.velox-content .home-type-item {
        flex-basis: 65px;
        min-width: 65px;
    }

    body.route-home main.velox-content .home-type-item .home-type-icon {
        width: 52px;
        height: 52px;
    }

    body.route-home main.velox-content .home-type-item .home-type-icon img {
        width: 36px;
        height: 36px;
    }

    body.route-home main.velox-content .home-type-item > span {
        margin-top: 8px;
        font-size: 11px;
    }

    body.route-home main.velox-content .home-service-highlights {
        margin-top: 10px;
    }

    body.route-home main.velox-content .home-highlight-rail {
        gap: 12px;
        padding-bottom: 10px;
    }

    body.route-home main.velox-content .home-highlight-card {
        flex-basis: 85%;
        min-width: 0;
        height: 130px;
        border-radius: 16px;
    }

    body.route-home main.velox-content .home-highlight-card .promotion-status {
        padding: 8px 12px;
        font-size: 12px;
    }

    body.route-home main.velox-content :where(.home-brand-section, .home-nearby-brand-section) {
        padding: 12px 0;
    }

    body.route-home main.velox-content .home-brand-rail {
        gap: 10px;
    }

    body.route-home main.velox-content .home-brand-item {
        flex: 0 0 auto;
    }

    body.route-home main.velox-content .home-brand-logo {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    body.route-home main.velox-content .home-merchant-section {
        padding: 12px 0;
    }

    body.route-home main.velox-content .home-merchant-section .home-old-heading {
        margin-bottom: 12px;
    }

    body.route-home main.velox-content .home-merchant-rail {
        gap: 12px;
        padding-bottom: 8px;
    }

    body.route-home main.velox-content .home-merchant-card {
        flex-basis: 85%;
        max-width: none;
    }

    body.route-home main.velox-content .home-merchant-image {
        height: 140px;
        border-radius: 16px;
    }

    body.route-home main.velox-content .home-merchant-copy {
        padding-top: 10px;
    }

    body.route-home main.velox-content .home-merchant-copy h4 {
        margin-bottom: 4px;
        font-size: 18px;
    }

    body.route-home main.velox-content .home-merchant-copy p {
        font-size: 13px;
    }

    body.route-home main.velox-content .home-store-section {
        padding: 12px 0;
    }

    body.route-home main.velox-content .home-store-section .home-stores-heading {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    body.route-home main.velox-content .home-store-section .home-stores-heading h2 {
        font-size: 22px;
    }

    body.route-home main.velox-content .home-store-section .home-stores-heading p,
    body.route-home main.velox-content .home-stores-heading > .store-count {
        font-size: 12px;
    }

    body.route-home main.velox-content .home-stores-heading > .store-count {
        padding: 5px 10px;
    }

    body.route-home main.velox-content .home-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.route-home main.velox-content .home-store-card {
        border-radius: 16px;
    }

    body.route-home main.velox-content .home-store-image {
        height: 105px;
    }

    body.route-home main.velox-content .home-store-image > .catalog-status {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
        font-size: 10px;
    }

    body.route-home main.velox-content .home-store-copy {
        padding: 8px;
    }

    body.route-home main.velox-content .home-store-copy h4 {
        margin: 0 0 2px;
        font-size: 14px;
        line-height: 1.2;
    }

    body.route-home main.velox-content .home-store-copy .store-rating {
        margin: 0;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    body.route-home main.velox-content .home-store-grid {
        grid-template-columns: 1fr;
    }
}

/* Active restaurant-filter results retain their compact discovery grid. */
body.route-home main.velox-content .merchant-discovery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

body.route-home main.velox-content .merchant-discovery-grid > .store-card {
    min-height: 0;
}

body.route-home main.velox-content .merchant-discovery-grid .store-image {
    height: 100px;
    overflow: hidden;
}

body.route-home main.velox-content .merchant-discovery-grid .store-info {
    padding: 7px 12px 8px;
}

body.route-home main.velox-content .merchant-discovery-grid .store-info h4 {
    margin: 0 0 2px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

body.route-home main.velox-content .merchant-discovery-grid .store-rating {
    margin: 0;
    line-height: 1.2;
}

@media (min-width: 1600px) {
    body.route-home main.velox-content .merchant-discovery-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1900px) {
    body.route-home main.velox-content .merchant-discovery-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    body.route-home main.velox-content .merchant-discovery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.route-home main.velox-content .merchant-discovery-grid .store-image {
        height: 90px;
    }

    body.route-home main.velox-content .merchant-discovery-grid .store-info {
        padding: 6px 8px 7px;
    }
}

@media (min-width: 421px) and (max-width: 767px) {
    body.route-home main.velox-content .merchant-discovery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 420px) {
    body.route-home main.velox-content .merchant-discovery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
