.compare-main { padding: 2rem 0 4rem; }

.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }

.compare-table th, .compare-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.compare-table thead th { border-bottom: 2px solid rgba(15, 23, 42, 0.14); }

.compare-table tbody th {
  width: 140px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.compare-product { min-width: 180px; }

.compare-thumb { width: 72px; height: 72px; object-fit: contain; background: #f8fafc; border-radius: 10px; }

.compare-name { font-weight: 700; font-size: 0.95rem; margin: 0.4rem 0 0.2rem; }
.compare-brand { color: #64748b; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.compare-sku { font-family: ui-monospace, monospace; font-size: 0.78rem; color: #475569; }

.compare-remove {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #dc2626;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.compare-remove:hover { color: #b91c1c; }

.compare-price-value { font-size: 1.15rem; font-weight: 800; }
.compare-old-price { color: #94a3b8; text-decoration: line-through; font-weight: 400; font-size: 0.85rem; margin-left: 0.4rem; }
.compare-save { color: #dc2626; font-size: 0.78rem; font-weight: 600; display: block; margin-top: 0.2rem; }

.compare-stock { font-weight: 600; }
.compare-stock.in { color: #059669; }
.compare-stock.low { color: #d97706; }
.compare-stock.out { color: #dc2626; }

.compare-cat { font-size: 0.85rem; color: #334155; }

.compare-attr-line { font-size: 0.85rem; margin-bottom: 0.3rem; }
.compare-attr-line b { color: #334155; }

.compare-variants { font-size: 0.85rem; }
.compare-variants span { display: inline-block; background: #f1f5f9; border-radius: 999px; padding: 0.2rem 0.6rem; margin: 0.15rem 0.2rem 0.15rem 0; font-size: 0.78rem; color: #334155; }

.compare-desc { font-size: 0.82rem; color: #475569; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.compare-actions .btn { display: inline-block; margin: 0.15rem 0.25rem 0.15rem 0; padding: 0.45rem 0.9rem; font-size: 0.82rem; }

.compare-suggest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.compare-suggest-card { border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.compare-suggest-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f8fafc; padding: 0.75rem; }
.compare-suggest-noimg { aspect-ratio: 1; background: #f8fafc; display: grid; place-items: center; color: #94a3b8; font-size: 0.85rem; }
.compare-suggest-body { padding: 0.8rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.compare-suggest-body small { color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.68rem; }
.compare-suggest-body h3 { font-size: 0.88rem; margin: 0; }
.compare-suggest-body .compare-price { font-weight: 700; font-size: 0.9rem; }
.compare-suggest-body .compare-price del { color: #94a3b8; font-weight: 400; margin-left: 0.35rem; font-size: 0.78rem; }
.compare-suggest-body .btn-card { margin-top: auto; }

.compare-picker { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.compare-picker select { flex: 1; min-width: 240px; max-width: 460px; padding: 0.65rem 0.9rem; border: 1px solid #e2e8f0; border-radius: 999px; font: inherit; font-size: 0.88rem; background: #fff; }
.compare-picker .btn { white-space: nowrap; }

.compare-empty { text-align: center; padding: 3rem 1rem; }
.compare-empty .btn { margin-top: 1rem; display: inline-block; }
.compare-clear { margin-top: 1.25rem; text-align: center; }
.compare-clear button { background: none; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0.5rem 1.1rem; font: inherit; font-size: 0.85rem; cursor: pointer; color: #475569; }
.compare-clear button:hover { border-color: #dc2626; color: #dc2626; }
.compare-note { font-size: 0.8rem; color: #64748b; margin-top: 0.75rem; }

@media (max-width: 640px) {
  .compare-table { min-width: 480px; }
  .compare-table th, .compare-table td { padding: 0.7rem 0.6rem; }
}
