@font-face {
    font-family: "Neue Montreal";
    src: url("/assets/fonts/neuemontreal-regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Neue Montreal";
    src: url("/assets/fonts/neuemontreal-medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --c-teal: #80d4c5;
    --c-yellow: #ffed90;
    --c-blue-600: #567dff;
    --c-blue-800: #253068;
    --c-slate: #2c3e50;
    --c-text: #121212;
    --c-text-2: #464646;
    --c-orange: #e67e22;
    --c-white: #ffffff;
    --c-bg: #ffffff;
    --c-border: rgba(0, 0, 0, 0.1);
    --radius: 4px;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    color: var(--c-text);
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.pickup-app {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background: var(--c-bg);
    position: relative;
    overflow: visible;
    padding-bottom: 64px;
}

.pickup-main {
    padding: 0 16px 24px;
    overflow: visible;
}

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

.pickup-app-no-nav {
    padding-bottom: 24px;
}

.pickup-main-product {
    padding: 0;
}

.route-cart .pickup-main,
.route-checkout .pickup-main {
    padding-bottom: 24px;
}

.pickup-header {
    position: sticky;
    top: 30px; /* sit just below the sticky promo-bar (its min-height) */
    z-index: 20;
    background: var(--c-bg);
}

.promo-bar {
    position: sticky;
    top: 0;
    z-index: 21;
    background: var(--c-teal);
    color: var(--c-text);
    min-height: 30px;
    padding: 8px 16px;
    font-size: 12px;
    line-height: 1.2;
    display: grid;
    place-items: center;
    text-align: center;
}

.promo-progress {
    width: 100%;
    max-width: 250px;
    height: 2px;
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.2);
}

.promo-progress span {
    display: block;
    height: 100%;
    background: var(--c-slate);
}

.order-strip {
    min-height: 70px;
    padding: 16px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.order-strip-title {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--c-text-2);
}

.order-strip p {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    color: var(--c-text-2);
}

.order-strip-link {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    min-height: 35px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--c-text-2);
    background: var(--c-white);
    cursor: pointer;
}

.order-details-modal[hidden] {
    display: none;
}

.order-details-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.order-details-backdrop {
    position: absolute;
    top: var(--order-details-top, 0px);
    left: var(--order-details-left, 0px);
    width: var(--order-details-width, 100%);
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

.order-details-sheet {
    position: absolute;
    top: var(--order-details-top, 0px);
    left: var(--order-details-left, 0px);
    width: var(--order-details-width, 100%);
    bottom: 0;
    background: var(--c-white);
    border-radius: 0;
    border: 0;
    padding: 14px 16px max(16px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
}

.order-details-sheet > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.order-details-sheet > header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.icon-plain-btn {
    border: 0;
    background: transparent;
    padding: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.icon-plain-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-details-form {
    display: grid;
    gap: 8px;
    min-height: calc(100% - 42px);
    align-content: start;
}

.order-details-row {
    display: grid;
    gap: 4px;
}

.order-details-actions {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: sticky;
    bottom: 0;
    padding-top: 8px;
    background: var(--c-white);
}

.location-strip {
    display: none;
}

.btn {
    border: 1px solid transparent;
    border-radius: var(--radius);
    min-height: 53px;
    padding: 16px;
    font-size: 16px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background: var(--c-blue-800);
    color: var(--c-white);
}

.btn-light {
    background: var(--c-white);
    border-color: var(--c-border);
    color: var(--c-text-2);
}

.btn-soft {
    background: var(--c-white);
    border-color: var(--c-border);
    color: var(--c-text);
    min-height: 36px;
    font-size: 12px;
    padding: 8px 12px;
}

.btn-block {
    width: 100%;
}

.step1-hero-media {
    margin: 0 -16px;
    height: 157px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #dce9f3 0%, #f2f5f9 100%);
    border-bottom: 1px solid var(--c-border);
}

.step1-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.step1-intro {
    margin-top: 32px;
}

.step1-intro h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--c-text);
}

.step1-intro p {
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.2;
    color: var(--c-text);
}

.step1-cta-group {
    margin-top: 24px;
    display: grid;
    gap: 8px;
}

.quick-add-home {
    margin-top: 20px;
}

.quick-add-home .section-title h2 {
    font-size: 18px;
}

.home-quick-track {
    margin-top: 10px;
    grid-auto-columns: 224px;
}

.home-quick-track .favorite-card {
    min-height: 222px;
    display: flex;
    flex-direction: column;
}

.home-quick-track .favorite-card-copy {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-quick-track .favorite-card-copy h3 {
    font-size: 15px;
}

.home-quick-track .favorite-card-copy p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quick-add-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.quick-add-row .btn {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 11px;
    margin-left: auto;
    align-self: flex-end;
}

.gift-card-home-track {
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
    overflow: visible;
}

.gift-card-home-card .favorite-card-image {
    height: 132px;
}

.gift-card-home-card .favorite-card-copy p {
    -webkit-line-clamp: 3;
}

.catering-card {
    min-height: 53px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 8px 16px;
    display: grid;
    place-items: center;
    text-align: center;
    background: var(--c-white);
}

.catering-card strong {
    font-size: 16px;
    font-weight: 500;
}

.catering-card span {
    font-size: 12px;
    line-height: 1.2;
}

.store-summary-card {
    margin-top: 16px;
    min-height: 108px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    background: var(--c-white);
    padding: 16px;
    display: grid;
    align-content: center;
    gap: 6px;
}

.store-summary-card h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: var(--c-text);
}

.store-summary-card p {
    margin-top: 4px;
    font-size: 16px;
    color: var(--c-text-2);
}

.menu-title-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.menu-title-row h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.filter-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 162px;
}

.filter-select {
    appearance: none;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-white);
    min-height: 38px;
    width: 100%;
    padding: 8px 36px 8px 14px;
    font-size: 16px;
    color: var(--c-text-2);
    cursor: pointer;
}

