/* ─── 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;
}

/* ════════════════════════════════════════════════════════════════
   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;
}

    .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: 0.8rem;
    color: var(--blue);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* 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 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;
}

    .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: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.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;
}

.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 {
    position: sticky;
    top: 1.5rem;
}

.cart-panel-inner {
    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: 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);
}

    .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.7rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-note-input {
    width: 100%;
    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-price {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--red);
    margin-top: 0.2rem;
}

.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: 1rem;
    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.8125rem;
    color: #6b7280;
    padding: 0.3rem 0;
}

.totals-discount {
    color: #16a34a;
}

.totals-total {
    font-family: var(--font-display);
    font-size: 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;
}

/* ════════════════════════════════════════════════════════════════
   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,187,248,0.2) 0%, rgba(231,252,147,0.15) 100%);
    border: 1.5px solid rgba(255,187,248,0.5);
    border-radius: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.contact-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.contact-emoji-wrap {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.contact-card-title {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.contact-card-sub {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.45;
}

.contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.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: rtl;
    padding-block: 1px;
    padding-inline: 2px;
}

[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) {
    .cart-bottom-bar {
        display: none !important;
    }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE — ≤ 767px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    [dir="rtl"] .order-lang-btn {
        right: 40%
    }
    .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-grid {
        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;
    }

    .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;
    }
}

/* ════════════════════════════════════════════════════════════════
   VERY SMALL — ≤ 380px (e.g. iPhone SE)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
    .order-layout {
        padding: 0.875rem 0.625rem;
    }

    .order-step {
        padding: 1rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
    /* single column on tiny screens */
    .mode-tab {
        min-height: 64px;
    }

    .order-hero-title {
        font-size: 1.5rem;
    }
}
