/* f2 상품 검색(화면 5). 값은 시안 인라인 스타일 그대로 — PC = Search-Result, 모바일 = Search-Result-M(입력 · 자동완성 · 결과 · 결과 없음).
   본문 폭은 목록과 같음(--f2-list-pad, list.css). 카드 · 그리드 · 분류 필터 · 정렬은 list.css · components.css 그대로 */
.f2-sr { padding-bottom: 96px; }   /* .f2-search는 공통 검색창 부품(components.css)이라 이 화면은 f2-sr */
.f2-sr mark { padding: 0 2px; background: var(--f2-lime); color: var(--f2-black); }

/* ---------- PC 검색창 760 · 자동완성 ---------- */
.f2-sr__top { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; padding: 40px var(--f2-list-pad) 0; }
.f2-sr__box { position: relative; display: flex; align-items: center; gap: var(--f2-sp-12); width: 760px; max-width: 100%; height: 60px; padding: 0 8px 0 24px; border: var(--f2-line-strong) solid var(--f2-black); border-radius: var(--f2-r-4); background: var(--f2-white); }
.f2-sr__box input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 700; }
.f2-sr__box input::-webkit-search-cancel-button { display: none; }
.f2-sr__clear { width: 32px; height: 44px; padding: 0; border: 0; background: none; color: var(--f2-text-muted); font-size: var(--f2-fs-18); }
.f2-sr__go { flex: none; height: 44px; padding: 0 24px; border: 0; border-radius: var(--f2-r-4); background: var(--f2-black); color: var(--f2-white); font-weight: 700; }
.f2-sr__recent-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--f2-sp-8); margin-top: 14px; font-size: var(--f2-fs-13); }
.f2-sr__recent-row[hidden] { display: none; }
.f2-sr__recent-label { color: var(--f2-text-sub); }
.f2-sr__recent-list { display: contents; }

/* 자동완성(PC: 왼쪽 브랜드 · 분류 220 + 오른쪽 상품 / 모바일: 한 줄씩) */
.f2-sr__ac { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--f2-sp-24); padding: 18px 20px; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-white); box-shadow: 0 16px 32px rgba(0, 0, 0, .1); text-align: left; }
.f2-sr__ac[hidden] { display: none; }
.f2-sr__ac.is-items-only { grid-template-columns: minmax(0, 1fr); }
.f2-ac__col { display: flex; flex-direction: column; gap: var(--f2-sp-4); min-width: 0; }
.f2-ac__title { color: var(--f2-text-sub); font-size: var(--f2-fs-12); font-weight: 700; }
.f2-ac__link { display: block; padding: 4px 0; font-size: var(--f2-fs-13); }
.f2-ac__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--f2-sp-10); align-items: center; padding: 6px 0; border-bottom: 1px solid #F0F0EE; }
.f2-ac__img { width: 44px; height: 44px; overflow: hidden; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); }
.f2-ac__img img { width: 100%; height: 100%; object-fit: contain; }
.f2-ac__name { overflow: hidden; font-size: var(--f2-fs-13); white-space: nowrap; text-overflow: ellipsis; }
.f2-ac__code { color: var(--f2-text-sub); font-size: var(--f2-fs-11); }
.f2-ac__text { display: flex; flex-direction: column; min-width: 0; }
.f2-ac__all { margin-top: 6px; font-size: var(--f2-fs-13); font-weight: 700; }
.f2-ac__link:hover, .f2-ac__item:hover, .f2-ac__all:hover { text-decoration: none; }
.f2-ac__link.is-active, .f2-ac__item.is-active, .f2-ac__all.is-active { text-decoration: none; background: var(--f2-sub-bg); }

/* 칩(최근 검색어 · 브랜드) */
.f2-sr__chips { display: flex; flex-wrap: wrap; gap: var(--f2-sp-6); }
.f2-sr__rchip { display: inline-flex; align-items: center; gap: var(--f2-sp-6); height: 28px; padding: 0 4px 0 10px; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-white); font-size: var(--f2-fs-13); }
.f2-sr__rchip a:hover { text-decoration: none; }
.f2-sr__rchip button { width: 20px; height: 20px; padding: 0; border: 0; background: none; color: var(--f2-text-muted); }
.f2-sr__brand { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); font-size: var(--f2-fs-13); font-weight: 800; }
.f2-sr__brand:hover { text-decoration: none; }

