/* B17 규격 찾기 시안 — 첫 화면 버튼 2개 + 팝업 (1안 단계형 · 2안 한 화면 · 3안 옆 패널) */
:root { --b17-navy: #152A54; --b17-accent: #F5B700; --b17-line: #E3E7EE; --b17-bg2: #F4F6FA; --b17-ink: #16191D; --b17-ink2: #5B636D; }

/* ---------- 첫 화면 버튼 2개 ---------- */
.qk2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qk2 button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; min-height: 76px; border-radius: 14px; border: 1px solid var(--b17-line); background: var(--b17-bg2); color: var(--b17-ink); cursor: pointer; font: inherit; }
.qk2 button:hover { border-color: var(--b17-navy); background: #fff; box-shadow: 0 6px 18px rgba(21,42,84,.10); }
.qk2 .ic2 { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--b17-navy); color: #fff; }
.qk2 .ic2 svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qk2 b { display: block; font-size: 15px; font-weight: 600; }
.qk2 small { display: block; font-size: 12px; color: var(--b17-ink2); margin-top: 2px; }
.qk2 .tx { flex: 1 1 auto; min-width: 0; }
.qk2 b, .qk2 small { white-space: nowrap; }
.qk2 .go { display: grid; margin-left: auto; color: var(--b17-navy); }
.qk2 .go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 420px) { .qk2 button { grid-template-columns: 1fr; justify-items: start; gap: 8px; } .qk2 .go { display: none; } }
@media (min-width: 900px) {
  .qk2 { gap: 16px; }
  .qk2 button { min-height: 96px; padding: 18px 24px; gap: 18px; }
  .qk2 .ic2 { width: 56px; height: 56px; } .qk2 .ic2 svg { width: 30px; height: 30px; }
  .qk2 b { font-size: 16px; } .qk2 small { font-size: 13px; }
}

/* ---------- 팝업 공통 ---------- */
body.b17-lock { overflow: hidden; }
.b17-ov { position: fixed; inset: 0; z-index: 200; background: rgba(10,18,35,.55); display: flex; align-items: center; justify-content: center; padding: 24px; }
.b17-ov[hidden] { display: none; }
.b17-dlg { background: #fff; color: var(--b17-ink); width: 100%; max-height: calc(100vh - 48px); display: flex; flex-direction: column; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; font-size: 14px; }
.b17-dlg.a1 { max-width: 760px; }
.b17-dlg.a2 { max-width: 980px; }
.b17-dlg.a2.size { max-width: 900px; }
.b17-hd { display: flex; align-items: center; gap: 6px; height: 60px; padding: 0 10px 0 22px; border-bottom: 1px solid var(--b17-line); flex: none; }
.b17-hd h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 600; }
.b17-back + h2 { margin-left: -6px; }
.b17-x { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--b17-ink); }
.b17-x:hover { background: var(--b17-bg2); }
.b17-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.b17-back { margin-left: -12px; }
.b17-bd { padding: 20px 22px 24px; overflow-y: auto; }
.b17-lead { margin: 0 0 14px; font-size: 15px; color: var(--b17-ink2); }
.b17-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--b17-line); background: #fff; color: var(--b17-ink); font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.b17-btn.pri { background: var(--b17-navy); border-color: var(--b17-navy); color: #fff; }
.b17-btn:hover { border-color: var(--b17-navy); }

