/* ========== Стили для страницы каталога ========== */

.logo a {
    display: block;
}

/* ========== Заголовок каталога ========== */
.catalog-header {
    padding: 160px 0 80px;
    background: var(--secondary-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.catalog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 23, 68, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.catalog-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.catalog-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 25px;
    border: 1px solid var(--accent-red);
    border-radius: 8px;
    transition: var(--transition);
}

.back-link:hover {
    background: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red-glow);
}

/* ========== Фильтры ========== */
.filters {
    padding: 40px 0;
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255, 23, 68, 0.2);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid rgba(255, 23, 68, 0.3);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red-glow);
}

.filter-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 0 30px var(--accent-red-glow);
}

/* ========== Сетка товаров ========== */
.catalog-grid-section {
    padding: 80px 0;
    background: var(--primary-dark);
}

.catalog-grid-section .container {
    max-width: 1600px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.product-card-full-link {
    text-decoration: none;
    color: inherit;
    display: contents;
}

.product-card-full {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: var(--secondary-dark);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-card-full:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 40px var(--accent-red-glow);
    transform: translateY(-5px);
}

.product-image-large {
    position: relative;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image-large img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.product-card-full:hover .product-image-large img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 20px;
    background: var(--accent-red);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 0 20px var(--accent-red-glow);
}

.product-badge.popular {
    background: #ff9800;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.5);
}

.product-badge.new {
    background: #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.product-badge.premium {
    background: linear-gradient(135deg, #ff1744, #ff9800);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
}

.product-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features i {
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-red-glow);
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
    text-shadow: 0 0 15px var(--accent-red-glow);
}

.product-cta {
    display: inline-block;
    padding: 12px 35px;
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 0 15px var(--accent-red-glow);
}

.product-cta:hover {
    background: var(--accent-red);
    box-shadow: 0 0 30px var(--accent-red-glow);
    transform: translateY(-2px);
}

/* ========== Кнопка "Добавить в корзину" ========== */
.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 35px;
    background: var(--accent-red);
    border: 2px solid var(--accent-red);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 15px var(--accent-red-glow);
}

.add-to-cart-btn:hover {
    background: transparent;
    box-shadow: 0 0 30px var(--accent-red-glow);
    transform: translateY(-2px);
}

.add-to-cart-btn i {
    font-size: 1rem;
}

/* ========== Анимация скрытия/показа товаров ========== */
.product-card-full.hidden {
    display: none;
}

.product-card-full.fade-in {
    animation: fadeInProduct 0.5s ease forwards;
}

@keyframes fadeInProduct {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== CTA секция ========== */
.catalog-cta {
    padding: 100px 0;
    background: var(--secondary-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.catalog-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 23, 68, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.catalog-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.catalog-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* ========== Адаптивность ========== */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-card-full {
        grid-template-columns: 1fr;
    }

    .product-image-large {
        min-height: 250px;
    }

    .product-details {
        padding: 30px;
    }

    .product-details h3 {
        font-size: 1.5rem;
    }

    .product-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .product-cta {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .catalog-header {
        padding: 140px 0 60px;
    }

    .catalog-grid-section {
        padding: 40px 0;
    }

    .catalog-grid-section .container {
        padding: 0 15px;
    }

    .products-grid {
        gap: 25px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .product-details {
        padding: 25px 20px;
    }

    .product-details h3 {
        font-size: 1.3rem;
    }

    .product-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .product-features li {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .add-to-cart-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .back-link {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 20px;
    }

    .catalog-header h1 {
        font-size: 1.8rem;
    }

    .catalog-header p {
        font-size: 1rem;
    }

    .product-image-large {
        min-height: 200px;
        padding: 15px;
    }

    .product-details {
        padding: 20px 15px;
    }

    .product-details h3 {
        font-size: 1.2rem;
    }

    .product-features {
        margin-bottom: 20px;
    }

    .product-features li {
        font-size: 0.85rem;
        gap: 8px;
    }

    .product-features i {
        font-size: 0.8rem;
    }

    .add-to-cart-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .add-to-cart-btn i {
        font-size: 0.9rem;
    }

    .product-badge {
        top: 15px;
        left: 15px;
        padding: 6px 15px;
        font-size: 0.75rem;
    }

    .catalog-cta {
        padding: 60px 0;
    }

    .catalog-cta h2 {
        font-size: 1.5rem;
    }

    .catalog-cta p {
        font-size: 1rem;
    }
}
