/* ─── Order Page Styles ─────────────────────────────────────────── */
/* Extends /style.css which provides brand variables and base styles */

/* ════════════════════════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════════════════════ */

/* Prevent any horizontal scroll — steps reveal vertically only */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.order-page {
    background: #f8f9fb;
}

.option-sold-out {
    display: inline-block;
    color: #9b3038;
    font-size: .85rem;
    font-weight: 700;
    margin-inline-end: .5rem;
}

.experience-primary:disabled, .cup-addon-card button:disabled,
.flavour-option:disabled, .topping-chip:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Ensure [hidden] always wins — overrides any display: flex/grid on these */
.modal-overlay[hidden],
.success-overlay[hidden],
.cart-bottom-bar[hidden],
.nav-cart-count[hidden],
.promo-message[hidden],
.time-picker-row[hidden],
.checkout-error[hidden],
.contact-discount-note[hidden],
.feedback-thanks[hidden],
.cart-item-count[hidden],
[hidden] {
    display: none !important;
}

/* Online ordering can be paused while keeping the menu available to browse. */
.ordering-unavailable-dialog {
    width: min(28rem, calc(100% - 2rem));
    max-width: 28rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 1.5rem 4rem rgba(17, 24, 39, 0.24);
}

.ordering-unavailable-dialog::backdrop {
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(3px);
}

.ordering-unavailable-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
}

.ordering-unavailable-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 8px;
    background: rgba(193, 34, 57, 0.1);
    color: var(--red);
}

.ordering-unavailable-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.25;
}

.ordering-unavailable-message {
    margin: 0 0 0.25rem;
    color: #5f6570;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.ordering-unavailable-dialog:not([open]) {
    display: none;
}

@media (max-width: 420px) {
    .ordering-unavailable-content {
        padding: 1.5rem;
    }
}

/* ════════════════════════════════════════════════════════════════
   NAVBAR — always white/scrolled on order page
   ══════════════════════════════════════════════════════════════ */
.navbar-order {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,187,248,0.35);
    box-shadow: 0 2px 24px rgba(193,34,57,0.07);
}

.logo-img {
    width: 250px;
    height: auto;
}

.navbar-logo {
    margin-top: 45px;
}

.navbar-order .navbar-logo-name {
    color: var(--red);
    text-shadow: none;
}

.navbar-order .navbar-logo-sub {
    color: rgba(193,34,57,0.45);
}

.order-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.order-nav-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 0.04em;
    display: none;
}

.order-nav-right {
    display: flex;
    align-items: center;
    gap: var(--small-font-size);
}

.lang-toggle-btn {
    background: none;
    border: 1.5px solid var(--red);
    color: var(--red);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: var(--small-font-size);
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.875rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

    .lang-toggle-btn:hover {
        background: var(--red);
        color: #fff;
    }

/* ════════════════════════════════════════════════════════════════
   HERO HEADER
   ══════════════════════════════════════════════════════════════ */
.order-hero {
    position: relative;
    padding: 1.5rem 1.5rem 4.5rem;
    text-align: center;
    overflow: hidden;
}

.order-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #C12239 0%, #8B1527 100%);
}

.order-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.order-lang-btn {
    position: absolute;
    top: 0;
    right: 48%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: var(--small-font-size);
    font-weight: 700;
    padding: 0.4rem 0.875rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    z-index: 5;
}

    .order-lang-btn:hover {
        background: rgba(255,255,255,0.25);
        border-color: rgba(255,255,255,0.6);
    }

.order-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.75rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.2);
    margin: 0;
}

.order-hero-sub {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.5;
    margin: 0;
}

.wave-bottom {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    pointer-events: none;
    line-height: 0;
}

    .wave-bottom svg {
        display: block;
        width: 100%;
        height: 95px;
    }
/* ════════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════════════════════════════ */
.order-main {
    padding: 0 0 5rem;
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1rem;
}

/* ════════════════════════════════════════════════════════════════
   STEP CARDS
   ══════════════════════════════════════════════════════════════ */
.order-step {
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(193,34,57,0.07);
    box-shadow: 0 2px 16px rgba(0,0,0,0.04), 0 1px 4px rgba(193,34,57,0.04);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

    .order-step.step-hidden {
        display: none;
    }

    .order-step.step-entering {
        animation: stepEnter 0.45s ease forwards;
    }

@keyframes stepEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.step-num {
    font-family: var(--font-display);
    font-size: var(--small-font-size);
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--red);
    background: rgba(193,34,57,0.08);
    border-radius: 8px;
    padding: 0.25rem 0.625rem;
    flex-shrink: 0;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.25;
}

.step-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

/* ════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════════════════════════ */
.order-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.order-input, .order-select, .order-textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem; /* must be ≥16px to prevent iOS/Android auto-zoom on focus */
    font-weight: 500;
    color: #1a1a1a;
    /*background: #f8f9fb;*/
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.order-select {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-inline-end: 2.5rem;
    cursor: pointer;
}

.order-textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
    background-color: #ffffff;
}

    .order-input:focus, .order-select:focus, .order-textarea:focus {
        border-color: var(--red);
        box-shadow: 0 0 0 3px rgba(193,34,57,0.10);
        background: #fff;
    }

    .order-input::placeholder, .order-textarea::placeholder {
        color: #9ca3af;
    }

/* ════════════════════════════════════════════════════════════════
   ORDER TYPE TABS
   ══════════════════════════════════════════════════════════════ */
.mode-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.mode-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 0.5rem;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    font-family: var(--font-body);
}

    .mode-tab:hover {
        border-color: rgba(193,34,57,0.3);
        background: rgba(193,34,57,0.03);
        transform: translateY(-2px);
    }

    .mode-tab.active {
        border-color: var(--red);
        background: rgba(193,34,57,0.05);
        box-shadow: 0 4px 16px rgba(193,34,57,0.12);
    }

.mode-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.mode-label {
    font-family: var(--font-body);
    font-size: var(--small-font-size);
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 0.02em;
    text-align: center;
}

.mode-tab.active .mode-label {
    color: var(--red);
}

/* ════════════════════════════════════════════════════════════════
   CONTEXT PANELS
   ══════════════════════════════════════════════════════════════ */
.context-panels {
    min-height: 0;
}

.context-panel {
    animation: ctxFadeIn 0.3s ease;
    padding-top: 0.5rem;
}

@keyframes ctxFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ctx-hint {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.min-order-note {
    font-size: 1rem;
    color: var(--red);
    margin-top: 0.5rem;
    font-weight: 800;
}

/* Branch info card (Pickup) */
.branch-info-card {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: rgba(41,66,140,0.04);
    border: 1px solid rgba(41,66,140,0.12);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.875rem;
}

.branch-icon {
    font-size: 1.375rem;
    flex-shrink: 0;
}

.branch-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 0.2rem;
}

.branch-address {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #6b7280;
}

.branch-hours {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

.pickup-ready-badge {
    display: inline-block;
    background: rgba(34,197,94,0.1);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: var(--small-font-size);
    font-weight: 700;
    padding: 0.3rem 0.875rem;
}

.branch-unavailable-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(193,34,57,0.07);
    border: 1px solid rgba(193,34,57,0.15);
    border-radius: 8px;
    padding: var(--small-font-size) 1rem;
    font-size: 0.8125rem;
    color: var(--red);
    font-weight: 600;
    line-height: 1.45;
    margin-top: 0.5rem;
}

/* Car details row */
.car-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

/* ════════════════════════════════════════════════════════════════
   SCHEDULE
   ══════════════════════════════════════════════════════════════ */
.schedule-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.sched-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

    .sched-btn:hover {
        border-color: rgba(193,34,57,0.3);
        transform: translateY(-1px);
    }

    .sched-btn.active {
        border-color: var(--red);
        background: rgba(193,34,57,0.05);
        color: var(--red);
    }

.sched-icon {
    font-size: 1.125rem;
}

.time-picker-row {
    animation: ctxFadeIn 0.3s ease;
}

.time-picker-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--small-font-size);
}

/* ════════════════════════════════════════════════════════════════
   MENU
   ══════════════════════════════════════════════════════════════ */
.menu-cats {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-bottom: 1.25rem;
    scrollbar-width: none;
}

    .menu-cats::-webkit-scrollbar {
        display: none;
    }

.menu-cat-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.125rem;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.menu-cat-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    stroke-width: 2.15;
}

    .menu-cat-btn:hover {
        border-color: var(--red);
        color: var(--red);
    }

    .menu-cat-btn.active {
        background: var(--red);
        border-color: var(--red);
        color: #fff;
        box-shadow: 0 4px 16px rgba(193,34,57,0.25);
    }

.menu-grid {
    display: block;
}

.menu-cat-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}

.menu-cat-empty {
    grid-column: 1 / -1;
}

.product-card {
    background: #fafafa;
    border: 1.5px solid rgba(0,0,0,0.07);
    border-radius: 8px;
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.25s, transform 0.2s;
}

    .product-card:hover {
        box-shadow: 0 8px 28px rgba(193,34,57,0.09);
        transform: translateY(-3px);
    }

.product-emoji {
    font-size: 2.25rem;
    line-height: 1;
    text-align: center;
}

/* Square-driven product thumbnail; replaces the emoji when present. */
.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Thumbnails inside the Build-Your-Cup wizard. */
.variation-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 6px;
    background: #f4f4f6;
}

.modifier-image {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 4px;
    background: #f4f4f6;
}

.topping-chip .modifier-image {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    margin: 0 6px 0 0;
    display: inline-block;
    vertical-align: middle;
}

.topping-chip .topping-label {
    vertical-align: middle;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
}

.product-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: gray;
    line-height: 1.2;
    flex: 1;
}

.product-desc:empty {
    display: none;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--red);
}

.product-price-prefix {
    font-size: var(--small-font-size);
    font-weight: 600;
    color: #9ca3af;
}

.product-name-price-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.add-simple-btn, .build-cup-btn {
    margin-top: 0.25rem;
    font-size: 1.1rem;
    padding: 0.45rem 0.875rem;
    border-radius: 8px;
    width: 100%;
    justify-content: center;
}

/* ════════════════════════════════════════════════════════════════
   CART SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.order-cart-col {
    min-width: 0;
}

.cart-panel-inner {
    position: sticky;
    top: 1.5rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(193,34,57,0.07);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 1.5rem;
    max-height: calc(100dvh - 3rem);
    overflow-y: auto;
}

.cart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.cart-panel-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
}

.cart-item-count {
    background: var(--red);
    color: #fff;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    min-width: 1.5rem;
    text-align: center;
}

.cart-empty {
    text-align: center;
    padding: 2rem 1rem;
}

.cart-empty-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cart-empty-title {
    font-family: var(--font-display);
    font-weight: 800;
    color: #374151;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.cart-empty-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #9ca3af;
}

/* Cart item */
.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: var(--small-font-size);
    align-items: center;
    padding: var(--small-font-size) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

    .cart-item:last-child {
        border-bottom: none;
    }

.cart-item-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-note {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-note-input {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.35rem;
    resize: vertical;
    min-height: 56px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.55rem var(--small-font-size);
    background: #fff;
    font-size: 1rem;
}

.cart-item-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cart-item-qty-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.cart-item-price {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--red);
}

.cart-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.cart-remove-btn {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(193,34,57,0.07);
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
    line-height: 1;
    margin-inline-start: 0.25rem;
    opacity: 0.6;
}

    .cart-remove-btn:hover {
        background: rgba(193,34,57,0.18);
        opacity: 1;
    }

.qty-btn {
    width: 26px;
    height: 26px;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

    .qty-btn:hover {
        background: rgba(193,34,57,0.07);
        border-color: var(--red);
    }

.qty-num {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 800;
    min-width: 16px;
    text-align: center;
}

/* Totals */
.cart-totals {
    padding-top: 0.875rem;
    border-top: 1px solid rgba(0,0,0,0.07);
}

.totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6b7280;
    padding: 0.3rem 0;
}

.totals-discount {
    color: #16a34a;
}

.totals-total {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    color: #1a1a1a;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 0.375rem;
    padding-top: 0.5rem;
}

/* Cart CTA */
.cart-cta {
    margin-top: 1rem;
}

.cart-flash-note {
    position: fixed;
    right: max(1.25rem, calc((100vw - 1180px) / 2 + 1.5rem));
    top: 5.75rem;
    z-index: 120;
    max-width: min(340px, calc(100vw - 2rem));
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(193,34,57,0.16);
    box-shadow: 0 14px 38px rgba(193,34,57,0.18), 0 4px 12px rgba(0,0,0,0.08);
    color: #1a1a1a;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

    .cart-flash-note.show {
        opacity: 1;
        transform: translateY(0);
    }

/* ════════════════════════════════════════════════════════════════
   CHECKOUT STEP
   ══════════════════════════════════════════════════════════════ */
.checkout-block {
    background: #f8f9fb;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 1.125rem;
    margin-bottom: 1rem;
}

.checkout-block-label {
    font-family: var(--font-body);
    font-size: var(--small-font-size);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    /*color: #9ca3af;*/
    /*margin-bottom: 0.875rem;*/
}

.promo-row {
    display: flex;
    gap: 0.625rem;
}

/* Promo-code and points entry: comfortable touch targets (44 px) for the field and its button. */
.promo-row .order-input,
.promo-row .btn {
    min-height: 44px;
}

.promo-row .btn {
    flex-shrink: 0;
    padding-inline: 1.25rem;
}

.promo-input {
    flex: 1;
}

.promo-message {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.4rem var(--small-font-size);
    border-radius: 8px;
}

    .promo-message.success {
        background: rgba(34,197,94,0.1);
        color: #16a34a;
    }

    .promo-message.error {
        background: rgba(193,34,57,0.08);
        color: var(--red);
    }

/* Fees table */
.fees-table .totals-row {
    padding: 0.375rem 0;
}

/* Checkout cart items recap */
.checkout-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-cart-item {
    display: flex;
    align-items: flex-start;
    gap: var(--small-font-size);
    padding: var(--small-font-size) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

    .checkout-cart-item:last-child {
        border-bottom: none;
    }

.checkout-cart-emoji {
    font-size: 1.375rem;
    line-height: 1;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.checkout-cart-info {
    flex: 1;
    min-width: 0;
}

.checkout-cart-name {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-cart-note {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.1rem;
}

.checkout-cart-note-input {
    width: 100%;
    margin-top: 0.35rem;
    resize: vertical;
    min-height: 52px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.5rem 0.7rem;
    background: #fff;
    font-size: 1rem;
}

/* Edit controls — qty stepper + price, stacked on the right */
.checkout-cart-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

    .checkout-cart-controls .cart-qty-wrap {
        gap: 0.25rem;
    }

    .checkout-cart-controls .qty-btn {
        width: 26px;
        height: 26px;
        font-size: 1rem;
    }

    .checkout-cart-controls .qty-num {
        font-size: 0.875rem;
        min-width: 20px;
    }

.checkout-cart-price {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--red);
    flex-shrink: 0;
    white-space: nowrap;
}

/* Remove button in checkout (slightly smaller than sidebar) */
.checkout-remove-btn {
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Empty cart state inside checkout block */
.checkout-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 1.5rem 0;
    text-align: center;
}

.checkout-empty-icon {
    font-size: 2rem;
}

.checkout-empty-msg {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Payment methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

    .payment-method-card:hover {
        border-color: rgba(193,34,57,0.3);
        background: rgba(193,34,57,0.02);
    }

    .payment-method-card.selected {
        border-color: var(--red);
        background: rgba(193,34,57,0.04);
        box-shadow: 0 2px 12px rgba(193,34,57,0.1);
    }

    .payment-method-card input[type="radio"] {
        display: none;
    }

.payment-radio-visual {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    flex-shrink: 0;
    transition: border-color 0.2s;
    position: relative;
}

.payment-method-card.selected .payment-radio-visual {
    border-color: var(--red);
}

    .payment-method-card.selected .payment-radio-visual::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        background: var(--red);
        border-radius: 8px;
    }

.payment-label-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.payment-fee-note {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 600;
}

.payment-method-card.selected .payment-fee-note {
    color: rgba(193,34,57,0.65);
}

.payment-icon {
    font-size: 1.375rem;
    flex-shrink: 0;
}

.payment-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}

.payment-badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(41,66,140,0.08);
    color: var(--blue);
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
}

    .payment-badge.coming {
        background: rgba(0,0,0,0.05);
        color: #9ca3af;
    }

/* Contact card */
.contact-card {
    /*background: linear-gradient(135deg, rgba(255,255,255,0.94) 0%, rgba(255,187,248,0.22) 52%, rgba(231,252,147,0.18) 100%);*/
    border: 1px solid rgba(193,34,57,0.12);
    border-radius: 8px;
    padding: 1.125rem;
    margin-bottom: 1rem;
    box-shadow: 0 14px 34px rgba(193,34,57,0.08);
}

.phone-field-group {
    margin-bottom: 0.875rem;
}

.phone-input-row {
    display: grid;
    grid-template-columns: minmax(9.75rem, 0.5fr) minmax(13rem, 1fr) auto;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 0.875rem;
}

.country-code-select {
    min-height: 3rem;
    background-color: #fff;
    border-color: rgba(41,66,140,0.16);
    border-radius: 8px;
    font-weight: 800;
    color: var(--blue);
}

.phone-number-wrap {
    position: relative;
    min-width: 0;
}

    .phone-number-wrap svg {
        position: absolute;
        inset-inline-start: 0.875rem;
        top: 50%;
        z-index: 1;
        color: #8b95a5;
        transform: translateY(-50%);
        pointer-events: none;
    }

.phone-number-input {
    min-height: 3rem;
    background: #fff;
    border-color: rgba(41,66,140,0.16);
    border-radius: 8px;
    padding-inline-start: 2.75rem;
}

.otp-send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 3rem;
    border-radius: 8px;
    white-space: nowrap;
}

