* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 2rem;
    font-weight: 300;
}

.cart-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Categories */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2rem 0;
    justify-content: center;
}

.category-btn {
    background: white;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn.active,
.category-btn:hover {
    background: #3498db;
    color: white;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 3rem;
}

.dish-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Стили для контейнера изображения блюда */
.dish-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.dish-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dish-card:hover .dish-image {
    transform: scale(1.05);
}

.dish-content {
    padding: 0 5px;
}

.dish-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.dish-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-right: 10px;
}

.dish-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e74c3c;
    white-space: nowrap;
}

.dish-weight {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.dish-description {
    color: #5d6d7e;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.add-to-cart {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.add-to-cart:hover {
    background: #219a52;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background: #34495e;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

.close:hover {
    color: #ecf0f1;
}

/* Стили для корзины БЕЗ изображений */
.cart-items {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
    gap: 15px;
}
.cart-item.fixed-item {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
}
.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 1rem;
}

.cart-item-details {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.cart-item-weight {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
}

.cart-item-price {
    font-weight: 600;
    color: #e74c3c;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cart-item.fixed-item .cart-item-controls {
    opacity: 0.7;
}
.fixed-badge {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}
.quantity-btn {
    background: #3498db;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #2980b9;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: #c0392b;
}

.empty-cart {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
    grid-column: 1 / -1;	
}

.cart-summary {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #ecf0f1;
}

.total-amount {
    font-size: 1.3rem;
    text-align: right;
}

/* Order Form */
.order-form {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #ecf0f1;
}

.order-form h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field input,
.order-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-field input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.order-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-primary {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #219a52;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #27ae60;
}

.notification.error {
    background: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 200px;
        text-align: center;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        text-align: center;
    }
    
    .cart-item-details {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cart-item-controls {
        justify-content: center;
    }
    
    .cart-items {
        max-height: 300px;
    }
    
    .dish-image-container {
        height: 150px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quantity-btn,
    .remove-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
/* Стили для предупреждения о минимальной сумме */
.min-amount-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

/* Стили для неактивной кнопки заказа */
.order-form button[type="submit"]:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.order-form button[type="submit"]:disabled:hover {
    background: #95a5a6;
    transform: none;
}
/* Стили для новых полей даты и времени */
.form-group .form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group .form-field input[type="date"],
.form-group .form-field input[type="time"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.order-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
}

.order-notice p {
    margin: 0;
    color: #856404;
}