/* pwa-style.css */

/* General reset for touchscreen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body, html {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    overflow: hidden;
    height: 100vh;
}

/* Logo Section */
.logo-section {
    width: 100%;
    padding: 20px;
    background-color: #ccc;
    text-align: center;
    font-size: 36px;
    font-weight: bold;
}

/* Main container layout */
.kiosk-main-container {
    display: flex;
    height: calc(100vh - 180px);
}

/* Sidebar (Categories) */
.categories-sidebar {
    width: 20%;
    background-color: #ffffff;
    overflow-y: auto;
    border-right: 2px solid #ddd;
}

.categories-sidebar .category-tab {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    border: none;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.categories-sidebar .category-tab:hover {
    background-color: #eee;
}

.categories-sidebar .category-tab.active {
    background-color: #ccc;
}

/* Products Display Area */
.products-display-container {
    width: 80%;
    padding: 20px;
    overflow-y: auto;
}

.category-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.product-item {
    width: calc(33.333% - 20px);
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.product-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.product-header {
    font-size: 18px;
    margin-top: 10px;
}

.product-description,
.product-allergens {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.product-price {
    font-size: 20px;
    color: #0073aa;
    font-weight: bold;
    margin-top: 10px;
}

.quantity-container {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.quantity-minus,
.quantity-plus {
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
}

.quantity-input {
    width: 60px;
    font-size: 18px;
    text-align: center;
    margin: 0 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    font-size: 20px;
    cursor: pointer;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
}

.add-to-cart-message {
    margin-top: 5px;
    font-size: 16px;
}

/* Variations */
.product-variations label {
    font-size: 16px;
    display: block;
    margin: 5px 0;
}

/* Basket Bar */
.basket-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 80px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-top: 3px solid #ddd;
}

.basket-clear-btn, .basket-view-btn {
    padding: 15px 30px;
    font-size: 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.basket-clear-btn {
    background-color: #b80000;
    color: white;
}

.basket-view-btn {
    background-color: #008000;
    color: white;
}

.basket-total-display {
    font-size: 24px;
    font-weight: bold;
}