/* 제조사 마크 (임시 글자 타일 — 정식 로고 파일로 교체) */
.b17-mk { display: inline-grid; place-items: center; width: 64px; height: 40px; border-radius: 8px; background: var(--mb); color: var(--mf); font-size: 11px; font-weight: 700; letter-spacing: -.01em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); line-height: 1; text-align: center; padding: 0 3px; }
.b17-mk.sm { width: 46px; height: 28px; font-size: 8.5px; border-radius: 6px; }
.b17-mkg { margin-bottom: 18px; }
.b17-mkg h3 { margin: 0 0 8px; font-size: 13px; color: var(--b17-ink2); font-weight: 700; }
.b17-mkg > div { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.b17-mkb { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 12px; border: 1px solid var(--b17-line); background: #fff; cursor: pointer; font: inherit; color: var(--b17-ink); font-size: 13px; font-weight: 600; }
.b17-mkb:hover { border-color: var(--b17-navy); box-shadow: 0 4px 12px rgba(21,42,84,.12); }
.b17-mkg.compact > div { grid-template-columns: repeat(8, 1fr); }
.b17-mkg.compact .b17-mkb { padding: 8px 2px; font-size: 12px; }
.b17-mkg.compact .b17-mk { width: 54px; height: 32px; font-size: 9.5px; }

/* 콤보박스 */
.b17-cb { position: relative; }
.b17-cbin { display: flex; align-items: center; height: 50px; border: 1.5px solid #CBD2DD; border-radius: 12px; background: #fff; padding-left: 14px; }
.b17-cbin:focus-within { border-color: var(--b17-navy); box-shadow: 0 0 0 3px rgba(21,42,84,.12); }
.b17-cbin input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: none; color: var(--b17-ink); }
.b17-cbin input:disabled { background: none; }
.b17-cbin button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--b17-ink2); display: grid; place-items: center; }
.b17-cbin svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.b17-cbl { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--b17-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.14); max-height: 260px; overflow-y: auto; }
.b17-cbl li { padding: 11px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.b17-cbl li:hover, .b17-cbl li.hi { background: var(--b17-bg2); }
.b17-cbl li.none { color: var(--b17-ink2); cursor: default; background: none; }
.b17-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.b17-chips button { height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--b17-line); background: #fff; font: inherit; font-size: 14px; cursor: pointer; color: var(--b17-ink); }
.b17-chips button:hover { border-color: var(--b17-navy); color: var(--b17-navy); }
.b17-chips.years button { min-width: 72px; }
.b17-pickd { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--b17-bg2); margin-bottom: 16px; }
.b17-pickd b { font-size: 15px; }
.b17-chg { margin-left: auto; border: 0; background: none; color: var(--b17-navy); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.b17-gpick p { margin: 0 0 12px; color: var(--b17-ink2); font-size: 15px; }
.b17-gpick button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 150px; padding: 14px 18px; margin: 0 8px 8px 0; border-radius: 12px; border: 1.5px solid var(--b17-line); background: #fff; cursor: pointer; font: inherit; color: var(--b17-ink); }
.b17-gpick button:hover { border-color: var(--b17-navy); }
.b17-gpick b { font-size: 17px; } .b17-gpick small { color: var(--b17-ink2); }
.b17-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 10px; text-align: center; color: var(--b17-ink2); }
.b17-empty svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.b17-empty b { color: var(--b17-ink); font-size: 16px; } .b17-empty .b17-btn { margin-top: 10px; }

