/* ================================
   PRODUCTS PAGE STYLES
   ================================ */

.products-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    background: var(--gradient-hero);
    text-align: center;
}

/* Animated Background */
.products-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    z-index: 0;
    overflow: hidden;
}

.products-hero .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    animation: gridMove 20s linear infinite;
}

/* Hero Badge */
.products-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
    padding: 0.625rem 1.5rem;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
    backdrop-filter: blur(10px);
}

.products-hero .badge-icon i {
    color: var(--secondary);
    animation: sparkle 2s ease-in-out infinite;
}

.products-hero .container {
    position: relative;
    z-index: 1;
}

.category-filter {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover {
    background: rgba(31, 41, 55, 0.9);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn:hover i {
    transform: scale(1.1);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-inverse);
    box-shadow: var(--shadow-glow);
}

.filter-btn.active i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.products-section {
    padding: var(--spacing-xl) 0;
    background: var(--background);
}

.products-layout {
    display: grid;
    gap: var(--spacing-lg);
}

/* Product Detail Card */
.product-detail-card {
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.product-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-detail-card:hover::before {
    transform: scaleX(1);
}

.product-detail-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.2);
    border-color: var(--primary);
    background: rgba(31, 41, 55, 0.9);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.product-icon-large {
    font-size: 4rem;
    filter: grayscale(0.1);
}

.product-icon-large i {
    color: var(--primary);
}

.product-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-best {
    background: var(--gradient-accent);
    color: var(--text-inverse);
}

.badge-popular {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.badge-choice {
    background: var(--gradient-secondary);
    color: var(--text-inverse);
}

.badge-verified {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
    text-transform: none;
}

.badge-free {
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: var(--primary-light);
    text-transform: none;
}

.badge-premium {
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.5);
    color: #fb923c;
    text-transform: none;
}

.badge-trending {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: var(--text-inverse);
}

.product-name-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
}

.product-rating-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

.product-rating-large .stars {
    color: #f59e0b;
    font-size: 1.2rem;
    display: flex;
    gap: 0.25rem;
}

.product-rating-large .rating-text {
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 1rem;
}

.product-tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

/* Product Features */
.product-features {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.product-features h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.6;
}

.product-features li i {
    color: var(--accent);
    margin-right: 0.5rem;
}

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

/* Pricing */
.product-pricing {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.price-period {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.price-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: var(--spacing-lg);
}

/* Pros & Cons */
.product-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
}

.pros,
.cons {
    padding: var(--spacing-md);
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.pros h4,
.cons h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros ul,
.cons ul {
    list-style: none;
    padding: 0;
}

.pros li,
.cons li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pros {
    border-left: 3px solid #10b981;
}

.pros h4 i {
    color: #10b981;
}

.cons {
    border-left: 3px solid #ef4444;
}

.cons h4 i {
    color: #ef4444;
}

/* Disclosure Section */
.disclosure-section {
    padding: var(--spacing-lg) 0;
    background: var(--background-secondary);
}

.disclosure-box {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.disclosure-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclosure-box h3 i {
    color: var(--primary);
}

.disclosure-box p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.disclosure-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.disclosure-link:hover {
    color: var(--primary-light);
    gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .product-pros-cons {
        grid-template-columns: 1fr;
    }

    .product-name-large {
        font-size: 2rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .product-badges {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .product-name-large {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }
}

/* Filtering Animation */
.product-detail-card.hidden {
    display: none;
    opacity: 0;
}

.product-detail-card.visible {
    display: block;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}