/* ==========================================================
   pages/stores.css — 판매점 비교 전용
   ========================================================== */

.st-filter .grow { min-width: 0; flex-basis: 100%; }
.st-filter .select select { min-width: 120px; }

.st-layout { display: grid; gap: 16px; }
.st-list-card, .st-compare { min-width: 0; }
.st-list-card .card-sub b { color: var(--ink); font-weight: 800; }
.st-list { display: grid; gap: 6px; }
.st-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "rank main val" "rank main pick";
  align-items: center; gap: 4px 12px; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); transition: border-color .15s, background .15s;
}
.st-row.is-picked { border-color: var(--brand-line); background: #F7FCFA; }
.st-rank { grid-area: rank; font-size: 15px; font-weight: 800; color: var(--ink-3); text-align: center; }
.st-rank.first { color: var(--brand-deep); }
.st-main { grid-area: main; min-width: 0; }
.st-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.st-name b { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; }
.st-meta { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.st-sale { color: #B8286A; font-weight: 700; }
.st-miss { color: var(--warn-deep); font-weight: 700; }
.st-val { grid-area: val; display: grid; justify-items: end; line-height: 1.3; }
.st-val b { font-size: 17px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-best { font-size: 12px; font-weight: 800; color: var(--brand-deep); }
.st-gap { font-size: 12px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.st-pick {
  grid-area: pick; justify-self: end; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 8px;
  border-radius: 9px; background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.st-pick .ico { width: 14px; height: 14px; }
.st-pick:hover { background: #EDF0F5; }
.st-pick[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* 비교에서 뺀 판매점 */
.st-excluded { margin-top: 6px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); }
.st-excluded > p { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.st-excluded ul { display: grid; gap: 4px; margin-top: 8px; }
.st-excluded li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; color: var(--ink-3); }
.st-excluded li b { font-weight: 800; color: var(--ink-2); }
.st-excluded li em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--warn-deep); }

/* 나란히 보기 표 */
.st-table th .sub { display: block; font-weight: 500; }
.st-table td .tag { margin-left: 6px; height: 20px; font-size: 11px; }
.st-table td.st-low { color: var(--brand-deep); font-weight: 900; background: var(--brand-soft); }
.st-table tr.st-nc td { color: var(--ink-4); }
.st-table tr.st-nc td b { color: var(--ink-3); }
.st-table tfoot td { font-weight: 900; background: var(--surface-2); border-bottom: 0; }

/* 모바일: 2곳 이상 고르면 아래 고정 바 */
.st-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(29, 36, 51, .35);
  animation: fade-up .25s var(--ease);
}
.st-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.st-bar b { font-weight: 900; color: var(--brand-deep); }

@media (min-width: 768px) {
  .st-filter .grow { flex-basis: auto; }
}
@media (min-width: 1024px) {
  .st-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
  .st-compare { position: sticky; top: calc(var(--hdr-h) + var(--nav-h) + 16px); max-height: calc(100vh - var(--hdr-h) - var(--nav-h) - 32px); overflow: auto; }
  .st-bar { display: none; }
}
