/* ============================================================
   BizlyMiniKISOK — Global Design System
   Source: Google Stitch Project 3313825284988843595
   Design Theme: BizlyMiniKIOSK (Expressive Modernism)
   ============================================================ */

/* ---------- 1. FONTS ---------- */
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/nunito/nunito-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/nunito/nunito-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/nunito/nunito-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/nunito/nunito-800.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

/* ---------- 2. DESIGN TOKENS ---------- */
:root {
    /* Colors — Emerald Green Palette */
    --c-primary:              #005136;
    --c-primary-container:    #006c49;
    --c-on-primary:           #ffffff;
    --c-on-primary-container: #63f1b4;
    --c-primary-fixed:        #6ffbbe;
    --c-primary-fixed-dim:    #4edea3;
    --c-inverse-primary:      #4edea3;

    --c-secondary:            #9d4300;
    --c-secondary-container:  #fd761a;
    --c-on-secondary:         #ffffff;
    --c-on-secondary-container: #5c2400;

    --c-tertiary:             #444749;
    --c-tertiary-container:   #5c5f61;
    --c-on-tertiary:          #ffffff;
    --c-on-tertiary-container:#d6d9db;

    --c-surface:              #f9f9ff;
    --c-surface-dim:          #d7d9e7;
    --c-surface-bright:       #f9f9ff;
    --c-surface-lowest:       #ffffff;
    --c-surface-low:          #f1f3ff;
    --c-surface-container:    #ebedfb;
    --c-surface-high:         #e5e8f5;
    --c-surface-highest:      #dfe2f0;
    --c-surface-variant:      #dfe2f0;

    --c-on-surface:           #171b25;
    --c-on-surface-variant:   #3f4943;
    --c-inverse-surface:      #2c303a;
    --c-inverse-on-surface:   #edf0fe;

    --c-outline:              #6f7a72;
    --c-outline-variant:      #bec9c0;

    --c-error:                #ba1a1a;
    --c-error-container:      #ffdad6;
    --c-on-error:             #ffffff;
    --c-on-error-container:   #93000a;

    --c-background:           #f9f9ff;
    --c-on-background:        #171b25;

    /* Typography */
    --font-base: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Font Sizes */
    --fs-headline-xl:   32px;  --lh-headline-xl: 40px;   --fw-headline-xl: 800;
    --fs-headline-lg:   24px;  --lh-headline-lg: 32px;   --fw-headline-lg: 700;
    --fs-headline-mob:  20px;  --lh-headline-mob: 28px;  --fw-headline-mob: 700;
    --fs-title-md:      18px;  --lh-title-md: 24px;      --fw-title-md: 600;
    --fs-body-lg:       16px;  --lh-body-lg: 24px;       --fw-body-lg: 400;
    --fs-body-md:       14px;  --lh-body-md: 20px;       --fw-body-md: 400;
    --fs-label-bold:    12px;  --lh-label-bold: 16px;    --fw-label-bold: 700;
    --fs-label-sm:      11px;  --lh-label-sm: 14px;      --fw-label-sm: 500;

    /* Spacing */
    --sp-xs:   4px;
    --sp-sm:   8px;
    --sp-md:   16px;
    --sp-lg:   24px;
    --sp-xl:   32px;
    --sp-edge: 16px;
    --sp-safe-bottom: 24px;
    --sp-stack: 12px;

    /* Border Radius — ROUND_FULL system */
    --r-sm:   0.5rem;   /* 8px  — inputs, chips */
    --r-md:   1rem;     /* 16px — cards */
    --r-lg:   1.5rem;   /* 24px — modals, large containers */
    --r-xl:   2rem;     /* 32px — hero containers */
    --r-full: 9999px;   /* pill — primary buttons */

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-top: 0 -4px 16px rgba(0,0,0,0.08);

    /* Bootstrap overrides */
    --bs-primary:             #005136;
    --bs-secondary:           #fd761a;
    --bs-body-font-family:    var(--font-base);
    --bs-body-bg:             var(--c-background);
    --bs-body-color:          var(--c-on-background);
    --bs-border-radius:       var(--r-sm);
    --bs-border-radius-lg:    var(--r-md);
    --bs-border-radius-xl:    var(--r-lg);
    --bs-border-radius-pill:  var(--r-full);
    --bs-link-color:          var(--c-primary);
}