/* ---------- 입력 화면(검색어 없음) ---------- */
.f2-sr__input { display: flex; flex-direction: column; gap: 28px; width: 760px; max-width: 100%; margin: 0 auto; padding: 32px var(--f2-list-pad) 0; box-sizing: content-box; }
.f2-sr__sec[hidden] { display: none; }
.f2-sr__sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.f2-sr__sec-head b { font-size: var(--f2-fs-16); }
.f2-sr__note { color: var(--f2-text-muted); font-size: var(--f2-fs-11); }
.f2-sr__link { padding: 0; border: 0; background: none; color: var(--f2-text-sub); font-size: var(--f2-fs-12); }
.f2-sr__hot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; margin: 0; padding: 0; list-style: none; }
.f2-sr__hot a { display: flex; align-items: center; gap: var(--f2-sp-10); height: 44px; border-bottom: 1px solid #F0F0EE; font-size: var(--f2-fs-14); }
.f2-sr__hot a:hover { text-decoration: none; }
.f2-sr__hot b { width: 18px; color: var(--f2-text-muted); }
.f2-sr__hot b.is-top { color: var(--f2-black); }
.f2-sr__hot span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.f2-sr__tip { padding: 14px 16px; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); color: #333333; font-size: var(--f2-fs-12); }

/* ---------- 결과 머리 · 탭 ---------- */
.f2-sr__head { padding: 36px var(--f2-list-pad) 0; }
.f2-sr__h1 { font-size: var(--f2-fs-28); letter-spacing: -.5px; }
.f2-sr__h1 span { color: var(--f2-text-sub); font-weight: 500; }
.f2-sr__tabs { display: flex; gap: 28px; margin-top: 18px; border-bottom: 1px solid var(--f2-line); }
.f2-sr__tabs button { height: 48px; margin-bottom: -1px; padding: 0; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--f2-text-muted); font-size: var(--f2-fs-15); font-weight: 800; }
.f2-sr__tabs button span { color: var(--f2-text-muted); font-weight: 500; }   /* opacity 대신 #767676(결정 1-1) */
.f2-sr__tabs button[aria-selected="true"] { border-bottom-color: var(--f2-black); color: var(--f2-black); }
.f2-sr__panel[hidden] { display: none; }
.f2-sr__hits { margin: 0; padding: 16px var(--f2-list-pad) 0; list-style: none; }
.f2-sr__hits a { display: flex; align-items: center; gap: var(--f2-sp-10); min-height: 52px; border-bottom: 1px solid #F0F0EE; }
.f2-sr__hits a:hover { text-decoration: none; }
.f2-sr__tag { flex: none; padding: 1px 6px; border-radius: 4px; background: var(--f2-black); color: var(--f2-white); font-size: var(--f2-fs-11); font-weight: 800; }
.f2-sr__tag--light { background: var(--f2-sub-bg); color: var(--f2-black); }
.f2-sr__sub { color: var(--f2-text-sub); font-size: var(--f2-fs-13); }

/* ---------- 결과: 분류 필터 220 + 그리드 4열 · 쪽 번호 ---------- */
.f2-sr__body { display: flex; gap: 40px; align-items: flex-start; padding: 24px var(--f2-list-pad) 0; }
.f2-sr__filter { flex: none; width: 220px; }
.f2-sr__main { flex: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.f2-sr__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--f2-sp-16); font-size: var(--f2-fs-13); }
.f2-sr__count { color: var(--f2-text-sub); }
.f2-sr__grid { gap: 36px 16px; }
.f2-sr__mbar, .f2-sr__mcats { display: none; }
.f2-sr__pager { display: flex; justify-content: center; gap: var(--f2-sp-6); padding-top: 32px; }
.f2-sr__pager a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--f2-r-4); font-weight: 700; }
.f2-sr__pager a:hover { text-decoration: none; }
.f2-sr__pager a[aria-current] { background: var(--f2-black); color: var(--f2-white); }

/* ---------- 결과 없음 ---------- */
.f2-sr__empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px var(--f2-list-pad) 0; text-align: center; }
.f2-sr__empty-title { font-size: var(--f2-fs-22); }
.f2-sr__empty-text { color: var(--f2-text-sub); }
.f2-sr__suggest { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--f2-sp-8); font-size: var(--f2-fs-13); }
.f2-sr__suggest span { color: var(--f2-text-sub); }
.f2-sr__suggest a { padding: 4px 12px; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); font-weight: 700; }
.f2-sr__suggest a:hover { text-decoration: none; }
.f2-sr__empty-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--f2-sp-8); margin-top: 6px; }
.f2-sr__empty-btns .f2-btn { height: 46px; padding: 0 22px; border-radius: var(--f2-r-4); }
.f2-sr__poptitle { display: block; margin: 40px var(--f2-list-pad) 16px; font-size: var(--f2-fs-18); }
.f2-sr__pop { padding: 0 var(--f2-list-pad); }