.contact-field .order-label,
.phone-field-group .order-label {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

    .contact-field .order-label span {
        color: #7b7280;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

.field-help {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0.4rem;
}

    .field-help.error {
        color: var(--red);
    }

    .field-help.success {
        color: #138a42;
    }

/* OTP verification */
.otp-card {
    background: #fff;
    border: 1px solid rgba(41,66,140,0.14);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 14px 32px rgba(41,66,140,0.08);
}

.otp-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.otp-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: rgba(41,66,140,0.1);
    color: var(--blue);
    flex-shrink: 0;
}

.otp-copy {
    color: #6b7280;
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.45;
    /*margin: 0.15rem 0 0;*/
}

.otp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: stretch;
}

.otp-input {
    min-height: 3rem;
    text-align: center;
    letter-spacing: 0.18em;
    font-weight: 800;
    border-radius: 8px;
    background: #fff;
}

.otp-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 3rem;
    border-radius: 8px;
}

.otp-debug {
    margin-top: 0.75rem;
    color: #48610c;
    background: rgba(231,252,147,0.35);
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
}

.contact-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.contact-emoji-wrap {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    flex-shrink: 0;
}

.contact-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    /*margin-bottom: 0.1rem;*/
}

.contact-card-sub {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.45;
}

.contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.place-order-block .btn.btn-locked {
    opacity: 0.48;
    cursor: not-allowed;
    filter: grayscale(0.18);
}

.order-toast-stack {
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 10000;
    display: grid;
    gap: 0.625rem;
    width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}

.order-toast {
    border-radius: 8px;
    box-shadow: 0 16px 45px rgba(0,0,0,0.18);
    color: #171717;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    transform: translateY(8px);
    opacity: 0;
    animation: toastIn 0.24s ease forwards;
}

    .order-toast.success {
        background: #effce9;
        border-color: rgba(48, 140, 66, 0.22);
        color: #155724;
    }

    .order-toast.error {
        background: #fff0f2;
        border-color: rgba(193,34,57,0.2);
        color: var(--red);
    }

    .order-toast.info {
        background: #f3f6ff;
        border-color: rgba(42, 85, 190, 0.18);
        color: #213b7a;
    }

@keyframes toastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-discount-note {
    font-size: 0.8rem;
    font-weight: 700;
    color: #16a34a;
    background: rgba(34,197,94,0.08);
    border-radius: 8px;
    padding: 0.4rem var(--small-font-size);
    margin-bottom: var(--small-font-size);
}
/* Place order block */
.place-order-block {
    margin-top: 1.25rem;
}

    /* The order button names what happens ("Place order, pay at cashier", "... nothing to pay"): a long label
       or enlarged text wraps inside the button instead of running out of it. */
    .place-order-block .btn {
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

.order-total-display {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--red);
    margin-bottom: 1rem;
}

/* Nothing to pay: points and/or a promo code cover the whole order, so no method is offered. */
.payment-nothing-due {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(34,197,94,0.35);
    border-radius: 8px;
    background: rgba(34,197,94,0.08);
}

    .payment-nothing-due .payment-label {
        color: #15803d;
    }

.payment-nothing-due-note {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
    color: #166534;
    overflow-wrap: anywhere;
}

/* No method the site can take is offered (website cash switched off, CLIQ not set up). */
.payment-none {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(217,119,6,0.4);
    border-radius: 8px;
    background: rgba(245,158,11,0.1);
}

    .payment-none .payment-label {
        color: #92400e;
    }

.payment-none-note {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
    color: #78350f;
    overflow-wrap: anywhere;
}

/* Pay at cashier: note under the payment cards, and the optional sign-in for a guest under Place order. */
.guest-cashier-note {
    margin: 0.625rem 0 0;
}

.guest-sign-in-link {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: none;
    border: 0;
    color: var(--blue);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.checkout-error {
    margin-top: var(--small-font-size);
    background: rgba(193,34,57,0.07);
    color: var(--red);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
}

/* ── Prevent horizontal overflow — use clip so it doesn't break position:sticky ── */
.order-main {
    overflow-x: clip;
}

.order-layout {
    overflow-x: clip;
}

.order-steps-col {
    overflow-x: clip;
    min-width: 0;
}
/* Note: do NOT put overflow:hidden on .order-step itself — it clips the category scroll bar */

/* btn-blue */
.btn-blue {
    background: var(--blue);
    color: #fff;
}

    .btn-blue:hover {
        background: #1f3270;
    }

/* ── Service fee row in totals ── */
.totals-service-fee {
    color: #6b7280;
}

.service-fee-hint {
    font-size: 0.65rem;
    color: #9ca3af;
    cursor: help;
}

/* ── Map picker ── */
.map-picker-wrap {
    margin-top: 0.875rem;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.map-picker-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #374151;
    padding: 0.625rem 0.875rem;
    background: #f8f9fb;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.map-picker-container {
    height: 220px;
    width: 100%;
    background: #e5e7eb;
}

.map-coords-display {
    padding: 0.4rem 0.875rem;
    font-size: var(--small-font-size);
    font-weight: 600;
    color: var(--blue);
    background: rgba(41,66,140,0.04);
    border-top: 1px solid rgba(41,66,140,0.08);
}

/* ── Contact location row ── */
.contact-location-row {
    margin-top: 0.625rem;
}

    .contact-location-row .order-label {
        margin-bottom: 0.3rem;
    }

/* Disabled state for order page buttons */
.order-step .btn:disabled,
.order-step button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   ORDER NAV LINKS (order page navbar)
   ══════════════════════════════════════════════════════════════ */
.order-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.order-nav-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    padding: 0.35rem var(--small-font-size);
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

    .order-nav-link:hover {
        color: #1a1a1a;
        background: rgba(0,0,0,0.04);
    }

.order-nav-active {
    background: var(--red) !important;
    color: #fff !important;
    font-weight: 800;
    cursor: default;
}

/* ════════════════════════════════════════════════════════════════
   MOBILE CART BOTTOM BAR
   ══════════════════════════════════════════════════════════════ */
.cart-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: #fff;
    border-top: 1px solid rgba(255,187,248,0.4);
    box-shadow: 0 -4px 24px rgba(193,34,57,0.1);
    padding: var(--small-font-size) 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
}

/* .btn-outline: the promo-code and points buttons on the checkout page (they had no style of their own and
   rendered as bare text). */
.btn-outline,
.btn-outline-red {
    background: #fff;
    color: var(--red);
    border: 2px solid var(--red);
}

    .btn-outline:hover,
    .btn-outline-red:hover {
        background: rgba(193,34,57,0.06);
    }

.bottom-bar-summary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 0.5rem;
}

.bottom-bar-left {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    text-align: left;
}

.bottom-bar-count {
    font-size: var(--small-font-size);
    font-weight: 600;
    color: #9ca3af;
}

.bottom-bar-total {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--red);
}

.bottom-bar-chevron {
    font-size: 0.6rem;
    color: #9ca3af;
    transition: transform 0.25s;
}

.cart-drawer-open .bottom-bar-chevron {
    transform: rotate(180deg);
}

/* ════════════════════════════════════════════════════════════════
   MOBILE CART DRAWER
   ══════════════════════════════════════════════════════════════ */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
}

.cart-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
}

.cart-drawer-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: drawerSlideUp 0.35s cubic-bezier(0.34, 1.36, 0.64, 1);
    overflow: hidden;
}

@keyframes drawerSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem var(--small-font-size);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
}

.cart-drawer-title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
}

.cart-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}

    .cart-drawer-close:hover {
        background: rgba(193,34,57,0.1);
        color: var(--red);
    }

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1.25rem;
}

.cart-drawer-totals {
    padding: var(--small-font-size) 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
}

.cart-drawer-footer {
    padding: 0.875rem 1.25rem 1.25rem;
    flex-shrink: 0;
}

[dir="rtl"] .cart-drawer-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .bottom-bar-left {
    text-align: right;
}

[dir="rtl"] .cart-bottom-bar {
    flex-direction: row-reverse;
}

/* ════════════════════════════════════════════════════════════════
   BUILD-YOUR-CUP MODAL
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: overlayFade 0.25s ease;
}

@keyframes overlayFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}

    .modal-close-btn:hover {
        background: rgba(193,34,57,0.1);
        color: var(--red);
    }

/* Step dots */
.modal-step-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background: #e5e7eb;
    transition: background 0.2s, width 0.2s;
}

    .modal-dot.active {
        background: var(--red);
        width: 24px;
        border-radius: 8px;
    }

/* Modal body */
.modal-body {
    flex: 1;
}

.cup-step-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-align: center;
}

/* Size options */
.size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--small-font-size);
    margin-bottom: 0.5rem;
}

.size-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1.25rem 0.5rem;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

    .size-option:hover {
        border-color: var(--red);
        transform: translateY(-2px);
    }

    .size-option.selected {
        border-color: var(--red);
        background: rgba(193,34,57,0.05);
        box-shadow: 0 4px 16px rgba(193,34,57,0.15);
    }

.size-cup {
    font-size: 2rem;
}

.size-label {
    font-size: 0.875rem;
    font-weight: 800;
    color: #1a1a1a;
}

.size-ml {
    font-size: 0.7rem;
    color: #9ca3af;
}

.size-price {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--red);
}

/* Flavour options */
.flavour-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--small-font-size);
}

.flavour-option {
    display: flex;
    align-items: center;
    gap: var(--small-font-size);
    padding: 1rem;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    text-align: left;
}

    .flavour-option:hover {
        border-color: var(--red);
    }

    .flavour-option.selected {
        border-color: var(--red);
        background: rgba(193,34,57,0.05);
    }

.flavour-emoji {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.flavour-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Toppings */
.toppings-note {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1rem;
    background: rgba(231,252,147,0.3);
    border-radius: 8px;
    padding: 0.5rem var(--small-font-size);
}

.toppings-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    margin-top: 0.875rem;
}

.toppings-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.topping-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

    .topping-chip:hover {
        border-color: var(--red);
    }

    .topping-chip.selected {
        border-color: var(--red);
        background: var(--red);
        color: #fff;
    }

    .topping-chip.free-selected {
        background: #16a34a;
        border-color: #16a34a;
        color: #fff;
    }

.topping-chip-price {
    font-size: 0.68rem;
    opacity: 0.75;
    margin-inline-start: 0.1rem;
}

.topping-free-badge {
    font-size: 0.6rem;
    background: rgba(34,197,94,0.15);
    color: #16a34a;
    border-radius: 8px;
    padding: 0.1rem 0.35rem;
    font-weight: 800;
}

/* ── Mix shares ─────────────────────────────────────────────────
   One card per prepared component, with a row of share buttons
   (1/4, 1/3, 1/2, whole). The chosen share is highlighted; tapping
   it again clears the component. */
.mix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.75rem;
}

.mix-option {
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.75rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .mix-option.is-chosen {
        border-color: var(--red);
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }

.mix-option-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mix-option-name {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.875rem;
    color: #1f2937;
}

.mix-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.mix-step--auto-flavour .mix-share-row {
    display: none;
}

.mix-step--auto-flavour .mix-option.is-auto-flavour-option {
    cursor: pointer;
    transition: border-color 160ms linear,
                background-color 160ms linear,
                box-shadow 160ms linear,
                transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

@media (hover: hover) and (pointer: fine) {
    .mix-step--auto-flavour .mix-option.is-auto-flavour-option:hover {
        border-color: color-mix(in srgb, var(--red) 48%, #e5d8d0);
        transform: translateY(-2px);
    }
}

.mix-step--auto-flavour .mix-option.is-auto-flavour-option:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--red) 38%, transparent);
    outline-offset: 2px;
}

.mix-share-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 3.75rem;
    min-height: 44px;
    padding: 0.35rem 0.5rem;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.8125rem;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

    .mix-share-btn:hover {
        border-color: var(--red);
    }

    .mix-share-btn.selected {
        border-color: var(--red);
        background: var(--red);
        color: #fff;
    }

.mix-share-price {
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0.8;
}

/* Modal price bar */
.modal-price-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.modal-running-price {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--red);
}

.modal-footer {
    display: flex;
    gap: var(--small-font-size);
    padding-top: 0.875rem;
}

.cup-nav-btn {
    flex: 1;
    justify-content: center;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    min-height: 52px;
}

/* Ghost btn dark bg fix */
.btn-ghost {
    /*background: rgba(0,0,0,0.05);*/
    color: #4b5563;
    border: 1.5px solid rgba(0,0,0,0.1);
    backdrop-filter: none;
}

    .btn-ghost:hover {
        background: rgba(0,0,0,0.09);
    }

/* ════════════════════════════════════════════════════════════════
   SUCCESS OVERLAY
   ══════════════════════════════════════════════════════════════ */
.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(255,255,255,0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1.5rem 3rem;
    animation: overlayFade 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.success-box {
    max-width: 420px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: auto; /* vertically centers when content fits */
}

.success-anim {
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-check-circle {
    width: 72px;
    height: 72px;
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
}

.success-order-num {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(193,34,57,0.07);
    border: 1px solid rgba(193,34,57,0.15);
    border-radius: 8px;
    padding: 0.4rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--red);
}

.order-num-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
}

.success-message {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

/* Guest order: the number the customer says at the cashier, readable from arm's length. */
.success-cashier {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(193,34,57,0.07);
    border: 1px solid rgba(193,34,57,0.15);
    color: var(--red);
}

.success-cashier-label {
    font-size: 0.875rem;
    font-weight: 700;
}

.success-cashier-num {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 11vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

/* Guests: the sign-in offer spans the row and "new order" sits under it. */
.success-actions.is-guest {
    grid-template-columns: 1fr;
}
/* ── WhatsApp button ── */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    width: 100%;
}

    .btn-whatsapp:hover {
        background: #1ebe5d;
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(37,211,102,0.4);
    }

.wa-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ── Success recap ── */
.success-recap {
    width: 100%;
    background: #f8f9fb;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
}

[dir="rtl"] .success-recap {
    text-align: right;
}

.recap-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: var(--small-font-size);
}

.recap-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #6b7280;
    gap: 0.5rem;
}

    .recap-meta-row strong {
        color: #1a1a1a;
        font-weight: 700;
    }

.recap-divider {
    height: 1px;
    background: rgba(0,0,0,0.07);
    margin: 0.625rem 0;
}

.recap-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.recap-items {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.recap-item {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #374151;
    flex-wrap: wrap;
}

.recap-item-emoji {
    flex-shrink: 0;
    font-size: 1rem;
}

.recap-item-name {
    font-family: var(--font-display);
    flex: 1;
    min-width: 0;
}

    .recap-item-name em {
        font-style: normal;
        color: #9ca3af;
    }

.recap-item-note {
    color: #9ca3af;
    font-size: var(--small-font-size);
}

.recap-item-qty {
    color: #9ca3af;
    font-size: var(--small-font-size);
    flex-shrink: 0;
}

.recap-item-price {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--red);
    flex-shrink: 0;
}

.recap-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    color: #1a1a1a;
    border-top: 1px solid rgba(0,0,0,0.07);
    margin-top: 0.625rem;
    padding-top: 0.625rem;
}

.recap-order-note {
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
    padding-top: 0.375rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.feedback-section {
    width: 100%;
}

.feedback-q {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.875rem;
}

.feedback-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--small-font-size);
}

.feedback-btn {
    font-size: 2rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    line-height: 1;
}

    .feedback-btn:hover {
        transform: scale(1.15);
        border-color: var(--pink);
    }

.feedback-thanks {
    font-size: 0.875rem;
    color: #16a34a;
    font-weight: 700;
    animation: ctxFadeIn 0.3s ease;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.order-footer {
    background: #fff;
    border-top: 1px solid rgba(255,187,248,0.3);
    padding: 1.25rem 1.5rem;
}

.order-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 0.12em;
}

.order-footer-copy {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #9ca3af;
}

.order-footer-back {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    transition: opacity 0.2s;
}

    .order-footer-back:hover {
        opacity: 0.7;
    }

/* ════════════════════════════════════════════════════════════════
   RTL SUPPORT
   ══════════════════════════════════════════════════════════════ */
[dir="rtl"] .order-select {
    background-position: left 0.875rem center;
}

[dir="rtl"] .step-footer {
    justify-content: flex-start;
}

[dir="rtl"] input[type="tel" i] {
    direction: ltr;
    text-align: right;
}