/* ---------- 3. BASE RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; -webkit-tap-highlight-color: transparent; }

body {
    font-family: var(--font-base);
    font-size: var(--fs-body-md);
    line-height: var(--lh-body-md);
    font-weight: var(--fw-body-md);
    color: var(--c-on-background);
    background-color: var(--c-background);
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
}

/* Mobile viewport — prevent layout shift */
.app-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    background: var(--c-surface-lowest);
    position: relative;
    overflow-x: hidden;
}

/* ---------- 4. TYPOGRAPHY UTILITIES ---------- */
.text-headline-xl  { font-size: var(--fs-headline-xl);  line-height: var(--lh-headline-xl);  font-weight: var(--fw-headline-xl);  letter-spacing: -0.02em; }
.text-headline-lg  { font-size: var(--fs-headline-lg);  line-height: var(--lh-headline-lg);  font-weight: var(--fw-headline-lg); }
.text-headline-mob { font-size: var(--fs-headline-mob); line-height: var(--lh-headline-mob); font-weight: var(--fw-headline-mob); }
.text-title-md     { font-size: var(--fs-title-md);     line-height: var(--lh-title-md);     font-weight: var(--fw-title-md); }
.text-body-lg      { font-size: var(--fs-body-lg);      line-height: var(--lh-body-lg);      font-weight: var(--fw-body-lg); }
.text-body-md      { font-size: var(--fs-body-md);      line-height: var(--lh-body-md);      font-weight: var(--fw-body-md); }
.text-label-bold   { font-size: var(--fs-label-bold);   line-height: var(--lh-label-bold);   font-weight: var(--fw-label-bold); }
.text-label-sm     { font-size: var(--fs-label-sm);     line-height: var(--lh-label-sm);     font-weight: var(--fw-label-sm); }

/* ---------- 5. COLOR UTILITIES ---------- */
.text-primary          { color: var(--c-primary) !important; }
.text-on-surface       { color: var(--c-on-surface) !important; }
.text-on-surface-var   { color: var(--c-on-surface-variant) !important; }
.text-on-primary       { color: var(--c-on-primary) !important; }
.text-secondary        { color: var(--c-secondary) !important; }
.text-error            { color: var(--c-error) !important; }
.text-success          { color: var(--c-primary) !important; }

.bg-primary            { background-color: var(--c-primary) !important; }
.bg-primary-container  { background-color: var(--c-primary-container) !important; }
.bg-secondary-container{ background-color: var(--c-secondary-container) !important; }
.bg-surface            { background-color: var(--c-surface) !important; }
.bg-surface-low        { background-color: var(--c-surface-low) !important; }
.bg-surface-container  { background-color: var(--c-surface-container) !important; }
.bg-surface-high       { background-color: var(--c-surface-high) !important; }
.bg-surface-lowest     { background-color: var(--c-surface-lowest) !important; }
.bg-error-container    { background-color: var(--c-error-container) !important; }

.border-primary        { border-color: var(--c-primary) !important; }
.border-outline        { border-color: var(--c-outline) !important; }
.border-outline-var    { border-color: var(--c-outline-variant) !important; }

