* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Kanit', 'Prompt', sans-serif;
    user-select: none;
}

body {
    background-color: #111;
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar {
    display: none;
}

/* กรอบหลัก Kiosk แนวนอน */
.kiosk-container {
    width: 100%;
    background-color: #000000;
    border: 6px solid #8b0000;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* กรอบหน้าพรีวิวสำหรับลูกค้า ขนาดไม่เกิน 1080x1920 แนวตั้ง */
.preview-container {
    width: 1080px;
    height: 1920px;
    max-width: 100vw;
    max-height: 100vh;
    background-color: #000000;
    border: 4px solid #8b0000;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    color: #fff;
    margin: auto;
}

/* ส่วน Banner หัวเรื่อง */
.header-banner {
    height: 1920px;
    background: radial-gradient(circle, #2a0000 0%, #000000 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 4px solid #8b0000;
    border-top: 4px solid #8b0000;
    border: 4px solid #8b0000;
}

.brand-title {
    font-size: 480px;
    font-weight: 900;
    letter-spacing: 6px;
    color: #ffffff;
    text-shadow: 0 0 20px #ff0000, 0 0 40px #8b0000;
    line-height: 1.1;
    text-align: center;
}

.brand-price {
    font-size: 480px;
    font-weight: bold;
    color: white;
    margin-top: 2px;
}

/* User Status Bar */
.user-bar {
    background: #1a0000;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #500;
    font-size: 24px;
}

.btn-logout, .btn-admin, .btn-scan {
    background: #8b0000;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}
.btn-admin { background: #00558b; margin-right: 10px; }
.btn-scan { background: #d35400; margin-right: 10px; }

/* Section เมนูหลัก */
.section {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 40px 100px 40px;
}
.section::-webkit-scrollbar { display: none; }

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 180px 240px;
    padding: 15px;
    background: #111;
    border-bottom: 2px solid #8b0000;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}
.table-header div:nth-child(2) { text-align: left; }

.category-title {
    background: #500;
    color: #ffcc00;
    padding: 12px 20px;
    font-size: 26px;
    font-weight: bold;
    margin-top: 15px;
    border-radius: 5px;
}

.product-row {
    display: grid;
    grid-template-columns: 80px 1fr 180px 240px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
    font-size: 26px;
}

.product-name .en {
    font-size: 18px;
    color: #aaa;
}

.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.btn-qty {
    width: 50px;
    height: 50px;
    background: #8b0000;
    color: #fff;
    border: none;
    font-size: 30px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}
.btn-qty:active { transform: scale(0.95); }

.qty-number {
    font-size: 28px;
    width: 40px;
    text-align: center;
}

.sold-out {
    background: #ff0000;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    border-radius: 5px;
}

/* Control Footer */
.footer-bar {
    height: 120px;
    background: #000;
    border-top: 4px solid #8b0000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.spicy-selector {
    display: flex;
    gap: 15px;
    align-items: center;
}
.spicy-btn {
    padding: 15px 25px;
    background: #222;
    border: 2px solid #555;
    color: white;
    font-size: 22px;
    border-radius: 8px;
    cursor: pointer;
}
.spicy-btn.active {
    background: #8b0000;
    border-color: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.btn-submit {
    width: 100%;
    background: #008000;
    color: white;
    font-size: 30px;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}