@charset "UTF-8";
/* 통합검색 v2 — 헤더 자동완성 드롭다운 · 교정 제안 · 0건 대안 블록 · 시리즈 이전 연도
   sub.css 를 건드리지 않고 뒤에서 얹는다. 사이트는 라이트 테마만 쓴다. */

/* ------------------------------------------------------------------ 자동완성 드롭다운 */

header #headerMiddle .searchBox > form > div,
header #headerMiddle .searchBox div {
  position: relative;
}

/* 1200px 이하에서 .wrapper 가 overflow:hidden 이라 드롭다운이 잘린다 — 헤더 가운데 줄만 푼다 */
@media only screen and (max-width: 1200px) {
  header #headerMiddle .wrapper {
    overflow: visible;
  }
}

.dsSuggest {
  position: absolute;
  z-index: 10000;
  left: -2px;
  right: -2px;
  top: calc(100% + 6px);
  max-height: 60vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 6px 0;
  text-align: left;
  background-color: #fff;
  border: 1px solid #0091db;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  -webkit-overflow-scrolling: touch;
}

.dsSuggest[hidden] {
  display: none;
}

.dsSuggestSec + .dsSuggestSec {
  margin-top: 4px;
  border-top: 1px solid #eee;
  padding-top: 4px;
}

.dsSuggestTitle {
  margin: 0;
  padding: 6px 16px 4px;
  font-size: 0.8125em;
  font-weight: 500;
  color: #999;
  letter-spacing: -0.02em;
}

.dsSuggestOpt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.9375em;
  line-height: 1.35;
  color: #333;
  cursor: pointer;
}

.dsSuggestOpt.on,
.dsSuggestOpt:hover {
  background-color: #eaf6fd;
  color: #0079b5;
}

.dsSuggestText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsSuggestText b {
  font-weight: 700;
  color: #0091db;
}

.dsSuggestOpt.on .dsSuggestText b {
  color: #0079b5;
}

.dsSuggestBadge {
  flex: none;
  padding: 2px 8px;
  font-size: 0.75em;
  font-weight: 500;
  color: #0091db;
  background-color: #eef7fd;
  border: 1px solid #cbe8f8;
  border-radius: 100px;
}

/* ------------------------------------------------------------------ 교정 제안 / 안내 */

.search .searchBox .searchSuggest,
.search .searchBox .searchCorrect,
.searchAlt .searchSuggest,
.searchAlt .searchCorrect {
  margin: 10px 0 0;
  font-size: 1em;
  text-align: center;
  color: #444;
}

.searchAlt .searchSuggest,
.searchAlt .searchCorrect {
  text-align: left;
}

.searchSuggest a,
.searchCorrect a {
  color: #0091db;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.searchSuggest a strong,
.searchCorrect strong {
  font-weight: 700;
  color: #0091db;
}

.searchCorrect a strong {
  color: #0091db;
}

.searchCorrectSep {
  display: inline-block;
  margin: 0 8px;
  color: #ccc;
}

.searchNote {
  margin: 0 0 0 12px;
  font-size: 0.9375em;
  color: #777;
}

/* ------------------------------------------------------------------ 0건·저건수 대안 블록 */

.searchAlt {
  box-sizing: border-box;
  margin: 0 auto 60px;
  padding: 28px 30px 24px;
  background-color: #f8fbfd;
  border: 1px solid #d9ecf7;
  border-radius: 14px;
}

.searchAltTitle {
  margin: 0;
  font-size: 1.375em;
  font-weight: 700;
  color: #222;
}

.searchAltDesc {
  margin: 8px 0 0;
  font-size: 1em;
  color: #555;
}

.searchAltDesc strong {
  font-weight: 700;
  color: #0091db;
}

.searchAltBlock {
  margin-top: 24px;
}

.searchAltBlock > h3 {
  margin: 0 0 12px;
  font-size: 1.0625em;
  font-weight: 500;
  color: #333;
}

.searchAltBlock > h3 strong {
  font-weight: 700;
  color: #0091db;
}

.searchAlt .productList {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.searchAlt .productList li {
  min-width: 0;
}

.searchAlt .productList figure {
  margin: 0 0 8px;
}

.searchAlt .productList img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background-color: #fff;
}

.searchAlt .productList dl {
  margin: 0;
}

.searchAlt .productList dt {
  font-size: 0.9375em;
  line-height: 1.35;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.searchAlt .productList .dcPrice {
  margin: 6px 0 0;
  font-weight: 700;
  color: #222;
}

.searchChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.searchChips li {
  margin: 0;
}

.searchChips a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 0.9375em;
  color: #333;
  background-color: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 100px;
}

.searchChips a:hover,
.searchChips a:focus {
  color: #0091db;
  border-color: #0091db;
}

/* ------------------------------------------------------------------ 시리즈(이전 연도) */

.search .searchResult .seriesPrev {
  margin: 6px 0 0;
  font-size: 0.8125em;
  line-height: 1.4;
  color: #888;
}

.search .searchResult .seriesPrev .seriesLabel {
  margin-right: 6px;
  color: #aaa;
}

.search .searchResult .seriesPrev a {
  color: #0091db;
}

.search .searchResult .seriesPrev a:hover {
  text-decoration: underline;
}

.search .searchResult .seriesPrev .seriesSep {
  margin: 0 5px;
  color: #ddd;
}

/* ------------------------------------------------------------------ 반응형 */

@media only screen and (max-width: 1024px) {
  .searchAlt .productList {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media only screen and (max-width: 768px) {
  /* 모바일 헤더는 검색창 아래 전폭으로 펼친다 */
  header#mobileHeader #headerMiddle .searchBox {
    position: relative;
  }
  header#mobileHeader #headerMiddle .searchBox .dsSuggest {
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 55vh;
    border-radius: 10px;
  }
  .dsSuggestOpt {
    padding: 11px 14px;
    font-size: 1em;
  }
  .dsSuggestTitle {
    padding: 6px 14px 4px;
  }
  .searchAlt {
    margin-bottom: 40px;
    padding: 20px 16px 18px;
    border-radius: 10px;
  }
  .searchAltTitle {
    font-size: 1.1875em;
  }
  .searchAlt .productList {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 10px;
  }
  .search .searchBox .searchSuggest,
  .search .searchBox .searchCorrect {
    font-size: 0.9375em;
  }
  .searchNote {
    margin-left: 8px;
    font-size: 0.875em;
  }
}

@media only screen and (max-width: 500px) {
  .searchAlt .productList {
    grid-template-columns: repeat(2, 1fr);
  }
  .searchCorrectSep {
    margin: 0 5px;
  }
}
