@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --brand-orange: #FF5E00;
  --brand-orange-dark: #E05200;
  --dark-bg: #111317;
  --dark-card: #1A1D24;
  --text-main: #1E293B;
  --text-sub: #64748B;
  --border-color: #E2E8F0;
  --bg-light: #F8FAFC;
}

* { box-sizing: border-box; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-size: 14px;
  color: var(--text-main);
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}
ul { padding: 0; margin: 0; list-style: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
label { cursor: pointer; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }

.wrap { width: 1200px; margin: 0 auto; }

/* 최상단 안내 바 */
.tts-topbar {
  background: #0A0C0F;
  color: #94A3B8;
  font-size: 12px;
  border-bottom: 1px solid #1E293B;
}
.tts-topbar-inner {
  width: 1200px;
  margin: 0 auto;
  height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tts-topbar-info span { margin-right: 16px; }
.tts-topbar-info strong { color: #F8FAFC; font-weight: 600; }
.tts-topbar-links a { color: #CBD5E1; margin-left: 14px; font-weight: 500; }
.tts-topbar-links a:hover { color: var(--brand-orange); }

/* 메인 헤더 */
#header {
  background: var(--dark-bg);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
}
.wrap2 {
  width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 브랜드 로고 영역 */
.tts-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tts-brand-badge {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.tts-brand-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.tts-brand-title span { color: var(--brand-orange); }
.tts-brand-sub {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
}

/* 상단 통합 사이즈 검색창 */
.search_top {
  flex: 1;
  max-width: 460px;
  margin: 0 30px;
}
.search_top form {
  display: flex;
  background: #fff;
  border-radius: 50px;
  padding: 4px 4px 4px 20px;
  border: 2px solid var(--brand-orange);
  box-shadow: 0 4px 12px rgba(255, 94, 0, 0.2);
}
.search_input { flex: 1; display: flex; align-items: center; }
.search_input input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: #1E293B;
  background: transparent;
}
.tts-search-submit {
  background: var(--brand-orange);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.tts-search-submit:hover { background: var(--brand-orange-dark); }

/* 우측 대표번호 안내 */
.tts-header-call { text-align: right; }
.tts-header-call .label {
  font-size: 11px;
  color: var(--brand-orange);
  font-weight: 700;
}
.tts-header-call .tel {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.tts-header-call .sub-tel {
  font-size: 12px;
  color: #CBD5E1;
}

/* 메인 네비게이션 메뉴 */
#header .tabmenu {
  background: #1A1D24;
  border-top: 1px solid #2A2F3A;
  width: 100%;
}
#header .tabmenu .twrap {
  width: 1200px;
  margin: 0 auto;
}
#header .tabmenu .twrap ul {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
#header .tabmenu .twrap li { flex: 1; text-align: center; }
#header .tabmenu .twrap li a {
  display: block;
  padding: 14px 10px;
  font-weight: 700;
  font-size: 15px;
  color: #F1F5F9;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
#header .tabmenu .twrap li a:hover {
  color: var(--brand-orange);
  background: rgba(255, 94, 0, 0.08);
  border-bottom-color: var(--brand-orange);
}

/* 9개 주요 타이어 브랜드 로고 바 (1200px 1줄 가로 배치 고정) */
.tts-brand-bar {
  width: 1200px;
  margin: 16px auto 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.tts-brand-bar-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark-bg);
  white-space: nowrap;
  padding-right: 16px;
  border-right: 2px solid var(--brand-orange);
}
.tts-brand-list {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  flex: 1;
}
.brand-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.brand-logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  border-color: var(--brand-orange);
}
.brand-logo-en {
  font-family: 'Arial Black', 'Impact', 'Pretendard', sans-serif;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.brand-logo-ko {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  margin-top: 3px;
}

/* 각 브랜드별 공식 시그니처 로고 컬러 */
.b-hankook { border-color: #FFD2B8; background: #FFF9F5; }
.b-hankook .brand-logo-en { color: #FF5E00; font-style: italic; }
.b-bridgestone { border-color: #F87171; background: #FEF2F2; }
.b-bridgestone .brand-logo-en { color: #E51E25; }
.b-michelin { border-color: #93C5FD; background: #EFF6FF; }
.b-michelin .brand-logo-en { color: #004F9F; font-style: italic; }
.b-pirelli { border-color: #FCD34D; background: #FFFBEB; }
.b-pirelli .brand-logo-en { color: #D5001C; background: #FFDD00; padding: 1px 4px; border-radius: 3px; font-size: 11px; }
.b-continental { border-color: #FCD34D; background: #FFFBEB; }
.b-continental .brand-logo-en { color: #FFA500; background: #1A1A1A; padding: 1px 4px; border-radius: 3px; font-size: 11px; }
.b-goodyear { border-color: #93C5FD; background: #EFF6FF; }
.b-goodyear .brand-logo-en { color: #002C77; }
.b-yokohama { border-color: #F87171; background: #FEF2F2; }
.b-yokohama .brand-logo-en { color: #E60012; }
.b-kumho { border-color: #F87171; background: #FEF2F2; }
.b-kumho .brand-logo-en { color: #E21836; }
.b-nexen { border-color: #C084FC; background: #FAF5FF; }
.b-nexen .brand-logo-en { color: #6A1B9A; }

/* 메인 컨테이너 (좌측 280px + 우측 900px) */
#container.wrap {
  width: 1200px;
  margin: 20px auto 40px;
  display: block;
  overflow: hidden;
}
#content_left {
  width: 280px;
  float: left;
}
#content {
  width: 900px;
  float: right;
}

/* 좌측 사이드바 카드 스타일 */
.side-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.side-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark-bg);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--dark-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side-card-title span.tag {
  font-size: 11px;
  background: #FFF0E6;
  color: var(--brand-orange);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.tire-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
}
.tire-rank-item:last-child { border-bottom: none; padding-bottom: 0; }
.tire-rank-item img {
  width: 44px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}
.tire-rank-info .name { font-weight: 700; font-size: 13px; color: #0F172A; }
.tire-rank-info .size { font-size: 12px; color: #64748B; }
.tire-rank-info .price { font-weight: 800; font-size: 13px; color: var(--brand-orange); }

/* 검색 필터 박스 (검색 결과 페이지 좌측) */
.left_board {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.left_title {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark-bg);
  border-bottom: 2px solid var(--brand-orange);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.left_sub_title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 12px 0 6px;
}
.left_content table { width: 100%; }
.left_content td { padding: 4px 0; font-size: 13px; }

/* 메인 우측 카드 섹션 */
.tts-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.tts-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}
.tts-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-bg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tts-card-header h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--brand-orange);
  border-radius: 2px;
}
.tts-more-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}
.tts-more-link:hover { color: var(--brand-orange); }

/* 차량/사이즈 드롭다운 검색 UI */
.search-box-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F8FAFC;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}
.search-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.car, .tire {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
  min-width: 155px;
  outline: none;
}
.car:focus, .tire:focus { border-color: var(--brand-orange); }
.tire_btn {
  background: var(--dark-bg);
  color: #fff;
  border: none;
  border-radius: 8px;
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.tire_btn:hover { background: var(--brand-orange); }

/* 푸터 */
#footer {
  background: var(--dark-bg);
  color: #94A3B8;
  padding: 40px 0 50px;
  margin-top: 40px;
  border-top: 3px solid var(--brand-orange);
}
.footer-inner {
  width: 1200px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.8;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #1E293B;
}
.footer-brand { font-size: 18px; font-weight: 800; color: #fff; }
.footer-brand span { color: var(--brand-orange); }
.footer-admin-links a {
  display: inline-block;
  padding: 6px 14px;
  background: #1E293B;
  color: #E2E8F0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}
.footer-admin-links a.admin-highlight {
  background: var(--brand-orange);
  color: #fff;
}