[dir="rtl"] .phone-number-input {
    padding-inline-start: 1rem;
    padding-inline-end: 2.75rem;
}

[dir="rtl"] .phone-number-wrap svg {
    inset-inline-start: auto;
    inset-inline-end: 0.875rem;
}

[dir="rtl"] .checkout-cart-controls {
    align-items: center;
}

[dir="rtl"] .cart-item-info,
[dir="rtl"] .checkout-cart-info,
[dir="rtl"] .payment-label-wrap {
    text-align: right;
}


[dir="rtl"] .bottom-bar-left {
    align-items: flex-end;
}

[dir="rtl"] .cart-bottom-bar {
    flex-direction: row-reverse;
}

[dir="rtl"] .mode-tabs, [dir="rtl"] .menu-cats {
    direction: rtl;
}

[dir="rtl"] .car-details-row {
    direction: rtl;
}

[dir="rtl"] .flavour-option {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .navbar-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .order-nav-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .cup-nav-btn {
    flex: 1;
    justify-content: center;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    min-height: 52px;
    direction: ltr;
}

[dir="rtl"] .contact-fields {
    direction: rtl;
}

[dir="rtl"] .contact-location-row {
    text-align: right;
}

[dir="rtl"] .feedback-btns {
    flex-direction: row-reverse;
}

[dir="rtl"] .recap-meta-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .recap-total {
    flex-direction: row-reverse;
}

[dir="rtl"] .recap-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* ════════════════════════════════════════════════════════════════
   TABLET — modal becomes centered dialog
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
        padding: 1.5rem;
    }

    .modal-box {
        border-radius: 8px;
        max-height: 85vh;
    }

    .order-nav-label {
        display: block;
    }

    .navbar-burger {
        display: none;
    }
}

/* ════════════════════════════════════════════════════════════════
   TABLET + MOBILE — hide desktop cart, single-column layout
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-cart-col {
        display: none;
    }

    .order-main {
        padding-bottom: 6rem;
    }
}

/* ════════════════════════════════════════════════════════════════
   DESKTOP — hide mobile cart bar
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    html,
    body {
        overflow-x: visible;
    }

    .order-main,
    .order-layout {
        overflow-x: visible;
    }

    .order-layout {
        align-items: stretch;
    }

    .order-cart-col {
        align-self: stretch;
        min-height: 100%;
    }

    .cart-panel-inner {
        top: 5rem;
    }

    .cart-bottom-bar {
        display: none !important;
    }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE — ≤ 767px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    [dir="rtl"] .order-lang-btn {
        right: 40%
    }

    .cart-flash-note {
        top: auto;
        right: 1rem;
        left: 1rem;
        bottom: 5.5rem;
        max-width: none;
        text-align: center;
        transform: translateY(10px);
    }

        .cart-flash-note.show {
            transform: translateY(0);
        }

    .wave-bottom {
        bottom: -40px;
    }

        .wave-bottom svg {
            display: block;
            width: 100%;
            height: 95px;
        }
    /* ── Navbar ── */
    .order-nav-center {
        display: none;
    }
    /* hide nav links; just logo + lang */
    .navbar-inner {
        padding: 0 1rem;
    }

    /* ── Hero ── */
    .order-hero {
        padding: 1.5rem 1.25rem 2rem;
    }

    .order-hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .order-hero-sub {
        font-size: 0.875rem;
    }

    /* ── Layout ── */
    .order-layout {
        padding: 1rem 0.875rem 1rem;
        gap: 0.875rem;
    }

    .order-step {
        padding: 1.125rem;
        border-radius: 8px;
        margin-bottom: 0.875rem;
    }

    .step-title {
        font-size: 1rem;
    }

    /* ── Step footer button — full width on mobile ── */
    .step-footer {
        flex-direction: column;
    }

        .step-footer .btn {
            width: 100%;
            text-align: center;
            justify-content: center;
        }

    /* ── Order type tabs — 2×2 grid ── */
    .mode-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .mode-tab {
        padding: 1rem 0.5rem;
        min-height: 72px; /* generous tap target */
    }

    .mode-icon {
        font-size: 1.625rem;
    }

    /* ── Car details — stack ── */
    .car-details-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* ── Schedule ── */
    .schedule-toggle {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .sched-btn {
        justify-content: flex-start;
        padding: 0.875rem 1rem;
    }

    .time-picker-fields {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* ── Menu ── */
    .menu-cats {
        gap: 0.375rem;
    }

    .menu-cat-btn {
        padding: 0.45rem 0.875rem;
        font-size: var(--small-font-size);
    }

    .menu-cat-section {
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
    }

    .product-card {
        padding: 0.875rem var(--small-font-size);
    }

    .product-emoji {
        font-size: 1.875rem;
    }

    .product-name {
        font-size: 0.8125rem;
    }

    .product-desc {
        font-size: 0.6875rem;
    }

    .add-simple-btn, .build-cup-btn {
        font-size: var(--small-font-size);
        padding: 0.45rem 0.5rem;
    }

    /* ── Toppings — larger touch target ── */
    .topping-chip {
        min-height: 40px;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .toppings-grid {
        gap: 0.5rem;
    }

    .map-picker-container {
        height: 190px;
    }

    /* ── Checkout ── */
    .checkout-block {
        padding: 0.875rem;
        border-radius: 8px;
    }

    .promo-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .promo-input {
        width: 100%;
    }

    .promo-row .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-fields {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .phone-input-row {
        grid-template-columns: minmax(8.5rem, 0.62fr) minmax(0, 1fr);
    }

    .otp-send-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .otp-row {
        grid-template-columns: 1fr;
    }

        .otp-row .btn {
            width: 100%;
        }

    .contact-card {
        padding: 1rem;
    }

    .contact-card-inner {
        gap: 0.625rem;
    }

    .payment-method-card {
        padding: var(--small-font-size) 0.875rem;
    }

    .payment-label {
        font-size: 0.8125rem;
    }

    .order-total-display {
        font-size: 1.5rem;
    }

    .place-order-block .btn {
        font-size: 1rem;
    }

    /* ── Bottom bar — iOS safe-area ── */
    .cart-bottom-bar {
        padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px));
    }

    /* ── Cart drawer ── */
    .cart-drawer-footer {
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    /* ── Modal / cup builder ── */
    .modal-box {
        padding: 1.25rem;
    }

    .size-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .size-option {
        padding: 0.625rem 0.5rem;
    }

    .size-option-name {
        font-size: 0.6875rem;
    }

    .flavour-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .topping-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* ── Success overlay ── */
    .success-box {
        padding: 2rem 1.25rem 2.5rem;
        border-radius: 8px;
        width: calc(100% - 2rem);
    }

    .success-title {
        font-size: 1.5rem;
    }

    /* ── Footer ── */
    .order-footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* RTL mobile fixes */
@media (max-width: 767px) {
    [dir="rtl"] .order-footer-inner {
        flex-direction: column;
    }

    [dir="rtl"] .step-footer {
        justify-content: center;
    }

    [dir="rtl"] .bottom-bar-left {
        text-align: right;
    }
}

/* ════════════════════════════════════════════════════════════════
   REDESIGNED NAVBAR
   ══════════════════════════════════════════════════════════════ */
.order-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #640f1e;
    background-image: linear-gradient(160deg, rgba(193,34,57,0.78) 0%, rgba(100,15,30,0.65) 100%), url('../images/pattern-yogurt.png');
    background-size: cover;
    background-position: center;
    border-bottom: none;
}

.order-page {
    padding-top: 3.5rem;
}

.navbar-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 1.25rem;
    height: 3.5rem;
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.nav-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    justify-self: start;
}

    .nav-lang-btn:hover {
        background: rgba(255,255,255,0.25);
        border-color: rgba(255,255,255,0.45);
        transform: translateY(-1px);
    }

.navbar-logo-link {
    justify-self: center;
    display: flex;
    align-items: center;
}

.navbar-logo-img {
    height: 4rem;
    width: auto;
    display: block;
}

.nav-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-account-btn,
.nav-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

    .nav-account-btn:hover,
    .nav-cart-btn:hover {
        background: rgba(255,255,255,0.25);
        color: #fff;
        border-color: rgba(255,255,255,0.45);
        transform: translateY(-1px);
    }

.nav-cart-count {
    position: absolute;
    top: -0.3rem;
    right: -0.3rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 8px;
    background: #fff;
    color: var(--red);
    border: 1px solid rgba(100,15,30,0.2);
    font-size: 0.6875rem;
    font-weight: 900;
    line-height: 1.05rem;
    text-align: center;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.16);
}

/* Mode strip — second row shown after mode is confirmed */
.navbar-mode-strip {
    display: flex;
    justify-content: center;
    padding: 0.25rem 1.25rem 0.5rem;
    background: inherit;
}

.order-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.875rem 0.3rem 0.6rem;
    border-radius: 8px;
    background: rgba(193,34,57,0.07);
    border: 1.5px solid rgba(193,34,57,0.18);
    color: var(--red);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

    .order-mode-badge:hover {
        background: rgba(193,34,57,0.13);
        border-color: rgba(193,34,57,0.35);
    }

/* ════════════════════════════════════════════════════════════════
   BOTTOM SHEET — shared base: mode sheet, cart drawer, profile sheet
   ══════════════════════════════════════════════════════════════ */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: overlayFade 0.2s ease;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 120;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 90dvh;
    overflow-y: auto;
    animation: drawerSlideUp 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
    overscroll-behavior: contain;
}

.sheet-handle {
    width: 2.5rem;
    height: 4px;
    border-radius: 8px;
    background: rgba(0,0,0,0.15);
    margin: 0.75rem auto 0;
    flex-shrink: 0;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.625rem;
    flex-shrink: 0;
}

.sheet-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
}

.sheet-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
    flex-shrink: 0;
}

    .sheet-close-btn:hover {
        background: rgba(193,34,57,0.1);
        color: var(--red);
    }

.sheet-footer {
    padding: 0.875rem 1.25rem 1.5rem;
    flex-shrink: 0;
    border-top: 1px solid rgba(0,0,0,0.07);
}

/* Center and cap sheet width on wider viewports */
@media (min-width: 600px) {
    .bottom-sheet {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(480px, 100vw);
    }
}

/* ════════════════════════════════════════════════════════════════
   MODE SHEET (extends .bottom-sheet)
   ══════════════════════════════════════════════════════════════ */
.mode-sheet {
    max-height: 95dvh;
}

    .mode-sheet .mode-tabs {
        padding: 0 1.25rem;
        margin-bottom: 0.875rem;
    }

    .mode-sheet .context-panels {
        padding: 0 1.25rem;
        flex: 1;
        overflow-y: auto;
    }

/* ════════════════════════════════════════════════════════════════
   CART DRAWER (bottom sheet — overrides old full-screen definition)
   ══════════════════════════════════════════════════════════════ */
.cart-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 120;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 90dvh;
    animation: drawerSlideUp 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
    overscroll-behavior: contain;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
}

.drawer-section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    padding-top: 0.875rem;
}

.drawer-schedule-section {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 0.875rem;
}

.drawer-promo-section {
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cart-drawer-totals {
    padding: var(--small-font-size) 0;
}

@media (min-width: 600px) {
    .cart-drawer {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(480px, 100vw);
    }
}

/* ════════════════════════════════════════════════════════════════
   ACCOUNT SCREEN — full-screen profile (#profileSheet)
   A hub page plus drill-in pages ([data-profile-page]); auth.js switches them.
   ══════════════════════════════════════════════════════════════ */
.account-screen {
    --acct-bg: #f7f4ef;
    --acct-card: #fff;
    --acct-ink: #261b1d;
    --acct-muted: #76686a;
    --acct-line: rgba(38, 27, 29, 0.08);
    --acct-shadow: 0 1px 2px rgba(38, 27, 29, 0.05), 0 0 0 1px rgba(38, 27, 29, 0.05);
    position: fixed;
    inset: 0;
    z-index: 140;
    display: flex;
    flex-direction: column;
    background: var(--acct-bg);
    color: var(--acct-ink);
    font-family: var(--font-body);
    animation: accountScreenIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

    .account-screen[hidden] {
        display: none;
    }

@keyframes accountScreenIn {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.account-topbar {
    display: grid;
    grid-template-columns: 2.625rem minmax(0, 1fr) 2.625rem;
    align-items: center;
    gap: 0.5rem;
    padding: calc(env(safe-area-inset-top, 0px) + 0.625rem) 1rem 0.625rem;
    background: rgba(247, 244, 239, 0.94);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--acct-line);
    flex-shrink: 0;
}

.account-topbar-title {
    grid-column: 2;
    margin: 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--acct-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-icon-btn {
    display: grid;
    place-items: center;
    width: 2.625rem;
    height: 2.625rem;
    border: none;
    border-radius: 8px;
    background: var(--acct-card);
    box-shadow: var(--acct-shadow);
    color: var(--acct-ink);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

    .account-icon-btn:hover {
        background: #fff5f6;
        color: var(--red);
    }

    .account-icon-btn:active {
        transform: scale(0.94);
    }

.account-back-btn {
    grid-column: 1;
}

#profileSheetClose {
    grid-column: 3;
}

[dir="rtl"] .account-back-btn svg,
[dir="rtl"] .account-chevron {
    transform: scaleX(-1);
}

.account-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.account-container {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 1.125rem 1rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

.profile-page {
    animation: accountPageIn 0.24s ease;
}

    .profile-page[hidden] {
        display: none;
    }

@keyframes accountPageIn {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: none; }
}

[dir="rtl"] .profile-page {
    animation-name: accountPageInRtl;
}

@keyframes accountPageInRtl {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: none; }
}

.account-card {
    background: var(--acct-card);
    border-radius: 8px;
    box-shadow: var(--acct-shadow);
    padding: 1.125rem;
}

.account-page-cta {
    margin-top: 1rem;
    justify-content: center;
}

/* Status toast (saves, errors) — floats above the page so it is seen from any scroll position */
.profile-status {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.account-screen .profile-status {
    position: fixed;
    inset-inline: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    max-width: 32rem;
    margin: 0 auto;
    box-shadow: 0 12px 32px rgba(38, 27, 29, 0.18);
    animation: accountToastIn 0.25s ease;
}

@keyframes accountToastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.profile-status.info {
    color: var(--acct-ink, #261b1d);
    background: #fff;
    border: 1px solid rgba(38, 27, 29, 0.1);
}

.profile-status.success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.profile-status.error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

/* ── Guest (signed out) ─────────────────────────────────────── */
.profile-guest-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 0.25rem 0;
    text-align: center;
}

.profile-guest-badge {
    display: grid;
    place-items: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 8px;
    background: radial-gradient(circle at 30% 25%, #ffd9fb 0%, var(--pink) 60%, #f59ae9 100%);
    color: var(--red);
    box-shadow: 0 12px 30px rgba(193, 34, 57, 0.18);
}

.profile-guest-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-guest-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--acct-ink, #261b1d);
}

.profile-guest-sub {
    font-size: 1rem;
    color: var(--acct-muted, #76686a);
}

.profile-guest-perks {
    list-style: none;
    margin: 0;
    padding: 0.5rem 1rem;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--acct-shadow);
    text-align: start;
}

    .profile-guest-perks li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.7rem 0;
        font-size: 1rem;
        font-weight: 600;
    }

        .profile-guest-perks li + li {
            border-top: 1px solid var(--acct-line);
        }

.perk-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: rgba(193, 34, 57, 0.08);
    color: var(--red);
}

.profile-guest-inner > .btn {
    justify-content: center;
}

.profile-authed-panel[hidden],
.profile-guest-panel[hidden] {
    display: none;
}

/* ── Hub: hero, points strip, menu ──────────────────────────── */
.account-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #d02a43 0%, var(--red) 45%, #8e1529 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(193, 34, 57, 0.22);
}

    .account-hero::before,
    .account-hero::after {
        content: "";
        position: absolute;
        border-radius: 8px;
        pointer-events: none;
    }

    .account-hero::before {
        width: 11rem;
        height: 11rem;
        inset-inline-end: -3.5rem;
        top: -4.5rem;
        background: rgba(255, 187, 248, 0.22);
    }

    .account-hero::after {
        width: 6rem;
        height: 6rem;
        inset-inline-end: 2.5rem;
        bottom: -3.5rem;
        background: rgba(231, 252, 147, 0.18);
    }

.account-avatar {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    border-radius: 8px;
    background: var(--pink);
    border: 3px solid rgba(255, 255, 255, 0.45);
    color: var(--red);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.account-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.account-hero-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.account-hero-phone {
    margin-top: 0.2rem;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.88;
}

.account-points-strip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--yellow) 0%, #f3fbd0 100%);
    color: #2f3a06;
    font-family: var(--font-body);
    text-align: start;
    cursor: pointer;
    box-shadow: var(--acct-shadow);
}

    .account-points-strip[hidden] {
        display: none;
    }

.account-points-strip-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
}

.account-points-strip-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
    font-size: 0.95rem;
}

    .account-points-strip-copy strong {
        font-family: var(--font-display);
        font-size: 1.15rem;
        font-weight: 900;
    }

