/* ===== МОБИЛЬНАЯ НИЖНЯЯ ПАНЕЛЬ ===== */

/* Панель видна только на мобильных устройствах */
.mobile-bottom-bar {
    display: none;
    /* По умолчанию скрыта */
    position: fixed;
    bottom: 16px;
    /* Отступ снизу от края */
    left: 16px;
    /* Отступ слева */
    right: 16px;
    /* Отступ справа */
    background: #a06d5c;
    border: 1px solid #8a5d4d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 998;
    /* Ниже чем мобильное меню (999) */
    height: 60px;
    border-radius: 16px;
    /* Скругленные углы */
    padding: 0 20px;
    /* Внутренние отступы только слева и справа */
    overflow: hidden;
    /* Чтобы содержимое не выходило за скругленные углы */
}

/* Контейнер кнопок */
.mobile-bottom-buttons {
    display: flex;
    height: 100%;
}

/* Кнопки */
.mobile-bottom-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    transition: background 0.2s;
    position: relative;
    text-decoration: none;
    color: #ffffff;
    /* Белый цвет для иконок */
}

.mobile-bottom-btn:active {
    background: rgba(255, 255, 255, 0.1);
    /* Полупрозрачный белый при нажатии */
}

/* Разделитель между кнопками */
.mobile-bottom-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    /* Полупрозрачный белый разделитель */
}

/* Иконка */
.mobile-bottom-btn-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    /* Цвет для SVG иконок */
}

.mobile-bottom-btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Делаем иконки белыми */
}

/* Текст */
.mobile-bottom-btn-text {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    /* Белый текст для контраста с темным фоном */
}

/* Цена корзины */
.mobile-bottom-btn-price {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

/* ===== МОДАЛЬНОЕ ОКНО КОНТАКТОВ ===== */

.mobile-contacts-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.mobile-contacts-modal.show {
    display: block;
}

/* Затемнение */
.mobile-contacts-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

/* Контент модального окна */
.mobile-contacts-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
    z-index: 1001;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Заголовок с кнопкой закрытия */
.mobile-contacts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-contacts-title {
    font-family: 'Manrope', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.mobile-contacts-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    transition: background 0.2s;
}

.mobile-contacts-close:active {
    background: #e0e0e0;
}

/* Список магазинов */
.mobile-contacts-shops {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Карточка магазина */
.mobile-contact-shop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

/* Название магазина */
.mobile-contact-shop-name {
    font-family: 'Manrope', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Кнопки 2ГИС и WhatsApp */
.mobile-contact-shop-actions {
    display: flex;
    gap: 8px;
}

.mobile-contact-shop-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.mobile-contact-shop-btn:active {
    transform: scale(0.95);
}

.mobile-contact-shop-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Показываем только на мобильных устройствах */
@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: block;
    }

    /* Добавляем отступ снизу для основного контента, чтобы панель не перекрывала */
    body {
        padding-bottom: 96px;
        /* 60px высота + 16px от края + 20px запас */
    }
}

/* Скрываем на десктопе */
@media (min-width: 769px) {
    .mobile-bottom-bar {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}