.filter-select-wrap:hover .filter-select,
.filter-select:focus {
    background: var(--c-white);
    color: var(--c-text-2);
    outline: none;
}

.filter-select-arrow {
    position: absolute;
    right: 12px;
    width: 14px;
    height: 14px;
    pointer-events: none;
    transform: rotate(90deg);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.filter-select-wrap:hover .filter-select-arrow,
.filter-select:focus + .filter-select-arrow {
    transform: rotate(-90deg);
}

.category-tabs {
    position: sticky;
    top: var(--sticky-tabs-top, 100px);
    z-index: 19;
    margin: 16px 0 0;
    padding: 0 16px;
    display: flex;
    gap: 18px;
    align-items: flex-end;
    height: 46px;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    scroll-padding-inline: 16px;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.category-tab {
    position: relative;
    white-space: nowrap;
    text-decoration: none;
    color: var(--c-text-2);
    font-size: 14px;
    font-weight: 600;
    padding: 0 0 10px;
    border: 0;
    background: transparent;
    flex-shrink: 0;
}

.category-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: transparent;
    transition: background-color 0.15s ease;
}

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

.category-tab.active::after {
    background: var(--c-teal);
}

.featured-section {
    margin-top: 8px;
}

.section-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.carousel-control {
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carousel-control img {
    width: 24px;
    height: 24px;
}

.featured-track {
    margin-top: 10px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 262px;
    gap: 10px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.featured-track::-webkit-scrollbar {
    display: none;
}

.favorite-card {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    overflow: hidden;
}

.favorite-card-image {
    position: relative;
    height: 112px;
    background: #eef3f7;
}

.favorite-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-card-image span {
    position: absolute;
    left: 8px;
    top: 8px;
    min-height: 20px;
    padding: 3px 8px;
    border-radius: 2px;
    background: var(--c-yellow);
    color: var(--c-slate);
    font-size: 12px;
}

.favorite-card-copy {
    padding: 10px;
}

.favorite-card-copy h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.favorite-card-copy p {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.2;
    color: var(--c-text-2);
}

.favorite-card-copy strong {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--c-text);
    font-weight: 500;
}

.menu-list {
    margin-top: 16px;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.menu-category {
    scroll-margin-top: 12px;
    min-width: 0;
}

.menu-category > header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.menu-category > header p {
    margin-top: 4px;
    font-size: 14px;
    color: var(--c-text-2);
}

.menu-grid {
    margin-top: 10px;
    display: grid;
    gap: 10px;
    min-width: 0;
}

.menu-track {
    margin-top: 10px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 14px) / 2.25);
    gap: 10px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    min-width: 0;
}

.menu-track::-webkit-scrollbar {
    display: none;
}

.menu-track .product-card {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
}

.menu-track .product-media {
    order: -1;
    padding: 8px 8px 0;
    min-height: 0;
}

.menu-track .product-media-frame {
    aspect-ratio: 4 / 3;
}

.menu-track .product-copy {
    padding: 8px;
}

.menu-track .product-copy h4 {
    font-size: 14px;
}

.menu-track .product-copy p {
    font-size: 11px;
}

.section-controls-row {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.product-card {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    min-height: 136px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 142px;
    gap: 16px;
    min-width: 0;
}

.product-card.no-image {
    grid-template-columns: 1fr;
    gap: 0;
}

.product-card.no-image .product-copy {
    padding: 12px;
}

.product-copy {
    min-width: 0;
    min-height: 100%;
    padding: 8px 0 8px 8px;
    display: flex;
    flex-direction: column;
}

.product-copy h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--c-text);
}

