/* French Tacos Terminal — redesign premium */
:root {
    --otacos-orange:      #FF6B00;
    --otacos-orange-dark: #E05500;
    --otacos-orange-glow: rgba(255, 107, 0, 0.35);
    --otacos-gray:        #EBEBEB;
    --otacos-bg:          #F3F4F6;
    --otacos-white:       #FFFFFF;
    --otacos-text:        #1A1A1A;
    --otacos-text-light:  #6B7280;
    --otacos-red:         #EF4444;
    --sidebar-bg:         #141416;
    --sidebar-item:       rgba(255,255,255,0.05);
    --sidebar-border:     rgba(255,255,255,0.07);
    --shadow-card:        0 2px 16px rgba(0,0,0,0.09);
    --radius:             14px;
}

* {
    font-family: 'Inter', 'Arial', sans-serif;
}

body {
    background: var(--otacos-bg);
}

.terminal-container {
    background: var(--otacos-bg);
}

.option-card.selected {
    border-color: var(--otacos-orange);
    background: #FFF3E0;
}

.modal-title {
    color: var(--otacos-text);
    font-weight: 700;
}

/* Responsive, kiosk-style terminal UI */


/* Base styles */
html,
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
    background-color: #fff;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Screens */
.screen {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* Order Type Screen */
#order-type-screen {
    background: linear-gradient(135deg, #f9f9f9, #e8e8e8);
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

#order-type-screen .header-text {
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 60px;
    color: #111;
    font-weight: 700;
}

.order-type-container {
    display: flex;
    gap: 4em;
    justify-content: center;
}

.order-type-card {
    background-color: #fff;
    border-radius: 20px;
    width: 16em;
    height: 16em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.order-type-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.order-type-icon {
    font-size: 6em;
    margin-bottom: 20px;
}

.order-type-label {
    font-size: 2em;
    color: #111;
    font-weight: 800;
    text-align: center;
}

/* Language Screen */
#language-screen {
    background: linear-gradient(135deg, #f9f9f9, #e8e8e8);
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 3em;
    padding: 60px 40px;
    align-content: center;
    justify-items: center;
}

#language-screen .header-text {
    grid-column: 1 / -1;
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #111;
    font-weight: 700;
}

.flag-container {
    background-color: #fff;
    border-radius: 20px;
    width: 14em;
    height: 14em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.flag-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.flag {
    width: 120px;
    height: auto;
    border-radius: 12px;
}

.lang-label {
    margin-top: 15px;
    font-size: 2em;
    color: #111;
    font-weight: 800;
}

/* Welcome Screen */
#welcome-screen {
    background: url('../img/touch_to_order.png') no-repeat center center;
    background-size: cover;
    cursor: pointer;
    z-index: 1;
}

/* Order Screen */
#order-screen {
    background: var(--otacos-bg);
    flex-direction: column;
}

/* Header */
header {
    background: var(--otacos-white);
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2vh 2vw;
    background: url('../img/banner.png') no-repeat center center;
    background-size: cover;
    min-height: 80px;
}

.language-flag {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.8);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.language-flag:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.banner {
    height: 140px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.back-button-container {
    display: flex;
    justify-content: flex-end;
    padding: 12px 14px 0 0;
    position: relative;
    z-index: 10;
}

.return-button {
    background: var(--otacos-orange);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    border: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--otacos-orange-glow);
    letter-spacing: 0.2px;
}

.return-button:hover {
    background: var(--otacos-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--otacos-orange-glow);
}

.return-button:active {
    transform: scale(0.97);
}

.return-button p {
    margin: 0;
}

/* Main Content Area — fills ALL remaining space between header and fixed cart footer */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ── Categories Sidebar — dark premium ── */
.categories-sidebar {
    width: 155px;
    min-width: 140px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--sidebar-bg);
    padding: 16px 0 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.22);
}

.categories-sidebar::-webkit-scrollbar {
    width: 0;
}

/* Section divider inside sidebar */
.categories-sidebar::after {
    content: '';
    display: none;
}

.categories-sidebar li {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 10px 0 0;
    margin: 0;
    cursor: pointer;
    transition: none;
    border: none;
    list-style: none;
}

.categories-sidebar li:hover .category-circle {
    background: rgba(255,255,255,0.10);
}

