/* 차종별 타이어 추천 페이지 — #tires-inject 안에서만 적용 (원본 사이트 CSS와 충돌 방지) */
#tires-inject {
  font-family: 'Noto Sans KR Variable', NotoSansKR, '맑은고딕', Helvetica, Arial, sans-serif;
  color: #e5e5e5;
  text-align: left;
}
#tires-inject *, #tires-inject *::before, #tires-inject *::after { box-sizing: border-box; }
#tires-inject h1, #tires-inject h2, #tires-inject h3, #tires-inject p { margin: 0; padding: 0; }
#tires-inject a { text-decoration: none; color: inherit; }
#tires-inject button {
  appearance: none; background: none; border: 0; margin: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer; text-align: left;
}
#tires-inject img { max-width: none; vertical-align: middle; }

#tires-inject .tf-wrap {
  max-width: 1580px; margin: 0 auto; padding: 40px 24px 80px;
  display: flex; flex-direction: column; gap: 32px;
}

/* 제목 + 가운데 차량 이미지 */
#tires-inject .tf-hero { position: relative; }
#tires-inject .tf-head { position: relative; z-index: 10; display: grid; gap: 8px; }
#tires-inject .tf-head h1 { font-size: 40px; font-weight: 700; color: #fff; line-height: 1.1; letter-spacing: -0.025em; }
#tires-inject .tf-head p { font-size: 14px; font-weight: 300; color: #777; line-height: 1.8; }
#tires-inject .tf-car { display: flex; justify-content: center; margin-top: -10px; }
#tires-inject .tf-car img {
  width: 640px; max-width: 100%; height: auto; object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(0, 0, 0, 0.9)) contrast(1.12) saturate(1.15) brightness(1.05);
}

/* 넥센 틀의 배너 제목(원래 h1 "SERVICE", index.js 에서 div 로 바꿈) — 넥센 service.css 의 h1 모양을 그대로 옮김 */
.service-container .keyvisual .title .tf-kv-title {
  margin: 20px 0 10px; padding-bottom: 25px; font-size: 48px; font-weight: 400; line-height: 1.1; color: #FFF; letter-spacing: -0.6px;
  background-image: url(/kr/assets/images/common/keyvisual_bar.gif); background-repeat: no-repeat; background-position: center bottom;
}
@media (min-width: 0) and (max-width: 480px) { .service-container .keyvisual .title .tf-kv-title { zoom: 0.6; } }
@media (min-width: 480px) and (max-width: 768px) { .service-container .keyvisual .title .tf-kv-title { zoom: 0.8; } }

/* 원본 사이트의 오른쪽 고정 메뉴(폭 약 90px)에 버튼이 가려지지 않도록 여백 확보 */
@media (min-width: 1100px) and (max-width: 1780px) { #tires-inject .tf-wrap { padding-right: 104px; } }

/* 차량 요약 + 검색 조건 */
#tires-inject .tf-box { border: 1px solid #333; border-radius: 6px; }
#tires-inject .tf-box__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px; background: #1a1a1a; border-bottom: 1px solid #2e2e2e; border-radius: 5px 5px 0 0;
}
#tires-inject .tf-vehicle { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
#tires-inject .tf-vehicle h2 { flex: none; font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.025em; }
#tires-inject .tf-vehicle span { font-size: 13px; font-weight: 300; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tires-inject .tf-vehicle--none { display: block; font-size: 16px; font-weight: 400; line-height: 1.5; color: #777; letter-spacing: -0.025em; }
#tires-inject .tf-finder {
  flex: none; height: 36px; padding: 0 20px; color: #c77ee0; font-size: 13px; letter-spacing: 0.025em;
  border: 1px solid #803a9d; border-radius: 4px; transition: background-color 0.15s;
}
#tires-inject .tf-finder:hover { background: rgba(128, 58, 157, 0.15); }
#tires-inject .tf-box__filters { padding: 20px 24px; background: #1e1e1e; border-radius: 0 0 5px 5px; }
#tires-inject .tf-filters__row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }

