:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --accent-primary: #00d4aa;
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

.comparison-page {
    padding: 2rem 2rem 4rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
}

.compare-header {
    text-align: center;
    margin-bottom: 2rem;
}

.compare-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.compare-header p {
    color: var(--text-secondary);
}

.compare-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.compare-slot {
    border: 2px dashed var(--border-color);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    min-width: 180px;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
}

.vs {
    font-weight: 700;
    color: var(--text-secondary);
}

.compare-table {
    display: grid;
    gap: 0.75rem;
}

.compare-row {
    display: grid;
    grid-template-columns: 200px repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.compare-row:nth-child(even) {
    background: var(--bg-secondary);
}

.compare-cell.label {
    font-weight: 600;
    color: var(--text-secondary);
}

.compare-cell.product {
    text-align: center;
}

.compare-product img {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.compare-product h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.compare-product .price {
    color: var(--accent-primary);
    font-weight: 700;
}

.rating {
    font-size: 1.25rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.winner-badge {
    margin-left: 0.5rem;
    background: var(--accent-primary);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

@media (max-width: 960px) {
    .compare-row {
        grid-template-columns: 140px repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 720px) {
    .compare-row {
        grid-template-columns: 1fr;
    }

    .compare-cell.label {
        font-weight: 700;
    }
}