/* Стили для уведомления о добавлении в корзину */
.cart-notification {
    position: fixed;
    bottom: -100px;
    left: 20px;
    right: 20px;
    background-color: rgba(207, 25, 48, 1);
    color: white;
    border-radius: 14px;
    padding: 15px;
    z-index: 1000;
    transition: bottom 0.3s ease-in-out;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0px 4px 15.4px rgba(0, 0, 0, 0.25);
    display: none;
}

.cart-notification.show {
    bottom: 20px;
    display: block;
}

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

.notification-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-left img {
    width: 36px;
    height: 36px;
}

.notification-text {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.cart-info {
    display: flex;
    gap: 5px;
    font-size: 14px;
}

.view-cart-btn {
    background-color: white;
    color: rgba(207, 25, 48, 1);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
}

/* Стили для попапа корзины */
.cart-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background-color: white;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    transition: bottom 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
}

.cart-popup.show {
    bottom: 0;
}

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

.cart-popup-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.close-cart-popup {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.cart-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-popup-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: rgba(207, 25, 48, 1);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
}.mobile-menu-modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed; /* Фиксированное положение */
    z-index: 1000; /* Поверх всего */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Включение прокрутки, если содержимое больше экрана */
    background-color: rgba(0,0,0,0.8); /* Полупрозрачный черный фон */
    backdrop-filter: blur(5px); /* Эффект размытия, если поддерживается */
    animation: fadeIn 0.3s ease-out; /* Анимация появления */
}

.mobile-menu-modal.active {
    display: flex; /* Отображаем модальное окно */
    justify-content: center; /* Центрирование содержимого */
    align-items: center;
}

.modal-content {
    
    margin: auto; /* Центрирование */
    padding: 20px;
    border-radius: 10px;
    width: 90%; /* Ширина модального окна */
    max-width: 1200px; /* Максимальная ширина */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    height: 90vh; /* Высота модального окна */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    
}

.modal-header .logo img {
    max-height: 40px; /* Размер логотипа в модальном окне */
}

.close-button {
    color: #aaa;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: white;
    text-decoration: none;
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Три колонки */
    grid-template-rows: 1fr 1fr; /* Две строки */
    gap: 20px; /* Отступы между элементами сетки */
    padding-top: 20px;
    flex-grow: 1; /* Чтобы сетка занимала все доступное пространство */
}

/* Стили для левого блока с меню */
.modal-menu-category {
    background-image: url("http://marketing-leads.ru/wp-content/uploads/2025/08/наборы-1.png");
    border-radius: 8px;
    padding: 20px;
    grid-row: 1 / 3; /* Занимает обе строки */
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
}

.modal-menu-title {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.modal-menu-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-menu-button {
    background: #333; /* Цвет кнопок категорий */
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.modal-menu-button:hover {
    background: #555;
}

.modal-search {
    display: flex;
    align-items: center;
    background: #333; /* Фон поля поиска */
    border-radius: 5px;
    padding: 10px;
    margin-top: auto; /* Прижимает поиск к низу левого блока */
}

.modal-search-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.modal-search-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 1em;
}

.modal-search-input::placeholder {
    color: #aaa;
}

/* Стили для карточек АКЦИИ, ДОСТАВКА, ГЛАВНАЯ, КОНТАКТЫ */
.modal-menu-card {
       border-radius: 18px;
    display: flex
;
    justify-content: flex-start;
    align-items: flex-start;
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    padding-top: 50px;
    padding-left: 20px;
}

.modal-menu-card:hover {
    background-color: #4D0F0F; /* Более светлый оттенок при наведении */
}

/* Добавьте стили для фоновых изображений и затемнений, как на PDF */
.card-sales {
background-image: url('http://marketing-leads.ru/wp-content/uploads/2025/08/роллы.png'); 
    background-position: center center;
  background-repeat: no-repeat;
    background-size: auto;
}
.card-delivery {
  background-image: url('http://marketing-leads.ru/wp-content/uploads/2025/08/салаты.png'); 
    background-position: center center;
  background-repeat: no-repeat;
    background-size: auto;
}
.card-home {
    background-image: url('http://marketing-leads.ru/wp-content/uploads/2025/08/суши.png'); 
    background-position: center center;
   background-repeat: no-repeat;
    background-size: auto;}
.card-contacts {
     background-image: url('http://marketing-leads.ru/wp-content/uploads/2025/08/горячие-блюда.png'); 
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Медиа-запросы для адаптивности, если нужно */
@media (max-width: 768px) {
    .modal-body-grid {
        grid-template-columns: 1fr 1fr; /* 2 колонки на меньших экранах */
        grid-template-rows: auto;
    }
    .modal-menu-category {
        grid-column: 1 / 3; /* Левый блок занимает всю ширину сверху */
        grid-row: auto;
    }
}
@media (max-width: 480px) {
    .modal-body-grid {
        grid-template-columns: 1fr; /* Одна колонка на очень маленьких экранах */
    }
    .modal-menu-category {
        grid-column: auto;
    }
}