/* Стили для страницы банкетов */
.banquet-page {
    background-color: #ede6db;
    min-height: 100vh;
}

/* Hero секция */
.banquet-hero {
    background-image: url(../images/header__bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 100px;
    position: relative;
    margin-bottom: 60px;
}

.banquet-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.banquet-hero .conteiner {
    position: relative;
    z-index: 1;
}

.banquet-hero-title {
    font-family: var(--font-display);
    font-size: 64px;
    text-align: center;
    color: #ffd500;
    margin-bottom: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.banquet-hero-desc {
    text-align: center;
    color: #f5f5f5;
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Кнопка назад */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 213, 0, 0.3);
    border-radius: 50px;
    color: #ffd500;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    background: rgba(255, 213, 0, 0.9);
    color: #3e3125;
    transform: translateX(-3px);
}

/* Основной контейнер */
.banquet-container {
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Секция с блюдами */
.section-title {
    font-size: 32px;
    color: #3e3125;
    margin-bottom: 10px;
}

.section-desc {
    color: #666;
    margin-bottom: 30px;
}

/* Категории */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #3e3125;
    border-radius: 40px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    color: #3e3125;
}

.category-btn:hover,
.category-btn.active {
    background: #ffd500;
    border-color: #ffd500;
    color: #3e3125;
}

/* Сетка блюд */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.dish-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dish-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f0f0f0;
}

.dish-info {
    padding: 16px;
}

.dish-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #3e3125;
}

.dish-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dish-price {
    font-size: 20px;
    font-weight: 600;
    color: #ffd500;
}

.dish-price small {
    font-size: 11px;
    font-weight: normal;
    color: #999;
}

.add-to-cart-btn {
    background: #ffd500;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s;
}

.add-to-cart-btn:hover {
    background: #e6c200;
    transform: scale(1.05);
}

/* Корзина и форма — на широком экране отдельная прокрутка от меню */
.order-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

@media (min-width: 1025px) {
    .banquet-container {
        align-items: start;
    }

    /* Меню — полная сетка без внутреннего скролла (все карточки на странице) */
    .dishes-section {
        min-width: 0;
    }

    /* Правая колонка закреплена; прокручивается только форма */
    .order-section {
        top: 80px;
        height: calc(100vh - 100px);
        max-height: calc(100vh - 100px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .order-section .cart-container {
        flex-shrink: 0;
        margin-bottom: 16px;
    }

    .order-section .cart-items {
        max-height: 160px;
    }

    .order-section .order-form-container {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

.cart-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.cart-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd500;
}

.cart-items {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
}

.cart-item-price {
    font-size: 12px;
    color: #ffd500;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty {
    width: 30px;
    text-align: center;
    font-size: 14px;
}

.cart-item-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.cart-item-btn:hover {
    background: #ffd500;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #ff4444;
    padding: 0 5px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #eee;
    font-size: 18px;
    font-weight: 600;
}

.total-price {
    color: #ffd500;
    font-size: 24px;
}

/* Форма заказа */
.order-form-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd500;
}

.banquet-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    /* display: grid;
    grid-template-columns: 1fr 1fr; */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #3e3125;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    transition: 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ffd500;
    box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.1);
}

.submit-btn {
    background: #ffd500;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #e6c200;
    transform: scale(1.02);
}

/* Модальное окно */
.success-modal {
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: white;
    animation: fadeIn 0.3s ease;
}

.success-container {
    padding: 40px;
    text-align: center;
    min-width: 320px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-container h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #3e3125;
}

.success-container p {
    color: #666;
    margin-bottom: 25px;
}

.success-btn {
    background: #ffd500;
    border: none;
    padding: 10px 30px;
    border-radius: 40px;
    font-family: inherit;
    cursor: pointer;
    font-size: 16px;
}

.success-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Сообщение о доступности даты */
.availability-msg {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.availability-msg.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.availability-msg.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.availability-msg.warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.availability-msg .msg-icon {
    font-size: 16px;
}

/* Стили для календаря с недоступными датами */
input[type="date"].unavailable {
    border-color: #f44336;
    background: #ffebee;
}

input[type="date"].available {
    border-color: #4caf50;
    background: #e8f5e9;
}

/* Календарь - заблокированные дни (через JS) */
.date-unavailable {
    background-color: #ffebee !important;
    color: #c62828 !important;
    text-decoration: line-through;
}





































/* Адаптив */
@media (max-width: 1024px) {
    .banquet-container {
        grid-template-columns: 1fr;
    }

    .order-section {
        position: static;
        height: auto;
        max-height: none;
        display: block;
        overflow: visible;
    }

    .order-section .order-form-container {
        overflow: visible;
        min-height: auto;
    }

    .order-section .cart-items {
        max-height: 350px;
    }
}

/* Исправление для полей ввода на мобильных */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Дополнительные исправления для всех полей */
    .form-input,
    .form-textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    .banquet-form {
        width: 100%;
    }
    
    .form-group {
        width: 100%;
    }
}

/* Дополнительная страховка для всех размеров */
.form-input,
.form-textarea,
.banquet-form,
.form-group {
    box-sizing: border-box;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Для очень маленьких экранов */
@media (max-width: 550px) {
    .order-form-container {
        padding: 15px;
    }
    
    .form-input,
    .form-textarea {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Исправление для контейнера формы */
.order-form-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Чтобы корзина не вылезала */
.cart-container {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.cart-items {
    overflow-x: hidden;
}

.cart-item {
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 480px) {
    .banquet-hero-title {
        font-size: clamp(26px, 8vw, 32px);
    }

    .banquet-container {
        padding: 0 12px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-controls {
        align-self: flex-end;
    }
}

