/* 탐색기 공용 모양 (2026-10-21 사장님 · 타일 탐색기 · 악세사리 탐색기 여백·칸 높이 다 맞춤)
     · 값은 타일 탐색기(tile.html) 것 그대로 · 두 페이지가 이 한 파일을 같이 쓴다
     · 페이지마다 다른 것(상세 창 · 사진 넘기기)은 각 페이지에 */

/* ── 아이보리 띠 · 다른 홈페이지 제목 띠와 같은 240 (내용 171 + 35 + 34) ── */
.tool-head{background:var(--bg-alt);border-bottom:1px solid var(--line);padding:35px 0 34px;}
.tool-head .search-section{padding-top:0;}

/* ── 검색 ── */
.search-section { padding: 12px 16px 0; max-width: 900px; margin: 0 auto; }
.search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--border2);
  border-radius: 10px; padding: 9px 14px; margin-bottom: 0;
}
.search-wrap input {
  border: none; background: transparent; outline: none;
  font-size: 0.85rem; font-family: var(--sans); color: var(--text); flex: 1;
}
.search-wrap input::placeholder { color: var(--muted); }

/* ── 필터 칩 · 줄은 넘치면 옆으로 밀기 ── */
.filter-bar { padding: 10px 16px 0; display: flex; flex-direction: column; gap: 6px; max-width: 900px; margin: 0 auto; }
.filter-row { display: flex; flex-wrap: nowrap; overflow-x: auto; align-items: center; gap: 6px; scrollbar-width: none; min-height: 24px; }   /* 칩이 하나도 없어도 줄 높이 그대로 */
.filter-row::-webkit-scrollbar { display: none; }
.filter-label { font-size: 0.62rem; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; align-self: center; flex-shrink: 0; }
.chip { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; border: 1px solid var(--border2); background: var(--panel2); color: var(--text); cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all .12s; font-family: var(--sans); display: inline-flex; align-items: center; gap: 4px; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: white; }
/* 위 단계를 아직 안 골라 못 누르는 칩 · 공용 못 누르는 버튼 모양 (회색 바탕 · 흰 글자 · 0.6 · 금지 커서) */
.chip:disabled, .chip:disabled:hover { background: var(--border2); border-color: var(--border2); color: #fff; opacity: .6; cursor: not-allowed; }
.chip .swatch-dot { width: 8px; height: 8px; border-width: 1px; box-shadow: none; }

/* ── 결과 수 + 정렬 ── */
.results-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 0; max-width: 900px; margin: 0 auto; gap: 8px; }
.results-count { font-size: 0.78rem; color: var(--muted); }
.results-count strong { color: var(--text); }
.sort-btns { display: flex; gap: 5px; flex-shrink: 0; }
.sort-btn { padding: 3px 9px; border-radius: 16px; font-size: 0.72rem; border: 1px solid var(--border2); background: var(--panel2); color: var(--muted); cursor: pointer; white-space: nowrap; font-family: var(--sans); transition: all .12s; }
.sort-btn:hover { border-color: var(--primary); color: var(--primary); }
.sort-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ── 카드 · 사진 정사각 + 글 세 줄 + 가격 줄 (빈 줄은 페이지가 &nbsp; 를 넣어 높이 같게) ── */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; padding: 12px 16px 32px; max-width: 900px; margin: 0 auto; }
@media (max-width: 480px) { .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.tile-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tile-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.tile-thumb-wrap { aspect-ratio: 1; background: var(--panel2); position: relative; overflow: hidden; }
.tile-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 사진 없음 · 「사진 준비 중입니다」 그림 (2026-10-21 사장님 · 비워 두지 말 것) */
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: var(--panel2) url('/images/goods/_ready.webp') center / cover no-repeat; }
.swatch-row { position: absolute; bottom: 7px; right: 7px; display: flex; gap: 4px; }
.swatch-dot { display: inline-block; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.18); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.tile-info { padding: 8px 10px 10px; }
.tile-name { font-size: 0.8rem; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.size-badge { font-size: 0.6rem; font-weight: 500; color: var(--muted); background: var(--panel2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; margin-left: 5px; white-space: nowrap; vertical-align: middle; }
.tile-colors { font-size: 0.67rem; color: var(--muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); }
.tile-brand { font-size: 0.67rem; color: var(--muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-footer { display: flex; align-items: center; justify-content: flex-end; margin-top: 4px; min-height: 14px; }
.tile-price { font-size: 0.82rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 56px 16px; color: var(--muted); font-size: 0.85rem; }
.loading { grid-column: 1/-1; text-align: center; padding: 60px 16px; color: var(--muted); font-size: 0.85rem; }

/* ── 상세 창 정보 칸 · 이름표 10 · 값 12 굵게 ── */
.info-cell { background: var(--panel2); border-radius: 8px; padding: 8px 10px; }
.info-cell-label { font-size: 10px; color: var(--muted); margin-bottom: 1px; }
.info-cell-val { font-size: 12px; font-weight: 600; }