.account-menu {
    margin-top: 1rem;
    background: var(--acct-card);
    border-radius: 8px;
    box-shadow: var(--acct-shadow);
    overflow: hidden;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    min-height: 4.25rem;
    padding: 0.8rem 1rem;
    border: none;
    background: none;
    color: var(--acct-ink);
    font-family: var(--font-body);
    text-align: start;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .account-menu-item[hidden] {
        display: none;
    }

    .account-menu-item + .account-menu-item {
        border-top: 1px solid var(--acct-line);
    }

    .account-menu-item:hover {
        background: #fcfaf7;
    }

    .account-menu-item:active {
        background: #f5f0e8;
    }

.account-menu-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 8px;
}

.tone-red { background: rgba(193, 34, 57, 0.1); color: var(--red); }
.tone-blue { background: rgba(41, 66, 140, 0.1); color: var(--blue); }
.tone-green { background: rgba(71, 106, 82, 0.13); color: #476a52; }
.tone-pink { background: rgba(255, 187, 248, 0.5); color: #9d1d86; }
.tone-amber { background: rgba(253, 225, 168, 0.8); color: #8a5a00; }

.account-menu-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

    .account-menu-copy strong {
        font-size: 1.1rem;
        font-weight: 800;
        line-height: 1.25;
    }

    .account-menu-copy span {
        font-size: 0.9rem;
        color: var(--acct-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.account-chevron {
    flex-shrink: 0;
    color: #b8adaf;
}

.account-signout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--acct-card);
    box-shadow: var(--acct-shadow);
    color: var(--red);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
}

    .account-signout-btn:hover {
        background: #fff5f6;
    }

/* ── Forms (personal info, addresses) ───────────────────────── */
.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

    .profile-field + .profile-field {
        margin-top: 0.95rem;
    }

.profile-field-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--acct-ink, #261b1d);
}

.profile-field-hint {
    font-size: 0.82rem;
    color: var(--acct-muted, #76686a);
}

.account-readonly {
    padding: 0.8rem 0.95rem;
    border-radius: 8px;
    background: #f5f1ea;
    color: #4b3f41;
    font-weight: 700;
}

.account-screen .profile-section {
    padding: 0;
    border: none;
    border-radius: 0;
}

.account-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 2.25rem 1rem;
    border-radius: 8px;
    background: var(--acct-card, #fff);
    box-shadow: var(--acct-shadow);
    color: var(--acct-muted, #76686a);
    font-size: 1rem;
    text-align: center;
}

    .account-empty[hidden] {
        display: none;
    }

.account-empty-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 8px;
    background: #f5f1ea;
    color: #a4979a;
}

.profile-address-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.profile-address-item {
    display: flex;
    align-items: stretch;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #f8f9fb;
    font-family: var(--font-body);
    font-size: 0.8125rem;
}

    .profile-address-item.is-default {
        border-color: rgba(193,34,57,0.25);
        background: rgba(193,34,57,0.03);
    }

.profile-address-info {
    flex: 0 0 75%;
    max-width: 75%;
    min-width: 0;
    padding-right: 0.5rem;
    box-sizing: border-box;
}

.profile-address-label {
    font-weight: 800;
    color: #1a1a1a;
    overflow-wrap: break-word;
    word-break: break-word;
}

.profile-address-area {
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.1rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.profile-address-detail {
    color: #6b7280;
    font-size: 0.75rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.profile-address-default-badge {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(193,34,57,0.08);
    border-radius: 8px;
    padding: 0.15rem 0.45rem;
    flex-shrink: 0;
}

.profile-address-actions {
    flex: 0 0 25%;
    max-width: 25%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.25rem;
}

.btn-delete-addr {
    color: #c12239 !important;
}

.profile-add-address-btn {
    width: 100%;
    justify-content: center;
    gap: 0.4rem;
}

.new-address-form {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.new-address-actions {
    display: flex;
    gap: 0.625rem;
}

.profile-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-order-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1.5px solid rgba(0,0,0,0.07);
    border-radius: 8px;
    background: #f8f9fb;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.profile-order-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    flex: 1 1 16rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: start;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    cursor: pointer;
}

    .profile-order-item:has(.profile-order-summary:hover) {
        border-color: rgba(0,0,0,0.16);
        background: #f1f3f7;
    }

.profile-order-again {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-inline-start: auto;
    white-space: nowrap;
}

.profile-order-info {
    flex: 1;
    min-width: 0;
}

.profile-order-num {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 0.8rem;
}

.profile-order-meta {
    color: #6b7280;
    font-size: 0.75rem;
}

.profile-order-total {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--red);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.profile-order-status {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 0.15rem 0.5rem;
    background: rgba(0,0,0,0.05);
    color: #6b7280;
}

    .profile-order-status.status-received {
        background: rgba(41,66,140,0.1);
        color: var(--blue);
    }

    .profile-order-status.status-preparing,
    .profile-order-status.status-inprogress {
        background: rgba(234,179,8,0.12);
        color: #92400e;
    }

    .profile-order-status.status-ready {
        background: rgba(34,197,94,0.12);
        color: #15803d;
    }

    .profile-order-status.status-on-the-way {
        background: rgba(59,130,246,0.12);
        color: #1d4ed8;
    }

    .profile-order-status.status-completed {
        background: rgba(0,0,0,0.06);
        color: #4b5563;
    }

    .profile-order-status.status-cancelled {
        background: rgba(193,34,57,0.08);
        color: var(--red);
    }

    .profile-order-status.status-failed {
        background: rgba(193,34,57,0.12);
        color: var(--red);
    }

.profile-orders-empty {
    text-align: center;
    color: #9ca3af;
    font-family: var(--font-body);
    font-size: 0.875rem;
    padding: 1rem 0;
}

/* ── Rewards (points + discount codes) ───────────────────── */
.profile-points-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(193,34,57,0.08), rgba(41,66,140,0.08));
    border: 1.5px solid rgba(193,34,57,0.18);
    font-family: var(--font-body);
}

.profile-points-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    background: #fff;
    color: var(--red);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.profile-points-body {
    min-width: 0;
}

.profile-points-balance {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

    .profile-points-balance #profilePointsBalance {
        font-family: var(--font-display);
        font-weight: 900;
        font-size: 1.625rem;
        line-height: 1.1;
        color: var(--red);
    }

.profile-points-unit {
    font-weight: 800;
    font-size: 0.8125rem;
    color: #374151;
}

.profile-points-worth {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

    .profile-points-worth:empty {
        display: none;
    }

.profile-points-activity {
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
}

    .profile-points-activity summary {
        cursor: pointer;
        font-weight: 700;
        color: var(--blue);
        padding: 0.35rem 0;
    }

.profile-points-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

    .profile-points-row:last-child {
        border-bottom: none;
    }

.profile-points-row-info {
    min-width: 0;
}

.profile-points-row-label {
    font-weight: 700;
    color: #1a1a1a;
}

.profile-points-row-order {
    color: #6b7280;
    font-weight: 600;
    unicode-bidi: plaintext;
}

.profile-points-delta {
    font-family: var(--font-display);
    font-weight: 900;
    flex-shrink: 0;
    unicode-bidi: plaintext;
}

    .profile-points-delta.is-positive {
        color: #15803d;
    }

    .profile-points-delta.is-negative {
        color: var(--red);
    }

.profile-subsection-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 800;
    color: #374151;
    margin: 1rem 0 0.5rem;
}

/* Wallet pass block on the rewards page (wallet.js) */
.profile-wallet-text {
    margin: 0 0 0.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #4b5563;
}

.profile-wallet-btn {
    display: inline-flex;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: none;
    cursor: pointer;
}

.profile-wallet-btn img {
    display: block;
    height: 48px;
    width: auto;
}

.profile-wallet-btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

.profile-wallet-btn:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.profile-wallet-error {
    margin: 0.625rem 0 0;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--red);
}

.profile-codes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
    border: 1.5px dashed rgba(0,0,0,0.12);
    border-radius: 8px;
    background: #f8f9fb;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    opacity: 0.75;
}

    .profile-code-item.is-active {
        border-color: rgba(193,34,57,0.35);
        background: rgba(193,34,57,0.03);
        opacity: 1;
    }

.profile-code-info {
    min-width: 0;
}

.profile-code-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.profile-code-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1a1a1a;
    word-break: break-all;
}

.profile-code-percent {
    font-weight: 800;
    color: var(--red);
    margin-top: 0.1rem;
}

.profile-code-status {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 0.15rem 0.5rem;
    background: rgba(0,0,0,0.06);
    color: #4b5563;
}

    .profile-code-status.status-active {
        background: rgba(34,197,94,0.12);
        color: #15803d;
    }

    .profile-code-status.status-expired {
        background: rgba(193,34,57,0.08);
        color: var(--red);
    }

.profile-rewards bdi {
    white-space: nowrap;
}

.profile-code-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

/* ── Order detail (drill-in) ─────────────────────────────── */
.profile-order-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    unicode-bidi: plaintext;
    /*padding-inline-start: 0;*/
}

.profile-order-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    margin-bottom: 0.375rem;
}

    .profile-order-detail-head .profile-order-num {
        font-size: 1rem;
    }

.profile-order-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: #6b7280;
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: capitalize;
    margin-bottom: 0.875rem;
}

.profile-order-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-top: 1.5px solid rgba(0,0,0,0.07);
}

.profile-order-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.625rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
}

.profile-order-line-name {
    color: #1a1a1a;
    min-width: 0;
}

.profile-order-line-price {
    color: #6b7280;
    flex-shrink: 0;
}

.profile-order-fees {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.75rem 0;
}

.profile-order-fee {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.625rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: #6b7280;
}

.profile-order-detail-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    padding-top: 0.875rem;
    border-top: 1.5px solid rgba(0,0,0,0.07);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.875rem;
    color: #1a1a1a;
}

.profile-signout-btn {
    /*display: flex;*/
    align-items: center;
    gap: 0.5rem;
    /*color: #6b7280;*/
}

    .profile-signout-btn:hover {
        /*color: var(--red);*/
    }

/* ── Account screen: list refinements (addresses, orders, rewards) ── */
.account-screen .profile-address-list,
.account-screen .profile-orders-list,
.account-screen .profile-codes-list {
    gap: 0.625rem;
}

.account-screen .profile-address-item,
.account-screen .profile-order-item,
.account-screen .profile-code-item {
    border: none;
    border-radius: 8px;
    background: var(--acct-card);
    box-shadow: var(--acct-shadow);
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
}

.account-screen .profile-address-item.is-default {
    box-shadow: inset 0 0 0 1.5px rgba(193, 34, 57, 0.35), var(--acct-shadow);
}

.account-screen .profile-address-info {
    flex: 1 1 auto;
    max-width: none;
    padding-inline-end: 0.75rem;
}

.account-screen .profile-address-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 1.05rem;
}

.account-screen .profile-address-area,
.account-screen .profile-address-detail {
    font-size: 0.9rem;
}

.account-screen .profile-address-default-badge {
    font-size: 0.72rem;
}

.account-screen .profile-address-actions {
    flex: 0 0 auto;
    max-width: none;
}

.account-screen .profile-add-address-btn {
    display: flex;
    align-items: center;
    margin-top: 0.875rem;
    min-height: 3.25rem;
    border-radius: 8px;
    border: 1.5px dashed rgba(193, 34, 57, 0.35);
    background: rgba(193, 34, 57, 0.03);
    color: var(--red);
    font-weight: 800;
}

.account-screen .new-address-form {
    margin-top: 0.875rem;
}

.account-screen .new-address-actions .btn {
    flex: 1;
    justify-content: center;
}

.account-screen .profile-order-item {
    min-height: 4.5rem;
}

    .account-screen .profile-order-item:hover {
        background: #fcfaf7;
    }

.account-screen .profile-order-num {
    font-size: 1.05rem;
}

.account-screen .profile-order-meta {
    font-size: 0.85rem;
    color: var(--acct-muted);
}

.account-screen .profile-order-status {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
}

.account-screen .profile-order-total {
    font-size: 1rem;
}

.account-screen .profile-order-detail-head .profile-order-num {
    font-size: 1.35rem;
}

.account-screen .profile-order-line,
.account-screen .profile-order-fee {
    font-size: 0.95rem;
}

.account-screen .profile-order-detail-total {
    font-size: 1.05rem;
}

.account-screen .profile-points-card {
    padding: 1.25rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--yellow) 0%, #f7fdd9 55%, var(--honey) 100%);
    box-shadow: var(--acct-shadow);
}

.account-screen .profile-points-icon {
    width: 3.25rem;
    height: 3.25rem;
}

.account-screen .profile-points-balance #profilePointsBalance {
    font-size: 2.25rem;
}

.account-screen .profile-points-worth {
    font-size: 0.9rem;
    color: #4b5320;
}

.account-screen .profile-points-activity {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--acct-card);
    box-shadow: var(--acct-shadow);
    font-size: 0.95rem;
}

.account-screen .profile-subsection-label {
    margin: 1.5rem 0 0.625rem;
    font-size: 1.05rem;
    color: var(--acct-ink);
}

.account-screen .profile-code-value {
    font-size: 1rem;
}

/* Inline OTP widget injected by auth.js into the guest panel */
.profile-otp-inline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* The profile sign-in sheet reuses .phone-input-row but only renders a single
   phone field (no country-code select or inline send button), so collapse the
   multi-column checkout grid to one full-width column here. */
.profile-otp-inline .phone-input-row {
    grid-template-columns: 1fr;
}

/* ════════════════════════════════════════════════════════════════
   CHECKOUT PAGE (full-screen overlay)
   ══════════════════════════════════════════════════════════════ */
.checkout-page {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: checkoutSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkoutSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

[dir="rtl"] .checkout-page {
    animation-name: checkoutSlideInRtl;
}

@keyframes checkoutSlideInRtl {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.checkout-page-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
}

.checkout-page-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.btn-back-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.05);
    border: none;
    color: #374151;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

    .btn-back-checkout:hover {
        background: rgba(193,34,57,0.08);
        color: var(--red);
    }

[dir="rtl"] .btn-back-checkout svg {
    transform: scaleX(-1);
}

.checkout-page-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem 3rem;
    display: flex;
    flex-direction: column;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.checkout-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.125rem;
    margin-bottom: 0.875rem;
    border: 1px solid rgba(0,0,0,0.06);
}

.checkout-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #838383;
    margin-bottom: 0.875rem;
}

[dir="rtl"] .checkout-section-label {
    /*flex-direction: row-reverse;*/
}

.checkout-field {
    margin-bottom: 0.625rem;
}

    .checkout-field:last-child {
        margin-bottom: 0;
    }

.fulfillment-value {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a1a;
    padding: 0.375rem 0;
}

/* Inline text-link button (e.g. "Change" in section header) */
.link-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--red);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
    margin-inline-start: auto;
    flex-shrink: 0;
}

    .link-btn:hover {
        opacity: 0.7;
    }

[dir="rtl"] .link-btn {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

/* Compact branch info card variant inside checkout */
.branch-info-card--compact {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

    .branch-info-card--compact .branch-name {
        font-weight: 800;
        color: #1a1a1a;
    }

    .branch-info-card--compact .branch-address,
    .branch-info-card--compact .branch-hours {
        color: #6b7280;
        font-size: 0.8rem;
    }

/* Name fields grid (first + last name) */
.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

/* Text sub-group in contact card header */
.contact-card-text {
    flex: 1;
    min-width: 0;
}

/* ════════════════════════════════════════════════════════════════
   MENU LAYOUT — two-column grid on desktop
   ══════════════════════════════════════════════════════════════ */
.menu-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 2rem;
    box-sizing: border-box;
}

.menu-col {
    min-width: 0;
}

/* Desktop cart column: hidden until ≥1024px */
.cart-col-desktop {
    display: none;
}

/* Mobile bottom bar info column */
.bottom-bar-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

/* ════════════════════════════════════════════════════════════════
   RTL — NEW COMPONENT OVERRIDES
   ══════════════════════════════════════════════════════════════ */
[dir="rtl"] .navbar-row {
    direction: rtl;
}

[dir="rtl"] .nav-lang-btn {
    justify-self: start !important;
}

[dir="rtl"] .nav-actions {
    justify-self: end !important;
}

[dir="rtl"] .nav-cart-count {
    right: auto;
    left: -0.3rem;
}

[dir="rtl"] .profile-name-row,
[dir="rtl"] .name-fields {
    direction: rtl !important;
}

[dir="rtl"] .new-address-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .sheet-header {
    /*flex-direction: row-reverse;*/
}

/* ════════════════════════════════════════════════════════════════
   DESKTOP ≥ 1024px — two-column layout + cart panel
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .menu-layout {
        grid-template-columns: 1fr 340px;
        align-items: start;
        padding: 1.5rem 1.5rem 2rem;
    }

    .cart-col-desktop {
        display: block;
    }

    .checkout-page-body {
        max-width: 720px;
    }

    .auth-sheet-body {
        max-width: 720px;
    }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE ≤ 767px — new component adjustments
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .checkout-page-header {
        padding: 0.75rem 1rem;
    }

    .checkout-page-body {
        padding: 0.875rem 1rem 3rem;
    }

    .auth-sheet-header {
        padding: 0.75rem 1rem;
    }

    .checkout-section {
        padding: 0.875rem;
        border-radius: 8px;
    }

    .name-fields,
    .profile-name-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .menu-layout {
        padding: 0.875rem 0.875rem 2rem;
        gap: 0;
    }

    .navbar-row {
        padding: 0 1rem;
        height: 3.25rem;
    }

    .order-page {
        padding-top: 3.25rem;
    }

    .navbar-logo-img {
        height: 3rem;
    }

    .nav-lang-btn,
    .nav-account-btn,
    .nav-cart-btn {
        width: 2.375rem;
        height: 2.375rem;
    }

    .nav-actions {
        gap: 0.375rem;
    }
}

/* ─── Cart drawer items: body now owns scrolling + padding ─── */
.cart-drawer-items {
    flex: none;
    overflow-y: visible;
    padding: 0.5rem 0;
}

/* ════════════════════════════════════════════════════════════════
   VERY SMALL — ≤ 380px (e.g. iPhone SE)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
    .order-layout {
        padding: 0.875rem 0.625rem;
    }

    .order-step {
        padding: 1rem;
    }

    .menu-cat-section {
        grid-template-columns: 1fr;
    }
    /* single column on tiny screens */
    .mode-tab {
        min-height: 64px;
    }

    .order-hero-title {
        font-size: 1.5rem;
    }
}

