/* Products Page Styles */

/* Products Hero */
.products-hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.products-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.products-hero .hero-title {
    font-family: 'Manrope', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.products-hero .hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.product-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 24px;
    color: white;
    font-size: 16px;
    outline: none;
}

.product-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    width: 56px;
    height: 56px;
    background: white;
    border: none;
    border-radius: 50%;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* Categories */
.categories {
    padding: 100px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    background: white;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 32px;
}

.category-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--dark);
}

.category-card p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 15px;
}

.product-count {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Featured Products */
.featured-products {
    padding: 100px 0;
    background: var(--light);
}

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

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
}

.product-content {
    padding: 30px;
}

.product-title {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--dark);
}

.product-description {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.product-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dark);
    font-size: 14px;
}

.product-features i {
    color: var(--success);
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
}

.price span {
    font-size: 16px;
    color: var(--gray);
    font-weight: 400;
}

/* Comparison Table */
.comparison {
    padding: 100px 0;
    background: white;
}

.comparison-table {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table th {
    background: var(--primary);
    color: white;
    padding: 24px;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th:first-child {
    background: var(--dark);
    text-align: left;
}

.comparison-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-light);
    text-align: center;
    color: var(--dark);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: var(--light);
}

.comparison-table .pricing-row td {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.comparison-table i.fa-check {
    color: var(--success);
    font-size: 18px;
}

.comparison-table i.fa-times {
    color: var(--danger);
    font-size: 18px;
}

/* Admin Link */
.admin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary) !important;
}

.admin-link i {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-hero .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-hero .hero-title {
        font-size: 36px;
    }
    
    .products-hero .hero-subtitle {
        font-size: 18px;
    }
    
    .product-search {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .product-search input {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50px;
        margin-bottom: 16px;
    }
    
    .search-btn {
        width: 100%;
        border-radius: 50px;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 16px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.product-card {
    animation: fadeIn 0.6s ease forwards;
}

.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }