/* 매물 보관·비교와 아이템 쇼케이스. 기존 밝은/어두운 테마를 함께 사용한다. */
.collection-button, .collection-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer;
}
.collection-button:hover { border-color: var(--accent); }
.collection-button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--surface-2); }
.collection-primary { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); font-weight: 650; }
.collection-button:disabled { opacity: .55; cursor: wait; }
.collection-muted { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.collection-warning { color: var(--warn-text); background: var(--warn-bg); padding: 8px; font-size: 12px; font-weight: 400; }
.collection-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.collection-actions a { color: var(--accent); }
.collection-tray {
  position: fixed; z-index: 40; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: min(460px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); background: var(--surface);
}
.collection-tray[hidden] { display: none; }
body.has-collection { padding-bottom: 94px; }
body.has-collection .toast { bottom: 98px; }
.collection-empty { padding: 28px 20px; background: var(--surface-2); border-radius: var(--radius); color: var(--text-muted); line-height: 1.8; }
.collection-empty h2 { color: var(--text); }
.collection-choices { display: grid; gap: 8px; margin-bottom: 24px; }
.collection-choice { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.collection-choice label { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; overflow-wrap: anywhere; }
.collection-choice input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.collection-choice small { display: block; color: var(--text-muted); margin-top: 5px; }
.collection-choice button { flex-shrink: 0; }
.compare-scroll { position: relative; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; background: var(--surface); font-size: 14px; }
.compare-table th, .compare-table td { padding: 14px; vertical-align: top; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: left; overflow-wrap: anywhere; white-space: pre-wrap; }
.compare-table tr:last-child td, .compare-table tr:last-child th { border-bottom: 0; }
.compare-table th:first-child { width: 120px; background: var(--surface-2); font-size: 13px; }
.compare-table thead th { background: var(--surface-2); }
.compare-table a { color: var(--accent); }
.compare-best { display: inline-block; color: var(--ok-text); background: var(--ok-bg); padding: 2px 8px; border-radius: 5px; }
.collection-image { display: block; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: var(--surface-2); cursor: zoom-in; }
.collection-image img { display: block; max-width: 100%; height: 200px; width: 100%; object-fit: contain; }
.collection-image:disabled { cursor: default; color: var(--text-muted); min-height: 80px; }
.compare-scroll-hint { display: none; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.collection-card { min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-wrap: anywhere; }
.collection-card h3 { margin: 0 0 14px; font-size: 17px; }
.collection-content { white-space: pre-wrap; font-size: 14px; line-height: 1.6; }
.collection-stats { font-size: 14px; line-height: 1.7; font-weight: 600; }
.showcase-badge { display: inline-block; margin: 0 0 14px; padding: 6px 9px; background: var(--item-bg); color: var(--item-text); border-radius: 6px; font-size: 12px; font-weight: 700; }
.showcase-discoveries { margin-top: 36px; }
.showcase-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; padding: 16px 18px; background: var(--item-bg); border-radius: var(--radius); color: var(--item-text); text-decoration: none; font-size: 14px; }
.showcase-banner small { display: block; margin-top: 4px; }
@media (max-width: 800px) { .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .compare-scroll-hint { display: block; }
  .showcase-grid { grid-template-columns: minmax(0, 1fr); }
  .collection-card { padding: 16px; }
  .compare-table th:first-child { width: 100px; }
  .compare-table th, .compare-table td { padding: 10px; }
}