/* Delivery-app finishing pass */
.save-address-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 44px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.save-address-option input {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    accent-color: var(--red);
}

.success-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    width: 100%;
}

.success-actions .btn {
    min-height: 48px;
    justify-content: center;
    gap: 0.45rem;
}

.feedback-full-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
    min-height: 42px;
    border: 1px solid rgba(193,34,57,0.16);
    border-radius: 8px;
    background: rgba(193,34,57,0.06);
    color: var(--red);
    font-weight: 800;
    padding: 0.55rem 0.8rem;
}

.product-card,
.cart-panel-inner,
.checkout-section,
.profile-section,
.profile-order-item {
    border-radius: 8px;
}

.order-mode-option svg {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .menu-cat-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .product-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 7.25rem;
        grid-template-areas:
            "name image"
            "desc image"
            "price image"
            "action image";
        column-gap: 0.875rem;
        row-gap: 0.3rem;
        min-height: 9.5rem;
        padding: 0.75rem;
        align-items: start;
    }

    .product-image,
    .product-emoji {
        grid-area: image;
        align-self: stretch;
        width: 100%;
        min-height: 7.75rem;
        aspect-ratio: auto;
        border-radius: 8px;
    }

    .product-emoji {
        display: grid;
        place-items: center;
        background: #f3f4f6;
    }

    .product-name {
        grid-area: name;
        font-size: 0.9375rem;
        line-height: 1.25;
        align-self: end;
    }

    .product-desc {
        grid-area: desc;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .product-card:has(.product-placeholder) {
        grid-template-columns: minmax(0, 1fr) 2.75rem;
        grid-template-areas:
            "name image"
            "desc desc"
            "price image"
            "action action";
        min-height: 0;
    }

    .product-card:has(.product-placeholder) .product-placeholder {
        align-self: start;
        width: 2.75rem;
        min-height: 2.75rem;
    }

    .product-price {
        grid-area: price;
        margin-top: 0.15rem;
    }

    .add-simple-btn,
    .build-cup-btn {
        grid-area: action;
        min-height: 40px;
        width: 100%;
        margin-top: 0.25rem;
        justify-content: center;
    }

    .order-mode-track {
        height: 42px;
    }

    .order-mode-option {
        gap: 0.25rem;
        font-size: 0.6875rem;
    }

    .order-mode-option svg {
        width: 15px;
        height: 15px;
    }

    .success-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .product-card {
        grid-template-columns: minmax(0, 1fr) 6.25rem;
    }

    .order-mode-option svg {
        display: none;
    }
}

/* ════════════════════════════════════════════════════════════════
   ORDER MODE TOGGLE — sliding pill radio (delivery/dine-in/pickup/drive-thru)
   ══════════════════════════════════════════════════════════════ */
.order-mode-toggle {
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .order-mode-toggle::-webkit-scrollbar {
        display: none;
    }

.order-mode-track {
    position: relative;
    display: flex;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    overflow: hidden;
    min-width: 300px;
    max-width: 1180px;
    margin-inline: auto;
}

    .order-mode-track input[type="radio"] {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
        white-space: nowrap;
    }

.order-mode-option {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.22s ease;
    user-select: none;
    white-space: nowrap;
    font-family: var(--font-body);
}

    .order-mode-option span {
        font-size: 1rem;
        line-height: 1;
    }

input[type="radio"]:checked + .order-mode-option {
    color: #ffffff;
}

.order-mode-pill {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(25% - 2px);
    height: calc(100% - 6px);
    border-radius: 8px;
    background: var(--red);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.order-mode-track[data-selected="delivery"] .order-mode-pill {
    transform: translateX(0%);
}

.order-mode-track[data-selected="dine-in"] .order-mode-pill {
    transform: translateX(100%);
}

.order-mode-track[data-selected="pickup"] .order-mode-pill {
    transform: translateX(200%);
}

.order-mode-track[data-selected="drive-thru"] .order-mode-pill {
    transform: translateX(300%);
}

@keyframes modeSelectorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(193,34,57,0.35);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(193,34,57,0.12);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(193,34,57,0.0);
    }
}

.mode-selector--pulse {
    animation: modeSelectorPulse 0.6s ease 2;
    border-radius: 8px;
}

/* ════════════════════════════════════════════════════════════════
   AUTH SHEET — full-screen overlay for name + phone + OTP
   ══════════════════════════════════════════════════════════════ */
.auth-sheet-overlay {
    position: fixed;
    inset: 0;
    /* Above the success overlay (300): a guest can sign in from the order confirmation. */
    z-index: 310;
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: checkoutSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .auth-sheet-overlay {
    animation-name: checkoutSlideInRtl;
}

.auth-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 0);
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.auth-sheet-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    background: #fff;
    flex-shrink: 0;
}

/* Loader — covers the sheet while the session check resolves on open */
.auth-sheet-loader {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #fff;
}

.auth-sheet-loader[hidden] {
    display: none;
}

.auth-loader-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--red);
    animation: authSpin 0.8s linear infinite;
}

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

.auth-loader-label {
    margin: 0;
    font-size: 0.9375rem;
    color: #6b7280;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.auth-sheet-back {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #374151;
    display: flex;
    align-items: center;
    border-radius: 8px;
    flex-shrink: 0;
}

    .auth-sheet-back:hover {
        background: #f3f4f6;
    }

[dir="rtl"] .auth-sheet-back svg {
    transform: scaleX(-1);
}

.auth-sheet-title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 900;
    color: #111827;
}

.auth-sheet-close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    border-radius: 8px;
    flex-shrink: 0;
}

    .auth-sheet-close:hover {
        background: #f3f4f6;
        color: #374151;
    }

.auth-step {
    padding: 1.25rem 1.25rem 1.5rem;
}

.auth-step-sub {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.auth-otp-phone-row {
    margin-bottom: 1.25rem;
}

.auth-otp-phone-number {
    unicode-bidi: plaintext;
}

.auth-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    /*margin-bottom: 0.875rem;*/
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
}

.auth-label {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.auth-phone-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.auth-phone-row .iti,
.phone-number-wrap .iti {
    width: 100%;
}

.auth-country-select {
    flex: 0 0 auto;
    width: auto;
    min-width: 90px;
    max-width: 120px;
    font-family: var(--font-body);
    font-size: 1rem; /* 16px+ so iOS does not zoom on focus */
    padding: 0.625rem 0.5rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    height: 44px;
}

    .auth-country-select:focus {
        outline: none;
        border-color: var(--red);
        box-shadow: 0 0 0 3px rgba(193,34,57,0.10);
    }

.auth-phone-input {
    flex: 1;
}

.auth-phone-help {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.auth-step-footer {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* OTP step */
.auth-otp-masked-phone {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.25rem;
}

.otp-digits-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.otp-digit-box {
    width: 3rem;
    height: 3.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: #111827;
    background: #f9fafb;
    caret-color: var(--red);
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .otp-digit-box:focus {
        outline: none;
        border-color: var(--red);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(193,34,57,0.12);
    }

.auth-otp-debug {
    font-size: 0.75rem;
    color: #f59e0b;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0.75rem;
}

.auth-error {
    font-size: 0.8125rem;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    margin-bottom: 0.75rem;
}

.auth-resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.auth-resend-countdown {
    font-weight: 600;
    color: #374151;
    min-width: 2ch;
    text-align: center;
}

/* ════════════════════════════════════════════════════════════════
   ITEM NOTE SHEET — slides up before adding to cart
   ══════════════════════════════════════════════════════════════ */
@keyframes authSheetUp {
    from {
        transform: translateY(100%);
        opacity: 0.6;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.item-note-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 600px) {

    .item-note-sheet {
        border-radius: 8px;
    }
}

.item-note-sheet {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: authSheetUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.item-note-sheet-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.125rem 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.item-note-sheet-emoji {
    font-size: 1.625rem;
    line-height: 1;
    flex-shrink: 0;
}

.item-note-sheet-title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    color: #111827;
    margin: 0;
}

.item-note-sheet-close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    border-radius: 8px;
    flex-shrink: 0;
}

    .item-note-sheet-close:hover {
        background: #f3f4f6;
        color: #374151;
    }

.item-note-sheet-body {
    padding: 1rem 1.125rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.item-note-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.item-note-sheet-footer {
    padding: 0.75rem 1.125rem calc(1rem + env(safe-area-inset-bottom, 0));
}

/* ════════════════════════════════════════════════════════════════
   CHECKOUT PAGE — fulfillment panels & read-only cart
   ══════════════════════════════════════════════════════════════ */
.fulfillment-panel {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.car-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.car-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ctx-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Read-only cart in checkout */
.checkout-cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

    .checkout-cart-item:last-child {
        border-bottom: none;
    }

.checkout-cart-emoji {
    font-size: 1.375rem;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 0.125rem;
}

.checkout-cart-info {
    flex: 1;
    min-width: 0;
}

.checkout-cart-controls {
    margin-inline-start: auto;
    flex-shrink: 0;
}

.checkout-cart-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.125rem;
}

.checkout-cart-note-text {
    flex-basis: 100%;
    font-size: 0.8125rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0;
    padding-inline-start: calc(1.375rem + 0.75rem);
}

.checkout-cart-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    flex-shrink: 0;
}

.checkout-cart-qty {
    font-size: 0.8125rem;
    color: #6b7280;
}

.checkout-cart-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}

/* Branch info card (pickup mode) */
.branch-info-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.07);
    font-size: 0.875rem;
    line-height: 1.5;
}

.branch-info-card--compact {
    margin-top: 0.5rem;
}

.branch-name {
    font-weight: 700;
    color: #111827;
}

.branch-address,
.branch-hours {
    color: #6b7280;
}

/* ─── RTL flips ─── */
[dir="rtl"] .auth-name-row {
    direction: rtl;
}

[dir="rtl"] .car-details-row {
    direction: rtl;
}

[dir="rtl"] .order-mode-toggle {
    direction: rtl;
}

[dir="rtl"] .order-mode-pill {
    left: auto;
    right: 3px;
}

[dir="rtl"] .order-mode-track[data-selected="delivery"] .order-mode-pill {
    transform: translateX(0%);
}

[dir="rtl"] .order-mode-track[data-selected="dine-in"] .order-mode-pill {
    transform: translateX(-100%);
}

[dir="rtl"] .order-mode-track[data-selected="pickup"] .order-mode-pill {
    transform: translateX(-200%);
}

[dir="rtl"] .order-mode-track[data-selected="drive-thru"] .order-mode-pill {
    transform: translateX(-300%);
}

[dir="rtl"] .otp-digits-row {
    direction: ltr;
}

/* ─── Responsive tweaks ─── */
@media (max-width: 380px) {
    .auth-name-row {
        grid-template-columns: 1fr;
    }

    .car-details-row {
        grid-template-columns: 1fr;
    }

    .otp-digit-box {
        width: 2.625rem;
        height: 3.25rem;
        font-size: 1.375rem;
    }
}

.nav-lang-btn,
.nav-account-btn,
.nav-cart-btn {
    width: 44px;
    height: 44px;
}

.nav-lang-btn {
    min-height: 44px;
    box-sizing: border-box;
}

/* Equal side columns keep the order logo centered as optional actions appear. */
.order-navbar .navbar-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    direction: ltr;
    gap: 8px;
    padding-inline: 8px;
}

.order-navbar .order-nav-start,
.order-navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-navbar .order-nav-start {
    justify-self: end;
}

.order-navbar .nav-actions {
    justify-self: start !important;
}

.order-navbar .navbar-logo-img {
    width: clamp(64px, 20vw, 128px);
    height: 48px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .order-mode-track {
        height: 44px;
    }

    .order-mode-option {
        gap: 0.25rem;
        font-size: 0.6875rem;
    }

    .order-mode-option svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 360px) {
    .order-mode-option svg {
        display: none;
    }
}

/* ════════════════════════════════════════════════════════════════
   INTERACTIVE PRODUCT CATALOG
   Warm editorial browsing, rich media, and progressive detail.
   ══════════════════════════════════════════════════════════════ */
.menu-catalog {
    --catalog-ink: #261b1d;
    --catalog-muted: #76686a;
    --catalog-paper: #fffdf8;
    --catalog-cream: #f4eee3;
    --catalog-leaf: #476a52;
    --catalog-leaf-soft: #e5eee4;
    --catalog-line: rgba(73, 48, 52, 0.13);
    color: var(--catalog-ink);
}

.menu-catalog-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 0.8fr);
    align-items: end;
    gap: clamp(1rem, 4vw, 3.5rem);
    padding: clamp(1.15rem, 3vw, 2.2rem) 0 clamp(1rem, 2vw, 1.5rem);
}

.menu-catalog-kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--catalog-leaf);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

[dir="rtl"] .menu-catalog-kicker {
    letter-spacing: 0;
}

.menu-catalog-intro h2 {
    margin: 0;
    max-width: 12ch;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.15rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

[dir="rtl"] .menu-catalog-intro h2 {
    letter-spacing: 0;
    line-height: 1.08;
}

.menu-catalog-intro p {
    max-width: 34rem;
    margin: 0;
    color: var(--catalog-muted);
    font-size: clamp(0.92rem, 1.5vw, 1.06rem);
    line-height: 1.65;
}

.menu-cats-shell {
    position: sticky;
    top: 3.5rem;
    z-index: 80;
    margin-inline: calc(clamp(0.875rem, 2vw, 1.25rem) * -1);
    padding: 0.55rem clamp(0.875rem, 2vw, 1.25rem);
    border-block: 1px solid transparent;
    background: rgba(248, 249, 251, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.menu-cats {
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    scroll-snap-type: inline proximity;
}

.menu-cat-btn {
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #66585a;
    scroll-snap-align: center;
    transition: color 180ms var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
                background 180ms var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
                transform 180ms var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
}

.menu-cat-btn small {
    display: grid;
    min-width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border-radius: 8px;
    background: rgba(71, 106, 82, 0.1);
    color: var(--catalog-leaf);
    font-size: 0.68rem;
    font-weight: 850;
    transition: background 180ms ease, color 180ms ease;
}

.menu-cat-btn:hover {
    border-color: transparent;
    background: var(--catalog-cream);
    color: var(--catalog-ink);
    transform: translateY(-1px);
}

.menu-cat-btn.active {
    border-color: transparent;
    background: var(--catalog-ink);
    color: #fffaf3;
    box-shadow: none;
}

.menu-cat-btn.active small {
    background: rgba(255, 250, 243, 0.16);
    color: #fffaf3;
}

.menu-cat-btn:focus-visible,
.product-media-trigger:focus-visible,
.product-details-btn:focus-visible,
.product-detail-close:focus-visible {
    outline: 3px solid rgba(193, 34, 57, 0.28);
    outline-offset: 3px;
}

.menu-grid {
    padding-top: clamp(1rem, 2.5vw, 1.75rem);
}

.menu-cat-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.85rem, 2vw, 1.35rem);
}

.product-card {
    position: relative;
    min-width: 0;
    overflow: clip;
    padding: 0;
    gap: 0;
    border: 1px solid var(--catalog-line);
    border-radius: 8px;
    background: var(--catalog-paper);
    box-shadow: 0 1px 0 rgba(73, 48, 52, 0.04);
    content-visibility: auto;
    contain-intrinsic-size: 480px;
    transition: border-color 240ms var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
                box-shadow 240ms var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
                transform 240ms var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
}

.product-card:hover {
    border-color: rgba(73, 48, 52, 0.24);
    box-shadow: 0 18px 38px rgba(57, 35, 39, 0.1);
    transform: translateY(-4px);
}

.product-media-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--catalog-cream);
    color: inherit;
    cursor: zoom-in;
}

.product-image,
.product-emoji {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 11;
    border-radius: 0;
    background: var(--catalog-cream);
}

