/* Заголовок страницы */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}
.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}
.page-header h1 span {
    color: #facc15;
}
.page-header p {
    font-size: 18px;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
}

/* Фильтры */
.catalog-filters {
    padding: 30px 0;
    background: #fff;
    border-bottom: 1px solid #e9edf4;
    position: sticky;
    top: 0;
    z-index: 100;
}
.filter-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-btn {
    padding: 10px 20px;
    border: 1px solid #e9edf4;
    background: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.filter-btn:hover {
    border-color: #facc15;
    color: #1a1a2e;
}
.filter-btn.active {
    background: #facc15;
    border-color: #facc15;
    color: #1a1a2e;
    font-weight: 600;
}
.filter-btn i {
    margin-right: 6px;
}
.filter-btn .count {
    background: rgba(26, 26, 46, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 700;
}

/* Сетка карточек */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    padding: 50px 0;
}

/* Карточка товара */
.product-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #e9edf4;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.1);
    border-color: #facc15;
}
.product-card .card-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 32px 28px;
    text-align: center;
    position: relative;
}
.product-card .card-header .icon {
    font-size: 56px;
    color: #facc15;
    margin-bottom: 12px;
    display: block;
}
.product-card .card-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.product-card .card-header .badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #facc15;
    color: #1a1a2e;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

/* Тело карточки */
.product-card .card-body {
    padding: 24px 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-card .specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.product-card .specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #475569;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.product-card .specs li:last-child {
    border-bottom: none;
}
.product-card .specs li i {
    color: #facc15;
    width: 18px;
    text-align: center;
}

/* Блок с ценой и городами */
.product-card .price-block {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* Блок с городами НАД ценой */
.cities-block {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-bottom: 4px;
}

.city-name {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f4ff;
    color: #3b82f6;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}

.city-name:hover {
    background: #dbeafe;
    transform: translateY(-2px);
}

.city-name.more {
    background: #facc15;
    color: #1a1a2e;
    font-weight: bold;
}

.city-name.more:hover {
    background: #eab308;
}

/* Цена и кнопка в один ряд */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.product-card .price {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
}

.product-card .price small {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: #94a3b8;
}

.product-card .btn-detail {
    padding: 10px 20px;
    background: #facc15;
    color: #1a1a2e;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0; /* Кнопка не сжимается */
}

.product-card .btn-detail:hover {
    background: #eab308;
    transform: scale(1.05);
}

/* CTA блок */
.cta-block {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    color: #fff;
    margin: 40px 0;
}
.cta-block h3 {
    font-size: 28px;
    margin-bottom: 12px;
}
.cta-block p {
    color: #94a3b8;
    margin-bottom: 24px;
    font-size: 16px;
}
.cta-block .btn-cta {
    display: inline-block;
    padding: 14px 36px;
    background: #facc15;
    color: #1a1a2e;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}
.cta-block .btn-cta:hover {
    background: #fff;
    transform: scale(1.05);
}

/* Пустой каталог */
.empty-catalog {
    text-align: center;
    padding: 80px 20px;
}
.empty-icon {
    font-size: 80px;
    color: #facc15;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}
.empty-catalog h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1a1a2e;
}
.empty-catalog p {
    color: #666;
    margin-bottom: 32px;
    font-size: 16px;
}
.empty-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 30px;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }
    
    .filter-wrapper {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .cta-block {
        padding: 32px 20px;
    }
    
    .cta-block h3 {
        font-size: 24px;
    }
    
    .product-card .card-header {
        padding: 24px 20px;
    }
    
    .product-card .card-header .icon {
        font-size: 40px;
    }
    
    .product-card .card-header h3 {
        font-size: 20px;
    }
    
    .product-card .card-body {
        padding: 20px;
    }
    
    .price-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-card .btn-detail {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .filter-btn i {
        margin-right: 4px;
    }
    
    .cities-block {
        gap: 4px;
    }
    
    .city-name {
        padding: 3px 8px;
        font-size: 11px;
    }
}