/* ---------- 결과 (규격 강조) ---------- */
.b17-res { display: grid; gap: 16px; }
.b17-photo { margin: 0; position: relative; border-radius: 14px; background: linear-gradient(180deg, #EEF2F8, #DDE4EF); display: grid; place-items: center; padding: 18px 12px 26px; }
.b17-carart { width: 100%; max-width: 300px; height: auto; display: block; }
.b17-photo figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: #7D8693; }
.b17-ttl { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.b17-ttl b { font-size: 17px; font-weight: 600; }
.b17-info dl { display: grid; grid-template-columns: 76px 1fr; gap: 8px 10px; margin: 0; font-size: 14px; }
.b17-info dt { color: var(--b17-ink2); } .b17-info dd { margin: 0; font-weight: 600; }
.b17-sizes { border: 2px solid var(--b17-navy); border-radius: 14px; padding: 14px 16px 16px; background: #fff; }
.b17-sizes-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--b17-navy); }
.b17-sizes-h svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.b17-sizes-h b { font-size: 16px; } .b17-sizes-h small { color: var(--b17-ink2); font-size: 12.5px; margin-left: auto; }
.b17-sizes ul { list-style: none; margin: 0; padding: 0; }
.b17-sizes li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--b17-line); }
.b17-sizes li:first-child { border-top: 0; }
.b17-inch { flex: none; width: 86px; font-size: 13px; color: var(--b17-ink2); font-weight: 600; }
.b17-size { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.b17-size b { font-size: 22px; font-weight: 700; color: var(--b17-navy); letter-spacing: -.01em; font-variant-numeric: tabular-nums; background: linear-gradient(transparent 62%, #FFE38A 62%); padding: 0 2px; line-height: 1.25; }
.b17-size small { font-size: 12px; font-weight: 700; color: #fff; background: var(--b17-navy); border-radius: 4px; padding: 2px 5px; margin-right: 6px; vertical-align: 5px; }
.b17-ex { margin: 10px 0 0; font-size: 12px; color: #8A929C; }
.b17-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.b17-again { margin-top: 14px; text-align: center; }
@media (min-width: 760px) {
  .b17-res.r1 { grid-template-columns: 260px 1fr; }
  .b17-res.r1 .b17-sizes { grid-column: 1 / -1; }
  .b17-res.r2 { grid-template-columns: 250px 230px 1fr; align-items: start; }
}

/* ---------- 1안 단계 표시 ---------- */
.b17-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: s; }
.b17-steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #9AA1AA; font-weight: 600; padding-bottom: 8px; border-bottom: 3px solid var(--b17-line); }
.b17-steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--b17-line); color: #fff; font-size: 12px; }
.b17-steps li.done { color: var(--b17-navy); border-color: #8FA2C6; } .b17-steps li.done i { background: #8FA2C6; }
.b17-steps li.on { color: var(--b17-navy); border-color: var(--b17-navy); } .b17-steps li.on i { background: var(--b17-navy); }

/* ---------- 2안 한 화면 ---------- */
.b17-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.b17-fld label { display: block; font-size: 13px; font-weight: 700; color: var(--b17-ink2); margin-bottom: 6px; }
.b17-fld.off { opacity: .45; pointer-events: none; }
.b17-mksel { width: 100%; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border: 1.5px solid #CBD2DD; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; cursor: pointer; color: var(--b17-ink); }
.b17-mksel .ph { color: #8A929C; }
.b17-mksel svg { margin-left: auto; width: 20px; height: 20px; fill: none; stroke: var(--b17-ink2); stroke-width: 2; }
.b17-pop { margin-top: 12px; padding: 14px 14px 0; border: 1px solid var(--b17-line); border-radius: 14px; background: #FAFBFD; }
#b17out { margin-top: 18px; }
.b17-hint { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 10px; border-radius: 14px; background: var(--b17-bg2); text-align: center; color: var(--b17-ink2); }
.b17-hint .b17-carart { max-width: 200px; opacity: .55; }
.b17-hint b { color: var(--b17-ink); font-size: 16px; margin-top: 6px; }

/* ---------- 3안 옆 패널 ---------- */
.b17-dlg.a3 { position: fixed; top: 0; right: 0; bottom: 0; max-width: 480px; max-height: none; border-radius: 0; animation: b17in .22s ease-out; }
.b17-ov:has(.a3) { justify-content: flex-end; padding: 0; }
@keyframes b17in { from { transform: translateX(40px); opacity: .4; } }
.b17-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.b17-crumbs:empty { display: none; }
.b17-crumbs button { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 12px; border-radius: 16px; border: 0; background: var(--b17-navy); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.b17-crumbs svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.b17-mkg.rows > div { grid-template-columns: 1fr; gap: 0; }
.b17-mkg.rows .b17-mkb { flex-direction: row; gap: 14px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--b17-line); border-radius: 0; font-size: 15px; }
.b17-mkg.rows .b17-mkb:hover { box-shadow: none; background: var(--b17-bg2); }
.b17-mkg.rows .b17-mkb i { margin-left: auto; color: #9AA1AA; }
.b17-mkg.rows i svg, .b17-rows i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.b17-srch { position: relative; margin-bottom: 8px; }
.b17-srch > svg { position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; fill: none; stroke: var(--b17-ink2); stroke-width: 2; z-index: 1; }
.b17-srch .b17-cbin { padding-left: 42px; }
.b17-rows button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--b17-line); background: none; font: inherit; cursor: pointer; text-align: left; color: var(--b17-ink); }
.b17-rows button:hover { background: var(--b17-bg2); }
.b17-rows span { font-size: 16px; font-weight: 600; } .b17-rows small { color: var(--b17-ink2); font-size: 13px; }
.b17-rows i { margin-left: auto; color: #9AA1AA; }
.b17-rows button[hidden] { display: none; }
.b17-res.r3 .b17-size b { font-size: 22px; }

/* ---------- 규격 확인 방법 ---------- */
.b17-how { width: 96px; height: 96px; display: block; flex: none; border-radius: 22px; box-shadow: 0 6px 16px rgba(21,42,84,.12); }
.b17-howg { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.b17-howg li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 10px; border-radius: 14px; border: 1px solid var(--b17-line); }
.b17-howg b { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.b17-howg b i, .b17-howr .n { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--b17-navy); color: #fff; display: inline-grid; place-items: center; font-size: 12px; }
.b17-howg small { font-size: 12.5px; color: var(--b17-ink2); line-height: 1.5; }
.b17-decode { border-radius: 14px; background: var(--b17-navy); color: #fff; padding: 18px; text-align: center; }
.b17-dsz { display: flex; justify-content: center; align-items: flex-start; gap: 4px; }
.b17-dsz span { display: flex; flex-direction: column; align-items: center; }
.b17-dsz b { font-size: 30px; font-weight: 700; line-height: 1.1; color: #FFD24A; font-variant-numeric: tabular-nums; }
.b17-dsz i { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.75); margin-top: 4px; }
.b17-dsz em { font-style: normal; font-size: 30px; color: rgba(255,255,255,.5); padding: 0 2px; }
.b17-dsz em:empty { width: 6px; }
.b17-decode p { margin: 12px 0 0; font-size: 13.5px; color: rgba(255,255,255,.85); }
.b17-how2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.b17-big { display: flex; flex-direction: column; gap: 14px; }
.b17-big .b17-how { width: 100%; height: auto; aspect-ratio: 1; max-width: 300px; margin: 0 auto; border-radius: 28px; }
.b17-how2 h3 { margin: 0 0 10px; font-size: 15px; }
.b17-howl { list-style: none; margin: 0; padding: 0; }
.b17-howl li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--b17-line); }
.b17-howl .b17-how { width: 64px; height: 64px; border-radius: 16px; }
.b17-howl b { font-size: 15px; } .b17-howl small { display: block; font-size: 12.5px; color: var(--b17-ink2); line-height: 1.5; margin-top: 2px; }
.b17-howr { list-style: none; margin: 0 0 16px; padding: 0; }
.b17-howr li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--b17-line); position: relative; }
.b17-howr .n { position: absolute; left: -4px; top: 8px; z-index: 1; border: 2px solid #fff; width: 26px; height: 26px; }
.b17-howr .b17-how { width: 76px; height: 76px; border-radius: 18px; }
.b17-howr b { font-size: 16px; display: block; } .b17-howr em { font-style: normal; font-size: 12.5px; color: var(--b17-navy); font-weight: 700; }
.b17-howr small { display: block; font-size: 13px; color: var(--b17-ink2); line-height: 1.5; margin-top: 4px; }

/* ---------- 모바일: 아래에서 올라오는 전체 시트 ---------- */
@media (max-width: 759px) {
  .b17-ov, .b17-ov:has(.a3) { align-items: flex-end; justify-content: center; padding: 0; }
  .b17-dlg, .b17-dlg.a3 { position: relative; max-width: none; max-height: 92vh; height: 92vh; border-radius: 18px 18px 0 0; animation: b17up .22s ease-out; }
  @keyframes b17up { from { transform: translateY(40px); opacity: .4; } }
  .b17-hd { height: 54px; padding-left: 16px; } .b17-hd h2 { font-size: 17px; }
  .b17-bd { padding: 16px 16px 28px; }
  .b17-mkg > div { grid-template-columns: repeat(3, 1fr); }
  .b17-mkg.compact > div { grid-template-columns: repeat(4, 1fr); }
  .b17-row3 { grid-template-columns: 1fr; gap: 10px; }
  .b17-howg { grid-template-columns: 1fr 1fr; }
  .b17-how2 { grid-template-columns: 1fr; }
  .b17-big .b17-how { max-width: 180px; }
  .b17-size b { font-size: 23px; }
  .b17-sizes-h small { margin-left: 0; width: 100%; }
  .b17-steps li { font-size: 0; gap: 0; justify-content: center; } .b17-steps li.on { font-size: 12px; gap: 4px; }
  .b17-dsz b { font-size: 28px; }
}


.b17-mk.long { font-size: 9px; } .b17-mk.sm.long { font-size: 7px; }

/* */
.b17-mk.logo { background: #fff; padding: 5px 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.b17-mk.logo { overflow: hidden; }
.b17-mk.logo img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; display: block; }
.b17-mk.sm.logo { padding: 3px 4px; }
/* (10-10 B56) 차 사진 = 배경 지운 480×300 투명 사진 → 차 그림 칸과 같은 바탕 + 바닥 그림자 */
.b17-photo.has { padding: 6px 4px 4px; overflow: hidden; }
.b17-photo.has img { width: 100%; max-width: 480px; aspect-ratio: 16 / 10; object-fit: contain; display: block; filter: drop-shadow(0 10px 8px rgba(20,35,60,.22)); }
.b17-photo.has figcaption { background: rgba(255,255,255,.85); padding: 1px 6px; border-radius: 4px; }
.b17-size em { flex-basis: 100%; font-style: normal; font-size: 12.5px; color: var(--b17-ink2); }
.b17-none { margin: 6px 0 4px; font-size: 15px; color: var(--b17-ink); }
.b17-mkb span, .b17-rows span { font-weight: 500; }
/* B24: 제조사 대표 색 바탕 + 흰 로고 */
.b17-mk.logo.tint { background: var(--mb); box-shadow: none; }
.b17-mk.logo.tint img { filter: brightness(0) invert(1); }


/* ===== B29: 차종 이름 검색(맨 위) · 연식별 규격 표 · 메뉴 하위 · 고르기 창 · 중고 사진 보기 ===== */
.b17-qs { padding: 14px; border-radius: 14px; background: var(--b17-bg2); }
.b17-qs > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.b17-qrow { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; }
.b17-qrow input#b17qy { height: 50px; border: 1.5px solid #CBD2DD; border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; min-width: 0; }
.b17-qrow .b17-btn { height: 50px; padding: 0 22px; font-size: 15px; }
.b17-qmsg { margin: 6px 2px 0; font-size: 13px; color: #C2410C; min-height: 0; }
.b17-qmsg:empty { display: none; }
.b17-cbl li small { color: var(--b17-ink2); margin-left: 6px; font-size: 12.5px; }
.b17-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--b17-ink2); font-size: 13px; }
.b17-or::before, .b17-or::after { content: ''; flex: 1; height: 1px; background: var(--b17-line); }
.b17-all { border: 1px solid var(--b17-line); border-radius: 14px; padding: 12px 14px; }
.b17-all-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.b17-all-h b { font-size: 16px; } .b17-all-h small { color: var(--b17-ink2); font-size: 12.5px; flex-basis: 100%; }
.b17-all ul { list-style: none; margin: 0; padding: 0; }
.b17-all li { display: grid; grid-template-columns: 76px 170px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--b17-line); }
.b17-thumb { width: 76px; height: 46px; border-radius: 6px; background: #F4F6FA; display: grid; place-items: center; overflow: hidden; }
.b17-thumb img { width: 100%; height: 100%; object-fit: contain; }
.b17-thumb .b17-carart { width: 70px; }
.b17-gn b { display: block; font-size: 14px; font-weight: 600; } .b17-gn small { color: var(--b17-ink2); font-size: 12px; }
.b17-gs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.b17-gs em { font-style: normal; font-size: 17px; font-weight: 700; color: var(--b17-navy); font-variant-numeric: tabular-nums; background: linear-gradient(transparent 62%, #FFE38A 62%); }
.b17-gs em small { font-size: 11px; font-weight: 500; color: var(--b17-ink2); margin-right: 3px; background: none; }
.b17-gs .none { font-size: 13px; color: var(--b17-ink2); }
.qk2.in-dlg { grid-template-columns: 1fr; }
/* 메뉴 하위 (PC) */
.hd-subwrap { position: relative; display: inline-flex; }
.hd-sub { display: none; position: absolute; top: calc(100% - 14px); left: 50%; transform: translateX(-50%); z-index: 60; min-width: 160px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18); flex-direction: column; }
.hd-sub button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 11px 14px; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 500; color: #16191D; cursor: pointer; white-space: nowrap; }
.hd-sub button:hover { background: #F1F4F9; color: var(--b17-navy); }
@media (min-width: 900px) { .hd-subwrap:hover .hd-sub, .hd-subwrap.sub-on .hd-sub, .hd-subwrap:focus-within .hd-sub { display: flex; } }
/* 중고 사진 보기 */
.b17-dlg.photo { max-width: 860px; }
/* 규격으로 찾기: 항목 누르면 왼쪽 설명 (B30) */
.b17-howl li { cursor: pointer; border-radius: 10px; padding-left: 6px; padding-right: 6px; }
.b17-howl li:hover { background: #F7F9FC; }
.b17-howl li.on { background: #EEF3FB; box-shadow: inset 3px 0 0 var(--b17-navy); }
.b17-how2 h3 small { font-weight: 400; color: var(--b17-ink2); font-size: 12px; margin-left: 6px; }
.b17-hdesc { border-radius: 14px; background: var(--b17-navy); color: #fff; padding: 16px 18px; }
.b17-hdesc b { font-size: 17px; } .b17-hdesc p { margin: 6px 0 10px; color: rgba(255,255,255,.85); font-size: 13.5px; }
.b17-hdesc ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; } .b17-hdesc li::marker { color: #FFD24A; font-weight: 700; }
.b17-gal { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.b17-gmain { grid-row: span 2; border-radius: 12px; overflow: hidden; background: #F4F6FA; }
.b17-gmain img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.b17-gthumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-self: start; }
.b17-gthumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.b17-gthumbs button.on { border-color: var(--b17-navy); }
.b17-gthumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.b17-gsz { font-size: 24px; font-weight: 700; color: var(--b17-navy); }
.b17-gmeta { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: var(--b17-ink2); }
.b17-gpr { font-size: 20px; font-weight: 700; } .b17-gpr small { font-size: 13px; font-weight: 500; color: var(--b17-ink2); }
@media (max-width: 759px) {
  .b17-qrow { grid-template-columns: 1fr 96px; } .b17-qrow .b17-btn { grid-column: 1 / -1; }
  .b17-all li { grid-template-columns: 64px 1fr; } .b17-all .b17-gs { grid-column: 1 / -1; }
  .b17-thumb { width: 64px; height: 40px; }
  .b17-gal { grid-template-columns: 1fr; } .b17-gmain { grid-row: auto; }
}
/* 수입 제조사 더 보기 */
.b17-mkg .b17-mkb.more { display: none; }
.b17-mkg.showall .b17-mkb.more { display: flex; }
.b17-more { display: block; width: 100%; margin-top: 8px; height: 40px; border: 1px dashed #B9C2D0; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--b17-navy); cursor: pointer; }


/* 모바일: 차종 검색 줄 넘침 고침 */
.b17-qrow > *, .b17-qrow .b17-cb, .b17-row3 > *, .b17-fld .b17-cb { min-width: 0; }
.b17-cbin { min-width: 0; }
.b17-bd { overflow-x: hidden; }


/* B51: 차종 대표 사진 (연식별 표 위) */
.b17-allph { display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 220px; object-fit: contain; border-radius: 10px; margin-bottom: 10px; padding: 6px 0 4px; box-sizing: border-box; background: linear-gradient(180deg, #EEF2F8, #DDE4EF); }
@media (max-width: 599px) { .b17-allph { max-height: 170px; } }