.product-copy p {
    margin-top: 5px;
    font-size: 12px;
    color: var(--c-text-2);
    line-height: 1.25;
}

.dietary-badges {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.dietary-badge {
    font-size: 10px;
    color: var(--c-text-2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.15;
}

.dietary-badge i {
    width: 10px;
    height: 10px;
    stroke-width: 1.9;
}

.dietary-badge i.badge-icon-halal {
    width: 5px;
    height: 5px;
    stroke-width: 1.15;
}

.dietary-badge img {
    width: 10px;
    height: 10px;
    object-fit: contain;
}

.dietary-badge img.badge-icon-halal-svg {
    width: 7px;
    height: 7px;
}

.product-copy strong {
    margin-top: auto;
    padding-top: 8px;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
    align-self: flex-start;
}

.product-media {
    padding: 8px 8px 8px 0;
    min-height: 100%;
    display: flex;
    align-items: center;
}

.product-media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    overflow: hidden;
    background: #edf2f6;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media-plus {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    background: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.product-media-plus img {
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-sheet {
    background: var(--c-white);
    min-height: 100vh;
    padding-bottom: 0;
}

.product-sheet-hero {
    height: 268px;
    position: relative;
    overflow: hidden;
    background: #e8edf3;
}

.product-sheet-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No-image variant — collapse the gray placeholder block to a compact strip
   that only carries the back / close icons. */
.product-sheet-hero-empty {
    height: 48px;
    background: transparent;
    overflow: visible;
}

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

.product-hero-action {
    position: absolute;
    top: 12px;
    display: inline-flex;
    z-index: 2;
    width: 20px;
    height: 20px;
    padding: 0;
}

.product-hero-action img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-hero-back {
    left: 12px;
}

.product-hero-close {
    right: 12px;
}

.product-sheet-body {
    padding: 12px 16px 0;
}

.product-dietary-badges {
    margin-top: 8px;
}

.product-sheet-body h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.product-price {
    margin-top: 6px;
    font-size: 14px;
    color: var(--c-text);
    font-weight: 500;
}

.product-description {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.25;
    color: var(--c-text-2);
}

.modifier-groups {
    margin-top: 12px;
}

.modifier-groups h2 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 500;
}

.modifier-group {
    border-top: 1px solid var(--c-border);
    padding-top: 12px;
    margin-top: 12px;
}

.modifier-group > header {
    display: grid;
    justify-items: start;
    gap: 2px;
    margin-bottom: 4px;
}

.modifier-group > header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.modifier-group > header span {
    font-size: 12px;
    color: var(--c-text-2);
}

.modifier-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.modifier-group li + li {
    border-top: 1px solid var(--c-border);
}

.modifier-option {
    position: relative;
    min-height: 46px;
    padding: 10px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Visually hidden but still focusable. Without position:relative on the label
   above, focusing this input would scroll the page to viewport (0,0) and yank
   the modal off-screen. */
.modifier-option input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    margin: 0;
}

.modifier-option-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.modifier-option-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.modifier-option-title-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.modifier-option-control {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    display: inline-block;
    flex-shrink: 0;
    position: relative;
}

.modifier-option input:checked + .modifier-option-left .modifier-option-control {
    border-color: var(--c-blue-800);
    background: var(--c-blue-800);
}

.modifier-option input:checked + .modifier-option-left .modifier-option-control::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    background: var(--c-white);
}

