.compare-page {
  padding: 32px 0 64px;
  min-height: 60vh;
}

.compare-page h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 24px;
}

/* Empty state */
.cmp-empty {
  text-align: center;
  padding: 80px 20px;
}

.cmp-empty p {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: #555;
}

.cmp-empty-sub {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #999 !important;
}

.cmp-empty .btn {
  margin-top: 24px;
}

/* Table */
.cmp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.cmp-table {
  border-collapse: collapse;
}

.cmp-table .cmp-label-col {
  width: 180px;
  min-width: 150px;
  font-weight: 600;
  color: #666;
  font-size: 14px;
  vertical-align: middle;
}

.cmp-item-col {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  vertical-align: top;
}

.cmp-table th,
.cmp-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 14px;
  vertical-align: top;
}

/* Vertical dividers between product columns */
.cmp-table th.cmp-item-col:not(:last-child),
.cmp-table td:not(.cmp-label):not(:last-child) {
  border-right: 1px solid rgba(0,0,0,.08);
}

.cmp-table tbody tr:hover {
  background: rgba(110,67,199,.02);
}

.cmp-label {
  font-weight: 600;
  color: #666;
  white-space: nowrap;
}

.cmp-diff td:not(.cmp-label) {
  background: rgba(110,67,199,.04);
}

.cmp-diff .cmp-label {
  color: var(--accent, #6e43c7);
}

/* Product card in header */
.cmp-card {
  position: relative;
  padding: 8px;
}

.cmp-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(0,0,0,.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #888;
  transition: background .15s, color .15s;
}

.cmp-remove:hover {
  background: #fee;
  color: #e33;
}

.cmp-card-link {
  text-decoration: none;
  color: inherit;
}

.cmp-card-img {
  width: 140px;
  height: 140px;
  margin: 0 0 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
}

.cmp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmp-card-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cmp-card-price .price {
  font-weight: 800;
  font-size: 15px;
}

.cmp-card-price .old-price {
  text-decoration: line-through;
  color: #e33;
  font-size: 12px;
  margin-right: 6px;
}

.cmp-card-variant {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.cmp-card-variant span {
  font-size: 11px;
  color: #888;
  background: rgba(0,0,0,.04);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Actions */
.cmp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Hide same rows toggle */
.cmp-table.only-diff tr:not(.cmp-diff):not(:first-child) {
  display: none;
}

/* Removing animation */
.cmp-item-col.removing {
  opacity: 0;
  transition: opacity .3s;
}

@media (max-width: 640px) {
  .cmp-label-col { width: 120px; min-width: 120px; }
  .cmp-item-col { width: 160px; min-width: 160px; max-width: 160px; }
  .cmp-card-img { width: 100px; height: 100px; }
}