.product-image img,
.product-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 600ms var(--ease-out-quint, cubic-bezier(0.22, 1, 0.36, 1)),
                filter 300ms ease;
}

.product-card:hover .product-image img,
.product-card:hover .product-image video,
.product-media-trigger:focus-visible .product-image img,
.product-media-trigger:focus-visible .product-image video {
    transform: scale(1.045);
    filter: saturate(1.04);
}

.product-placeholder {
    display: grid;
    place-items: center;
    color: var(--catalog-leaf);
}

.product-placeholder::before {
    content: "";
    position: absolute;
    width: 46%;
    aspect-ratio: 1;
    border: 1px solid rgba(71, 106, 82, 0.18);
    border-radius: 8px;
    transform: rotate(-12deg);
}

.product-placeholder svg {
    position: relative;
    z-index: 1;
}

.product-media-badge,
.product-quick-view {
    position: absolute;
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.92);
    color: var(--catalog-ink);
    box-shadow: 0 6px 18px rgba(38, 27, 29, 0.14);
}

.product-media-badge {
    inset-inline-start: 0.75rem;
    bottom: 0.75rem;
}

.product-quick-view {
    inset-inline-end: 0.75rem;
    top: 0.75rem;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 240ms var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
}

.product-card:hover .product-quick-view,
.product-media-trigger:focus-visible .product-quick-view {
    opacity: 1;
    transform: translateY(0);
}

.product-card-content {
    display: flex;
    min-height: 13rem;
    flex-direction: column;
    align-items: stretch;
    padding: clamp(0.95rem, 2vw, 1.25rem);
}