.modifier-option-text {
    font-size: 14px;
    line-height: 1.2;
}

.modifier-option-description {
    font-size: 11px;
    line-height: 1.2;
    color: #737373;
    display: block;
}

.modifier-option-tags {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.modifier-option strong {
    font-size: 12px;
    color: var(--c-text-2);
}

.product-form-extras {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.inline-form-row,
.form-field {
    display: grid;
    gap: 6px;
}

.form-field small {
    font-size: 11px;
    color: var(--c-text-2);
    line-height: 1.2;
}

label {
    font-size: 14px;
    color: var(--c-text-2);
}

input,
textarea {
    min-height: 40px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 9px 10px;
    font-size: 14px;
    color: var(--c-text);
    background: var(--c-white);
}

textarea {
    min-height: 72px;
    resize: vertical;
}

.quantity-control {
    border: 1px solid var(--c-border);
    border-radius: 999px;
    overflow: hidden;
    width: fit-content;
    display: grid;
    grid-template-columns: 32px 58px 32px;
}

.quantity-control button {
    border: 0;
    background: #f6f6f6;
    cursor: pointer;
}

.quantity-control input {
    border: 0;
    text-align: center;
    min-height: 32px;
    padding: 0;
}

.quantity-control.compact {
    grid-template-columns: 24px 40px 24px;
}

.quantity-control.compact input {
    min-height: 24px;
}

.quantity-control.compact button {
    min-height: 24px;
    font-size: 12px;
}

.form-error {
    margin-top: 4px;
    font-size: 12px;
    color: #b92d2d;
}

.floating-notice {
    position: fixed;
    left: 50%;
    bottom: 88px;
    transform: translateX(-50%);
    width: min(92vw, 360px);
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff7f7;
    color: #9c1f1f;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    z-index: 80;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.floating-notice.is-success {
    background: #f2fcf7;
    color: #06663f;
}

.floating-notice.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
}

.modifier-group.is-invalid > header h3,
.modifier-group.is-invalid > header span {
    color: #b92d2d;
}

.product-sticky-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 16px max(8px, env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--c-border);
    z-index: 18;
}