/* ---------- 6. BUTTON COMPONENTS ---------- */
/* Primary — pill shape, emerald green */
.btn-kiosk-primary {
    background-color: var(--c-primary);
    color: var(--c-on-primary);
    border: none;
    border-radius: var(--r-full);
    font-family: var(--font-base);
    font-size: var(--fs-headline-mob);
    font-weight: var(--fw-headline-mob);
    line-height: var(--lh-headline-mob);
    padding: 14px var(--sp-lg);
    min-height: 52px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.btn-kiosk-primary:hover  { background-color: var(--c-primary-container); color: var(--c-on-primary); }
.btn-kiosk-primary:active { transform: scale(0.97); box-shadow: var(--shadow-sm); color: var(--c-on-primary); }

/* Secondary — orange outlined */
.btn-kiosk-secondary {
    background-color: transparent;
    color: var(--c-secondary);
    border: 1.5px solid var(--c-secondary);
    border-radius: var(--r-full);
    font-family: var(--font-base);
    font-size: var(--fs-body-lg);
    font-weight: 600;
    padding: 12px var(--sp-lg);
    min-height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}
.btn-kiosk-secondary:hover  { background-color: var(--c-secondary-container); color: var(--c-on-secondary); border-color: var(--c-secondary-container); }
.btn-kiosk-secondary:active { transform: scale(0.97); }

/* Ghost / Tertiary */
.btn-kiosk-ghost {
    background: none;
    border: none;
    color: var(--c-on-surface-variant);
    font-family: var(--font-base);
    font-size: var(--fs-body-lg);
    font-weight: 600;
    padding: 12px var(--sp-md);
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: background-color 0.15s ease;
    text-decoration: none;
}
.btn-kiosk-ghost:hover { background-color: var(--c-surface-high); }

/* Icon button */
.btn-icon {
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-sm);
    border-radius: var(--r-full);
    cursor: pointer;
    color: var(--c-on-surface-variant);
    transition: background-color 0.15s ease;
}
.btn-icon:hover  { background-color: var(--c-surface-high); }
.btn-icon:active { background-color: var(--c-surface-highest); }

/* QTY stepper buttons */
.btn-qty {
    width: 32px; height: 32px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--c-primary);
    background: transparent;
    color: var(--c-primary);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 18px; font-weight: 700;
    line-height: 1;
    padding: 0;
}
.btn-qty:hover  { background: var(--c-primary); color: #fff; }
.btn-qty:active { transform: scale(0.92); }
.btn-qty.btn-qty-fill { background: var(--c-primary); color: #fff; }

/* Quick-add floating button */
.btn-quick-add {
    width: 36px; height: 36px;
    border-radius: var(--r-full);
    background: var(--c-primary);
    color: #fff;
    border: none;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.btn-quick-add:hover  { background: var(--c-primary-container); }
.btn-quick-add:active { transform: scale(0.9); }

/* ---------- 7. CARD COMPONENTS ---------- */
.card-kiosk {
    background: var(--c-surface-lowest);
    border: 1px solid var(--c-outline-variant);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.product-card {
    background: var(--c-surface-lowest);
    border: 1px solid var(--c-outline-variant);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.product-card .product-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: var(--c-surface-high);
}
.product-card .product-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }

/* Product image gradient placeholder */
.product-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
}

.product-card .product-body {
    padding: var(--sp-sm) var(--sp-md) var(--sp-md);
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
    flex: 1;
}
.product-card .product-name {
    font-size: var(--fs-body-lg);
    font-weight: 700;
    line-height: 20px;
    color: var(--c-on-surface);
}
.product-card .product-desc {
    font-size: var(--fs-label-sm);
    color: var(--c-on-surface-variant);
    line-height: var(--lh-label-sm);
}
.product-card .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--sp-xs);
}
.product-card .product-price {
    font-size: var(--fs-title-md);
    font-weight: 700;
    color: var(--c-primary);
}
.product-card .product-price .currency { font-size: 13px; font-weight: 600; }

/* Popular badge */
.badge-popular {
    position: absolute; top: var(--sp-sm); left: var(--sp-sm);
    background: var(--c-secondary-container);
    color: var(--c-on-secondary);
    font-size: 10px; font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--r-full);
    text-transform: uppercase; letter-spacing: 0.05em;
}

/* Unavailable overlay */
.product-unavailable {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.75);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    color: var(--c-on-surface-variant);
    border-radius: inherit;
}

/* ---------- 8. TOP APP BAR ---------- */
.top-app-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--c-surface-lowest);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-sm) var(--sp-edge);
    min-height: 56px;
}
.top-app-bar .brand {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}
.top-app-bar .brand-icon {
    width: 40px; height: 40px;
    border-radius: var(--r-full);
    background: var(--c-primary-container);
    color: var(--c-on-primary-container);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.top-app-bar .brand-name {
    font-size: var(--fs-headline-mob);
    font-weight: var(--fw-headline-mob);
    color: var(--c-primary);
    line-height: 1;
}

/* ---------- 9. BOTTOM ACTION BAR ---------- */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 200;
    background: var(--c-surface-lowest);
    box-shadow: var(--shadow-top);
    padding: var(--sp-md) var(--sp-edge) var(--sp-safe-bottom);
    border-top-left-radius: var(--r-lg);
    border-top-right-radius: var(--r-lg);
    border-top: 1px solid var(--c-outline-variant);
}
.page-content-pad-bottom { padding-bottom: 120px; }