.product-flavor,
.product-detail-flavor {
    align-self: flex-start;
    margin-bottom: 0.55rem;
    padding: 0.28rem 0.52rem;
    border-radius: 8px;
    background: var(--catalog-leaf-soft);
    color: #35533e;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

[dir="rtl"] .product-flavor,
[dir="rtl"] .product-detail-flavor {
    letter-spacing: 0;
}

.product-name {
    margin: 0;
    color: var(--catalog-ink);
    font-size: clamp(1.12rem, 2vw, 1.38rem);
    line-height: 1.18;
}

.product-desc {
    display: -webkit-box;
    margin: 0.5rem 0 1rem;
    overflow: hidden;
    color: var(--catalog-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.product-price {
    flex: 0 0 auto;
    color: var(--red);
    font-size: 1.1rem;
}

.product-price small {
    font-size: 0.72em;
}

.product-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.product-details-btn {
    min-height: 40px;
    padding: 0.4rem 0.25rem;
    border: 0;
    background: transparent;
    color: var(--catalog-muted);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: color 160ms ease;
}

.product-details-btn:hover {
    color: var(--red);
}

.add-simple-btn,
.build-cup-btn {
    width: auto;
    min-height: 42px;
    margin: 0;
    padding: 0.48rem 0.8rem;
    gap: 0.3rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

@keyframes catalogCardReveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-cat-section--entering .product-card {
    animation: catalogCardReveal 480ms var(--ease-out-quint, cubic-bezier(0.22, 1, 0.36, 1)) both;
    animation-delay: calc(var(--product-index, 0) * 55ms);
}

/* Product detail drawer */
.product-detail-open {
    overflow: hidden;
}

.product-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: grid;
    justify-items: end;
}

.product-detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(38, 27, 29, 0.52);
    opacity: 0;
    cursor: default;
    transition: opacity 220ms ease;
}

.product-detail-sheet {
    position: relative;
    display: flex;
    width: min(34rem, 100%);
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    background: var(--catalog-paper, #fffdf8);
    box-shadow: -16px 0 50px rgba(38, 27, 29, 0.18);
    opacity: 0;
    transform: translateX(2rem);
    transition: opacity 220ms ease,
                transform 360ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.product-detail-sheet:focus {
    outline: none;
}

[dir="rtl"] .product-detail-overlay {
    justify-items: start;
}

[dir="rtl"] .product-detail-sheet {
    box-shadow: 16px 0 50px rgba(38, 27, 29, 0.18);
    transform: translateX(-2rem);
}

.product-detail-overlay.is-open .product-detail-backdrop,
.product-detail-overlay.is-open .product-detail-sheet {
    opacity: 1;
}

.product-detail-overlay.is-open .product-detail-sheet {
    transform: translateX(0);
}

.product-detail-close {
    position: absolute;
    z-index: 2;
    inset-inline-end: 1rem;
    top: max(1rem, env(safe-area-inset-top));
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.94);
    color: var(--catalog-ink, #261b1d);
    box-shadow: 0 6px 20px rgba(38, 27, 29, 0.14);
    cursor: pointer;
}

.product-detail-media {
    flex: 0 0 min(42dvh, 25rem);
    min-height: 15rem;
    overflow: hidden;
    background: var(--catalog-cream, #f4eee3);
}

.product-detail-media img,
.product-detail-media video,
.product-detail-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-placeholder {
    display: grid;
    place-items: center;
    color: var(--catalog-leaf, #476a52);
}

.product-detail-placeholder svg {
    width: 4rem;
    height: 4rem;
    stroke-width: 1.25;
}

.product-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: clamp(1.25rem, 4vw, 2rem);
    overscroll-behavior: contain;
}

.product-detail-body h2 {
    margin: 0;
    color: var(--catalog-ink, #261b1d);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 5vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

[dir="rtl"] .product-detail-body h2 {
    letter-spacing: 0;
}

.product-detail-description {
    margin: 0.75rem 0 1.5rem;
    color: var(--catalog-muted, #76686a);
    font-size: 1rem;
    line-height: 1.7;
}

.product-detail-section {
    padding: 1.1rem 0;
    border-top: 1px solid var(--catalog-line, rgba(73, 48, 52, 0.13));
}

.product-detail-section-title {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--catalog-leaf, #476a52);
}

.product-detail-section-title h3,
.product-detail-section-title p,
.product-detail-section > p {
    margin: 0;
}

.product-detail-section-title h3 {
    color: var(--catalog-ink, #261b1d);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 850;
}

.product-detail-section-title p {
    margin-top: 0.08rem;
    color: var(--catalog-muted, #76686a);
    font-size: 0.76rem;
}

.product-detail-section > p {
    margin-top: 0.65rem;
    color: var(--catalog-muted, #76686a);
    line-height: 1.6;
}

.nutrition-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0.9rem 0 0;
}

.nutrition-facts > div {
    min-width: 0;
    padding: 0.7rem 0.55rem;
    border-radius: 8px;
    background: var(--catalog-cream, #f4eee3);
    text-align: center;
}

.nutrition-facts dt {
    overflow: hidden;
    color: var(--catalog-muted, #76686a);
    font-size: 0.65rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nutrition-facts dd {
    margin: 0.2rem 0 0;
    color: var(--catalog-ink, #261b1d);
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 900;
}

.nutrition-note {
    margin-top: 0.65rem !important;
    font-size: 0.72rem;
}

.product-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem clamp(1.1rem, 4vw, 2rem) calc(0.9rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--catalog-line, rgba(73, 48, 52, 0.13));
    background: var(--catalog-paper, #fffdf8);
}

.product-detail-footer > div {
    display: flex;
    flex-direction: column;
}

.product-detail-footer span {
    color: var(--catalog-muted, #76686a);
    font-size: 0.72rem;
    font-weight: 750;
}

.product-detail-footer strong {
    color: var(--red);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.product-detail-order {
    min-height: 48px;
    gap: 0.35rem;
    border-radius: 8px;
}

.product-detail-order span {
    color: inherit;
    font-size: inherit;
}

@media (min-width: 1180px) {
    .menu-cat-section > .product-card:first-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
    }

    .menu-cat-section > .product-card:first-child .product-media-trigger,
    .menu-cat-section > .product-card:first-child .product-image,
    .menu-cat-section > .product-card:first-child .product-emoji {
        height: 100%;
        min-height: 19rem;
        aspect-ratio: auto;
    }

    .menu-cat-section > .product-card:first-child .product-card-content {
        min-height: 19rem;
        justify-content: center;
        padding: clamp(1.5rem, 3vw, 2.25rem);
    }

    .menu-cat-section > .product-card:first-child .product-name {
        font-size: clamp(1.65rem, 3vw, 2.2rem);
    }
}

@media (max-width: 767px) {
    .menu-catalog-intro {
        display: block;
        padding-block: 0.9rem 0.75rem;
    }

    .menu-catalog-intro h2 {
        max-width: 15ch;
        font-size: 1.65rem;
    }

    .menu-catalog-intro p {
        margin-top: 0.55rem;
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .menu-cats-shell {
        top: 3.25rem;
    }

    .menu-cat-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .product-card,
    .product-card:has(.product-placeholder) {
        display: grid;
        grid-template-columns: 7.5rem minmax(0, 1fr);
        grid-template-areas: "media content";
        min-height: 10.5rem;
        padding: 0;
        border-radius: 8px;
        align-items: stretch;
    }

    [dir="rtl"] .product-card,
    [dir="rtl"] .product-card:has(.product-placeholder) {
        grid-template-columns: minmax(0, 1fr) 7.5rem;
        grid-template-areas: "content media";
    }

    .product-media-trigger {
        grid-area: media;
        height: 100%;
        min-height: 10.5rem;
    }

    .product-image,
    .product-emoji,
    .product-card:has(.product-placeholder) .product-placeholder {
        width: 100%;
        height: 100%;
        min-height: 10.5rem;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .product-card-content {
        grid-area: content;
        min-width: 0;
        min-height: 10.5rem;
        padding: 0.85rem;
    }

    .product-flavor {
        max-width: 100%;
        margin-bottom: 0.38rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .product-name {
        font-size: 1.04rem;
    }

    .product-desc {
        margin: 0.35rem 0 0.6rem;
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .product-card-footer {
        align-items: center;
    }

    .product-details-btn {
        display: none;
    }

    .add-simple-btn,
    .build-cup-btn {
        width: 42px;
        min-width: 42px;
        padding-inline: 0;
    }

    .add-simple-btn span,
    .build-cup-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .product-quick-view {
        opacity: 1;
        transform: none;
    }

    .product-detail-overlay {
        align-items: end;
    }

    .product-detail-sheet,
    [dir="rtl"] .product-detail-sheet {
        width: 100%;
        height: auto;
        max-height: min(91dvh, 54rem);
        border-radius: 8px;
        box-shadow: 0 -16px 50px rgba(38, 27, 29, 0.18);
        transform: translateY(2rem);
    }

    .product-detail-overlay.is-open .product-detail-sheet {
        transform: translateY(0);
    }

    .product-detail-media {
        flex-basis: min(35dvh, 19rem);
    }
}

@media (max-width: 380px) {
    .product-card,
    .product-card:has(.product-placeholder),
    [dir="rtl"] .product-card,
    [dir="rtl"] .product-card:has(.product-placeholder) {
        grid-template-columns: 6.5rem minmax(0, 1fr);
        grid-template-areas: "media content";
    }

    [dir="rtl"] .product-card,
    [dir="rtl"] .product-card:has(.product-placeholder) {
        grid-template-columns: minmax(0, 1fr) 6.5rem;
        grid-template-areas: "content media";
    }

    .nutrition-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ════════════════════════════════════════════════════════════════
   YOYO FLAVOR FLOW
   A visual discovery stage backed by a fast, scannable order list.
   ══════════════════════════════════════════════════════════════ */
.menu-cat-section[data-flow-tone="0"] { --flow-accent: #a92c49; --flow-soft: #f5dfe3; --flow-deep: #6e1930; }
.menu-cat-section[data-flow-tone="1"] { --flow-accent: #52705b; --flow-soft: #dfe9dd; --flow-deep: #304b39; }
.menu-cat-section[data-flow-tone="2"] { --flow-accent: #765045; --flow-soft: #eadbd2; --flow-deep: #472e29; }
.menu-cat-section[data-flow-tone="3"] { --flow-accent: #b87127; --flow-soft: #f5e1bd; --flow-deep: #724313; }
.menu-cat-section[data-flow-tone="4"] { --flow-accent: #526386; --flow-soft: #e0e5f0; --flow-deep: #303d5c; }

.menu-cats-shell {
    padding-block: 0.7rem;
    background: color-mix(in srgb, var(--catalog-paper) 94%, transparent);
}

.menu-cats {
    gap: 0.55rem;
}

.menu-cat-btn {
    display: grid;
    grid-template-columns: 2.65rem auto auto;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.25rem;
    padding: 0.3rem 0.7rem 0.3rem 0.3rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
}

[dir="rtl"] .menu-cat-btn {
    padding: 0.3rem 0.3rem 0.3rem 0.7rem;
}

.menu-cat-visual {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(73, 48, 52, 0.1);
    border-radius: 8px;
    background: var(--catalog-cream);
    color: var(--catalog-leaf);
    transition: transform 300ms var(--ease-out-quint, cubic-bezier(0.22, 1, 0.36, 1));
}

.menu-cat-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-cat-label {
    font-size: 0.8rem;
    font-weight: 850;
    white-space: nowrap;
}

.menu-cat-btn:hover .menu-cat-visual,
.menu-cat-btn:focus-visible .menu-cat-visual,
.menu-cat-btn.active .menu-cat-visual {
    transform: scale(1.07);
}

.menu-cat-btn.active {
    background: var(--catalog-ink);
}

.menu-cat-btn.active .menu-cat-visual {
    border-color: rgba(255, 250, 243, 0.28);
    box-shadow: 0 0 0 3px rgba(255, 250, 243, 0.1);
}

.menu-cat-section {
    align-items: stretch;
}

.product-card--spotlight,
.menu-cat-section > .product-card--spotlight:first-child {
    isolation: isolate;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
    min-height: clamp(25rem, 48vw, 35rem);
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: var(--flow-soft);
    box-shadow: 0 26px 70px color-mix(in srgb, var(--flow-deep) 17%, transparent);
}

.product-card--spotlight::before,
.product-card--spotlight::after {
    position: absolute;
    z-index: -1;
    border: 1px solid color-mix(in srgb, var(--flow-accent) 28%, transparent);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.product-card--spotlight::before {
    inset-inline-end: -7rem;
    top: -8rem;
    width: 22rem;
    height: 22rem;
}

.product-card--spotlight::after {
    inset-inline-start: 42%;
    bottom: -6rem;
    width: 15rem;
    height: 15rem;
}

.product-card--spotlight:hover {
    border-color: transparent;
    box-shadow: 0 30px 80px color-mix(in srgb, var(--flow-deep) 21%, transparent);
    transform: translateY(-3px);
}

.product-card--spotlight .product-media-trigger,
.menu-cat-section > .product-card--spotlight:first-child .product-media-trigger {
    min-height: 25rem;
    background: color-mix(in srgb, var(--flow-soft) 84%, var(--catalog-paper));
}

.product-card--spotlight .product-image,
.product-card--spotlight .product-emoji,
.menu-cat-section > .product-card--spotlight:first-child .product-image,
.menu-cat-section > .product-card--spotlight:first-child .product-emoji {
    height: 100%;
    min-height: 25rem;
    aspect-ratio: auto;
    background: transparent;
}

.product-card--spotlight .product-image img,
.product-card--spotlight .product-image video {
    transform: scale(1.015);
}

.product-card--spotlight:hover .product-image img,
.product-card--spotlight:hover .product-image video {
    transform: scale(1.065);
}

.product-card--spotlight .product-card-content,
.menu-cat-section > .product-card--spotlight:first-child .product-card-content {
    position: relative;
    min-height: 25rem;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3.5rem);
}

.product-spotlight-label {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.38rem;
    margin-bottom: 1rem;
    color: var(--flow-deep);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

[dir="rtl"] .product-spotlight-label {
    letter-spacing: 0;
}

.product-card--spotlight .product-flavor {
    background: color-mix(in srgb, var(--catalog-paper) 72%, transparent);
    color: var(--flow-deep);
}

.product-card--spotlight .product-name,
.menu-cat-section > .product-card--spotlight:first-child .product-name {
    max-width: 10ch;
    color: var(--flow-deep);
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 4.35rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
}

[dir="rtl"] .product-card--spotlight .product-name {
    letter-spacing: 0;
    line-height: 1.05;
}

.product-card--spotlight .product-desc {
    display: block;
    flex: none;
    max-width: 34rem;
    margin-block: 1rem 1.35rem;
    color: color-mix(in srgb, var(--flow-deep) 75%, transparent);
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    line-height: 1.65;
    -webkit-line-clamp: unset;
}

.product-card--spotlight .product-card-content > * {
    flex-shrink: 0;
}

.product-spotlight-facts {
    display: flex;
    gap: 0.55rem;
    margin: 0 0 1.35rem;
}

.product-spotlight-facts > div {
    min-width: 5.4rem;
    padding: 0.62rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--flow-accent) 18%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--catalog-paper) 52%, transparent);
}

.product-spotlight-facts dt {
    color: color-mix(in srgb, var(--flow-deep) 68%, transparent);
    font-size: 0.65rem;
    font-weight: 750;
}

.product-spotlight-facts dd {
    margin: 0.18rem 0 0;
    color: var(--flow-deep);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
}

.product-card--spotlight .product-price {
    color: var(--flow-deep);
    font-size: 1.3rem;
}

.product-card--spotlight .product-details-btn {
    color: var(--flow-deep);
}

.product-card--spotlight .add-simple-btn,
.product-card--spotlight .build-cup-btn {
    min-height: 48px;
    padding-inline: 1.05rem;
    border-radius: 8px;
    background: var(--flow-deep);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--flow-deep) 22%, transparent);
}

.menu-more-divider {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(1rem, 1fr) auto minmax(1rem, 1fr);
    align-items: center;
    gap: 0.8rem;
    margin-block: clamp(0.35rem, 1vw, 0.8rem) -0.1rem;
    color: color-mix(in srgb, var(--flow-accent) 62%, var(--catalog-muted));
}

.menu-more-divider span {
    height: 1px;
    background: color-mix(in srgb, var(--flow-accent) 18%, transparent);
}

@keyframes flavorStageReveal {
    from { opacity: 0; transform: translateY(20px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes flavorContentReveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-cat-section--entering .product-card--spotlight {
    animation: flavorStageReveal 620ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

.menu-cat-section--entering .product-card--spotlight .product-card-content > * {
    animation: flavorContentReveal 460ms var(--ease-out-quint, cubic-bezier(0.22, 1, 0.36, 1)) both;
    animation-delay: calc(100ms + var(--flow-copy-index, 0) * 65ms);
}

.product-card--spotlight .product-spotlight-label { --flow-copy-index: 0; }
.product-card--spotlight .product-flavor { --flow-copy-index: 1; }
.product-card--spotlight .product-name { --flow-copy-index: 2; }
.product-card--spotlight .product-desc { --flow-copy-index: 3; }
.product-card--spotlight .product-spotlight-facts { --flow-copy-index: 4; }
.product-card--spotlight .product-card-footer { --flow-copy-index: 5; }

/* Immersive product story: full screen on phones, split canvas on larger screens. */
.product-detail-overlay {
    place-items: center;
    padding: clamp(1rem, 3vw, 2.5rem);
}

[dir="rtl"] .product-detail-overlay {
    justify-items: center;
}

.product-detail-backdrop {
    background: rgba(38, 27, 29, 0.68);
}

.product-detail-sheet,
[dir="rtl"] .product-detail-sheet {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(21rem, 0.88fr);
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(72rem, 100%);
    height: min(90dvh, 54rem);
    border-radius: 8px;
    box-shadow: 0 34px 100px rgba(38, 27, 29, 0.34);
    transform: translateY(1.5rem) scale(0.975);
    transition: opacity 220ms cubic-bezier(0.7, 0, 0.84, 0),
                transform 460ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.product-detail-overlay.is-open .product-detail-sheet,
[dir="rtl"] .product-detail-overlay.is-open .product-detail-sheet {
    transform: translateY(0) scale(1);
}

.product-detail-close {
    inset-inline: 1rem auto;
    top: max(1rem, env(safe-area-inset-top));
    background: rgba(255, 253, 248, 0.9);
    transition: transform 180ms var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
                background 180ms linear;
}

[dir="rtl"] .product-detail-close svg {
    transform: rotate(180deg);
}

.product-detail-close:hover {
    background: var(--catalog-paper);
    transform: translateX(-2px);
}

[dir="rtl"] .product-detail-close:hover {
    transform: translateX(2px);
}

.product-detail-media {
    --product-detail-media-inset: clamp(0.85rem, 2.4vw, 1.65rem);
    position: relative;
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 14%, rgba(255, 250, 243, 0.7), transparent 32%),
        var(--catalog-cream);
}

.product-detail-media-visual {
    position: absolute;
    inset: var(--product-detail-media-inset);
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
}

.product-detail-media-visual img,
.product-detail-media-visual video,
.product-detail-media-visual .product-detail-placeholder {
    width: 100%;
    height: 100%;
}

.product-detail-media-visual img,
.product-detail-media-visual video {
    display: block;
    object-fit: contain;
    transform: scale(1.015);
    transition: transform 900ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.product-detail-overlay.is-open .product-detail-media-visual img,
.product-detail-overlay.is-open .product-detail-media-visual video {
    transform: scale(1);
}

.product-detail-media-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 20, 22, 0.78), rgba(31, 20, 22, 0.08) 48%, transparent 70%);
    pointer-events: none;
}

.product-detail-hero-copy {
    position: absolute;
    inset-inline: clamp(1.35rem, 4vw, 3rem);
    bottom: clamp(1.5rem, 4vw, 3rem);
    z-index: 1;
    max-width: 32rem;
    color: #fffaf3;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 380ms 90ms linear,
                transform 520ms 90ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.product-detail-overlay.is-open .product-detail-hero-copy {
    opacity: 1;
    transform: translateY(0);
}

.product-detail-hero-copy .product-detail-flavor {
    display: inline-flex;
    margin-bottom: 0.7rem;
    background: rgba(255, 250, 243, 0.9);
    color: #261b1d !important;
}

.product-detail-hero-copy h2 {
    margin: 0;
    color: inherit;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

[dir="rtl"] .product-detail-hero-copy h2 {
    letter-spacing: 0;
    line-height: 1.04;
}

.product-detail-media-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    margin-top: 1rem;
    padding-inline: 1.05rem;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(38, 27, 29, 0.24);
}

.product-detail-media-order span {
    color: inherit;
    font-size: inherit;
}

.product-detail-content {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    overflow: hidden;
}

.product-detail-body {
    height: 100%;
    padding: clamp(1.6rem, 4vw, 3rem);
}

.product-detail-description {
    margin-top: 0;
    color: var(--catalog-ink);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.product-detail-variations {
    margin: 0 0 1.4rem;
    padding: 1.15rem 0 0;
    border: 0;
    border-top: 1px solid var(--catalog-line);
}

.product-detail-variations legend {
    padding: 0;
    color: var(--catalog-ink);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 900;
}

.product-detail-variation-list {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-detail-variation-list::-webkit-scrollbar {
    display: none;
}

.product-detail-variation {
    display: grid;
    flex: 1 0 5.25rem;
    min-height: 3.8rem;
    place-items: center;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--catalog-line);
    border-radius: 8px;
    background: transparent;
    color: var(--catalog-ink);
    font-family: var(--font-body);
    font-weight: 850;
    cursor: pointer;
    transition: transform 160ms var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)),
                color 160ms linear,
                background 160ms linear,
                border-color 160ms linear;
}

.product-detail-variation small {
    color: var(--catalog-muted);
    font-size: 0.62rem;
    font-weight: 700;
}

.product-detail-variation:hover {
    transform: translateY(-2px);
}

.product-detail-variation.is-selected {
    border-color: var(--catalog-ink);
    background: var(--catalog-ink);
    color: #fffaf3;
}

.product-detail-variation.is-selected small {
    color: rgba(255, 250, 243, 0.72);
}

.product-detail-footer {
    grid-column: 2;
    grid-row: 2;
    padding: 1rem clamp(1.4rem, 4vw, 3rem) calc(1rem + env(safe-area-inset-bottom));
}

.product-detail-order {
    min-width: 10rem;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .menu-catalog-intro {
        padding-top: 1.1rem;
    }

    .menu-cats-shell {
        top: 3.2rem;
        padding-block: 0.55rem;
    }

    .menu-cat-btn,
    [dir="rtl"] .menu-cat-btn {
        grid-template-columns: 3rem;
        grid-template-rows: 3rem auto;
        justify-items: center;
        gap: 0.28rem;
        min-width: 4.8rem;
        min-height: 4.95rem;
        padding: 0.3rem 0.4rem 0.45rem;
        border-radius: 8px;
    }

    .menu-cat-visual {
        width: 3rem;
        height: 3rem;
    }

    .menu-cat-label {
        max-width: 5.3rem;
        overflow: hidden;
        font-size: 0.65rem;
        text-overflow: ellipsis;
    }

    .menu-cat-btn small {
        display: none;
    }

    .menu-cat-section {
        gap: 0.8rem;
    }

    .product-card--spotlight,
    .product-card:has(.product-placeholder).product-card--spotlight,
    [dir="rtl"] .product-card--spotlight,
    .menu-cat-section > .product-card--spotlight:first-child {
        display: flex;
        min-height: 0;
        flex-direction: column;
        border-radius: 8px;
    }

    .product-card--spotlight .product-media-trigger,
    .menu-cat-section > .product-card--spotlight:first-child .product-media-trigger {
        width: 100%;
        min-height: 20rem;
        aspect-ratio: 4 / 4.6;
    }

    .product-card--spotlight .product-image,
    .product-card--spotlight .product-emoji,
    .product-card:has(.product-placeholder).product-card--spotlight .product-placeholder,
    .menu-cat-section > .product-card--spotlight:first-child .product-image,
    .menu-cat-section > .product-card--spotlight:first-child .product-emoji {
        width: 100%;
        height: 100%;
        min-height: 20rem;
    }

    .product-card--spotlight .product-card-content,
    .menu-cat-section > .product-card--spotlight:first-child .product-card-content {
        width: 100%;
        min-height: 0;
        padding: 1.2rem 1.15rem 1.25rem;
    }

    .product-card--spotlight .product-spotlight-label {
        margin-bottom: 0.55rem;
    }

    .product-card--spotlight .product-name,
    .menu-cat-section > .product-card--spotlight:first-child .product-name {
        max-width: 12ch;
        font-size: clamp(2rem, 10vw, 3.15rem);
    }

    .product-card--spotlight .product-desc {
        margin-block: 0.7rem 0.9rem;
        font-size: 0.88rem;
    }

    .product-card--spotlight .product-details-btn {
        display: inline-flex;
    }

    .product-card--spotlight .add-simple-btn,
    .product-card--spotlight .build-cup-btn {
        width: auto;
        min-width: 48px;
        padding-inline: 0.9rem;
    }

    .product-card--spotlight .add-simple-btn span,
    .product-card--spotlight .build-cup-btn span {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }

    .product-detail-overlay {
        align-items: stretch;
        padding: 0;
    }

    .product-detail-sheet,
    [dir="rtl"] .product-detail-sheet {
        display: flex;
        width: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        transform: translateY(1.5rem);
    }

    .product-detail-overlay.is-open .product-detail-sheet,
    [dir="rtl"] .product-detail-overlay.is-open .product-detail-sheet {
        transform: translateY(0);
    }

    .product-detail-media {
        --product-detail-media-inset: 0.85rem;
        flex: 0 0 min(54dvh, 32rem);
        min-height: 19rem;
    }

    .product-detail-hero-copy {
        inset-inline: 1.2rem;
        bottom: 1.25rem;
    }

    .product-detail-hero-copy h2 {
        max-width: 12ch;
        font-size: clamp(2.35rem, 12vw, 4rem);
    }

    .product-detail-media-order {
        min-height: 42px;
        margin-top: 0.85rem;
        padding-inline: 0.95rem;
    }

    .product-detail-content {
        min-height: 0;
        flex: 1;
        overflow: hidden;
    }

    .product-detail-body {
        height: 100%;
        padding: 1.25rem 1.15rem 1.5rem;
    }

    .product-detail-footer {
        flex: 0 0 auto;
        padding-inline: 1.15rem;
    }

    .product-detail-order {
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .product-card--spotlight,
    .product-card:has(.product-placeholder).product-card--spotlight,
    [dir="rtl"] .product-card--spotlight {
        display: flex;
    }

    .product-spotlight-facts {
        flex-wrap: wrap;
    }

    .product-detail-media {
        flex-basis: 48dvh;
    }
}

@media (hover: none) {
    .product-card--spotlight:hover,
    .product-card:hover {
        transform: none;
    }
}

/* ════════════════════════════════════════════════════════════════
   YOYO BUILD BAR — immersive, thumb-first product customization
   ══════════════════════════════════════════════════════════════ */
.cup-builder-open {
    overscroll-behavior: none;
}

.cup-builder-open #trackingPreferences,
.cup-builder-open #trackingConsent {
    visibility: hidden;
}

#cupModal [hidden] {
    display: none !important;
}

#cupModal.modal-overlay {
    background: color-mix(in srgb, #2b1d20 66%, transparent);
    opacity: 0;
    transition: opacity 220ms cubic-bezier(0.25, 1, 0.5, 1);
}

#cupModal.modal-overlay.is-open {
    opacity: 1;
}

#cupModal.modal-overlay.is-closing {
    opacity: 0;
}

#cupModal .modal-box {
    width: min(46rem, 100%);
    max-width: 46rem;
    max-height: min(92dvh, 54rem);
    padding: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--red) 12%, #f0e6df);
    border-radius: 8px;
    background: #fffaf4;
    box-shadow: 0 2rem 6rem rgba(43, 29, 32, 0.28);
    animation: none;
    transform: translateY(1.5rem) scale(0.985);
    opacity: 0;
    transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
                opacity 220ms linear;
}

#cupModal.is-open .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#cupModal.is-closing .modal-box {
    transform: translateY(0.75rem) scale(0.99);
    opacity: 0;
    transition-duration: 180ms;
}

#cupModal .modal-header {
    min-height: 5.25rem;
    margin: 0;
    padding: 1rem 1.4rem 0.9rem;
    border-bottom: 1px solid #eadfd8;
    background: #fffaf4;
    flex: 0 0 auto;
}

#cupModal .modal-kicker {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--red);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
}

#cupModal .modal-title {
    color: #2b1d20;
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    line-height: 1.1;
}

#cupModal .modal-close-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #e5d7d0;
    background: #f7eee7;
    color: #2b1d20;
    transition: transform 160ms cubic-bezier(0.25, 1, 0.5, 1),
                background-color 160ms linear;
}

#cupModal .modal-close-btn:hover {
    background: #f0e1d9;
    color: var(--red);
    transform: rotate(4deg);
}

#cupModal .modal-step-dots-wrap {
    flex: 0 0 auto;
    padding: 0 1.4rem;
    background: #fffaf4;
}

#cupModal .modal-step-dots {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0.35rem;
    margin: 0;
    padding: 0.85rem 0 0.65rem;
}

#cupModal .modal-dot,
#cupModal .modal-dot.active {
    width: auto;
    height: 4px;
    border-radius: 8px;
    background: #e8dcd5;
    transition: background-color 220ms linear, transform 220ms cubic-bezier(0.25, 1, 0.5, 1);
}

#cupModal .modal-dot.complete {
    background: color-mix(in srgb, var(--red) 60%, #f4bcae);
}

#cupModal .modal-dot.current {
    background: var(--red);
    transform: scaleY(1.65);
}

#cupModal .modal-body {
    min-height: 0;
    padding: 0 1.4rem 1.4rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #d7c6bd transparent;
}

#cupModal .cup-item-pane {
    min-height: 100%;
}

.cup-product-context {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.15rem;
    padding: 0.7rem 0 0.95rem;
    border-bottom: 1px solid #eadfd8;
}

.cup-product-thumb {
    display: grid;
    width: 3.35rem;
    height: 3.35rem;
    flex: 0 0 3.35rem;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f2e9d9;
    color: #3d6d56;
}

.cup-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cup-product-copy {
    display: grid;
    min-width: 0;
    gap: 0.16rem;
}

.cup-product-copy span {
    color: #8c766d;
    font-size: 0.7rem;
    font-weight: 800;
}

.cup-product-copy strong {
    overflow: hidden;
    color: #2b1d20;
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* A dynamic recipe's fixed ingredients: information, not a choice. */
.cup-product-copy .cup-recipe-info {
    margin: 0.1rem 0 0;
    color: #5f4b45;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.cup-product-copy .cup-recipe-info .cup-recipe-info-label {
    margin-inline-end: 0.25rem;
    color: #8c766d;
    font-size: 0.7rem;
    font-weight: 800;
}

.cup-step {
    transform-origin: 50% 0;
}

.cup-step--enter-forward {
    animation: cupStepForward 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cup-step--enter-back {
    animation: cupStepBack 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cupStepForward {
    from { opacity: 0; transform: translateX(1.2rem); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes cupStepBack {
    from { opacity: 0; transform: translateX(-1.2rem); }
    to { opacity: 1; transform: translateX(0); }
}

[dir="rtl"] .cup-step--enter-forward {
    animation-name: cupStepBack;
}

[dir="rtl"] .cup-step--enter-back {
    animation-name: cupStepForward;
}

.cup-step--limit .cup-selection-count {
    animation: cupLimitPulse 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes cupLimitPulse {
    35% { transform: scale(1.06); background: #2b1d20; color: #fffaf4; }
}

.cup-step-heading {
    margin-bottom: 1rem;
}

.cup-step-kicker {
    display: block;
    margin-bottom: 0.3rem;
    color: #a2877b;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cup-step-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

#cupModal .cup-step-title {
    margin: 0;
    color: #2b1d20;
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.12;
    text-align: start;
}

.cup-step-hint {
    margin: 0.35rem 0 0;
    color: #806d65;
    font-size: 0.84rem;
    font-weight: 650;
}

.cup-selection-count {
    flex: 0 0 auto;
    padding: 0.38rem 0.65rem;
    border-radius: 8px;
    background: #f1e7df;
    color: #725e56;
    font-size: 0.7rem;
    font-weight: 900;
    transition: color 160ms linear, background-color 160ms linear;
}

.cup-selection-count.is-max {
    background: #2b1d20;
    color: #fffaf4;
}

.cup-selection-count.is-max::after {
    content: " · " attr(data-limit-message);
}

#cupModal .size-options,
#cupModal .flavour-grid,
#cupModal .toppings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
}

#cupModal .size-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#cupModal .size-option,
#cupModal .flavour-option,
#cupModal .topping-chip {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
    min-height: 5.4rem;
    padding: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5d8d0;
    border-radius: 8px;
    background: #fffdf9;
    color: #2b1d20;
    box-shadow: none;
    font-family: var(--font-body);
    text-align: start;
    transition: transform 160ms cubic-bezier(0.25, 1, 0.5, 1),
                border-color 160ms linear,
                background-color 160ms linear,
                box-shadow 160ms linear;
}

#cupModal .size-option {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 8.6rem;
    padding: 0.85rem 0.55rem;
    text-align: center;
}

#cupModal .size-option:hover,
#cupModal .flavour-option:hover,
#cupModal .topping-chip:hover {
    border-color: color-mix(in srgb, var(--red) 48%, #e5d8d0);
    transform: translateY(-2px);
}

#cupModal .size-option:active,
#cupModal .flavour-option:active,
#cupModal .topping-chip:active {
    transform: scale(0.975);
}

#cupModal .size-option:focus-visible,
#cupModal .flavour-option:focus-visible,
#cupModal .topping-chip:focus-visible,
#cupModal .modal-close-btn:focus-visible,
#cupModal .cup-nav-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--red) 38%, transparent);
    outline-offset: 2px;
}

#cupModal .size-option.selected,
#cupModal .flavour-option.selected,
#cupModal .topping-chip.selected {
    border-color: var(--red);
    background: color-mix(in srgb, var(--red) 7%, #fffaf4);
    color: #2b1d20;
    box-shadow: 0 0.55rem 1.4rem color-mix(in srgb, var(--red) 12%, transparent);
}

#cupModal .option-visual {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f2e9d9;
    color: #3d6d56;
    transition: transform 220ms cubic-bezier(0.25, 1, 0.5, 1), background-color 160ms linear;
}

#cupModal .size-option .option-visual {
    width: 4.35rem;
    height: 4.35rem;
    border-radius: 8px;
}

#cupModal .flavour-option:nth-child(3n + 2) .option-visual,
#cupModal .topping-chip:nth-child(3n + 2) .option-visual {
    background: #f7dfdf;
    color: #9f3f50;
}

#cupModal .flavour-option:nth-child(3n) .option-visual,
#cupModal .topping-chip:nth-child(3n) .option-visual {
    background: #e6eedf;
    color: #3d6d56;
}

#cupModal .selected .option-visual {
    transform: scale(0.94) rotate(-2deg);
    background: color-mix(in srgb, var(--red) 14%, #fffaf4);
    color: var(--red);
}

#cupModal .variation-image,
#cupModal .modifier-image,
#cupModal .topping-chip .modifier-image {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: inherit;
    object-fit: cover;
}

#cupModal .option-copy {
    display: grid;
    min-width: 0;
    gap: 0.24rem;
}

#cupModal .size-option .option-copy {
    justify-items: center;
}

#cupModal .size-label,
#cupModal .flavour-label,
#cupModal .topping-label {
    color: #2b1d20;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.22;
}

