/* ── Reset & base ────────────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.kiosk-mode {
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --primary-blue:  #3b7be0;
    --primary-green: #58BF68;
    --danger:        #e53935;
    --border:        #e6e6e6;
    --radius:        10px;
}

/* ── Kiosk wrapper ───────────────────────────────────────────────────────── */
.kiosk-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

/* ── Top bar (operator-facing) ───────────────────────────────────────────── */
.kiosk-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    padding: 10px 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    font-size: 13px;
    color: #555;
}

.location-info strong { color: #222; }

.kiosk-logout a {
    color: var(--danger);
    font-weight: 600;
    text-decoration: none;
}
.kiosk-logout a:hover { text-decoration: underline; }

/* ── Sticky header ───────────────────────────────────────────────────────── */
.kiosk-header {
    background: white;
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

/* ── New order button ────────────────────────────────────────────────────── */
.new-order-btn {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.new-order-btn:hover { background: #4caf50; }

/* ── Search ──────────────────────────────────────────────────────────────── */
.search-container {
    flex: 1;
    display: flex;
    position: relative;
}

.kiosk-search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px 0 0 8px;
    outline: none;
    transition: border-color 0.2s;
}
.kiosk-search-input:focus { border-color: var(--primary-blue); }

.search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-icon { width: 20px; height: 20px; fill: #fff; }

/* ── Mobile cart icon (hidden on desktop/tablet) ─────────────────────────── */
.mobile-cart-icon-btn {
    display: none;
    position: relative;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}
.mobile-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Category navigation ─────────────────────────────────────────────────── */
.category-nav {
    display: flex;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.category-link {
    color: #444;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    padding: 9px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.15s ease;
}
.category-link:hover {
    background: #eef4ff;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}
.category-link.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

/* ── Main layout (products + cart) ──────────────────────────────────────── */
.main-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.products-area { flex: 1; min-width: 0; }

.category-section {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.category-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
    color: #222;
}

/* ── Product grid ────────────────────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.11);
}

/* Product image — lazy <img> */
.product-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9f9f9;
    position: relative;
}
.product-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.product-card:hover .product-thumb { transform: scale(1.06); }

.product-card-content {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #222;
    line-height: 1.3;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stock label */
.product-stock-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .3px;
    align-self: flex-start;
}
.product-stock-label.stock-in {
    background: #e8f5e9;
    color: #2e7d32;
}
.product-stock-label.stock-out {
    background: #fce4ec;
    color: #c62828;
}

/* Variant buttons */
.product-variant-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.product-variant-btn {
    border: 1.5px solid #ddd;
    border-radius: 10px;
    background: #fff;
    padding: 8px 6px;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}
.product-variant-btn:hover {
    border-color: var(--primary-blue);
    background: #eef4ff;
}
.product-variant-btn.in-cart {
    border-color: var(--primary-green);
    background: #f0fff2;
}

.variant-weight {
    font-weight: 700;
    color: #333;
    font-size: 13px;
    text-align: center;
}
.variant-price {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    text-align: center;
}
.variant-add {
    background: var(--primary-blue);
    color: #fff;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

/* Inline qty controls on variant button */
.variant-qty-controls {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2px;
    margin-top: 4px;
}
.variant-qty-controls.visible { display: flex; }

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-weight: 800;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}
.qty-btn:hover { background: #f0f0f0; }

.qty-value {
    min-width: 22px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

/* No products fallback */
.no-products-message {
    width: 100%;
    padding: 24px;
    border: 1px solid #f2a400;
    border-radius: 8px;
    background: #fff7e6;
    text-align: center;
    color: #8b5a00;
    font-weight: 600;
    margin-top: 10px;
}

/* ── Sticky cart (desktop / large tablet) ────────────────────────────────── */
.sticky-cart {
    width: 320px;
    flex-shrink: 0;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: var(--kiosk-header-h, 120px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 130px);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.09);
}

.sticky-cart h3 {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
    color: #222;
}

#cart-items {
    flex: 1 1 auto;
    min-height: 80px;
    overflow-y: auto;
    margin-bottom: 14px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222;
}
.cart-item-meta { font-size: 12px; color: #777; }
.cart-item-price { font-weight: 700; font-size: 13px; color: #111; white-space: nowrap; }
.cart-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}
.cart-item-qty-controls button {
    width: 26px;
    height: 26px;
    border: 1px solid #bbb;
    background: #fff;
    color: #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    padding: 0px;
    font-weight: 700;
    font-size: 14px;
}
.cart-item-qty-controls span {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
}
.cart-item-remove {
    color: #bbb;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-total-line {
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 2px solid #eee;
    text-align: right;
    color: #111;
}
.cart-currency { margin-right: 1px; }

/* Min order warning in cart */
.cart-min-order-msg {
    flex-shrink: 0;
    font-size: 12px;
    color: #c62828;
    font-weight: 600;
    background: #fce4ec;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    text-align: center;
}

.cart-actions {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}
.checkout-btn {
    flex: 2;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}
.checkout-btn:hover { background: #2d67c8; }
.clear-cart-btn {
    flex: 1;
    background: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}
.clear-cart-btn:hover { background: #e2e2e2; }

/* ── Kiosk step overlays ──────────────────────────────────────────────────── */
.kiosk-step-screen {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1100;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 16px;
    overflow-y: auto;
}
.kiosk-step-screen.active,
.kiosk-step-screen:not(.hidden) {
    display: flex;
}

.kiosk-step-box {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    margin: 0 auto;
    position: relative;
}

.kiosk-step-box h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1a1a1a;
}
.kiosk-step-box > p {
    color: #666;
    margin-bottom: 16px;
    font-size: 15px;
}

/* Back button */
.step-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}
.step-back-btn:hover { background: #f0f0f0; color: #333; }

/* Home / close button — top-right of every step box */
.step-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1.5px solid #ddd;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.step-close-btn:hover {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #c62828;
}

/* Shared input styles inside step boxes */
.kiosk-step-box input[type="text"],
.kiosk-step-box input[type="tel"],
.kiosk-step-box input[type="email"],
.kiosk-step-box input[type="url"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    display: block;
    text-align: left;
}
.kiosk-step-box input:focus { border-color: var(--primary-blue); }

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Common action button */
.kiosk-action-btn {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 18px;
    margin: 6px 4px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s;
}
.kiosk-action-btn:hover { background: #2d67c8; }
.kiosk-action-btn--outline {
    background: #fff;
    color: var(--primary-blue);
    border: 1.5px solid var(--primary-blue);
}
.kiosk-action-btn--outline:hover { background: #eef4ff; }
.kiosk-action-btn.disabled,
.kiosk-action-btn:disabled {
    background: #b0bec5;
    cursor: not-allowed;
}

.kiosk-message {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--danger);
    min-height: 20px;
}
.kiosk-message.success { color: #2e7d32; }

/* OTP countdown */
.otp-timer {
    margin: 8px 0;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

/* OTP numeric keypad */
.otp-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px auto;
    max-width: 300px;
}

.numpad-key {
    padding: 0;
    aspect-ratio: 1 / 1;
    font-size: 1.6rem;
    font-weight: 700;
    background: #f5f7fa;
    border: 2px solid #dde3ec;
    border-radius: 12px;
    cursor: pointer;
    color: #1a1a1a;
    line-height: 1;
    transition: background 0.12s, transform 0.08s;
}

.numpad-key:active {
    background: #dbe8ff;
    transform: scale(0.93);
}

.numpad-backspace {
    font-size: 1.3rem;
    background: #fff5f5;
    border-color: #ffd0d0;
    color: #c0392b;
}

.numpad-backspace:active { background: #ffd0d0; }

.numpad-empty {
    visibility: hidden;
    pointer-events: none;
}

/* ── Address form labels ─────────────────────────────────────────────────── */
.addr-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 3px;
    text-align: left;
}
.required-star {
    color: var(--danger);
}
.optional-hint {
    color: #aaa;
    font-weight: 400;
    font-size: 11px;
}

/* ── Password toggle ─────────────────────────────────────────────────────── */
.password-input-wrap {
    position: relative;
    margin-bottom: 10px;
}
.password-input-wrap input {
    margin-bottom: 0 !important;
    padding-right: 46px !important;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.password-toggle:hover { color: #444; }

/* Honeypot — visually hidden from humans */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* ── Delivery type selector ──────────────────────────────────────────────── */
.delivery-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    justify-content: center;
}
.delivery-type-option {
    cursor: pointer;
}
.delivery-type-option input[type="radio"] { display: none; }
.delivery-type-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    color: #555;
    background: #fafafa;
    transition: all 0.15s;
    cursor: pointer;
}
.delivery-type-option input[type="radio"]:checked + .delivery-type-label {
    border-color: var(--primary-blue);
    background: #eef4ff;
    color: var(--primary-blue);
}

/* Store pickup note */
.store-pickup-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
    text-align: left;
    color: #2e7d32;
    font-size: 14px;
}
.store-pickup-note svg { flex-shrink: 0; }

/* Address card */
.address-card {
    background: #f9f9f9;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    text-align: left;
}
.address-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.address-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

#saved-address-display {
    font-size: 13px;
    color: #444;
    white-space: pre-line;
    line-height: 1.6;
}

/* ── Payment options ─────────────────────────────────────────────────────── */
.payment-options { margin: 14px 0; text-align: left; }
.payment-options-label {
    font-weight: 700;
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}

.payment-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #fafafa;
}
.payment-radio-label input[type="radio"] { accent-color: var(--primary-blue); width: 18px; height: 18px; flex-shrink: 0; }
.payment-radio-label:has(input:checked) {
    border-color: var(--primary-blue);
    background: #eef4ff;
}

.payment-radio-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.payment-radio-text strong { font-size: 14px; color: #222; }
.payment-radio-text small { font-size: 12px; color: #888; }

/* UPI QR */
.upi-qr-container {
    background: #f9f9f9;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    text-align: center;
}
.upi-qr-instruction {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
}
.upi-qr-img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 2px solid var(--border);
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}
.upi-qr-img--sm { max-width: 140px; }
.upi-qr-unavailable {
    font-size: 13px;
    color: #b71c1c;
    font-weight: 600;
}

/* Place order button */
.place-order-btn {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    margin: 10px 0 4px;
    border-radius: 10px;
}

/* ── Step 4: Confirmation ────────────────────────────────────────────────── */
.confirmation-box { padding-top: 32px; }

.confirmation-checkmark {
    width: 70px;
    height: 70px;
    background: var(--primary-green);
    color: #fff;
    border-radius: 50%;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-weight: 900;
}

.confirmation-thankyou {
    font-size: 28px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.confirmation-message {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.confirmation-order-id {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}

.auto-reset-note {
    margin-top: 20px;
    font-size: 13px;
    color: #aaa;
}
#reset-countdown { font-weight: 700; color: #555; }

/* ── Kiosk login screen ──────────────────────────────────────────────────── */
.kiosk-login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f4f6f8;
    position: relative;
}

.kiosk-login-contact {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 13px;
    color: #555;
}
.kiosk-login-contact a {
    color: var(--primary-blue, #3b7be0);
    text-decoration: none;
    font-weight: 600;
}
.kiosk-login-contact a:hover { text-decoration: underline; }

.kiosk-login-box {
    background: #fff;
    padding: 40px 36px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    max-width: 380px;
    width: 100%;
    text-align: center;
}
.kiosk-login-box h2 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 800;
}

.kiosk-login-form {
    display: grid;
    gap: 12px;
    text-align: left;
}
.kiosk-login-form label {
    font-weight: 600;
    font-size: 14px;
    color: #555;
    display: block;
    margin-bottom: 4px;
}
.kiosk-login-form input {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}
.kiosk-login-form input:focus { border-color: var(--primary-blue); }

.kiosk-login-btn {
    width: 100%;
    background: var(--primary-blue);
    border: none;
    color: #fff;
    padding: 13px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: 4px;
}
.kiosk-login-btn:hover { background: #2d67c8; }

.kiosk-login-error {
    margin-top: 12px;
    color: var(--danger);
    font-weight: 600;
    font-size: 14px;
    background: #fce4ec;
    border-radius: 6px;
    padding: 8px 12px;
}

/* ── Location switcher (super admin) ─────────────────────────────────────── */
.location-switcher {
    margin-bottom: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 15px;
    display: inline-block;
}
.location-switcher form { margin-bottom: 0; }
.kiosk-location-form label { margin-right: 8px; font-weight: 600; font-size: 14px; }
.kiosk-location-form select { padding: 7px 10px; border-radius: 6px; border: 1px solid #ccc; }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Tablet (portrait kiosk target: ~768–1024px) ─────────────────────────── */
@media (max-width: 1024px) {
    .kiosk-wrapper { padding: 12px; }

    .header-container { flex-wrap: wrap; }

    .search-container { flex: 1 1 200px; }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }

    /* Keep sticky cart visible on tablet landscape */
    .sticky-cart {
        width: 280px;
    }
}

/* ── Mobile (≤768px) ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .kiosk-wrapper { padding: 10px; }

    .header-container { flex-wrap: wrap; gap: 10px; }

    .new-order-btn { width: 100%; order: -1; }

    .search-container { order: 1; flex: 1 1 auto; }

    /* Show cart icon, hide full sticky cart */
    .mobile-cart-icon-btn { display: flex; }

    .sticky-cart {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 14px 14px 0 0;
        top: auto;
        z-index: 800;
        overflow: hidden;
    }
    .sticky-cart.mobile-open { display: flex; }

    .main-content { flex-direction: column; }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .category-nav { flex-wrap: wrap; gap: 8px; }

    .delivery-type-selector { flex-direction: column; align-items: stretch; }
    .delivery-type-label { justify-content: center; }
}
