/* Общие настройки */
.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* Секции выбора */
.category-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
}

/* Заголовки категорий */
.category-title {
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    color: #2c3e50;
    transition: color 0.3s;
    list-style: none;
}

.category-title:hover {
    color: #007bff;
}

/* --- СЕТКА ТОВАРОВ (Оптимизирована для ПК и Телефона) --- */
.catalog-grid {
    display: grid;
    /* На ПК: минимум 200px на карточку, заполняет всё пространство */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* Карточки товаров */
.product-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #007bff;
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.product-card span {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    font-weight: 500;
    color: #444;
}

/* --- ИТОГОВЫЙ БЛОК --- */
#final-choice {
    margin-top: 40px;
    padding: 30px;
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 10px;
    text-align: center;
}

.selection-preview {
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    margin: 25px 0;
}

.preview-item img {
    width: 150px; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 10px; 
    border: 3px solid #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.preview-item p {
    margin-top: 10px;
    font-weight: bold;
    color: #1565c0;
}

/* Кнопка сброса (стиль кнопки "Записаться на замер") */
button {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0069d9;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 600px) {
    /* На телефонах: 1 колонка во всю ширину */
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Дополнительно: адаптируем размер карточки для удобства */
    .product-card {
        padding: 15px;
    }

    .selection-preview {
        gap: 15px;
    }
    
    .preview-item img {
        width: 100px;
        height: 100px;
    }
}
/* Исправление отображения ссылок для Luminous */
.product-card a.lightbox {
    display: block;
    cursor: zoom-in;
    line-height: 0; /* Убирает лишние отступы под картинкой */
}

.product-card a.lightbox img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

/* Эффект при наведении (опционально) */
.product-card a.lightbox:hover img {
    transform: scale(1.02);
}

/* Обеспечение корректного наложения лайтбокса */
.lum-lightbox {
    z-index: 9999 !important;
}
/* 1. Стили для кнопки "Увеличить" */
.view-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px; /* Чуть меньше основного текста */
    color: #555;
    cursor: zoom-in;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 2. Отключаем hover-эффект для ссылок лайтбокса внутри карточек */
/* Чтобы при наведении на "Увеличить" карточка не "прыгала" от scale */
.product-card a.view-btn:hover img {
    transform: none;
}

/* 3. Улучшаем отступы в карточке, чтобы контент не слипался */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* 4. Чтобы иконка лайтбокса не мешала клику */
.product-card img {
    pointer-events: none; /* Картинка не перехватывает клик, он уходит на product-card */
}

/* 5. Убедимся, что кнопка увеличения кликабельна отдельно */
.product-card .view-btn {
    pointer-events: auto; /* Возвращаем кликабельность самой кнопке */
    z-index: 10;
}