#tires-inject .tf-select { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#tires-inject .tf-select.is-disabled { opacity: 0.4; pointer-events: none; }
#tires-inject .tf-label { font-size: 10px; font-weight: 100; color: #666; letter-spacing: 0.1em; text-transform: uppercase; }
#tires-inject .tf-select__box { position: relative; }
#tires-inject .tf-select__btn {
  width: 100%; height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: #1e1e1e; border: 1px solid #3a3a3a; border-radius: 4px; transition: border-color 0.15s;
}
#tires-inject .tf-select__btn:hover { border-color: #555; }
#tires-inject .tf-select.is-open .tf-select__btn { border-color: #803a9d; }
#tires-inject .tf-select__btn > span { flex: 1; font-size: 13px; color: #e5e5e5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tires-inject .tf-arrow {
  flex: none; width: 7px; height: 7px; border-right: 1.5px solid #888; border-bottom: 1.5px solid #888;
  transform: rotate(45deg) translateY(-2px); opacity: 0.6; transition: transform 0.2s;
}
#tires-inject .tf-select.is-open .tf-arrow { transform: rotate(-135deg) translateY(-2px); }
#tires-inject .tf-select__list {
  position: absolute; top: calc(100% + 4px); left: 0; width: 100%; z-index: 50;
  background: #1e1e1e; border: 1px solid #3a3a3a; border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); overflow: hidden;
}
#tires-inject .tf-select__list[hidden] { display: none; }
#tires-inject .tf-select__scroll { position: relative; max-height: 200px; overflow-y: auto; }
#tires-inject .tf-select__scroll::-webkit-scrollbar { width: 3px; }
#tires-inject .tf-select__scroll::-webkit-scrollbar-thumb { background: #444; border-radius: 9999px; }
#tires-inject .tf-select__scroll:hover::-webkit-scrollbar-thumb { background: #803a9d; }
#tires-inject .tf-opt {
  display: block; width: 100%; padding: 10px 12px; font-size: 13px; color: #bbb;
  border-bottom: 1px solid #2a2a2a; transition: color 0.15s, background-color 0.15s;
}
#tires-inject .tf-opt:last-child { border-bottom: 0; }
#tires-inject .tf-opt:hover { color: #fff; background: #2a2a2a; }
#tires-inject .tf-opt.is-selected { color: #c77ee0; background: rgba(128, 58, 157, 0.15); }
#tires-inject .tf-search {
  flex: none; height: 42px; padding: 0 28px; background: #803a9d; color: #fff; font-size: 13px;
  letter-spacing: 0.025em; border-radius: 4px; text-align: center; transition: background-color 0.15s;
}
#tires-inject .tf-search:hover { background: #6b3085; }
#tires-inject .tf-search:active { background: #5a2770; }
#tires-inject .tf-reset {
  flex: none; display: inline-flex; align-items: center; height: 42px; padding: 0 20px; color: #666; font-size: 13px;
  letter-spacing: 0.025em; border: 1px solid #3a3a3a; border-radius: 4px; transition: border-color 0.15s, color 0.15s;
}
#tires-inject .tf-reset:hover { border-color: #555; color: #aaa; }

/* 결과 */
#tires-inject .tf-results__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
#tires-inject .tf-results__title { display: flex; align-items: baseline; gap: 12px; }
#tires-inject .tf-results__mo { font-size: 11px; font-weight: 100; color: #555; }
#tires-inject .tf-results__head h2 { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.025em; }
#tires-inject .tf-results__head span { font-size: 13px; font-weight: 300; color: #555; }
#tires-inject .tf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
@media (min-width: 768px) { #tires-inject .tf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { #tires-inject .tf-grid { grid-template-columns: repeat(4, 1fr); } }

/* 카드: 넥센 카드와 같은 구조(사진·표시는 넥센 실시간)를 시안 모양으로 맞춘다. 마우스를 올렸을 때 배경 확대 효과는 넥센 CSS 그대로 */
#tires-inject .product-item { position: relative; width: auto; height: auto; margin: 0; overflow: hidden; }
#tires-inject .product-item .wrap { padding: 0; }
#tires-inject .product-item .way-tag { position: absolute; top: 0; left: 0; z-index: 1; display: flex; flex-direction: column; }
#tires-inject .product-item .way-tag img { display: block; width: 61px; height: 40px; }
#tires-inject .product-item .thumb { zoom: 1; }
#tires-inject .product-item .thumb img { width: auto; height: auto; max-width: 90%; max-height: 90%; }
#tires-inject .product-item .logo { margin: 16px 0 0; }
#tires-inject .product-item .logo-img { height: 34px; display: flex; align-items: center; font-size: 16px; font-weight: 700; color: #fff; }
#tires-inject .product-item .logo-img img { height: 100%; width: auto; max-width: 100%; max-height: none; object-fit: contain; object-position: left; }
#tires-inject .product-item .logo-img .tip { flex: none; align-self: flex-end; margin-left: 4px; }   /* "타이어뱅크 전용" 딱지 (그림은 넥센 CSS) */
#tires-inject .product-item .txt {
  margin-top: 10px; font-size: 13px; font-weight: 100; color: #fff; line-height: 1.5; min-height: 40px; word-break: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#tires-inject .product-item .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
#tires-inject .product-item .tag {
  margin: 0; padding: 3px 8px; border: 1px solid #666; font-size: 11px; font-weight: 100; line-height: inherit; color: #ccc;
  white-space: nowrap; cursor: default; transition: all 0.15s;
}
#tires-inject .product-item .tag:hover { border-color: #803a9d; color: #c77ee0; background: rgba(128, 58, 157, 0.1); }
#tires-inject .product-item .btn-box { display: flex; margin-top: 14px; padding-bottom: 12px; }
#tires-inject .product-item .btn {
  margin: 0 20px 0 0; padding: 0; border: 0; box-shadow: none;
  font-size: 13px; font-weight: inherit; line-height: inherit; color: #fff; transition: color 0.15s;
}
#tires-inject .product-item .btn::before { display: none; }
#tires-inject .product-item .btn:hover { color: #c77ee0; }