/* ---------- 모바일 ---------- */
@media (max-width: 767px) {
  .f2-sr { padding-bottom: 48px; }
  .f2-sr__top { display: none; }   /* 검색창은 머리(mobile shop.head page=search) */
  .f2-sr__ac { position: fixed; top: 60px; right: 0; bottom: 0; left: 0; z-index: 150; display: block; padding: 8px 16px; overflow-y: auto; border: 0; border-radius: 0; box-shadow: none; }
  .f2-ac__col + .f2-ac__col { margin-top: 4px; }
  .f2-ac__title { display: none; }
  .f2-ac__link { display: flex; align-items: center; gap: var(--f2-sp-10); min-height: 52px; padding: 0; border-bottom: 1px solid #F0F0EE; font-size: var(--f2-fs-14); }
  .f2-ac__item { grid-template-columns: 48px minmax(0, 1fr); padding: 8px 0; }
  .f2-ac__img { width: 48px; height: 48px; }
  .f2-ac__all { display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 0; font-weight: 800; }

  .f2-sr__input { gap: 28px; width: auto; padding: 20px 16px 0; }
  .f2-sr__rchip { height: 34px; padding: 0 8px 0 14px; border-radius: var(--f2-r-4); }
  .f2-sr__hot a { height: 44px; }

  .f2-sr__head { padding: 16px 16px 0; }
  .f2-sr__h1 { font-size: var(--f2-fs-20); }
  .f2-sr__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin-top: 10px; }
  .f2-sr__tabs button { height: 46px; font-size: var(--f2-fs-13); }
  .f2-sr__hits { padding: 8px 16px 0; }

  .f2-sr__mcats { display: flex; gap: var(--f2-sp-6); padding: 12px 16px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .f2-sr__mcats::-webkit-scrollbar { display: none; }
  .f2-sr__mcats .f2-chip { flex: none; }
  .f2-sr__mbar { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 16px; border-bottom: 1px solid #F0F0EE; font-size: var(--f2-fs-13); }
  .f2-sr__mbar .f2-list__msort { position: relative; display: flex; align-items: center; height: 44px; font-weight: 700; }
  .f2-sr__mbar .f2-list__msort select { position: absolute; inset: 0; width: 100%; opacity: 0; }
  .f2-sr__body { display: block; padding: 16px 8px 0; }
  .f2-sr__filter, .f2-sr__bar { display: none; }
  .f2-sr__grid { gap: 24px 8px; }

  .f2-sr__empty { gap: 10px; padding: 48px 20px 0; }
  .f2-sr__empty-title { font-size: 19px; }
  .f2-sr__empty-text { font-size: var(--f2-fs-13); }
  .f2-sr__empty-btns { flex-direction: column; width: 100%; }
  .f2-sr__empty-btns .f2-btn { width: 100%; height: 50px; border-radius: var(--f2-r-4); }
  .f2-sr__kakao { border-color: var(--f2-lime); background: var(--f2-lime); color: var(--f2-black); }
  .f2-sr__poptitle { margin: 36px 16px 12px; font-size: var(--f2-fs-16); }
  .f2-sr__pop { padding: 0 16px; }
}

/* 모바일 검색 머리(Search-Result-M 60px: 뒤로 · 입력칸) — layout.css의 .f2-mhd 위에 */
.f2-mhd--search { gap: var(--f2-sp-4); padding: 0 12px 0 4px; }
.f2-mhd__sform { position: relative; flex: 1; display: flex; align-items: center; gap: var(--f2-sp-8); height: 44px; padding: 0 6px 0 14px; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); }
.f2-mhd__sform input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 700; }   /* 모바일 규칙 1: 16px */
.f2-mhd__sform input::-webkit-search-cancel-button { display: none; }
.f2-mhd__sform button { display: flex; align-items: center; justify-content: center; width: 32px; height: 44px; padding: 0; border: 0; background: none; }
.f2-mhd__sclear span { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: var(--f2-r-4); background: var(--f2-text-sub); color: var(--f2-white); font-size: var(--f2-fs-12); }   /* 지우기 ×: #CFCFCF 위 흰 글자 1.6:1 → #6B6B6B(결정 1-1) */
