/* Основные стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.honey-field {
    display: none !important;
    visibility: hidden !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.category-section {
    margin-bottom: 30px;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

/* Стили для таблиц */
.menu-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    table-layout: fixed; /* Фиксированная ширина столбцов */
}

.menu-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.name-cell {
    width: 70%; /* Ширина столбца с названием */
}

.weight-cell,
.price-cell,
.quantity-cell {
    width: 10%; /* Ширина столбцов с весом, ценой и количеством */
    text-align: center;
}

.dish-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.dish-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    margin: 0 5px;
}

.quantity-button:hover {
    background-color: #0056b3;
}

.quantity-input {
    width: 35px;
    text-align: center;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px;
}

.order-button-container {
    text-align: center;
    margin-top: 30px;
}

.order-button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
}

.order-button:hover {
    background-color: #218838;
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.order-details {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-item-total {
    font-weight: bold;
}

.order-total {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-button.primary {
    background-color: #007bff;
    color: #fff;
}

.modal-button.primary:hover {
    background-color: #0056b3;
}

.modal-button.secondary {
    background-color: #6c757d;
    color: #fff;
}

.modal-button.secondary:hover {
    background-color: #5a6268;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px; /* Закруглённые углы */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Тень */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* Стили для формы заказа */
.modal-content .order-form {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-content .order-form label {
    display: block !important;
    margin-top: 15px !important;
    font-size: 1rem !important;
    color: #333 !important;
    font-weight: bold !important;
}

.modal-content .order-form input {
    width: 100% !important;
    padding: 12px !important;
    margin-top: 8px !important;
    margin-bottom: 15px !important;
    box-sizing: border-box !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    color: #333 !important;
    background-color: #f9f9f9 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.modal-content .order-form input:focus {
    border-color: #007bff !important;
    outline: none !important;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3) !important;
}

.modal-content .order-form button {
    width: 100% !important;
    padding: 12px !important;
    background-color: #4CAF50 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.modal-content .order-form button:hover {
    background-color: #45a049 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .menu-table {
        table-layout: auto; /* Автоматическая ширина столбцов на мобильных устройствах */
    }

    .menu-table td {
        padding: 8px;
    }

    .dish-name {
        font-size: 1rem;
    }

    .dish-description {
        font-size: 0.8rem;
    }

    .quantity-button {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .quantity-input {
        width: 30px;
        font-size: 0.9rem;
    }

    .order-button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 15px;
    }

    .modal-content .order-form input {
        padding: 10px !important;
        font-size: 0.9rem !important;
    }

    .modal-content .order-form button {
        padding: 10px !important;
        font-size: 0.9rem !important;
    }
}