/* ---------- 10. INPUT COMPONENTS ---------- */
.input-kiosk {
    display: block;
    width: 100%;
    padding: 14px var(--sp-md);
    font-family: var(--font-base);
    font-size: var(--fs-body-lg);
    font-weight: 400;
    color: var(--c-on-surface);
    background: var(--c-surface-lowest);
    border: 1.5px solid var(--c-outline-variant);
    border-radius: var(--r-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}
.input-kiosk:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px rgba(0,81,54,0.15);
}
.input-kiosk::placeholder { color: var(--c-on-surface-variant); }

/* Phone input wrapper */
.input-phone-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-phone-prefix {
    position: absolute;
    left: var(--sp-md);
    color: var(--c-on-surface-variant);
    font-size: var(--fs-body-lg);
    font-weight: 600;
    pointer-events: none;
    user-select: none;
}
.input-phone-wrap .input-kiosk { padding-left: 52px; }

/* Floating label */
.input-float-wrap { position: relative; }
.input-float-wrap .input-kiosk { padding-top: 20px; padding-bottom: 8px; }
.input-float-wrap label {
    position: absolute;
    left: var(--sp-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--fs-body-lg);
    color: var(--c-on-surface-variant);
    pointer-events: none;
    transition: all 0.2s ease;
    transform-origin: left top;
    background: transparent;
    padding: 0 2px;
}
.input-float-wrap .input-kiosk:focus + label,
.input-float-wrap .input-kiosk:not(:placeholder-shown) + label {
    top: 10px;
    transform: translateY(0) scale(0.78);
    color: var(--c-primary);
}

/* ---------- 11. LANGUAGE SELECTOR GRID ---------- */
.lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
}
.lang-card {
    background: var(--c-surface-lowest);
    border: 1.5px solid var(--c-outline-variant);
    border-radius: var(--r-lg);
    padding: var(--sp-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-xs);
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
    min-height: 88px;
}
.lang-card:hover  { background: var(--c-surface-low); }
.lang-card:active { transform: scale(0.97); }
.lang-card.selected {
    background: var(--c-primary-container);
    border-color: var(--c-primary);
    color: var(--c-on-primary-container);
}
.lang-card.selected .lang-script { color: var(--c-on-primary-container); }
.lang-card.selected .lang-label  { color: var(--c-on-primary-container); }
.lang-script {
    font-size: var(--fs-headline-lg);
    font-weight: var(--fw-headline-lg);
    color: var(--c-on-surface);
    line-height: 1;
}
.lang-label {
    font-size: var(--fs-label-bold);
    font-weight: var(--fw-label-bold);
    color: var(--c-on-surface-variant);
}

/* ---------- 12. CATEGORY CHIPS ---------- */
.chip-scroll-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--sp-sm) var(--sp-edge);
}
.chip-scroll-wrap::-webkit-scrollbar { display: none; }
.chip-row {
    display: flex;
    gap: var(--sp-sm);
    width: max-content;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--c-outline-variant);
    background: var(--c-surface-lowest);
    font-size: var(--fs-body-md);
    font-weight: 600;
    color: var(--c-on-surface-variant);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    font-family: var(--font-base);
}
.chip:hover { background: var(--c-surface-low); }
.chip.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}
.chip .chip-icon { font-size: 18px; }

/* ---------- 13. CART COMPONENTS ---------- */
/* Cart badge on icon */
.cart-badge {
    position: relative;
    display: inline-flex;
}
.cart-badge-count {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--c-secondary-container);
    color: var(--c-on-secondary);
    width: 20px; height: 20px;
    border-radius: var(--r-full);
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* Cart bottom sheet */
.cart-sheet {
    position: fixed;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px;
    background: var(--c-surface-lowest);
    border-top-left-radius: var(--r-xl);
    border-top-right-radius: var(--r-xl);
    box-shadow: var(--shadow-top);
    z-index: 300;
    max-height: 80dvh;
    display: flex;
    flex-direction: column;
    transform: translateX(-50%) translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
}
.cart-sheet.open { transform: translateX(-50%) translateY(0); }
.cart-sheet-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 299;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-sheet-handle {
    width: 40px; height: 4px;
    background: var(--c-outline-variant);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}