.product-add-btn {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: #008054;
    color: var(--c-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.product-popular-section {
    margin-top: 14px;
}

.product-popular-section .section-title h2 {
    font-size: 14px;
}

.product-popular-track {
    margin-top: 8px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(156px, 1fr);
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-popular-track::-webkit-scrollbar {
    display: none;
}

.popular-option-card {
    position: relative;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-white);
    padding: 10px 38px 10px 10px;
    display: grid;
    gap: 6px;
    text-align: left;
    cursor: pointer;
}

.popular-option-card::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    background: #fff;
}

.popular-option-card small {
    font-size: 10px;
    color: var(--c-text-2);
}

.popular-option-card strong {
    font-size: 14px;
    font-weight: 500;
}

.popular-option-card span {
    font-size: 13px;
    color: var(--c-text-2);
    line-height: 1.25;
}

.popular-option-card.active {
    border-color: rgba(0, 0, 0, 0.34);
    background: #f9f9f9;
}

.popular-option-card.active::after {
    border-color: #111;
    background: #111;
}

.special-instructions-toggle {
    min-height: 22px;
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-size: 13px;
    color: var(--c-text);
    cursor: pointer;
}

.special-instructions-toggle img {
    width: 12px;
    height: 12px;
}

.special-instructions-toggle.is-open {
    opacity: 0.85;
}

.special-instructions-box {
    margin-top: 2px;
    display: none;
}

.special-instructions-box.is-open {
    display: grid;
}

.cart-step-header {
    margin-top: 8px;
}

.cart-step-header h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.cart-step-header p {
    margin-top: 2px;
    font-size: 14px;
    color: var(--c-text-2);
}

.pickup-time-row {
    margin-top: 8px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    min-height: 49px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pickup-time-row strong,
.pickup-time-row span {
    font-size: 14px;
}

.cart-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.cart-item {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    min-height: 96px;
    padding: 8px;
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 8px;
    align-items: center;
}

.cart-item-media {
    width: 72px;
    height: 72px;
    border-radius: 3px;
    overflow: hidden;
    background: #eef2f6;
}

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

.cart-item-copy h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.cart-item-copy p {
    margin-top: 4px;
    font-size: 10px;
    color: var(--c-text-2);
    white-space: pre-line;
}

.cart-item-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-danger {
    border: 0;
    background: transparent;
    color: var(--c-text-2);
    font-size: 10px;
    cursor: pointer;
    text-transform: lowercase;
}

.cart-item-total {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
}

.upsell-card {
    margin-top: 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    min-height: 96px;
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 98px;
    gap: 12px;
}

.upsell-copy h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.upsell-copy p {
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--c-text);
}

.upsell-copy small {
    margin-top: 2px;
    font-size: 12px;
    color: var(--c-text);
    display: block;
}

.upsell-add-btn {
    margin-top: 8px;
    justify-self: start;
    min-height: 26px;
    padding: 4px 8px;
}

.upsell-media {
    width: 98px;
    height: 72px;
    border-radius: 4px;
    overflow: hidden;
    background: #edf2f6;
}

.upsell-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tip-panel {
    margin-top: 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    padding: 10px;
}

.tip-panel h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: var(--c-text-2);
}

.tip-options {
    margin-top: 8px;
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    overflow: hidden;
}

.tip-option {
    min-width: 0;
    min-height: 32px;
    flex: 1 1 0;
    border: 0;
    border-right: 1px solid var(--c-border);
    border-radius: 0;
    background: var(--c-white);
    font-size: 12px;
    color: var(--c-text-2);
    cursor: pointer;
}

.tip-option:last-child {
    border-right: 0;
}

.tip-option.active {
    background: rgba(0, 128, 84, 0.1);
    color: #008054;
}

.tip-custom-input {
    margin-top: 8px;
    width: 100%;
}

.cart-summary {
    margin-top: 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    padding: 10px;
    display: grid;
    gap: 8px;
}

.cart-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--c-text-2);
}

.summary-total {
    border-top: 1px solid var(--c-border);
    padding-top: 8px;
    font-size: 16px;
    color: var(--c-text);
}

.summary-total strong {
    font-weight: 500;
}

.cart-complete-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid var(--c-border);
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 16px max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 18;
    margin: 0 -16px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.cart-complete-bar .btn {
    min-height: 46px;
    width: 100%;
    justify-content: space-between;
    background: #2e8158;
}

.checkout-submit-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid var(--c-border);
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 16px max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 18;
    margin: 0 -16px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.checkout-submit-bar .btn {
    min-height: 46px;
    width: 100%;
    justify-content: space-between;
    background: #2e8158;
}

