.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 12px);
  background: var(--bg-primary);
}

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

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--bg-secondary) 60%, white);
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
}

.compare-product-title {
  font-size: var(--font-size-md, 0.9375rem);
  font-weight: var(--font-weight-bold, 700);
  line-height: 1.3;
}

.compare-different td {
  background: color-mix(in srgb, var(--warning-color) 9%, white);
}

.compare-colour-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compare-colour-swatch {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  border-radius: 50%;
}

@media (max-width: 640px) {
  .compare-table th,
  .compare-table td {
    padding: 10px;
    font-size: var(--font-size-base, 0.875rem);
  }
}