#cupModal .size-price,
#cupModal .flavour-price,
#cupModal .topping-chip-price,
#cupModal .option-included {
    margin: 0;
    color: var(--red);
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.2;
    opacity: 1;
}

#cupModal .option-included {
    color: #3d6d56;
}

#cupModal .option-check {
    position: absolute;
    inset-block-start: 0.55rem;
    inset-inline-end: 0.55rem;
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    border: 1px solid #dfd0c8;
    border-radius: 8px;
    background: #fffaf4;
    color: transparent;
    transform: scale(0.86);
    transition: transform 180ms cubic-bezier(0.25, 1, 0.5, 1),
                color 160ms linear,
                background-color 160ms linear,
                border-color 160ms linear;
}

#cupModal .selected .option-check {
    border-color: var(--red);
    background: var(--red);
    color: #fffaf4;
    transform: scale(1);
}

.cup-modal-dock {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 0.7rem 1.4rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eadfd8;
    background: #fffaf4;
    box-shadow: 0 -0.9rem 2rem rgba(43, 29, 32, 0.06);
}

.cup-live-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    margin-bottom: 0.55rem;
}

.cup-live-summary-label {
    flex: 0 0 auto;
    color: #8a746a;
    font-size: 0.67rem;
    font-weight: 900;
    white-space: nowrap;
}

.cup-live-summary-items {
    display: flex;
    min-width: 0;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.cup-live-summary-items::-webkit-scrollbar {
    display: none;
}

.cup-live-summary-chip {
    flex: 0 0 auto;
    max-width: 9rem;
    padding: 0.28rem 0.55rem;
    overflow: hidden;
    border-radius: 8px;
    background: #f0e5de;
    color: #614e47;
    font-size: 0.67rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    animation: cupChipIn 220ms cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes cupChipIn {
    from { opacity: 0; transform: translateY(0.25rem) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#cupModal .modal-price-bar {
    margin: 0;
    padding: 0.1rem 0 0.6rem;
    border: 0;
    color: #806d65;
    font-size: 0.75rem;
    font-weight: 800;
}

#cupModal .modal-running-price {
    color: #2b1d20;
    font-size: 1.2rem;
}

#cupModal .modal-running-price.is-updating {
    animation: cupPricePulse 240ms cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes cupPricePulse {
    45% { color: var(--red); transform: translateY(-2px) scale(1.04); }
}

#cupModal .modal-footer {
    gap: 0.65rem;
    padding: 0;
    /* Enlarged text or a very narrow screen wraps the buttons onto two rows instead of clipping the primary action. */
    flex-wrap: wrap;
}

#cupModal .cup-nav-btn {
    min-height: 3.35rem;
    min-width: 0;
    border-radius: 8px;
    font-weight: 900;
    white-space: normal;
    line-height: 1.2;
}

#cupModal .cup-prev-btn {
    flex: 0 1 34%;
    background: #f5ebe4;
    border-color: #e4d5cd;
}

#cupModal .cup-next-btn {
    flex: 1 1 8rem;
    box-shadow: 0 0.7rem 1.5rem color-mix(in srgb, var(--red) 22%, transparent);
}

@media (min-width: 768px) {
    #cupModal .modal-body {
        padding-inline: 1.75rem;
    }

    #cupModal .modal-header,
    #cupModal .modal-step-dots-wrap,
    #cupModal .cup-modal-dock {
        padding-inline: 1.75rem;
    }

    #cupModal .toppings-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    #cupModal.modal-overlay {
        align-items: stretch;
        padding: 0;
        background: #fffaf4;
    }

    #cupModal .modal-box {
        width: 100%;
        height: 100dvh;
        max-width: none;
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: translateY(1.25rem);
    }

    #cupModal .modal-header {
        min-height: 4.7rem;
        padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem 0.65rem;
    }

    #cupModal .modal-step-dots-wrap {
        padding-inline: 1rem;
    }

    #cupModal .modal-step-dots {
        padding-block: 0.65rem 0.5rem;
    }

    #cupModal .modal-body {
        padding: 0 1rem 1.25rem;
    }

    .cup-product-context {
        margin-bottom: 1rem;
        padding-block: 0.55rem 0.75rem;
    }

    .cup-product-thumb {
        width: 3rem;
        height: 3rem;
        flex-basis: 3rem;
    }

    #cupModal .cup-step-title {
        font-size: clamp(1.45rem, 7vw, 1.9rem);
    }

    #cupModal .size-options {
        gap: 0.5rem;
    }

    #cupModal .size-option {
        min-height: 7.65rem;
        padding-inline: 0.35rem;
    }

    #cupModal .size-option .option-visual {
        width: 3.75rem;
        height: 3.75rem;
    }

    #cupModal .flavour-grid,
    #cupModal .toppings-grid {
        gap: 0.55rem;
        grid-template-columns: 1fr;
    }

    #cupModal .flavour-option,
    #cupModal .topping-chip {
        grid-template-columns: 3.25rem minmax(0, 1fr);
        gap: 0.8rem;
        min-height: 5rem;
        padding: 0.65rem;
        border-radius: 8px;
    }

    #cupModal .flavour-option .option-visual,
    #cupModal .topping-chip .option-visual {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 8px;
    }

    #cupModal .size-label,
    #cupModal .flavour-label,
    #cupModal .topping-label {
        font-size: 0.9rem;
    }

    #cupModal .option-check {
        inset-block-start: 0.42rem;
        inset-inline-end: 0.42rem;
        width: 1.25rem;
        height: 1.25rem;
    }

    .cup-modal-dock {
        padding: 0.62rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    #cupModal .cup-nav-btn {
        min-height: 3.15rem;
    }
}

@media (max-width: 350px) {
    #cupModal .flavour-grid,
    #cupModal .toppings-grid {
        grid-template-columns: 1fr;
    }

    .cup-selection-count.is-max::after {
        content: "";
    }
}

/* Portion levels (Normal / Double) and ingredient amounts (No / Normal / Extra) inside a customizer step. */
.cup-levels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cup-levels.is-auto-portioned {
    display: none;
}

.cup-levels-label {
    flex-basis: 100%;
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
}

.cup-level-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.4rem 0.9rem;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

    .cup-level-chip:hover { border-color: var(--red); }

    .cup-level-chip.selected {
        border-color: var(--red);
        background: var(--red);
        color: #fff;
    }

.cup-level-price { font-size: 0.68rem; opacity: 0.8; }

/* An add-on with portion levels is one full-width card — the add-on, then its levels under it — like the
   POS item sheet. The card carries the border and the selected look; the add-on inside becomes a plain row. */
#cupModal .cup-addon-card {
    grid-column: 1 / -1;
    display: grid;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #e5d8d0;
    border-radius: 8px;
    background: #fffdf9;
    transition: border-color 160ms linear, background-color 160ms linear, box-shadow 160ms linear;
}

#cupModal .cup-addon-card[hidden] { display: none; }

#cupModal .cup-addon-card:has(> .selected) {
    border-color: var(--red);
    background: color-mix(in srgb, var(--red) 7%, #fffaf4);
    box-shadow: 0 0.55rem 1.4rem color-mix(in srgb, var(--red) 12%, transparent);
}

#cupModal .cup-addon-card > .flavour-option,
#cupModal .cup-addon-card > .topping-chip {
    min-height: 0;
    padding: 0;
    padding-inline-end: 2.2rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#cupModal .cup-addon-card > .flavour-option:hover,
#cupModal .cup-addon-card > .topping-chip:hover,
#cupModal .cup-addon-card > .selected {
    background: transparent;
    box-shadow: none;
    transform: none;
}

#cupModal .cup-addon-card > .flavour-option .option-visual,
#cupModal .cup-addon-card > .topping-chip .option-visual {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
}

#cupModal .cup-addon-card > .flavour-option .option-check,
#cupModal .cup-addon-card > .topping-chip .option-check {
    inset-block-start: 50%;
    inset-inline-end: 0;
    translate: 0 -50%;
}

#cupModal .cup-addon-card .cup-levels { margin-top: 0.65rem; }

/* Every add-on is one full-width row at every screen size, as on the POS — plain ones and ones with levels alike. */
#cupModal .flavour-grid,
#cupModal .toppings-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

#cupModal :is(.flavour-grid, .toppings-grid) > :is(.flavour-option, .topping-chip) {
    min-height: 0;
    padding-inline-end: 2.95rem;
}

#cupModal :is(.flavour-grid, .toppings-grid) :is(.flavour-option, .topping-chip) .option-visual {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
}

#cupModal :is(.flavour-grid, .toppings-grid) > :is(.flavour-option, .topping-chip) .option-check {
    inset-block-start: 50%;
    inset-inline-end: 0.75rem;
    translate: 0 -50%;
}

/* Ingredient amounts get the same card; highlighted while the ingredient is in the cup (any amount but "No"). */
#cupModal .cup-ingredient {
    padding: 0.75rem;
    border: 1px solid #e5d8d0;
    border-radius: 8px;
    background: #fffdf9;
    transition: border-color 160ms linear, background-color 160ms linear;
}

#cupModal .cup-ingredient:has(.cup-level-chip.selected:not([data-none])) {
    border-color: var(--red);
    background: color-mix(in srgb, var(--red) 7%, #fffaf4);
}

#cupModal .cup-ingredient .cup-levels-label {
    color: #2b1d20;
    font-size: 0.82rem;
    font-weight: 900;
}

/* Configuration rules: what a rule decided, shown where the customer is choosing. */
.cup-rule-notes {
    margin: 0.4rem 0 0;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--red);
}

.cup-rule-badge {
    display: inline-block;
    margin-inline-start: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--red);
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

/* Labels a rule puts on an option or a step, in one of three tones. */
.cup-rule-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.4rem 0 0;
}

.cup-rule-label {
    display: inline-block;
    margin-inline-start: 0.35rem;
    padding: 0.1rem 0.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.5;
    vertical-align: middle;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.cup-rule-labels .cup-rule-label { margin-inline-start: 0; }
.cup-rule-label--warning { background: rgba(217, 119, 6, 0.14); color: #b45309; }
.cup-rule-label--promo { background: rgba(22, 163, 74, 0.12); color: #15803d; }

.flavour-option.is-rule-disabled,
.topping-chip.is-rule-disabled,
.cup-levels.is-rule-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(1);
}

.flavour-option.is-rule-required,
.topping-chip.is-rule-required {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

/* ════════════════════════════════════════════════════════════════
   CONTACT US (order-page footer + profile home)
   ══════════════════════════════════════════════════════════════ */
.contact-us { max-width: 1180px; margin: 0 auto 1.25rem; text-align: center; font-family: var(--font-body); }
.contact-us-title { margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 800; color: var(--red); }
.contact-us-sub { margin: 0 0 .85rem; font-size: .85rem; color: #6b7280; }
.contact-us-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.contact-us-link {
    display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem;
    border-radius: 8px; border: 1px solid rgba(220,38,38,.25); background: #fff;
    color: var(--red); font-size: .85rem; font-weight: 700; text-decoration: none;
    transition: background .2s, color .2s;
}
.contact-us-link:hover, .contact-us-link:focus-visible { background: var(--red); color: #fff; }
.contact-us-value { font-weight: 600; opacity: .85; }
.profile-page .contact-us { margin: 1rem 0 0; padding: 1rem; border-radius: 8px; background: var(--acct-card); box-shadow: var(--acct-shadow); }

/* ── Order rating (profile history list + order detail) ── */
.profile-order-item { flex-wrap: wrap; }
.profile-order-rating { flex: 0 0 100%; }
.order-stars { display: inline-flex; gap: 1px; font-size: 1rem; line-height: 1; color: #d1d5db; letter-spacing: 0; }
.order-stars .on { color: #f5b301; }
.order-rate-chip {
    display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .7rem; border-radius: 8px;
    background: #fff4e5; color: #b45309; font-size: .78rem; font-weight: 800; cursor: pointer;
}
.order-rate-chip:hover, .order-rate-chip:focus-visible { background: #ffe4bd; }
.order-rating-card {
    margin-top: 1rem; padding: 1rem; text-align: center; border-radius: 8px;
    background: #fff9ec; border: 1px solid #fde7b0; font-family: var(--font-body);
}
.order-rating-card.is-rated { background: #f0fdf4; border-color: #bbf7d0; }
.order-rating-card .order-stars { font-size: 1.6rem; margin: .35rem 0; }
.order-rating-title { font-weight: 800; font-size: 1rem; }
.order-rating-sub { font-size: .85rem; color: #6b7280; }
.order-rating-cta {
    display: inline-block; margin-top: .7rem; padding: .65rem 1.4rem; border-radius: 8px;
    background: var(--red); color: #fff; font-weight: 800; text-decoration: none;
}

/* Shared controls use the ordering site's corners without changing other pages. */
:is(.order-page, .menu-preview-page) {
    --radius-xl: 8px;
    --radius-2xl: 8px;
}

:is(.order-page, .menu-preview-page) :is(
    .btn, .btn-block, .pill,
    .pwa-nav-btn, .pwa-btn, .pwa-sheet, .pwa-sheet-close, .pwa-sheet-icon,
    .pwa-perk-icon, .pwa-step, .pwa-step-num, .pwa-step-glyph,
    .pwa-row, .pwa-row-icon, .pwa-switch, .pwa-switch-knob,
    .pwa-promo, .pwa-promo-icon, .success-push, .pwa-success-card, .pwa-success-icon,
    .tracking-consent, .tracking-consent__button, .tracking-preferences
) {
    border-radius: 8px;
}

/* Top navigation icons stay circular throughout the ordering flow. */
.order-navbar :is(.nav-lang-btn, .nav-account-btn, .nav-cart-btn, .pwa-nav-btn) {
    border-radius: 50%;
}
