/* Новые стили для каталога растений McPlantsNavan */

/* Design Tokens - Цветовая схема для каталога (использует глобальные переменные из style.css) */
/* Не переопределяем :root, чтобы не конфликтовать с главной страницей */

/* Hero секция для каталога (уменьшенная версия) */
.hero-section {
    position: relative;
    padding: 5px 0;
    overflow: hidden;
}

/* Переопределяем высоту hero-секции только для страниц каталога */
body.catalog .hero-section,
body.plants .hero-section,
.hero-section.catalog-hero {
    height: 22.5vh !important;
    min-height: 162px !important;
    margin-top: 0 !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Glassmorphism форма поиска */
.search-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--color-dark-gray);
}

.search-input::placeholder {
    color: var(--color-light-gray);
}

.search-icon {
    color: var(--color-sky);
    font-size: 18px;
    margin-right: 10px;
}

/* Кнопка переключения фильтров */
.filter-toggle-btn {
    background: linear-gradient(135deg, 
        rgba(135, 206, 235, 0.2) 0%, 
        rgba(107, 142, 35, 0.2) 100%);
    border: 1px solid rgba(135, 206, 235, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--color-dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.filter-toggle-btn:hover {
    background: linear-gradient(135deg, 
        rgba(135, 206, 235, 0.3) 0%, 
        rgba(107, 142, 35, 0.3) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.filter-toggle-btn.active {
    background: linear-gradient(135deg, 
        rgba(135, 206, 235, 0.4) 0%, 
        rgba(107, 142, 35, 0.4) 100%);
    border-color: rgba(135, 206, 235, 0.5);
}

.filter-badge {
    background: var(--color-olive);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.filter-chevron {
    transition: transform 0.3s ease;
}

.filter-toggle-btn.active .filter-chevron {
    transform: rotate(180deg);
}

/* Панель фильтров */
.filters-panel {
    background: var(--color-cream);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: none;
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    transition: all 0.3s ease-out;
}

.filters-panel.active {
    display: block;
    opacity: 1;
    max-height: 1000px;
    transform: translateY(0);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* Адаптивность для панели фильтров */
@media (max-width: 1200px) {
    .filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 992px) {
    .filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-panel {
        padding: 20px;
    }
}

/* Стили для элементов фильтров */
.filter-group {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.filter-group h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--color-dark-gray);
    margin-bottom: 15px;
    font-size: 16px;
}

.form-control,
.form-select {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    min-height: 48px;
}

/* Улучшение для мобильных устройств - увеличенные touch targets */
@media (max-width: 768px) {
    .form-control,
    .form-select {
        min-height: 52px;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .form-check-input {
        width: 20px;
        height: 20px;
    }
    
    .form-check-label {
        font-size: 15px;
        padding-left: 8px;
    }
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-olive);
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.1);
    outline: none;
}

.form-check-input:checked {
    background-color: var(--color-olive);
    border-color: var(--color-olive);
}

.form-check-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: var(--color-dark-gray);
    cursor: pointer;
}

.btn-apply {
    background: var(--color-olive);
    color: white;
    border: 2px solid var(--color-olive);
    border-radius: 9999px;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(184, 199, 106, 0.1);
    min-height: 48px;
}

.btn-apply:hover {
    background: var(--color-olive);
    border-color: var(--color-olive);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(184, 199, 106, 0.3);
}

.btn-reset {
    background: transparent;
    color: var(--color-dark-gray);
    border: 2px solid var(--color-olive);
    border-radius: 9999px;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn-reset:hover {
    background: var(--color-olive);
    border-color: var(--color-olive);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(184, 199, 106, 0.3);
}

/* Улучшение кнопок для мобильных устройств */
@media (max-width: 768px) {
    .btn-apply,
    .btn-reset {
        min-height: 52px;
        padding: 14px 28px;
        font-size: 16px;
    }
    
    /* Отключаем hover эффекты на мобильных для улучшения производительности */
    .btn-apply:hover,
    .btn-reset:hover {
        transform: none;
    }
    
    /* Добавляем активное состояние для касания */
    .btn-apply:active,
    .btn-reset:active {
        transform: scale(0.98);
    }
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 12px;
}

/* Карточка товара */
.plant-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 520px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Оптимизация касаний для карточек на мобильных */
@media (max-width: 768px) {
    .plant-card:hover {
        transform: none;
    }
    
    .plant-card:active {
        transform: scale(0.98);
    }
}

/* Изображение товара */
.plant-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.plant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.plant-card:hover .plant-image img {
    transform: scale(1.1);
}

.plant-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plant-card:hover .plant-image::after {
    opacity: 1;
}

/* Бейдж скидки */
.discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--color-olive);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* Категория */
.product-category {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: rgba(135, 206, 235, 0.1);
    border-bottom: 1px solid rgba(135, 206, 235, 0.2);
}

.category-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--color-olive);
    text-transform: uppercase;
    font-size: 12px;
}

/* Название товара */
.product-name {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
}

.product-name h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--color-dark-gray);
    font-size: 18px;
    margin: 0;
    line-height: 1.2;
}

