/* 제품 검색 UX 고도화 (2026-08-25) — 하이라이트 · 최근 검색어 칩 · 검색창 카운트
   적용: 타올 아카이브(/product) + 우산/타올우산 템플릿. 카탈로그(yscatalog 스킨)와 같은 시각 언어 */

/* 카운트 배지 자리 확보 (검색 아이콘 42px + 배지) */
#product #search-box .search-box input {
  padding-right: 104px;
}

/* 검색창 우측 "NN개" 배지 */
#product #search-box .ys-search-count {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(0, 155, 216, .08);
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}
#product #search-box .ys-search-count:empty {
  display: none;
}

/* "NN개의 검색결과" 줄 숨김 — 검색창 배지와 중복 (2026-08-25).
   DOM은 유지: ajax가 이 요소를 갱신하고 배지가 그 값을 미러링해 읽어감. 삭제 금지 */
#thumb-wrap .count,
#list-wrap .count {
  display: none;
}

/* 검색 매칭 하이라이트 (브랜드톤 연파랑, 카탈로그와 동일) */
#product mark.ys-hl {
  background: rgba(0, 155, 216, .14);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

/* 최근 검색어 칩 */
#ys-prod-recent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
#ys-prod-recent .label {
  font-size: 13px;
  color: var(--color-muted);
  margin-right: 2px;
  white-space: nowrap;
}
#ys-prod-recent .chip {
  border: none;
  background: var(--color-surface, #f2f4f6);
  color: var(--color-foreground, #191f28);
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
#ys-prod-recent .chip:hover {
  background: rgba(0, 155, 216, .1);
  color: var(--color-primary);
}
#ys-prod-recent .clear {
  border: none;
  background: none;
  color: var(--color-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 4px;
  text-decoration: underline;
}