/* 결과 페이지: 고른 차·규격에 맞는 세부등급 표 (시안) */
#tires-inject .tf-match { margin-top: 108px; }   /* 카드 목록과 표 사이를 바깥 틀 간격(32px)보다 더 띄운다 */
#tires-inject .tf-match__head h2 { font-size: 26px; font-weight: 700; line-height: 1.3; color: #fff; letter-spacing: -0.025em; }
#tires-inject .tf-match__head p { margin-top: 8px; font-size: 13px; font-weight: 300; color: #555; }
#tires-inject .tf-match__box { margin-top: 24px; background: #18181b; border: 1px solid #404040; border-radius: 6px; overflow: hidden; }
#tires-inject .tf-match__scroll { overflow-x: auto; }
#tires-inject .tf-match table { width: 100%; min-width: 960px; border-collapse: collapse; table-layout: fixed; }
#tires-inject .tf-match th {
  height: 48px; padding: 0 24px; background: #171717; border-bottom: 1px solid #6b21a8;
  text-align: left; font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: -0.025em; color: #a3a3a3;
}
#tires-inject .tf-match td { height: 64px; padding: 10px 24px; border-bottom: 1px solid #27272a; vertical-align: middle; font-size: 13px; line-height: 20px; }
#tires-inject .tf-match tbody tr:last-child td { border-bottom: 0; }
#tires-inject .tf-match__gen { font-weight: 300; color: #a3a3a3; }
#tires-inject .tf-match__year { color: #fff; }
#tires-inject .tf-match__grade { color: #e5e5e5; }
#tires-inject .tf-match__no { margin-right: 12px; font-size: 10px; line-height: 16px; color: #737373; }
#tires-inject .tf-match__size { color: #c084fc; }
#tires-inject .tf-match__products span { display: block; line-height: 16px; color: #e5e5e5; }
#tires-inject .tf-match__products span + span { margin-top: 2px; }
#tires-inject .tf-match__note {
  display: flex; align-items: center; gap: 8px; padding: 12px 24px; background: #171717; border-top: 1px solid #27272a;
  font-size: 12px; line-height: 16px; color: #78716c;
}
#tires-inject .tf-match__note::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #6b21a8; }

#tires-inject .tf-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 96px 0; text-align: center; }
#tires-inject .tf-empty__t { font-size: 18px; font-weight: 700; color: #fff; }
#tires-inject .tf-empty__s { font-size: 14px; font-weight: 300; color: #666; }
#tires-inject .tf-empty__t--lg { font-size: 24px; font-weight: 600; line-height: 36px; }
#tires-inject .tf-empty__s--lg { font-size: 16px; font-weight: 400; color: #aaa; line-height: 21px; }


@media (max-width: 640px) {
  #tires-inject .tf-wrap { padding: 28px 16px 56px; gap: 24px; }
  #tires-inject .tf-head h1 { font-size: 28px; }
  #tires-inject .tf-box__top { flex-wrap: wrap; padding: 14px 16px; }
  #tires-inject .tf-box__filters { padding: 16px; }
  #tires-inject .tf-search { flex: 1 1 100%; }
  #tires-inject .tf-reset { flex: 1 1 100%; justify-content: center; }
}