/* Active: vivid orange pill with glow */
.categories-sidebar li.active .category-circle {
    background: linear-gradient(135deg, #FF8C00 0%, #FF5500 100%);
    box-shadow: 0 6px 24px rgba(255,107,0,0.50), inset 0 1px 0 rgba(255,255,255,0.15);
}

.categories-sidebar li.active .category-circle p {
    color: #fff;
}

.categories-sidebar li.active img {
    filter: brightness(0) invert(1);
}

.category-circle {
    width: 100%;
    min-height: 96px;
    border-radius: 0 18px 18px 0;
    background: var(--sidebar-item);
    border: 1px solid var(--sidebar-border);
    border-left: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    transition: background 0.18s, box-shadow 0.18s;
}

.categories-sidebar li img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 0;
    transition: transform 0.18s;
    filter: none;
    drop-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.categories-sidebar li:hover img {
    transform: scale(1.08);
}

.categories-sidebar li p {
    font-weight: 700;
    font-size: 0.8em;
    margin: 0;
    color: rgba(255,255,255,0.7);
    text-align: center;
    max-width: 120px;
    line-height: 1.2;
    word-break: break-word;
    letter-spacing: 0.1px;
}

.categories-sidebar li.active img {
    filter: none;
    transform: scale(1.05);
}

.categories-sidebar li.active .category-circle p {
    color: #fff;
    font-weight: 800;
}

/* Products Area */
.products-area {
    flex: 1;
    padding: 0 24px 220px;  /* padding-bottom clears the fixed cart footer */
    overflow-y: auto;
    background: var(--otacos-bg);
    position: relative;
}

.products-area .category-title-section {
    margin-top: 20px;
}

.category-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.category-title {
    font-size: 2em;
    font-weight: 900;
    color: var(--otacos-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: -0.5px;
}

.category-title::before {
    content: '';
    width: 6px;
    height: 34px;
    border-radius: 4px;
    background: linear-gradient(180deg, #FF8C00, #FF4500);
    flex-shrink: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* Dynamic grid — fewer products = bigger cards */
.products-grid.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
    max-width: 600px;
    margin: 0 auto;
}
.products-grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.products-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid.grid-cols-1 .product-image,
.products-grid.grid-cols-2 .product-image {
    aspect-ratio: 3 / 2;
}
.products-grid.grid-cols-1 .product-name {
    font-size: 1.6rem;
}
.products-grid.grid-cols-2 .product-name {
    font-size: 1.3rem;
}
.products-grid.grid-cols-1 .product-price,
.products-grid.grid-cols-2 .product-price {
    font-size: 1.5rem;
}

/* ── Product Cards — premium ── */
.product-card {
    background: var(--otacos-white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.14);
    border-color: var(--otacos-orange);
}

.product-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F8F8F8;
    border-radius: 0;
}

/* Subtle gradient overlay at bottom of image */
.product-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.07), transparent);
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
    background: #F8F8F8;
    padding: 10px;
}

/* SVG illustrations */
.product-image img.img-svg {
    object-fit: contain;
    padding: 14px;
    background: #fafafa;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.size-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF8C00, #FF4500);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8em;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255,107,0,0.4);
    z-index: 2;
}

.product-info {
    padding: 14px 16px 16px;
}

.product-name {
    font-size: 1.05em;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--otacos-text);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.25;
}

.product-desc {
    font-size: 0.78em;
    color: var(--otacos-text-light);
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: none;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.product-price {
    font-size: 1.45em;
    font-weight: 900;
    color: var(--otacos-orange);
    letter-spacing: -0.5px;
}

.product-price::after {
    content: ' ฿';
    font-size: 0.75em;
    font-weight: 700;
}

/* Circular "+" add button */
.add-btn {
    background: var(--otacos-orange);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 12px var(--otacos-orange-glow);
    flex-shrink: 0;
}

.add-btn::after {
    content: '+';
}

.add-btn:hover {
    background: var(--otacos-orange-dark);
    transform: scale(1.12);
    box-shadow: 0 6px 18px var(--otacos-orange-glow);
}

.add-btn:active {
    transform: scale(0.94);
}

/* Cart Footer */
.cart-footer {
    background: var(--otacos-white);
    height: auto;
    min-height: 140px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    border-top: 3px solid var(--otacos-orange);
    padding: 16px 20px;
}

.cart-footer-content {
    display: flex;
    gap: 30px;
    align-items: stretch;
    max-width: 100%;
}

.cart-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cart-right {
    display: flex;
    gap: 20px;
    align-items: center;
    white-space: nowrap;
}

.cart-title {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--otacos-text);
}

