/* ─── 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;
}

/* Ensure [hidden] always wins — overrides any display: flex/grid on these */
.modal-overlay[hidden],
.success-overlay[hidden],
.cart-bottom-bar[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: 1.5rem;
    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: 50%;
    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: 999px;
    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: 999px;
    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: 1.5rem;
    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: 999px;
    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: 0.875rem;
    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: 1.125rem;
    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: 1rem;
    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: 999px;
    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: 0.875rem;
    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: 1rem;
    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: 999px;
    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: 1.25rem;
    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: 14px;
    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: 12px;
    display: block;
    margin: 0 auto 6px;
    background: #f4f4f6;
}

.modifier-image {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 10px;
    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-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: 999px;
    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: 1.5rem;
    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: 999px;
    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: var(--small-font-size);
    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: 50%;
    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: 50%;
    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: 1rem;
    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: 1.125rem;
    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-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: 0.625rem;
}

    .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: var(--small-font-size);
    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: 1rem;
    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: 50%;
    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: 50%;
    }

.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: 999px;
    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: 1rem;
    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: 0.75rem;
    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: 0.75rem;
    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: 0.75rem;
    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: 1rem;
    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: 0.75rem;
    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: 0.75rem;
    background: #fff;
}

.otp-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 3rem;
    border-radius: 0.75rem;
}

.otp-debug {
    margin-top: 0.75rem;
    color: #48610c;
    background: rgba(231,252,147,0.35);
    border-radius: 0.75rem;
    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: 0.75rem;
    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: 0.9rem;
    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: 0.625rem;
    padding: 0.4rem var(--small-font-size);
    margin-bottom: var(--small-font-size);
}
/* Place order block */
.place-order-block {
    margin-top: 1.25rem;
}

.order-total-display {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--red);
    margin-bottom: 1rem;
}

.checkout-error {
    margin-top: var(--small-font-size);
    background: rgba(193,34,57,0.07);
    color: var(--red);
    border-radius: var(--small-font-size);
    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: 1rem;
    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: 999px;
    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-red {
    background: #fff;
    color: var(--red);
    border: 2px solid var(--red);
}

    .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: 1.5rem 1.5rem 0 0;
    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: 50%;
    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: 1.75rem 1.75rem 0 0;
    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: 50%;
    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: 50%;
    background: #e5e7eb;
    transition: background 0.2s, width 0.2s;
}

    .modal-dot.active {
        background: var(--red);
        width: 24px;
        border-radius: 4px;
    }

/* 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: 1.125rem;
    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: 1rem;
    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: 0.625rem;
    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: 999px;
    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: 999px;
    padding: 0.1rem 0.35rem;
    font-weight: 800;
}

/* 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: 999px;
    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;
}
/* ── WhatsApp button ── */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 999px;
    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: 1.25rem;
    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: 1rem;
    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"] .promo-row {
    flex-direction: row-reverse;
}

[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: 1.75rem;
        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: 1.25rem;
        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: 1rem;
    }

    .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: 1.5rem;
        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"] .promo-row {
        flex-direction: column;
    }

    [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: sticky;
    top: 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;
}

.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;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    justify-self: start;
}

    .nav-lang-btn:hover {
        background: rgba(255,255,255,0.25);
    }

.navbar-logo-link {
    justify-self: center;
    display: flex;
    align-items: center;
}

.navbar-logo-img {
    height: 4rem;
    width: auto;
    display: block;
}

.nav-account-btn {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    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;
}

    .nav-account-btn:hover {
        background: rgba(255,255,255,0.25);
        color: #fff;
        border-color: rgba(255,255,255,0.45);
    }

/* 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: 999px;
    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: 1.75rem 1.75rem 0 0;
    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: 2px;
    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: 50%;
    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: 1.75rem 1.75rem 0 0;
    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);
    }
}

/* ════════════════════════════════════════════════════════════════
   PROFILE SHEET (extends .bottom-sheet)
   ══════════════════════════════════════════════════════════════ */
.profile-sheet {
    max-height: 95dvh;
}

.profile-status {
    margin: 0 1.25rem 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.profile-status.success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.profile-status.error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.profile-guest-panel {
    padding: 0 1.25rem 1.5rem;
    flex: 1;
}

.profile-guest-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    text-align: center;
}

.profile-guest-icon {
    color: #9ca3af;
}

.profile-guest-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-guest-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 900;
    color: #1a1a1a;
}

.profile-guest-sub {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #6b7280;
}

.profile-authed-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.profile-authed-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
}

.profile-authed-footer {
    padding: 0.875rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
}

.profile-section {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

    .profile-section:last-child {
        border-bottom: none;
    }

.profile-section-label {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #838383;
    margin-bottom: 0.75rem;
}

.profile-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.profile-phone-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.profile-phone-label {
    flex-shrink: 0;
}

.profile-phone-value {
    font-weight: 700;
    color: #374151;
    unicode-bidi: plaintext;
}

#profileSaveBtn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.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: 0.875rem;
    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: 999px;
    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;
    justify-content: space-between;
    gap: 0.625rem;
    width: 100%;
    text-align: start;
    padding: 0.75rem 0.875rem;
    border: 1.5px solid rgba(0,0,0,0.07);
    border-radius: 0.875rem;
    background: #f8f9fb;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

    .profile-order-item:hover {
        border-color: rgba(0,0,0,0.16);
        background: #f1f3f7;
    }

.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: 999px;
    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-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;
}

/* ── 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);*/
    }

/* Inline OTP widget injected by auth.js into the guest panel */
.profile-otp-inline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* ════════════════════════════════════════════════════════════════
   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: 50%;
    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: 1.125rem;
    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-account-btn {
    justify-self: end !important;
}

[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: 1rem;
    }

    .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;
    }

    .navbar-logo-img {
        height: 3rem;
    }
}

/* ─── 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: 6px;
    }

    .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-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: 10px;
    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: 10px;
}

/* ════════════════════════════════════════════════════════════════
   AUTH SHEET — full-screen overlay for name + phone + OTP
   ══════════════════════════════════════════════════════════════ */
.auth-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    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: 0.5rem;
    flex-shrink: 0;
}

    .auth-sheet-back:hover {
        background: #f3f4f6;
    }

.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: 0.5rem;
    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: 0.9rem;
    padding: 0.625rem 0.5rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    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: 0.875rem;
    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: 0.5rem;
    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: 0.625rem;
    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: 1.25rem;
    }
}

.item-note-sheet {
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    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: 0.5rem;
    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: 0.875rem;
    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-account-btn {
    width: 44px;
    height: 44px;
}

.nav-lang-btn {
    min-height: 44px;
    box-sizing: border-box;
}

@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;
    }
}
