/* Основные стили */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f3f3;
    color: #333;
}

.kiosk-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.kiosk-header {
    background-color: #ffbc0d;
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid #da291c;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kiosk-header .logo {
    height: 60px;
    margin-bottom: 10px;
}

.kiosk-header h1 {
    margin: 0;
    color: #da291c;
}

.kiosk-main {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.categories {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 10px;
    background-color: #fff;
    border: 2px solid #da291c;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #da291c;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover {
    background-color: #da291c;
    color: #fff;
}

.category-btn.active {
    background-color: #da291c;
    color: #fff;
}

.category-btn i {
    font-size: 18px;
}

.menu-items {
    width: 55%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    align-content: start;
}

.menu-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.menu-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.menu-item-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

.menu-item-price {
    color: #da291c;
    font-weight: bold;
    font-size: 18px;
    margin-top: auto;
    padding-top: 10px;
}

.menu-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background-color: #da291c;
    color: white;
    border-color: #da291c;
}

.quantity-value {
    min-width: 20px;
    text-align: center;
}

.add-to-order {
    padding: 5px 10px;
    background-color: #da291c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-to-order:hover {
    background-color: #b82219;
}

.order-summary {
    width: 25%;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.order-summary h2 {
    margin-top: 0;
    color: #da291c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    flex-grow: 1;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

.order-item-info {
    flex-grow: 1;
}

.order-item-name {
    font-weight: bold;
}

.order-item-price {
    font-weight: bold;
    color: #da291c;
}

.order-item-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.remove-item {
    color: #ff0000;
    cursor: pointer;
    margin-left: 5px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 0;
    border-top: 2px solid #da291c;
    border-bottom: 2px solid #da291c;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: #da291c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-btn:hover {
    background-color: #b82219;
}

.checkout-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.empty-order {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px 0;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-icon {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.new-order-btn {
    padding: 10px 20px;
    background-color: #ffbc0d;
    color: #333;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.new-order-btn:hover {
    background-color: #e6a500;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.menu-item {
    animation: fadeIn 0.5s ease forwards;
}

.modal-content {
    animation: slideIn 0.3s ease forwards;
}

/* Адаптивность */
@media (max-width: 768px) {
    .kiosk-main {
        flex-direction: column;
    }
    
    .categories {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    
    .category-btn {
        white-space: nowrap;
        flex-direction: column;
        padding: 10px 5px;
        font-size: 14px;
    }
    
    .category-btn i {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .menu-items, .order-summary {
        width: 100%;
    }
    
    .menu-items {
        margin-bottom: 20px;
    }
}