.cart-sheet-header {
    padding: var(--sp-md) var(--sp-edge) var(--sp-sm);
    border-bottom: 1px solid var(--c-outline-variant);
    flex-shrink: 0;
}
.cart-items-list {
    overflow-y: auto;
    flex: 1;
    padding: var(--sp-sm) var(--sp-edge);
}
.cart-item {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-sm) 0;
    border-bottom: 1px solid var(--c-surface-high);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
    width: 52px; height: 52px;
    border-radius: var(--r-sm);
    object-fit: cover;
    background: var(--c-surface-high);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 15px; font-weight: 700; color: var(--c-on-surface); }
.cart-item-price { font-size: var(--fs-body-md); color: var(--c-on-surface-variant); }

.qty-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.qty-value {
    min-width: 24px;
    text-align: center;
    font-size: var(--fs-body-lg);
    font-weight: 700;
    color: var(--c-on-surface);
}

/* Cart summary */
.cart-summary {
    padding: var(--sp-md) var(--sp-edge);
    border-top: 1px solid var(--c-outline-variant);
    background: var(--c-surface-low);
    flex-shrink: 0;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: var(--fs-body-md);
    color: var(--c-on-surface-variant);
}
.cart-summary-row.total {
    font-size: var(--fs-title-md);
    font-weight: 700;
    color: var(--c-on-surface);
    padding-top: var(--sp-sm);
    border-top: 1px solid var(--c-outline-variant);
    margin-top: var(--sp-xs);
}
.cart-footer {
    padding: var(--sp-md) var(--sp-edge) var(--sp-safe-bottom);
    flex-shrink: 0;
}

/* ---------- 14. PAYMENT SCREEN ---------- */
.qr-container {
    background: var(--c-surface-lowest);
    border: 1.5px solid var(--c-outline-variant);
    border-radius: var(--r-xl);
    padding: var(--sp-xl) var(--sp-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-md);
    box-shadow: var(--shadow-md);
}
.qr-canvas-wrap {
    padding: var(--sp-md);
    background: #ffffff;
    border-radius: var(--r-md);
    border: 1px solid var(--c-outline-variant);
}
#qr-canvas canvas, #qr-canvas img { display: block; border-radius: 4px; }

.payment-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--c-error-container);
    color: var(--c-error);
    border-radius: var(--r-full);
    font-size: var(--fs-label-bold);
    font-weight: 700;
}
.payment-timer.safe {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Phonepe logo bar */
.phonepe-bar {
    display: flex; align-items: center; justify-content: center; gap: var(--sp-sm);
    padding: var(--sp-sm) var(--sp-md);
    background: #5f259f;
    border-radius: var(--r-sm);
    color: #fff;
    font-weight: 700;
    font-size: var(--fs-body-md);
}

/* ---------- 15. ORDER CONFIRMATION ---------- */
.success-ring {
    width: 96px; height: 96px;
    border-radius: var(--r-full);
    background: linear-gradient(135deg, var(--c-primary-fixed), var(--c-primary));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 0 12px rgba(0,81,54,0.12), 0 0 0 24px rgba(0,81,54,0.06);
    animation: pop-in 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes pop-in {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.order-id-pill {
    display: inline-block;
    background: var(--c-primary-container);
    color: var(--c-on-primary-container);
    padding: 6px 20px;
    border-radius: var(--r-full);
    font-size: var(--fs-label-bold);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ---------- 16. ERROR SCREEN ---------- */
.error-ring {
    width: 96px; height: 96px;
    border-radius: var(--r-full);
    background: var(--c-error-container);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}

/* ---------- 17. HERO IMAGE ---------- */
.hero-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    background: var(--c-surface-high);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex; align-items: flex-end;
    padding: var(--sp-md);
}

/* Placeholder hero gradient */
.hero-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #005136 0%, #006c49 40%, #4edea3 100%);
    display: flex; align-items: flex-end;
    padding: var(--sp-md);
}

/* ---------- 18. SECTION HEADERS ---------- */
.section-header {
    padding: var(--sp-md) var(--sp-edge) var(--sp-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---------- 19. LOADING SPINNER ---------- */
.kiosk-spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--c-surface-high);
    border-top-color: var(--c-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pulse animation for pending */
@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,81,54,0.4); }
    50%       { box-shadow: 0 0 0 16px rgba(0,81,54,0); }
}
.spinner-pulse { animation: spin 0.8s linear infinite, pulse-ring 1.5s ease infinite; }

/* ---------- 20. PRODUCT GRID ---------- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
    padding: 0 var(--sp-edge) var(--sp-md);
}

/* ---------- 21. TOAST NOTIFICATION ---------- */
.toast-kiosk {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--c-inverse-surface);
    color: var(--c-inverse-on-surface);
    padding: var(--sp-sm) var(--sp-lg);
    border-radius: var(--r-full);
    font-size: var(--fs-body-md);
    font-weight: 600;
    z-index: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}
