/* ==========================================================
   pages/item.css — 품목 상세 전용
   ========================================================== */

.im-head { display: flex; align-items: center; gap: 14px; }
.im-head .ctile { width: 52px; height: 52px; border-radius: 16px; }
.im-head .ctile .ico { width: 26px; height: 26px; }
.im-head h1 { margin-top: 0; }
.im-spec { font-size: .55em; font-weight: 700; letter-spacing: -.02em; color: var(--ink-3); }
.im-src { font-size: 13px; font-weight: 600; color: var(--ink-3); }

.im-summary { display: grid; gap: 14px; margin-top: 18px; }
.im-price { display: grid; }
.im-price small, .im-chgs small { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.im-price b { font-size: 44px; font-weight: 900; letter-spacing: -.05em; line-height: 1.1; color: var(--navy); }
.im-chgs { display: flex; gap: 16px; }
.im-chgs > div { display: grid; gap: 3px; justify-items: start; }
.im-chgs .chg-pill { height: 28px; padding: 0 10px; font-size: 14px; }
.im-ext { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.im-ext a { display: grid; gap: 1px; padding: 12px 14px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.im-ext a:hover { border-color: #D5DAE3; }
.im-ext span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.im-ext span .ico { width: 9px; height: 9px; }
.im-ext span.exp { color: var(--exp-deep); }
.im-ext span.aff { color: var(--aff-deep); }
.im-ext b { font-size: 16px; font-weight: 800; }
.im-ext em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.item-hero .basis { margin-top: 14px; }

.im-layout { display: grid; gap: 16px; }
.im-main, .im-side { min-width: 0; }
.im-regions { padding: 16px 10px; }
.im-regions .card-head { padding: 0 8px; }

/* 내 지역 */
.im-mine-price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.im-mine-price b { font-size: 32px; font-weight: 900; letter-spacing: -.045em; color: var(--navy); }
.im-mine-s { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.im-mine-s b { font-weight: 800; color: var(--ink); }
.im-mine-ranks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
#imMine .pick { height: 36px; font-size: 14px; }

/* 유통업태 */
.im-ch { display: grid; gap: 10px; }
.im-ch li { display: grid; grid-template-columns: 84px minmax(0, 1fr) 64px; align-items: center; gap: 10px; }
.im-ch-l { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.im-ch-l em { padding: 0 5px; border-radius: 5px; background: var(--brand-soft); color: var(--brand-deep); font-size: 10.5px; font-weight: 800; font-style: normal; }
.im-ch b { text-align: right; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.im-ch-axis { margin: 8px 74px 0 94px; }

/* 판매점 */
.im-stores { display: grid; gap: 2px; }
.im-stores li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 4px 2px; border-bottom: 1px solid var(--line-2); }
.im-stores li:last-child { border-bottom: 0; }
.im-st-name { display: grid; line-height: 1.35; min-width: 0; }
.im-st-name b { font-size: 14px; font-weight: 800; }
.im-st-name small { font-size: 12px; color: var(--ink-3); }
.im-st-val { display: flex; align-items: center; gap: 5px; }
.im-st-val b { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.im-st-val .tag { height: 20px; font-size: 11px; padding: 0 7px; }
.im-st-more { margin-top: 12px; }

/* 같은 카테고리 */
.im-related { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.im-related a { display: grid; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); line-height: 1.35; }
.im-related a:hover { background: #EDF0F5; }
.im-related b { font-size: 14px; font-weight: 800; }
.im-related span { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

@media (min-width: 768px) {
  .im-summary { grid-template-columns: auto auto minmax(0, 420px); align-items: end; gap: 28px; justify-content: start; }
  .im-price b { font-size: 54px; }
}
@media (min-width: 960px) {
  .im-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
}
