/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f3e3; /* Теплый фон для уютной атмосферы */
    color: #3c3c3c;
    padding: 40px 20px; /* сверху 40px, справа и слева по 20px */
}

h2 {
    font-size: 2.5rem;
    color: #5a381e;
    text-align: center;
    margin: 40px 0;
    font-weight: 700;
}

h3, h4, h5 {
    font-weight: 600;
}

/* Слайдер */
.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.slider img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.slider img:hover {
    transform: scale(1.05);
}

/* Секции */
section {
    padding: 40px 15px;
    background-color: #fff;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Описание кафе */
.about ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: center;
}

.about li {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #5a381e;
}

/* Каталог блюд */
/* Стили для меню с карточками блюд */
.menu .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}



.d-flex .card {
    width: 100%; /* Увеличили ширину карточек до 30%, чтобы они стали шире */
    margin-bottom: 50px; /* Отступ снизу для каждого элемента */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-body {
    padding: 15px;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.text-center {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5a381e;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 1024px) {
    .d-flex .card {
        width: 45%; /* Для планшетов оставляем карточки шириной 45% */
    }
}

@media screen and (max-width: 768px) {
    .d-flex .card {
        width: 100%; /* Для мобильных устройств карточки занимают 100% ширины */
    }
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 10px;
    margin: 0 5px;
    text-decoration: none;
    color: #333;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination .active {
    background-color: #333;
    color: white;
}

/* Рекомендуемые блюда */
.recommended .dishes,
.bestsellers .dishes {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.dish {
    text-align: center;
    width: 45%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dish:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dish img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.dish p {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #5a381e;
}

/* Информация о кафе */
.contact {
    background-color: #f9f3e3;
}

.contact p {
    font-size: 1.2rem;
    text-align: center;
    margin: 10px 0;
}

/* Галерея */
.gallery .images {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* Отзывы */
.reviews {
    background-color: #f9f3e3;
}

.review {
    text-align: center;
    margin-top: 20px;
}

.review p {
    font-size: 1.1rem;
    font-style: italic;
    color: #5a381e;
}

.review p:first-child {
    font-weight: 600;
}

/* Подписка на рассылку */
.subscription form {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.subscription input {
    padding: 10px;
    width: 300px;
    border: 2px solid #5a381e;
    border-radius: 5px;
    font-size: 1rem;
}

.subscription button {
    padding: 10px 20px;
    background-color: #5a381e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.subscription button:hover {
    background-color: #3c2615;
}

/* Кнопки действия */
.actions {
    text-align: center;
    margin-top: 30px;
}

.actions .btn {
    padding: 15px 30px;
    background-color: #5a381e;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.actions .btn:hover {
    background-color: #3c2615;
}

/* Анимации */
.element-animation {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .recommended .dishes,
    .bestsellers .dishes,
    .gallery .images {
        flex-direction: column;
        align-items: center;
    }

    .dish, .dishes img {
        width: 100%;
    }
}

/* Дополнительные стили для каталога */
.catalog .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.card-img-top {
    object-fit: cover;
    height: 20rem;
}

.card-body h5 {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-body p {
    text-align: center;
    font-size: 1.1rem;
    color: #777;
}

/* Разметка для карточек каталога */
.catalog .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.catalog .col-lg-3, .catalog .col-md-6 {
    margin-bottom: 20px;
}

.catalog .col-lg-3 {
    width: 30%; /* Увеличена ширина карточки для настольных устройств */
}

.catalog .col-md-6 {
    width: 45%; /* Для планшетов карточки занимают 45% ширины */
}

@media screen and (max-width: 1024px) {
    .catalog .col-lg-3 {
        width: 45%; /* Для планшетов ширина карточки 45% */
    }
}

@media screen and (max-width: 768px) {
    .catalog .col-lg-3, .catalog .col-md-6 {
        width: 100%; /* Для мобильных устройств карточки занимают 100% ширины */
    }
}
/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Заголовки */
h1, h2, h3 {
    color: #6f4f1f; /* Темный кофейный цвет */
    font-weight: bold;
}

/* Основной контейнер */
.site-about {
    width: 80%;
    margin: 30px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Колонки */
.col {
    display: flex;
    flex-direction: column;
}

/* Строки */
.row {
    margin-bottom: 20px;
}

/* Данные пользователя */
.row h2 {
    font-size: 1.8em;
    color: #6f4f1f;
}

.row span {
    display: block;
    margin-top: 5px;
    font-size: 1em;
    color: #8B5E3C; /* Светлый кофейный цвет */
}

/* Кнопка изменения данных */
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3e2723; /* Темно-коричневый */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #6f4f1f;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 10px;
    text-align: left;
    font-size: 1em;
}

table th {
    background-color: #6f4f1f;
    color: #fff;
}

table tr:nth-child(even) {
    background-color: #f7f3e7; /* Светлый кремовый цвет */
}

table tr:hover {
    background-color: #d7b59c; /* Светлый кофейный цвет при наведении */
}

/* Стиль для описания блюда */
table td {
    color: #5c4033;
}

/* Стили для заголовков таблиц */
table h3 {
    color: #6f4f1f;
    font-size: 1.5em;
    margin-top: 30px;
}

/* Дополнительные стили для карточек, если необходимо */
.card {
    background-color: #f7f3e7; /* Светлый кремовый */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card h4 {
    color: #6f4f1f;
    font-size: 1.2em;
}

.card p {
    color: #8B5E3C;
    font-size: 1em;
}
table th, table td {
    padding: 12px;
    text-align: left;
    font-size: 1em;
}

table th {
    background-color: #6f4f1f; /* Темный кофейный */
    color: #fff;
}

table tr:nth-child(even) {
    background-color: #f7f3e7; /* Светлый кремовый */
}

table tr:hover {
    background-color: #d7b59c; /* Светлый кофейный цвет при наведении */
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
}

.btn-info {
    background-color: #3e2723; /* Темно-коричневый */
}

.btn-info:hover {
    background-color: #6f4f1f;
}

.btn-danger {
    background-color: #d32f2f; /* Красный */
}

.btn-danger:hover {
    background-color: #b71c1c;
}

/* Форма */
.form-group {
    margin-top: 20px;
}

.form-group .col-form-label {
    color: #6f4f1f;
}

.form-group input.form-control {
    border: 1px solid #d7b59c; /* Светло-коричневый */
    background-color: #f7f3e7; /* Кремовый */
}

.form-group input.form-control:focus {
    border-color: #6f4f1f;
}

.form-group select.form-control {
    background-color: #f7f3e7;
    border-color: #d7b59c;
}

/* Кнопка "Подтвердить заказ" */
.btn-dark {
    background-color: #3e2723; /* Темно-коричневый */
    color: #fff;
}

.btn-dark:hover {
    background-color: #6f4f1f;
}

/* Дополнительные стили для сообщений */
.invalid-feedback {
    color: #d32f2f; /* Красный цвет ошибок */
}
/* Стиль для контейнера формы */
.contact-form {
    display: flex;             /* Используем Flexbox для позиционирования */
    flex-direction: column;    /* Располагаем элементы в колонку */
    justify-content: center;   /* Центрируем элементы по вертикали */
    align-items: center;       /* Центрируем элементы по горизонтали */
    background-color: #fff7e6; /* Светло-коричневый фон для фона формы */
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 450px;          /* Максимальная ширина формы */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #d1b4a1; /* Легкая линия, чтобы подчеркнуть границы */
    box-sizing: border-box;
    margin: 0 auto;            /* Центрируем саму форму */
}


/* Заголовок формы */
.contact-form h2 {
    font-size: 24px;
    color: #4e3629; /* Темный шоколадный цвет для заголовка */
    margin-bottom: 20px;
}

/* Стиль для текстовых полей и текстовой области */
.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #d1b4a1;
    border-radius: 6px;
    background-color: #fff; /* Белый фон для полей */
    color: #3e2c1c;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Фокус на полях ввода */
.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #4e3629; /* Коричневый цвет при фокусе */
    background-color: #f5f0e1; /* Легкий бежевый фон */
    outline: none;
}

/* Стиль для кнопки */
.contact-form button {
    background-color: #4e3629; /* Темный кофе */
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Эффект при наведении на кнопку */
.contact-form button:hover {
    background-color: #3e2c1c; /* Темный шоколад */
}

/* Стиль для сообщения об успешной отправке */
#responseMessage {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

#responseMessage.green {
    color: #5a381e; /* Зеленый цвет для успешного сообщения */
}

#responseMessage.red {
    color: #5a381e; /* Красный цвет для ошибки */
}
.brand-logo {
  width: 50px; /* Устанавливаем ширину логотипа */
  height: auto; /* Автоматическая высота для сохранения пропорций */
}
.coffee-support-btn {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #5a381e; /* кофейный коричневый */
    color: #fff8f0;
    font-family: 'Georgia', serif;
    font-size: 18px;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(90, 56, 30, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.coffee-support-btn:hover {
    background-color: #7b4a2c;
    box-shadow: 0 8px 25px rgba(90, 56, 30, 0.4);
    transform: translateX(-50%) scale(1.05);
}
.product-page {
    background-color: #f9f3e3; /* общий уютный фон */
}

.text-coffee {
    color: #5a381e;
}

.product-card {
    border: 1px solid #e5d4c1;
}

.product-card h2 {
    font-size: 2rem;
}

.form-control:focus {
    border-color: #5a381e;
    box-shadow: 0 0 0 0.2rem rgba(90, 56, 30, 0.2);
}

.btn-dark {
    background-color: #5a381e;
    border: none;
}

.btn-dark:hover {
    background-color: #3c2615;
}

/* ====== Контейнер поиска ====== */
.menu-search {
    display: flex;
    flex-wrap: wrap; /* чтобы на маленьких экранах кнопка сползала вниз */
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

/* Обертка поля формы — Yii добавляет .form-group */
.menu-search .form-group {
    flex: 1;
    min-width: 150px;
}

/* Инпут поиска */
.menu-search input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #d7b59c;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff7e6;
    color: #5a381e;
    box-sizing: border-box;
}

/* Кнопка поиска */
.menu-search .btn-primary {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap; /* чтобы кнопка не ломалась */
}

/* ====== Фильтрация по категориям ====== */
.menu-categories ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0 0 20px 0;
    list-style: none;
    justify-content: flex-start;
}

.menu-categories li a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fff7e6;
    border: 1px solid #d7b59c;
    border-radius: 6px;
    color: #5a381e;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Активный пункт меню */
.menu-categories li a.active,
.menu-categories li a:hover {
    background-color: #d7b59c;
    color: #fff7e6;
}

/* ====== Адаптивность ====== */

/* ПК и ноутбуки */
@media screen and (min-width: 1025px) {
    .menu-search {
        flex-wrap: nowrap;
    }

    .menu-search .form-group {
        max-width: 300px;
    }

    .menu-search .btn-primary {
        max-width: 150px;
    }
}

/* Планшеты */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .menu-search {
        justify-content: space-around;
    }
}

/* Мобильные телефоны */
@media screen and (max-width: 768px) {
    .menu-search {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-search .form-group,
    .menu-search .btn-primary {
        width: 100%;
        max-width: 100%;
    }

    .menu-categories ul {
        justify-content: center;
    }

    .menu-categories li a {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    .mt-5 {
    margin-top: 3rem !important;
    }

}
