/* ============================================
   LOAN PRODUCTS LISTING PAGE
   ============================================ */
.products-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.products-header h1 {
    color: #fff;
}

.products-header p {
    color: rgba(255, 255, 255, 0.9);
}

.products-header-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.products-header-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: #fff;
}

.products-header-chip strong {
    font-weight: 700;
}

.products-header-actions {
    margin-top: var(--space-xl);
}

/* ---------- Comparison table ---------- */
.compare-table-wrap {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.compare-table thead th {
    padding: var(--space-lg);
    text-align: left;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.compare-table tbody td {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    vertical-align: middle;
}

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

.compare-table tbody tr {
    transition: background var(--transition-fast);
}

.compare-table tbody tr:hover {
    background: var(--color-bg-alt);
}

.compare-product-name {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 700;
    white-space: nowrap;
}

.compare-product-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-value-strong {
    font-weight: 700;
    color: var(--color-text);
}

.compare-cta {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

/* ---------- Enhanced product cards ---------- */
.product-card-features {
    list-style: none;
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.product-card-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}

.product-card-features svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-success);
}

/* ---------- Decision helper ---------- */
.decision-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.decision-card {
    padding: var(--space-xl);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-fast);
    text-align: left;
}

.decision-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--color-primary-light);
    color: var(--color-text);
}

.decision-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.decision-card h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.decision-card p {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.decision-card-link {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .decision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-header-stats {
        gap: var(--space-sm);
    }

    .products-header-chip {
        font-size: var(--font-size-xs);
        padding: var(--space-xs) var(--space-md);
    }

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