/* Латинское название */
.product-scientific {
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
}

.scientific-name {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    color: var(--color-light-gray);
    font-size: 14px;
    font-weight: 400;
}

/* Характеристики */
.product-features {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
}

.feature-cold {
    background: rgba(135, 206, 235, 0.2);
    color: var(--color-sky);
}

.feature-care {
    background: rgba(107, 142, 35, 0.2);
    color: var(--color-olive);
}

.feature-height {
    background: rgba(107, 107, 107, 0.2);
    color: var(--color-light-gray);
}

.feature-icon {
    font-size: 10px;
}

/* Формат поставки */
.product-supply-format {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
}

.supply-format-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--color-light-gray);
    font-size: 14px;
    margin-right: 4px;
}

.supply-format-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--color-olive);
    font-size: 14px;
}

/* Цена и кнопка */
.product-footer {
    min-height: 56px;
    margin-top: auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.old-price {
    text-decoration: line-through;
    color: var(--color-light-gray);
    font-size: 14px;
    font-weight: 400;
}

.new-price {
    color: var(--color-olive);
    font-size: 18px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.price {
    color: var(--color-dark-gray);
    font-size: 18px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.btn-details {
    background: var(--color-olive);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

.btn-details:hover {
    background: #5a7218;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 142, 35, 0.3);
}

/* Улучшение кнопки деталей для мобильных */
@media (max-width: 768px) {
    .btn-details {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .btn-details:hover {
        transform: none;
    }
    
    .btn-details:active {
        transform: scale(0.95);
    }
}

/* Пагинация */
.pagination {
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.page-link {
    color: var(--color-dark-gray);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 0 4px;
    padding: 10px 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-link:hover {
    background: var(--color-olive);
    border-color: var(--color-olive);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--color-olive);
    border-color: var(--color-olive);
    color: white;
}

/* Улучшение пагинации для мобильных */
@media (max-width: 576px) {
    .pagination {
        margin-top: 40px;
        margin-bottom: 30px;
    }
    
    .page-link {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
        font-size: 15px;
        margin: 0 3px;
    }
    
    .page-link:hover {
        transform: none;
    }
    
    .page-link:active {
        transform: scale(0.95);
    }
}

/* Стили для пустого результата */
.empty-result {
    text-align: center;
    padding: 60px 20px;
    background: var(--color-cream);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-result h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--color-dark-gray);
    margin-bottom: 16px;
}

.empty-result p {
    color: var(--color-light-gray);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-form {
        padding: 10px 16px;
    }
    
    .filter-toggle-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .plant-card {
        height: 480px;
    }
    
    .plant-image {
        height: 220px;
    }
    
    .product-name h3 {
        font-size: 16px;
    }
    
    .new-price,
    .price {
        font-size: 16px;
    }
    
    .btn-details {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .search-form {
        padding: 8px 14px;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    .filter-toggle-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .plant-card {
        height: 460px;
    }
    
    .plant-image {
        height: 200px;
    }
    
    .filters-panel {
        padding: 16px;
    }
    
    .filters-grid {
        gap: 16px;
    }
    
    .filter-group {
        padding: 16px;
    }
    
    .pagination {
        margin-top: 40px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Дополнительные утилиты */
.text-dark-gray {
    color: var(--color-dark-gray) !important;
}

.text-light-gray {
    color: var(--color-light-gray) !important;
}

.bg-olive {
    background-color: var(--color-olive) !important;
}

.bg-sky {
    background-color: var(--color-sky) !important;
}

.border-olive {
    border-color: var(--color-olive) !important;
}

.border-sky {
    border-color: var(--color-sky) !important;
}

/* Индикатор загрузки для бесконечной прокрутки */
.loading-indicator {
    grid-column: 1 / -1;
    padding: 20px;
}

.loading-indicator .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Цена с НДС */
.price-with-vat {
    font-size: 14px;
    color: var(--color-light-gray);
}

.vat-label {
    font-size: 12px;
    color: var(--color-olive);
    font-weight: 500;
}