/* ===== Products Page Styles ===== */

/* ===== Page Header ===== */
.products-page {
    padding: 140px 80px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 80px;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

/* ===== Product Card ===== */
.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 245, 255, 0.1) 0%,
        transparent 50%,
        rgba(168, 85, 247, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 245, 255, 0.1);
}

/* Featured Card */
.product-card.featured {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.1) 0%,
        var(--glass-bg) 100%
    );
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    background: var(--gradient-main);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bg-dark);
    z-index: 10;
}

/* Product Image/Icon Area */
.product-image {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.product-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--bg-dark);
}

.product-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-glow {
    opacity: 1;
}

/* Product Content */
.product-content {
    position: relative;
    z-index: 2;
}

.product-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.product-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-content > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Product Features List */
.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Product Price */
.product-price {
    margin-bottom: 24px;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* Product Button */
.btn-product {
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-product:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.btn-product.btn-featured {
    background: var(--gradient-main);
    border: none;
    color: var(--bg-dark);
    font-weight: 600;
}

.btn-product.btn-featured:hover {
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

/* ===== Comparison Section ===== */
.comparison-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 20px 24px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table th.highlight,
.comparison-table td.highlight {
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-primary);
}

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

.comparison-table tbody tr {
    transition: background 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ===== Logo as Link ===== */
.logo {
    text-decoration: none;
    color: inherit;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .products-page {
        padding: 120px 40px 60px;
    }
}

@media (max-width: 768px) {
    .products-page {
        padding: 100px 20px 40px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 24px;
    }

    .page-title {
        font-size: 2rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}
