/* Стили для страницы "Собрать ланч" */

/* Фиксация футера внизу для страницы lunch */
body {
    min-height: 100vh;
}

/* Блок с комбо-вариантами */
.combo-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.combo-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #8B4513;
    text-align: center;
    margin-bottom: 30px;
}

.combo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.combo-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 150px;
}

.combo-dish {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.combo-dish img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.combo-dish:hover img {
    transform: translateY(-10px) scale(1.1);
}

.combo-dish span {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    font-family: 'Open Sans', sans-serif;
}

.dessert-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 300px;
    margin: 0 auto;
}

.dessert-note {
    font-size: 12px;
    color: #666;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
}

/* Фильтры */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #8B4513;
    background-color: #fff;
    color: #8B4513;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f5f5f5;
}

.filter-btn.active {
    background-color: tomato;
    color: #fff;
    border-color: tomato;
}

/* Блок с блюдами - CSS Grid */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 30px;
}

/* Блок каждого блюда - Flexbox */
.dish-item {
    display: flex;
    flex-direction: column;
    padding: 30px 40px;
    border-radius: 35px;
    cursor: pointer;
    filter: drop-shadow(17px 19px 24px rgba(0, 0, 0, 0.13));
    background-color: white;
    transition: all 0.3s ease;
}

.dish-item:hover {
    border: 2px solid tomato;
}

.dish-item:hover button {
    background-color: tomato;
    color: white;
}

/* Выделение выбранного блюда */
.dish-item.selected {
    border: 2px solid tomato;
}

.dish-item.selected button {
    background-color: tomato;
    color: white;
}

/* Изображение */
.dish-item img {
    width: 100%;
    border-radius: 35px;
    margin-bottom: 15px;
}

/* Цена */
.dish-item .dish-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 10px;
}

/* Название блюда */
.dish-item .dish-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 10px;
    flex-grow: 1;
}

/* Вес/объем */
.dish-item .dish-weight {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Кнопка */
.dish-item button {
    background-color: #f1eee9;
    border: none;
    padding: 10px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    color: #2c2c2c;
    margin-top: auto;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 1;
}

.dish-item button:hover {
    background-color: tomato;
    color: white;
}

/* Адаптивность для страницы "Собрать ланч" */

/* ≤800px */
@media (max-width: 800px) {
    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .combo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    nav {
        justify-content: space-between;
    }
}

/* ≤600px */
@media (max-width: 600px) {
    .dishes-grid {
        grid-template-columns: 1fr;
    }
    
    .combo-grid {
        grid-template-columns: 1fr;
    }
    
    .combo-item {
        flex-direction: row;
        justify-content: center;
    }
    
    header h1 {
        text-align: center;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
    }
    
    nav a {
        font-size: 22px;
    }
    
    section h2 {
        text-align: center;
    }
    
    .about-section img {
        width: 100%;
    }
    
    table {
        font-size: 14px;
    }
    
    td, th {
        font-size: 14px;
    }
}

/* ≤400px */
@media (max-width: 400px) {
    table {
        font-size: 12px;
    }
    
    td, th {
        font-size: 12px;
        padding: 8px;
    }
}

/* Панель для перехода к оформлению заказа */
.checkout-panel {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    margin-top: 40px;
}

.checkout-panel-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.checkout-panel-info {
    flex: 1;
}

.checkout-panel-total {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin: 0;
}

.checkout-panel-total span {
    font-size: 28px;
}

.checkout-link {
    padding: 15px 40px;
    background-color: #fff;
    color: #8B4513;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.checkout-link:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.checkout-link:active {
    transform: translateY(0);
}

/* Адаптивность для панели */
@media (max-width: 800px) {
    .checkout-panel-content {
        flex-direction: column;
        text-align: center;
    }
    
    .checkout-panel-total {
        font-size: 20px;
    }
    
    .checkout-panel-total span {
        font-size: 24px;
    }
    
    .checkout-link {
        width: 100%;
        text-align: center;
    }
}

