/* Страница каталога */
.catalog-page {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 100vh;
}
.logo-img{
    height: 100px;
    width: 100px;
    margin-top: 30px;
    margin-left: 30px;
}

.catalog-header {
    text-align: center;
    margin-bottom: 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: Arial, Helvetica, sans-serif;
}

/* Фильтры по кузову */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-tab {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    border-color: #000000;
    color: #000000;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: #000000;
    border-color: #000000;
    color: white;
    box-shadow: 0 5px 15px rgba(105, 105, 105, 0.3);
}

/* Сетка автомобилей */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Карточка автомобиля */
.car-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Изображение автомобиля */
.car-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 102, 0, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.car-actions {
    position: absolute;
    top: 15px;
    right: 15px;
}

.wishlist-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn:hover {
    background: white;
    transform: scale(1.1);
    color: #000000;
}

.wishlist-btn.active {
    background: #000000;
    color: white;
}

/* Информация об автомобиле */
.car-info {
    padding: 25px;
}

.car-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.car-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Характеристики */
.car-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.spec i {
    color: #000000;
    font-size: 16px;
}

.spec span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Цена */
.car-price {
    margin-bottom: 20px;
    text-align: center;
}

.price {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 5px;
}

.price-note {
    font-size: 12px;
    color: #666;
}

/* Кнопки действий */
.car-actions-main {
    display: flex;
    gap: 10px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: #000000;
    color: white;
}

.btn-primary:hover {
    background: #000000;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.btn-primary i, .btn-secondary i {
    margin-right: 5px;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f0f0f0;
    color: #000000;
}

.modal-body {
    padding: 40px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.car-card {
    animation: fadeIn 0.5s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .filter-tabs {
        gap: 5px;
    }
    
    .filter-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .car-info {
        padding: 20px;
    }
    
    .car-specs {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .car-actions-main {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .catalog-header h1 {
        font-size: 28px;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tab {
        width: 200px;
        justify-content: center;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
}
a{
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
}
