/* 첫 페이지 공용 구조 (v1·v2 같은 마크업) — 색은 각 판의 :root 토큰을 씀
   A2 신품 함께 보기 · A3 신품 섹션 · A4 내 차 규격 찾기 · A5 사진으로 찾기 · A6 첫 화면 최근 입고 */

/* 히어로 칸이 최근 입고 띠 길이에 밀리지 않게 */
.hero > *, .newsec .wrap > *, .carsec .wrap > * { min-width: 0; }

@media (min-width: 900px) { .hero .hero-photo { align-self: start; margin-top: 32px; } }

/* 섹션 공통 */
.hsec { padding-block: 22px 28px; }
.hsec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.hsec-head h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.hsec-head a { font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.hsec-lead { color: var(--ink-2); font-size: 14.5px; margin-bottom: 16px; }
.ex { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--bg-3, var(--bg-2)); color: var(--ink-3); vertical-align: 2px; margin-left: 4px; }
@media (min-width: 900px) { .hsec { padding-block: 36px 48px; } .hsec-head h2 { font-size: 26px; } }

/* A5: 검색창 아래 보조 줄 (사진으로 찾기 포함) */
.alt3 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.alt3 a, .alt3 label { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; cursor: pointer; }
.alt3 .ic { width: 18px; height: 18px; color: var(--brand-ic, var(--brand)); }
.alt3 label.scan { grid-column: span 2; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.alt3 label.scan .ic { color: var(--bg); }
.alt3 input { display: none; }

/* A6: 첫 화면 최근 입고 띠 */
.recent { margin-top: 14px; }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.recent-head b { font-size: 16px; }
.recent-head a { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rstrip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.rstrip::-webkit-scrollbar { display: none; }
.rcard { position: relative; flex: none; width: 112px; scroll-snap-align: start; border-radius: 10px; overflow: hidden; background: var(--card-bg, var(--bg-2)); border: 1px solid var(--line); }
.rcard img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.rcard div { padding: 6px 8px 8px; }
.rcard b { display: block; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcard span { font-size: 12.5px; font-weight: 600; color: var(--price, var(--brand)); font-variant-numeric: tabular-nums; }
.rcard i { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--new); color: #111; }
@media (min-width: 900px) { .rcard { width: 128px; } }

/* A2: 검색 결과 = 중고 + 신품 */
.newhit { display: none; margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.newhit.on { display: block; }
.newhit-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: var(--bg-2); }
.newhit-h b { font-size: 15.5px; }
.newhit-h a { font-size: 13px; font-weight: 600; color: var(--brand-ic, var(--brand)); white-space: nowrap; }
.nrow { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); }
.nrow .bm { flex: 1; min-width: 0; }
.nrow .bm b { display: block; font-size: 14.5px; }
.nrow .bm small { color: var(--ink-3); font-size: 12.5px; }
.nrow .pr { font-weight: 600; font-size: 15.5px; color: var(--price, var(--brand)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nrow.none { color: var(--ink-2); font-size: 14px; }

/* A3: 신품 타이어 섹션 */
.newsec .tabs2 { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.newsec .tabs2 button { flex: none; height: 38px; padding: 0 12px; border-radius: 19px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.newsec .tabs2 button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.ntable { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.newsec .brands { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.newsec .brands span { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.newcta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.newcta .btn { min-height: 52px; }
.newcta .btn.sub { background: var(--bg-2); border-color: var(--line); color: var(--ink); }
@media (min-width: 900px) {
  .newsec .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
  .newcta { grid-template-columns: auto auto; justify-content: start; }
}

/* A4: 내 차 타이어 규격 찾기 */
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.howto li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; background: var(--bg-2); text-align: center; }
.howto svg { width: 100%; height: 44px; display: block; margin-bottom: 6px; }
.howto b { display: block; font-size: 13px; }
.howto small { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.carq { display: flex; gap: 6px; margin-bottom: 8px; }
.carq input { flex: 1; min-width: 0; height: 50px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--bg-2); color: var(--ink); font-size: 16px; outline: none; }
.carq input:focus { border-color: var(--brand-ic, var(--brand)); }
.cartype { display: flex; gap: 6px; }
.cartype button, .chos button, .carlist button, .gens button, .trims button { cursor: pointer; font: inherit; }
.cartype button { height: 50px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.cartype button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 10px; }
.chos button { height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font-weight: 600; font-size: 14px; padding: 0; }
.chos button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chos button:disabled { opacity: .3; cursor: default; }
.carlist, .gens, .trims { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.carlist button, .gens button, .trims button { height: 42px; padding: 0 14px; border-radius: 21px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font-weight: 700; font-size: 14.5px; }
.carlist button.on, .gens button.on, .trims button.on { border-color: var(--brand-ic, var(--brand)); color: var(--brand-ic, var(--brand)); background: var(--bg); box-shadow: inset 0 0 0 1px var(--brand-ic, var(--brand)); }
.steplabel { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin: 4px 0 6px; letter-spacing: .02em; }
.carres { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 6px; }
.carres-h { padding: 12px 14px; background: var(--bg-2); font-weight: 600; }
.carres-h small { display: block; font-weight: 600; color: var(--ink-3); font-size: 12.5px; }
.axle { padding: 12px 14px; border-top: 1px solid var(--line); }
.axle .lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.axle .sz { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin: 2px 0 8px; }
.axle .acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.axle .acts button { height: 44px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0 4px; white-space: nowrap; }
.axle .acts button.pri { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.alts { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); display: none; }
.alts.on { display: block; }
.alts span { display: inline-block; margin: 3px 6px 0 0; padding: 4px 8px; border-radius: 6px; background: var(--bg-2); font-variant-numeric: tabular-nums; }
.carnote { font-size: 12.5px; color: var(--ink-3); padding: 10px 14px; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .carsec .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
  .chos { grid-template-columns: repeat(15, 1fr); }
  .howto { grid-template-columns: 1fr; }
  .howto li { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; text-align: left; }
  .howto svg { margin: 0; }
}

/* A5: 사진 인식 시트 */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 80; display: none; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 81; background: var(--bg); color: var(--ink); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: none; max-height: 88vh; overflow: auto; }
.sheet.on, .sheet-bg.on { display: block; }
.sheet h3 { font-size: 18px; margin-bottom: 6px; }
.sheet p { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.sheet img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.sheet .res { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet .btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 12px; }
.sheet .tips { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin: 6px 0 0; padding-left: 18px; }

/* 임시 휴무 표시 (사장님 앱 '영업시간·휴무'에서 설정) */
.noticebar { background: var(--brand); color: var(--brand-ink); text-align: center; font-weight: 600; font-size: 14px; padding: 9px 16px; }
.closed-line { margin-top: 8px; font-weight: 600; color: var(--warn, #C2410C); font-size: 14.5px; }
.span3 { grid-column: 1 / -1; }
/* ── 제조사 마크 (글자 대신) ───────────────────────── */
.bmk { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 8px; border-radius: 5px; background: var(--bk); color: var(--fk);
  font: italic 900 11px/1 'Arial Black', 'Pretendard', sans-serif; letter-spacing: .01em; white-space: nowrap; box-shadow: 0 0 0 1px rgba(0,0,0,.10); }
.bmk-img { height: 22px; width: auto; }
.bmk.lg { height: 100%; width: 100%; border-radius: 14px; font-size: 11.5px; padding: 0 4px; }

/* ── 타이어 사진 카드: 사진을 액자처럼, 제조사 마크는 사진 위 ── */
.tcard { border-radius: 14px; }
.tcard-img { margin: 6px 6px 0; border-radius: 10px; overflow: hidden; background: var(--bg-3, #EDEFF2); }
.tcard-img img { transition: transform .35s; }
.tcard:hover .tcard-img img { transform: scale(1.04); }
.tcard-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.28) 100%); pointer-events: none; }
.tcard-brand { position: absolute; left: 8px; bottom: 8px; z-index: 1; }
.tcard-model { font-weight: 600; }
.rcard { position: relative; }
.rcard .rbrand { position: absolute; left: 6px; top: 88px; z-index: 1; transform: scale(.85); transform-origin: left center; }
@media (min-width: 900px) { .rcard .rbrand { top: 102px; } }

/* ── 제조사 줄 (아이콘처럼) ─────────────────────── */
.brandrow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.brandrow::-webkit-scrollbar { display: none; }
.btile { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.btile .bwrap { width: 66px; height: 66px; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.12); overflow: hidden; display: grid; }
.btile:hover .bwrap { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (min-width: 900px) { .btile, .btile .bwrap { width: 78px; } .btile .bwrap { height: 78px; } }

/* ── 신품 가격표 행: 타이어 그림 + 마크 ───────────── */
.nrow .timg { width: 44px; height: 44px; flex: none; }
.nrow .bm b { display: flex; align-items: center; gap: 6px; }
/* ── 타이어 서비스 (사진 카드) ── */
.svcgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svcc { display: flex; flex-direction: column; gap: 2px; }
.svcc-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bg-2); margin-bottom: 6px; }
.svcc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.svcc:hover .svcc-img img { transform: scale(1.04); }
.svcc-img .free { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 5px; background: var(--brand); color: var(--brand-ink); }
.svcc b { font-size: 15.5px; }
.svcc small { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
@media (min-width: 700px) { .svcgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
/* ── 페이지 나누기 ── */
[data-page][hidden] { display: none !important; }

/* ── 첫 화면 바로가기 4개 ── */
.qk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qk a, .qk label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; white-space: nowrap; cursor: pointer; }
.qk input { display: none; }
.qk-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.qk-ic .ic { width: 22px; height: 22px; }
.qk a:hover, .qk label:hover { border-color: var(--brand); }
@media (min-width: 900px) { .qk { gap: 12px; } .qk a, .qk label { flex-direction: row; justify-content: center; padding: 12px; font-size: 15px; } }

/* ── 교체 가이드 ── */
.guides { display: grid; gap: 10px; }
.guides li { padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.guides b { font-size: 16px; }
.guides .gsz { font-size: 22px; font-weight: 700; color: var(--brand-ic, var(--price, var(--brand))); font-variant-numeric: tabular-nums; }
.guides small { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (min-width: 700px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 2026-10-09 B19·B20: 제조사 로고(파일) · 신품 가격 문의 · 타이어 그림 2/3 */
.bmk-logo { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 2px 6px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.bmk-logo img { height: 100%; max-width: 72px; width: auto; object-fit: contain; display: block; }
.bmk-logo.lg { width: 100%; height: 100%; border-radius: 14px; padding: 12px 8px; }
.bmk-logo { overflow: hidden; }
.bmk-logo.lg img { width: 100%; height: 100%; max-width: none; }
.nrow .timg { width: 30px; height: 30px; }
.nrow .pr.ask { font-size: 13px; font-weight: 500; color: var(--brand-ic, var(--brand)); border: 1px solid currentColor; border-radius: 15px; padding: 3px 10px; text-decoration: none; }

/* 2026-10-09 B24: 첫 화면 '중고타이어' 12개 (모바일·PC 모두 한 줄 4개 × 3줄) + 전체 보기, 취급 브랜드는 맨 아래 */
.ugrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ugrid .rcard { width: auto; }
.ugrid .rimg { position: relative; display: block; }
.ugrid .rcard img { aspect-ratio: 1; }
.ugrid .rcard .rbrand { top: auto; bottom: 5px; left: 5px; transform: scale(.8); }
.ugrid .rcard div { padding: 5px 6px 7px; }
.ugrid .rcard b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ugrid .rcard small { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ugrid .rcard span { font-size: 12px; }
.umore { display: block; margin-top: 10px; text-align: center; height: 42px; line-height: 42px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--bg-2); }
@media (min-width: 900px) {
  .ugrid { gap: 14px; }
  .ugrid .rcard b { font-size: 15px; } .ugrid .rcard small { font-size: 12.5px; } .ugrid .rcard span { font-size: 14px; }
  .ugrid .rcard div { padding: 8px 10px 10px; }
  .umore { max-width: 320px; margin: 14px auto 0; }
}
.brands-bottom { margin-top: 22px; }

/* 2026-10-09 B29: 중고타이어 사진 절반 — PC 한 줄 6개 · 모바일 4개 */
@media (min-width: 900px) { .ugrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } .ugrid .rcard b { font-size: 14px; } .ugrid .rcard span { font-size: 13px; } }
.rcard, .tcard { cursor: pointer; }

/* B33: 재고 없는 인치 — 흐린 대표 사진 + 전화 문의 */
.filters .chips button.none { opacity: .6; }
.tcard.ghost { pointer-events: auto; }
.tcard.ghost .tcard-img img { filter: blur(7px) grayscale(.35); opacity: .45; transform: scale(1.08); }
.tcard.ghost .tcard-img { overflow: hidden; }
.tcard.ghost .gtag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 7px 14px; border-radius: 18px; background: var(--brand); color: var(--brand-ink, #fff); font-size: 14px; font-weight: 600; white-space: nowrap; }
.tcard.ghost .tcard-size { color: var(--ink-3); }
.tcard.ghost .tcard-model { color: var(--ink-3); }

/* B34: 오시는 길 = 지도 + 대표번호만 (영업시간·주소 줄 뺌) */
.visit .tel-big { display: block; margin-top: 14px; }
.visit .tel-big .lbl { font-size: 15px; font-weight: 500; color: var(--ink-2); }

.visit .addr { margin: 14px 0 0; }

/* B35: 매장·작업장 사진 칸 삭제 → 오시는 길 칸 전체 폭 */
.info .visit { grid-column: 1 / -1; }

.visit .map-ph { aspect-ratio: auto; height: 240px; }
@media (min-width: 900px) { .visit .map-ph { height: 380px; } }

/* B36: 저작권 표시 */
footer.foot .copy { margin-top: 8px; font-size: 12px; color: var(--ink-3); letter-spacing: 0; }


/* ===== B38: 첫 화면 순서(중고 → 신품타이어 → 매장 안내 → 지도) · 카톡/전화 아이콘 · 규격/차종 검색창 ===== */
.brands-new { margin-top: 18px; }
.homemap { margin-top: 12px; }
.homemap .map-ph { height: 220px; aspect-ratio: auto; }
.homemap .addr { margin: 8px 2px 0; font-size: 14px; color: var(--ink-2); }
@media (min-width: 900px) { .homemap .map-ph { height: 320px; } }
.btn.kakao, .dock a.kakao { background: #FEE500; color: #191919; border-color: #FEE500; }
.btn.kakao .ic, .dock a.kakao .ic { color: #191919; }
.dock a.kakao { border-radius: 12px; }
.tcard.ghost .gtag { display: inline-flex; align-items: center; gap: 5px; }
.tcard.ghost .gtag .ic, .nrow .pr.ask .ic { width: 15px; height: 15px; }
.nrow .pr.ask { display: inline-flex; align-items: center; gap: 4px; }
.tsearch { position: relative; margin: 6px 0 14px; max-width: 640px; }
.ts-box { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 6px 0 14px; border: 1.5px solid #CBD2DD; border-radius: 25px; background: #fff; }
.ts-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(21,42,84,.12); }
.ts-box svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2; flex: none; }
.ts-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; background: none; }
.ts-box button { height: 38px; padding: 0 18px; border: 0; border-radius: 19px; background: var(--brand); color: var(--brand-ink, #fff); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ts-list { position: absolute; z-index: 20; left: 0; right: 0; top: 54px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.ts-list li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.ts-list li:hover { background: var(--bg-2); }
.ts-list li svg { width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 2; }
.ts-list li small { color: var(--ink-3); }
.ts-list li.none { color: var(--ink-3); cursor: default; }
.ts-car:empty { display: none; }
.ts-car { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.ts-carh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ts-carh small { flex-basis: 100%; color: var(--ink-3); font-size: 12.5px; }
.ts-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-chips button { display: flex; flex-direction: column; align-items: flex-start; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; }
.ts-chips button b { font-size: 15px; color: var(--brand); } .ts-chips button small { font-size: 11.5px; color: var(--ink-3); }
.ts-chips button.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.ts-none { margin: 0; font-size: 14px; color: var(--ink-2); }

/* B40: 매장 안내 | 오시는 길 — 한 줄 좌우(PC), 지도 작게 */
.visitrow { display: grid; gap: 12px; margin-top: 14px; }
.visitrow .shopline { margin: 0; }
.homemap { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.hm-h { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.homemap .map-ph, .visitrow .homemap .map-ph { height: 150px; }
.homemap .addr { margin: 6px 2px 0; font-size: 13px; }
@media (min-width: 900px) {
  .visitrow { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .visitrow .shopline { height: 100%; align-items: center; }
  .visitrow .shopline img { width: 150px; height: 110px; object-fit: cover; border-radius: 10px; }
  .homemap .map-ph, .visitrow .homemap .map-ph { height: 170px; }
}

/* B39: 중고 카드 위 제조사 로고(엠블럼) 크게 */
.rcard .rbrand, .ugrid .rcard .rbrand { transform: none; }
.rcard .bmk-logo, .tcard .bmk-logo { height: 26px; padding: 3px 7px; background: rgba(255,255,255,.95); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.rcard .bmk-logo img, .tcard .bmk-logo img { max-width: 78px; }
@media (min-width: 900px) { .rcard .bmk-logo, .tcard .bmk-logo { height: 30px; } .rcard .bmk-logo img, .tcard .bmk-logo img { max-width: 92px; } }

.rcard .bmk-logo img, .ugrid .rcard .bmk-logo img, .tcard .bmk-logo img { width: auto; height: 100%; aspect-ratio: auto; object-fit: contain; display: block; }

/* B41: 차종 검색 → 재고 바로 */
.ts-stock { margin: 0 0 8px; font-size: 13.5px; color: var(--brand); font-weight: 500; }
.ts-chips button.has { border-color: #1E7A3C; background: #EFF8F1; }
.ts-chips button.has small { color: #1E7A3C; }


/* ===== B45: 모바일 정밀 정리 (360·390·412 캡처 점검) ===== */
body { letter-spacing: -0.015em; word-break: keep-all; }
.logo-text small { white-space: nowrap; }
.qk2 small { white-space: normal; }
.rh-note { font-size: 11.5px; font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.ugrid .rcard b, .ugrid .rcard small, .ugrid .rcard span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) {
  .hd-nav-m { gap: 16px; font-size: 14.5px; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); padding-right: 28px; }
  .logo-text b { font-size: 17px; } .logo-text small { font-size: 9.5px; }
  .hd-tel { font-size: 13px; padding: 0 12px; }
  .qk2 button { padding: 12px; min-height: 0; }
  .qk2 b { font-size: 14.5px; } .qk2 small { font-size: 11.5px; line-height: 1.35; }
  .ugrid { gap: 6px; }
  .ugrid .rcard div { padding: 5px 6px 6px; }
  .ugrid .rcard b { font-size: 11.5px; letter-spacing: -0.03em; }
  .ugrid .rcard small { font-size: 10px; }
  .ugrid .rcard span { font-size: 11.5px; letter-spacing: -0.02em; }
  .rcard .bmk-logo { height: 20px; padding: 2px 4px; } .rcard .bmk-logo img { max-width: 52px; }
  .ugrid .rcard .rbrand { left: 3px; bottom: 3px; }
  .ugrid .rcard i { font-size: 9px; padding: 1px 4px; top: 4px; left: 4px; }
  .tcard-model { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ts-box { height: 46px; } .ts-box input { font-size: 14.5px; } .ts-box button { height: 36px; padding: 0 14px; }
  .shopline .t b { font-size: 14px; }
}
@media (max-width: 380px) { .logo-text small { display: none; } .hd-nav-m { gap: 14px; font-size: 14px; } }
@media (max-width: 599px) { .svcc small { font-size: 12px; letter-spacing: -0.03em; } }

/* B46: 모바일 아래 고정 띠 = '전화 문의' 하나 — 오른쪽 절반 · 녹색 (v1·v2 같음) */
.dock { display: flex; justify-content: flex-end; background: transparent; border-top: 0; box-shadow: none; pointer-events: none; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); }
.dock a.call { pointer-events: auto; width: 50%; min-width: 168px; height: 52px; border-radius: 26px; background: #16A34A; border-color: #16A34A; color: #fff; font-size: 16px; font-weight: 600; box-shadow: 0 8px 20px rgba(22,163,74,.38); }
.dock a.call .ic { width: 20px; height: 20px; color: #fff; }
.dock a.call:active { background: #12873D; }
@media (min-width: 900px) { .dock { display: none; } }
.dock { -webkit-backdrop-filter: none; backdrop-filter: none; background: none; }

/* B50: 네이버 지도 (키를 넣으면) — 위성 먼저, [위성|지도] 전환, 매장 표시 */
.map-ph { position: relative; overflow: hidden; }
.map-ph.live { background: #E1E8F3; }
.map-ph.live > span { display: none; }
.map-ph .nmap { position: absolute; inset: 0; }
.map-ph.live > a[data-map] { position: absolute; z-index: 5; left: 50%; bottom: 12px; transform: translateX(-50%); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.nmap-sw { position: absolute; z-index: 5; left: 10px; top: 10px; display: flex; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.nmap-sw button { height: 32px; padding: 0 12px; border: 0; background: #fff; color: #16191D; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.nmap-sw button.on { background: #152A54; color: #fff; }
.nmk { position: relative; transform: translateY(-4px); }
.nmk b { display: block; padding: 6px 10px; border-radius: 16px; background: #16A34A; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.nmk i { position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-top-color: #16A34A; border-bottom: 0; }
.map-ph iframe.nmap { width: 100%; height: 100%; border: 0; display: block; }
.nmap-sw { top: auto; bottom: 12px; left: 10px; }
.addr small.road { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
footer.foot .copy a.credit { color: inherit; text-decoration: underline; }