.toast-kiosk.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- 22. DROPDOWN ---------- */
.lang-dropdown {
    position: relative;
}
.lang-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 10px;
    background: var(--c-surface-low);
    border: 1.5px solid var(--c-outline-variant);
    border-radius: var(--r-full);
    font-size: var(--fs-body-md);
    font-weight: 600;
    color: var(--c-on-surface);
    cursor: pointer;
    font-family: var(--font-base);
    transition: background 0.15s;
}
.lang-dropdown-toggle:hover { background: var(--c-surface-high); }
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--c-surface-lowest);
    border: 1px solid var(--c-outline-variant);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    z-index: 200;
    overflow: hidden;
    display: none;
}
.lang-dropdown-menu.open { display: block; }
.lang-dropdown-item {
    padding: 10px var(--sp-md);
    font-size: var(--fs-body-md);
    font-weight: 600;
    color: var(--c-on-surface);
    cursor: pointer;
    display: flex; align-items: center; gap: var(--sp-sm);
    transition: background 0.1s;
    font-family: var(--font-base);
    border: none; background: none; width: 100%; text-align: left;
}
.lang-dropdown-item:hover { background: var(--c-surface-low); }
.lang-dropdown-item.active { color: var(--c-primary); font-weight: 700; }

/* ---------- 23. SEARCH BAR ---------- */
.search-bar {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    background: var(--c-surface-low);
    border: 1.5px solid var(--c-outline-variant);
    border-radius: var(--r-full);
    padding: 0 var(--sp-md);
    margin: var(--sp-sm) var(--sp-edge) 0;
}
.search-bar .material-symbols-outlined { color: var(--c-on-surface-variant); font-size: 20px; }
.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-base);
    font-size: var(--fs-body-md);
    color: var(--c-on-surface);
    padding: 10px 0;
}
.search-bar input::placeholder { color: var(--c-on-surface-variant); }

/* ---------- 24. ORDER ITEM ROWS ---------- */
.order-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-sm) 0;
    border-bottom: 1px solid var(--c-surface-high);
    gap: var(--sp-sm);
}
.order-item-row:last-child { border-bottom: none; }
.order-item-qty-badge {
    background: var(--c-primary);
    color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--r-full);
    flex-shrink: 0;
}

/* ---------- 25. UTILITIES ---------- */
.gap-xs  { gap: var(--sp-xs) !important; }
.gap-sm  { gap: var(--sp-sm) !important; }
.gap-md  { gap: var(--sp-md) !important; }
.gap-lg  { gap: var(--sp-lg) !important; }
.p-edge  { padding-left: var(--sp-edge) !important; padding-right: var(--sp-edge) !important; }
.mt-stack { margin-top: var(--sp-stack) !important; }

/* Divider */
.divider { height: 1px; background: var(--c-outline-variant); margin: 0; }

/* Scroll fill */
.scroll-fill { height: 120px; flex-shrink: 0; }

/* Material icons alignment fix */
.material-symbols-outlined {
    font-size: 24px;
    vertical-align: middle;
    line-height: 1;
    user-select: none;
}

/* Responsive: center on large screens */
@media (min-width: 481px) {
    body { background: var(--c-surface-dim); }
    .app-shell {
        box-shadow: 0 0 40px rgba(0,0,0,0.15);
        min-height: 100dvh;
    }
}