.cart-items-scroll {
    flex: 1;
    max-height: 95px;
    overflow-y: auto;
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.cart-items-scroll::-webkit-scrollbar {
    width: 6px;
}

.cart-items-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.empty-cart {
    color: #999;
    font-size: 0.95em;
    margin: 0;
    padding: 8px 0;
}

.cart-item {
    background: #f9f9f9;
    padding: 10px 14px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.9em;
    border: 1px solid #E8E8E8;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h4 {
    margin: 0 0 3px 0;
    font-size: 0.95em;
    color: var(--otacos-text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info .customization {
    font-size: 0.75em;
    color: var(--otacos-text-light);
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info .item-price {
    font-weight: 700;
    color: var(--otacos-orange);
    font-size: 0.9em;
}

.cart-item-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.btn-quantity {
    background: var(--otacos-orange);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-quantity:hover {
    background: #E55A24;
}

.quantity {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    color: var(--otacos-text);
}

.btn-remove-item {
    background: var(--otacos-red);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-remove-item:hover {
    background: #C0392B;
}

.total-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.total-label {
    font-size: 0.95em;
    color: var(--otacos-text-light);
    font-weight: 600;
}

.total-amount {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--otacos-text);
}

.submit-btn {
    background: linear-gradient(135deg, #FF8C00 0%, #FF4500 100%);
    color: #fff;
    border: none;
    padding: 18px 36px;
    font-size: 1.1em;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(255,107,0,0.45);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255,107,0,0.55);
}

.submit-btn:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(255,107,0,0.3);
}

/* Responsive Cart Footer */
@media (max-width: 1200px) {
    .cart-footer-content {
        gap: 20px;
    }

    .cart-right {
        gap: 15px;
    }

    .submit-btn {
        padding: 14px 24px;
        font-size: 0.95em;
    }

    .total-amount {
        font-size: 1.6em;
    }
}

@media (max-width: 900px) {
    .cart-footer {
        min-height: 160px;
        padding: 14px 16px;
    }

    .cart-footer-content {
        flex-direction: column;
        gap: 12px;
    }

    .cart-right {
        justify-content: space-between;
        align-items: center;
    }

    .cart-left {
        border-bottom: 1px solid #E0E0E0;
        padding-bottom: 12px;
    }

    .submit-btn {
        flex-grow: 1;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .cart-footer {
        min-height: 140px;
        padding: 12px 12px;
    }

    .cart-title {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    .cart-items-scroll {
        max-height: 70px;
    }

    .cart-item {
        padding: 8px 10px;
        font-size: 0.85em;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .total-amount {
        font-size: 1.4em;
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 90vw;
    max-width: 1200px;
    height: 85vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 30px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 3em;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    color: #333;
}

.sauce-subtitle {
    color: #666;
    font-size: 1.1em;
    margin: 5px 0 0 0;
}

.progress-dots {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.progress-dots .dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s;
}

.progress-dots .dot.active {
    background: #1d5eac;
}

.modal-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.sauces-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.option-card {
    background: #f9f9f9;
    border: 3px solid #e8e8e8;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.option-card:hover {
    background: #f2f2f2;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.option-card:active {
    transform: scale(0.96);
}

.option-card.selected {
    background: #fff3ee;
    border-color: var(--otacos-orange);
    box-shadow: 0 4px 14px rgba(255,107,53,0.20);
}

.option-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #f0f0f0;
    padding: 6px;
}

.sauces-grid .option-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    padding: 6px;
}

.granity-card img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #f0f0f0;
    padding: 6px;
}

/* ============================================
   KIOSK PORTRAIT (1080×1920) — primary target
   ============================================ */
@media (min-width: 900px) {

    /* ---- Header ---- */
    .language-flag {
        width: 80px;
        height: 80px;
    }

    .header-top {
        padding: 14px 24px;
        min-height: 100px;
        background-size: cover;
    }

    .return-button {
        font-size: 1.4em;
        padding: 18px 40px;
        border-radius: 14px;
    }

    /* ---- Categories sidebar ---- */
    .categories-sidebar {
        width: 210px;
        min-width: 210px;
        gap: 8px;
        padding: 20px 0;
    }

    .category-circle {
        min-height: 130px;
        border-radius: 0 22px 22px 0;
        gap: 12px;
        padding: 18px 14px;
    }

    .categories-sidebar li img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        filter: none;
    }

    .categories-sidebar li p {
        font-size: 1.05em;
        font-weight: 700;
        max-width: 180px;
    }

    /* ---- Category title ---- */
    .category-title {
        font-size: 2.8em;
    }

    /* ---- Product cards ---- */
    .product-image {
        aspect-ratio: 4 / 3;
    }

    .products-grid.grid-cols-1 .product-image,
    .products-grid.grid-cols-2 .product-image {
        aspect-ratio: 3 / 2;
    }

    .product-name {
        font-size: 1.45em;
    }

    .product-price {
        font-size: 1.9em;
    }

    .products-grid.grid-cols-1 .product-name {
        font-size: 2.4rem;
    }

    .products-grid.grid-cols-2 .product-name {
        font-size: 1.9rem;
    }

    .products-grid.grid-cols-1 .product-price,
    .products-grid.grid-cols-2 .product-price {
        font-size: 2.3rem;
    }

    .product-info {
        padding: 20px 22px 22px;
    }

    .size-badge {
        font-size: 1em;
        padding: 6px 18px;
        top: 12px; right: 12px;
    }

    .add-btn {
        width: 52px;
        height: 52px;
        font-size: 1.8em;
    }

    /* ---- Cart footer ---- */
    .cart-footer {
        min-height: 190px;
        padding: 20px 36px;
    }

    .cart-title {
        font-size: 1.8em;
    }

    .cart-items-scroll {
        max-height: 110px;
    }

    .total-label {
        font-size: 1.1em;
    }

    .total-amount {
        font-size: 2.6em;
    }

    .btn-quantity {
        width: 38px;
        height: 38px;
        font-size: 1.1em;
        border-radius: 6px;
    }

    .btn-remove-item {
        width: 38px;
        height: 38px;
        font-size: 1em;
        border-radius: 6px;
    }

    .cart-item-info h4 {
        font-size: 1.1em;
    }

    .cart-item-info .customization {
        font-size: 0.85em;
    }

    .cart-item-info .item-price {
        font-size: 1em;
    }

    .submit-btn {
        font-size: 1.6em;
        padding: 24px 56px;
        border-radius: 50px;
        letter-spacing: 1.5px;
    }

    /* ---- Modals ---- */
    .modal-header h2 {
        font-size: 3em;
    }

    .option-card p {
        font-size: 1.5em;
    }

    .option-card img {
        width: 180px;
        height: 180px;
        object-fit: contain;
        padding: 8px;
        background: #f0f0f0;
        border-radius: 12px;
    }

    .sauces-grid .option-card img {
        width: 150px;
        height: 150px;
        object-fit: contain;
        padding: 8px;
        background: #f0f0f0;
        border-radius: 12px;
    }

    .granity-card img {
        width: 170px;
        height: 170px;
        object-fit: contain;
        padding: 8px;
        background: #f0f0f0;
        border-radius: 12px;
    }

    .btn-secondary,
    .btn-primary {
        font-size: 1.5em;
        padding: 18px 50px;
    }

    /* ---- Order type / language screens ---- */
    #order-type-screen .header-text,
    #language-screen .header-text {
        font-size: 4.5em;
    }

    .order-type-card {
        width: 20em;
        height: 20em;
    }

    .order-type-icon {
        font-size: 7em;
    }

    .order-type-label {
        font-size: 2.5em;
    }

    .flag-container {
        width: 16em;
        height: 16em;
    }

    .flag {
        width: 140px;
    }

    .lang-label {
        font-size: 2.2em;
    }
}

.myorder {
    padding: 1vh 0 0 2vw;
}

.option-card p {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.extra-price {
    display: block;
    margin-top: 8px;
    color: #1d5eac;
    font-weight: 700;
}

.selection-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-remove,
.btn-add {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove {
    background: #e74c3c;
    color: #fff;
}

.btn-add {
    background: #27ae60;
    color: #fff;
}

.modal-footer {
    padding: 25px 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.btn-secondary,
.btn-primary {
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary {
    background: #ddd;
    color: #333;
}

.btn-secondary:hover {
    background: #ccc;
}

.btn-primary {
    background: linear-gradient(135deg, #FF8C00, #FF4500);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,107,0,0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255,107,0,0.5);
    transform: translateY(-2px);
}

.btn-finish {
    background: linear-gradient(135deg, #22C55E, #16A34A);
    box-shadow: 0 4px 14px rgba(34,197,94,0.35);
}

.btn-finish:hover {
    box-shadow: 0 6px 20px rgba(34,197,94,0.5);
    transform: translateY(-2px);
}

/* ========================================
   ORDER SUMMARY MODAL
   ======================================== */

.order-summary-content {
    width: 92vw;
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.order-summary-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px 32px;
    overflow-y: auto;
    flex: 1;
}

.summary-section-title {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--otacos-text);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-section-title::before {
    content: '';
    width: 6px;
    height: 22px;
    background: var(--otacos-orange);
    border-radius: 3px;
    flex-shrink: 0;
}

/* Summary cart items */
.summary-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f9f9f9;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 14px 18px;
}

.summary-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    flex-shrink: 0;
    padding: 4px;
}

.summary-item-info {
    flex: 1;
    min-width: 0;
}

.summary-item-name {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--otacos-text);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.summary-item-details {
    font-size: 0.88em;
    color: var(--otacos-text-light);
    line-height: 1.4;
}

.summary-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.summary-item-qty {
    font-size: 0.95em;
    color: var(--otacos-text-light);
    font-weight: 600;
}

.summary-item-price {
    font-size: 1.3em;
    font-weight: 900;
    color: var(--otacos-orange);
}

/* Summary suggestions */
.summary-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.summary-suggestion-card {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.summary-suggestion-card:hover {
    border-color: var(--otacos-orange);
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(255,107,53,0.18);
}

.summary-suggestion-card:active {
    transform: scale(0.96);
}

.summary-suggestion-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f5f5;
    padding: 6px;
}

.summary-suggestion-name {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--otacos-text);
    text-transform: uppercase;
    line-height: 1.2;
}

.summary-suggestion-price {
    font-size: 1em;
    font-weight: 900;
    color: var(--otacos-orange);
}

/* Summary footer */
.order-summary-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.summary-total-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-total-label {
    font-size: 0.9em;
    color: var(--otacos-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-total-amount {
    font-size: 2.4em;
    font-weight: 900;
    color: var(--otacos-text);
}

.summary-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.summary-pay-btn {
    font-size: 1.3em !important;
    padding: 18px 48px !important;
    background: var(--otacos-orange) !important;
    box-shadow: 0 4px 14px rgba(255,107,53,0.35);
}

.summary-pay-btn:hover {
    background: #E55A24 !important;
}

/* Kiosk sizing for summary */
@media (min-width: 900px) {
    .summary-item-img { width: 110px; height: 110px; }
    .summary-item-name { font-size: 1.4em; }
    .summary-item-details { font-size: 1em; }
    .summary-item-price { font-size: 1.6em; }
    .summary-section-title { font-size: 1.8em; }
    .summary-total-amount { font-size: 3em; }
    .summary-suggestion-card img { width: 130px; height: 130px; }
    .summary-suggestion-name { font-size: 1.1em; }
    .summary-suggestion-price { font-size: 1.2em; }
    .summary-suggestions-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Ingredient removal cards */
.ingredient-card {
    border: 2px solid var(--otacos-gray);
    background: var(--otacos-white);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ingredient-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: #f0f0f0;
    padding: 4px;
}

.ingredient-card.selected {
    border-color: var(--otacos-red);
    background: #FFE6E6;
    transform: scale(1.05);
}

.ingredient-card .removed-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--otacos-red);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
}

.ingredient-card p {
    margin: 0;
    font-weight: 600;
    color: var(--otacos-text);
    font-size: 0.95rem;
}

.ingredient-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

/* ========================================
   PAYMENT SCREEN (PromptPay)
   ======================================== */

#payment-screen {
    background: linear-gradient(160deg, #0f1117 0%, #1a1d26 100%);
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.payment-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    gap: 28px;
}

.payment-header {
    text-align: center;
}

.payment-logo img {
    height: 60px;
    margin-bottom: 12px;
}

.payment-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px;
}

.payment-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    margin: 0;
}

.payment-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.payment-qr-wrapper {
    width: 300px;
    height: 300px;
    background: #fff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(255,107,0,0.25);
    position: relative;
    overflow: hidden;
}

.payment-qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #555;
}

.qr-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #eee;
    border-top-color: #FF6B00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-qr-img {
    width: 280px;
    height: 280px;
    object-fit: contain;
    border-radius: 16px;
}

.payment-amount-box {
    text-align: center;
}

.payment-label {
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.payment-amount {
    font-size: 4rem;
    font-weight: 900;
    color: #FF6B00;
    line-height: 1;
}

.payment-order-num {
    font-size: 1.1rem;
    color: #aaa;
    margin-top: 8px;
}

.payment-status-box {
    width: 100%;
}

.payment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
}

.payment-status.waiting {
    background: rgba(255,255,255,0.07);
    color: #ccc;
}

.payment-status.success {
    background: rgba(34,197,94,0.15);
    color: #22C55E;
    font-size: 1.6rem;
}

.payment-status.success i {
    font-size: 2rem;
}

.status-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF6B00;
    animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.6; }
}

.payment-apps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.payment-app-logos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.app-logo {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #bbb;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.payment-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-cancel-btn {
    background: transparent;
    border: 1px solid rgba(239,68,68,0.4);
    color: #EF4444;
    padding: 14px 40px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.payment-cancel-btn:hover {
    background: rgba(239,68,68,0.1);
}

.payment-confirm-demo-btn {
    background: #22C55E;
    border: none;
    color: #fff;
    padding: 14px 40px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 12px;
}

.payment-confirm-demo-btn:hover {
    background: #16A34A;
}

.payment-confirm-demo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE — Tablets & smaller screens
   ============================================ */
@media (max-width: 899px) {
    /* Language & order-type screens */
    #language-screen {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
        padding: 30px 20px;
    }
    #language-screen .header-text { font-size: 2em; }
    .flag-container { width: 9em; height: 9em; }
    .flag { width: 70px; }
    .lang-label { font-size: 1.2em; }

    .order-type-container { flex-direction: column; gap: 2em; }
    .order-type-card { width: 14em; height: 14em; }
    .order-type-icon { font-size: 4em; }
    .order-type-label { font-size: 1.5em; }
    #order-type-screen .header-text { font-size: 2em; }

    /* Header / sidebar */
    .header-top { background-size: cover; padding: 1.5vh 3vw; }
    .categories-sidebar { width: 22vw; min-width: 140px; }
    .categories-sidebar li p { font-size: 0.72em; }
    .category-circle { min-height: 86px; border-radius: 0 14px 14px 0; }
    .categories-sidebar li img { width: 50px; height: 50px; filter: none; }

    /* Products */
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid.grid-cols-1 { grid-template-columns: 1fr; }
    .product-image { aspect-ratio: 4 / 3; }
    .product-name { font-size: 0.9em; }
    .product-price { font-size: 1em; }

    /* Cart footer */
    .cart-footer { min-height: 120px; padding: 10px 16px; }
    .cart-footer-content { gap: 10px; }
    .cart-title { font-size: 1em; }
    .total-amount { font-size: 1.3em; }
    .submit-btn { font-size: 0.95em; padding: 12px 24px; }

    /* Modals */
    .modal-header h2 { font-size: 1.4em; }
    .options-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .option-card img { width: 100px; height: 100px; }
    .sauces-grid .option-card img { width: 90px; height: 90px; }
    .granity-card img { width: 90px; height: 90px; }
    .btn-secondary, .btn-primary { font-size: 1em; padding: 12px 28px; }

    /* Payment */
    .payment-title { font-size: 1.6em; }
    .payment-qr-img { max-width: 180px; }
    .payment-amount { font-size: 2em; }
}

@media (max-width: 480px) {
    #language-screen { grid-template-columns: repeat(2, 1fr); gap: 1em; padding: 20px 12px; }
    .flag-container { width: 7em; height: 7em; }
    .flag { width: 50px; }
    .lang-label { font-size: 1em; }
    .categories-sidebar { width: 26vw; min-width: 88px; }
    .category-circle { min-height: 72px; border-radius: 0 12px 12px 0; padding: 10px 8px; }
    .categories-sidebar li img { width: 38px; height: 38px; filter: none; }
    .categories-sidebar li p { font-size: 0.62em; }
    .products-grid { grid-template-columns: 1fr; }
    .product-image { aspect-ratio: 4 / 3; }
    .add-btn { width: 32px; height: 32px; font-size: 1.2em; }
    .option-card img { width: 18vw; height: 8vh; }
    .options-grid { grid-template-columns: repeat(2, 1fr); }
}
