.compare-page {
  display: grid;
  gap: 14px;
}

.compare-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.compare-head h1,
.compare-head p {
  margin: 0;
}

.compare-head p {
  color: var(--text-secondary);
}

.compare-controls {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
}

.compare-controls label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold, 600);
}

.compare-products-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-product-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full, 999px);
  padding: 4px 10px;
  background: var(--bg-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.compare-product-chip:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.compare-product-chip a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--font-weight-semibold, 600);
}

.compare-product-chip a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.compare-product-chip button {
  border: 0;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.compare-product-chip button:hover {
  background: var(--bg-tertiary);
  color: var(--error-color);
}

.compare-product-chip button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.compare-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