.page-header {
    margin-top: 16px;
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.page-header p {
    margin-top: 4px;
    font-size: 14px;
    color: var(--c-text-2);
}

.inline-form,
.checkout-form {
    margin-top: 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    padding: 10px;
    display: grid;
    gap: 10px;
}

.checkout-layout {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.checkout-summary {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    padding: 10px;
    display: grid;
    gap: 6px;
}

.checkout-summary h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 500;
}

.checkout-summary > div {
    font-size: 12px;
    color: var(--c-text-2);
    display: flex;
    justify-content: space-between;
}

.checkout-summary small {
    margin-top: 4px;
    font-size: 11px;
    color: var(--c-text-2);
}

.orders-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.order-card {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    padding: 10px;
}

.order-card > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.order-card > header strong {
    font-size: 14px;
    font-weight: 500;
}

.order-card p {
    margin-top: 6px;
    font-size: 12px;
    color: var(--c-text-2);
}

.order-meta {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.status-pill {
    min-height: 20px;
    padding: 3px 8px;
    border: 1px solid var(--c-border);
    border-radius: 2px;
    font-size: 10px;
}

.status-pill.is-pending {
    background: #f5f5f5;
}

.status-pill.is-progress {
    background: rgba(86, 125, 255, 0.12);
    color: var(--c-blue-600);
}

.status-pill.is-ready {
    background: rgba(128, 212, 197, 0.25);
    color: var(--c-slate);
}

.status-pill.is-cancelled {
    background: rgba(230, 126, 34, 0.18);
    color: var(--c-orange);
}

.confirmation-screen,
.empty-state {
    margin-top: 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    padding: 22px 14px;
    text-align: center;
}

.confirmation-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(128, 212, 197, 0.22);
}

.confirmation-icon i {
    width: 28px;
    height: 28px;
    color: var(--c-slate);
}

.confirmation-screen h1,
.empty-state h1,
.empty-state h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.confirmation-screen p,
.empty-state p,
.empty-text {
    margin-top: 6px;
    font-size: 14px;
    color: var(--c-text-2);
}

.confirmation-actions {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 56px;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
    z-index: 22;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 96px 52px 96px;
    align-items: center;
    justify-content: space-between;
    column-gap: 16px;
}

.bottom-nav-left {
    display: grid;
    grid-template-columns: repeat(2, 40px);
    align-items: center;
    gap: 16px;
    width: fit-content;
    min-width: 0;
}

.bottom-nav-left .bottom-nav-item {
    width: 40px;
    min-width: 0;
}

.bottom-nav-item,
.bottom-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--c-text);
    font-size: 14px;
    line-height: 1;
    position: relative;
    min-height: 37px;
}

.bottom-nav-item {
    width: 40px;
}

.bottom-nav-item span,
.bottom-nav-checkout span {
    white-space: nowrap;
}

.bottom-nav-item img {
    width: 15px;
    height: 16px;
}

.bottom-nav-center img {
    width: 43px;
    height: 40px;
}

.bottom-nav-checkout {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    min-height: 35px;
    background: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--c-text-2);
    width: 96px;
}

.bottom-nav-item.active,
.bottom-nav-center.active,
.bottom-nav-checkout.active {
    color: var(--c-blue-800);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: 10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--c-orange);
    color: var(--c-white);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* The mobile-first 390px-locked column was removed because at viewports
   >390px (e.g. iPhone Pro Max, iPad portrait, narrow desktop) it created a
   visible bordered column with empty space on the sides that read as "double
   lateral padding". The shell now spans flush to the viewport edges below
   1024px; ≥1024px the desktop grid layout takes over. */

.gift-card-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: #f8fafc;
}

.cart-gift-card {
    margin-top: 10px;
    border: 0;
    background: transparent;
    padding: 0;
    gap: 8px;
}

.gift-card-toggle {
    width: fit-content;
}

.gift-card-content {
    display: grid;
    gap: 10px;
}

.gift-card-content[hidden] {
    display: none !important;
}

.cart-gift-card .gift-card-content {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: #f8fafc;
    padding: 10px;
}

.gift-card-panel h2 {
    margin: 0;
    font-size: 18px;
}

.gift-card-panel p {
    margin: 0;
    color: var(--c-text-2);
    font-size: 13px;
}

.gift-card-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.gift-card-input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.gift-card-hint {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    opacity: 0.56;
    margin-top: -2px;
}

.bundle-card .favorite-card-copy small {
    display: inline-block;
    margin-top: 2px;
    color: var(--c-text-2);
    font-size: 12px;
}

