/* ==========================================================
   pages/items.css — 품목 가격 찾기 전용
   ========================================================== */

.it-search { max-width: 560px; margin-top: 18px; box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-1); }
.page-hero .it-search + .basis { margin-top: 14px; }

.it-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.it-bar .chips { min-width: 0; max-width: 100%; }
.it-bar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.it-count { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.it-count b { font-weight: 800; color: var(--ink); }

.it-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.it-card {
  display: grid; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .2s, transform .2s;
}
.it-card:hover { border-color: #D5DAE3; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.it-top { display: flex; align-items: center; gap: 10px; }
.it-name { display: grid; min-width: 0; line-height: 1.35; }
.it-name b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.it-name span { font-size: 12.5px; color: var(--ink-3); }
.it-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.it-price, .it-chg { display: grid; gap: 2px; }
.it-chg { justify-items: end; }
.it-bottom small { font-size: 11.5px; font-weight: 600; color: var(--ink-4); }
.it-price b { font-size: 19px; font-weight: 900; letter-spacing: -.03em; }
.it-empty { grid-column: 1 / -1; }

@media (max-width: 560px) {
  .it-bar-right { width: 100%; justify-content: space-between; margin-left: 0; }
}