.bundle-item-list {
    margin: 4px 0 0;
    padding-left: 16px;
    color: var(--c-text-2);
    font-size: 12px;
    line-height: 1.4;
}

.closed-screen {
    min-height: calc(100vh - 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px 28px;
}

.closed-card {
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    box-shadow: var(--shadow);
    padding: 22px 16px;
    display: grid;
    gap: 10px;
    text-align: center;
}

.closed-card h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 500;
}

.closed-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--c-text-2);
}

.closed-message-es {
    opacity: 0.88;
}

.closed-reason {
    display: inline-block;
    margin-top: 2px;
    font-size: 11px;
    opacity: 0.55;
}

.closed-actions {
    margin-top: 4px;
    display: grid;
    gap: 8px;
}

/* Glass Modal */
.glass-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.glass-modal {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    padding: 32px 24px 24px 24px;
}

.glass-modal-overlay.is-open .glass-modal {
    transform: translateY(0) scale(1);
}

.glass-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.05);
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-muted);
    transition: background 0.2s;
    z-index: 10;
}

.glass-modal-close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--color-primary);
}

.glass-modal-body {
    position: relative;
}

.gift-card-purchase-modal {
    display: grid;
    gap: 12px;
}

.gift-card-purchase-modal header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.gift-card-purchase-modal header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--c-text-2);
}

.gift-card-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.gift-card-amount-chip {
    min-height: 40px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: #fff;
    color: var(--c-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.gift-card-amount-chip.active {
    background: rgba(128, 212, 197, 0.34);
    border-color: rgba(0, 0, 0, 0.25);
}

.gift-card-custom-wrap {
    display: grid;
    gap: 6px;
}

.gift-card-custom-wrap label {
    font-size: 12px;
    color: var(--c-text-2);
}

.gift-card-custom-wrap input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
}

@media (max-width: 360px) {
    .gift-card-amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.glass-carousel-track::-webkit-scrollbar {
    display: none;
}
.glass-carousel-track {
    scrollbar-width: none;
}

/* Default (mobile-first): logo/cart icons in header are hidden. They surface only on desktop. */
.pickup-desktop-logo,
.pickup-desktop-cart {
    display: none;
}

/* The desktop main wrapper is transparent on mobile (no padding/margin). */
.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: top-bar header, 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 {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

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

    /* Hide mobile bottom-nav on desktop */
    .bottom-nav {
        display: none !important;
    }

    /* ── Promo bar: standalone sticky root element (sibling of the header).
       Naturally spans 100% of .pickup-app — no negative-margin bleed needed. */
    .promo-bar {
        min-height: 30px;
        padding: 6px 16px;
        font-size: 13px;
    }

    .promo-bar > span { padding: 0 8px; }
    .promo-progress { max-width: 320px; }

    /* ── Header desktop is now provided entirely by catering.css for the
       .pickup-header.cat-header structure (cat-topbar + cat-event-strip).
       The legacy logo/order-strip/cart-icon helpers are kept only as hidden
       fallbacks in case some legacy view still renders them. */
    .pickup-desktop-logo,
    .pickup-desktop-cart,
    .pickup-header > .location-strip {
        display: none;
    }

    /* ── Main wrapper: same calc as header on the left only; right is flush so
       the side-cart column hugs the viewport's right 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-top: 24px;
        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;
        min-width: 0;
    }

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

    /* ── Side cart: a flush right-side column, not a floating card ── */
    .side-cart {
        display: flex;
        grid-column: 2;
        position: sticky;
        top: 96px; /* sit just below the sticky header (promo ~30 + topbar 64 + border 1) */
        flex-direction: column;
        height: calc(100vh - 96px);
        background: #fff;
        border: 0;
        border-left: 1px solid var(--c-border);
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
        margin: 0;
    }

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

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

    .side-cart-header span {
        font-size: 12px;
        color: var(--c-text-2);
    }

    .side-cart-promo {
        padding: 10px 18px;
        background: var(--c-teal);
        color: var(--c-text);
    }

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

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

    .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(--c-slate);
    }

    .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: 500;
        color: var(--c-text);
    }

    .side-cart-empty small {
        display: block;
        margin-top: 6px;
        font-size: 12px;
        color: var(--c-text-2);
        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: #eef2f6;
    }

    .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: 500;
        line-height: 1.3;
        color: var(--c-text);
    }

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

    .side-cart-item-total {
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
    }

    .side-cart-footer {
        padding: 14px 18px 16px;
        border-top: 1px solid var(--c-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(--c-text-2);
    }

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

    .side-cart-summary-discount strong { color: #008054; }

    .side-cart-checkout {
        background: #2e8158;
        color: #fff;
        min-height: 48px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        font-weight: 500;
    }

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

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

    /* ── Home / store-summary tweaks ── */
    .store-summary-card { margin-top: 0; }

    .step1-hero-media {
        margin: 0;
        height: 320px;
        border-radius: 14px;
    }

    .step1-intro h1 { font-size: 32px; }
    .step1-intro p { font-size: 18px; max-width: 60ch; }

    .home-quick-track {
        grid-auto-flow: row;
        grid-auto-columns: unset;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        overflow: visible;
    }

    /* ── Menu page tweaks ── */
    .menu-title-row h1 { font-size: 32px; }

    .category-tabs {
        top: 96px;
        padding: 0;
        gap: 24px;
        height: 50px;
    }

    .category-tab {
        font-size: 15px;
        padding: 0 0 12px;
    }

    /* Featured/bundles carousel: bigger cards */
    .featured-track {
        grid-auto-columns: 320px;
        gap: 16px;
    }

    .favorite-card-image { height: 168px; }
    .favorite-card-copy h3 { font-size: 18px; }

    /* Menu grid: 2 columns on desktop */
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-card {
        min-height: 152px;
        grid-template-columns: minmax(0, 1fr) 168px;
        transition: box-shadow 0.18s ease, transform 0.18s ease;
    }

    a.product-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        transform: translateY(-1px);
    }

    .product-copy h4 { font-size: 17px; }
    .product-copy p { font-size: 13px; }

    .menu-track {
        grid-auto-columns: 280px;
        gap: 14px;
    }

    /* When the side-cart is visible, the menu grid is narrower → 2 cols still works.
       Without side-cart (e.g. orders), allow 3 cols. */
    .pickup-main-wrap:not(.has-side-cart) .menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .route-cart .cart-step-header h1 { font-size: 28px; }

    .cart-item {
        min-height: 112px;
        grid-template-columns: 96px 1fr auto;
        padding: 12px;
    }
    .cart-item-media { width: 96px; height: 96px; }
    .cart-item-copy h3 { font-size: 16px; }
    .cart-item-copy p { font-size: 12px; }

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

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

    /* ── Checkout page (no side-cart, single centered column) ── */
    .route-checkout .pickup-main-wrap {
        max-width: 880px;
        margin: 0 auto;
        padding: 24px 24px 64px;
    }

    .route-checkout .pickup-main { padding-bottom: 0; }
    .route-checkout .page-header h1 { font-size: 28px; }

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

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

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

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

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

    /* ── Product detail as modal overlay ──
       The product page already renders without header/bottom-nav. On desktop we
       darken the body, float the product-sheet as a centered card with a fixed
       close button, and let the inner sticky add-to-cart bar ride along. */
    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;
        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;
        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;
    }

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

    /* Hero action icons already include their own circular look — keep them flat. */
    body[class*="route-product-"] .product-hero-back,
    body[class*="route-product-"] .product-hero-close {
        background: transparent;
        box-shadow: none;
        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;
        bottom: 0;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
        background: #fff;
        padding: 12px 16px !important;
    }

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

    /* ── Closed page: keep centered card ── */
    .closed-screen { padding: 40px 16px; }
    .closed-card { max-width: 520px; margin: 0 auto; }

    /* ── 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);
    }

    /* ── Glass modal: keep centered, no width change needed ── */
}

@media (min-width: 1280px) {
    /* Slightly wider product images and tighter content */
    .product-card { grid-template-columns: minmax(0, 1fr) 192px; }
}
