/* [pliki 테마] 상품 목록 / 검색결과 */

.pk-list { padding-top: 30px; }

/* 타이틀 + 대분류 탭 */
.pk-list-hd { text-align: center; margin-bottom: 26px; }
.pk-list-title { font-size: 26px; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; }
.pk-list-tabs {
    display: flex; justify-content: center; gap: 26px; border-bottom: 1px solid var(--line);
    padding-bottom: 0; overflow-x: auto; scrollbar-width: none;
}
.pk-list-tabs::-webkit-scrollbar { display: none; }
.pk-list-tabs a {
    font-size: 15px; font-weight: 600; color: #555; padding: 8px 2px 12px; white-space: nowrap;
    position: relative;
}
.pk-list-tabs a.active { color: #000; font-weight: 800; }
.pk-list-tabs a.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #000;
}

/* 본문: 필터 + 그리드 */
.pk-list-body { display: flex; gap: 40px; align-items: flex-start; }
.pk-filter { width: 200px; flex-shrink: 0; position: sticky; top: 76px; }
.pk-filter h3 { font-size: 16px; font-weight: 800; padding-bottom: 14px; border-bottom: 1px solid #111; }
.pk-filter-grp { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pk-filter-grp h4 { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 12px; }
.pk-filter-grp li { margin-bottom: 9px; }
.pk-filter-grp a { font-size: 13px; color: #666; }
.pk-filter-grp a.on { color: #000; font-weight: 700; }
.pk-filter-grp a:hover { color: #000; }

.pk-list-main { flex: 1; min-width: 0; }
.pk-list-bar {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
}
.pk-list-cnt { font-size: 14px; color: #333; }
.pk-list-cnt b { font-weight: 800; }
.pk-list-sort { position: relative; }
.pk-sort-btn { font-size: 13px; font-weight: 600; color: #333; display: flex; align-items: center; gap: 6px; }
.pk-sort-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; min-width: 130px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 6px;
}
.pk-list-sort.open .pk-sort-menu { display: block; }
.pk-sort-menu a { display: block; padding: 9px 12px; font-size: 13px; color: #444; border-radius: 6px; }
.pk-sort-menu a:hover { background: var(--bg-soft); }
.pk-sort-menu a.on { font-weight: 700; color: #000; }

.pk-grid-list { grid-template-columns: repeat(4, 1fr); gap: 34px 16px; }
.pk-noitem { text-align: center; color: var(--gray); padding: 90px 0; font-size: 14px; }

/* 검색결과 헤더 */
.pk-sch-result-hd { text-align: center; padding: 34px 0 6px; }
.pk-sch-result-hd h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.8px; }
.pk-sch-result-hd h2 em { font-style: normal; color: var(--red); }
.pk-sch-result-hd p { font-size: 13px; color: var(--gray); margin-top: 6px; }

/* 반응형 */
@media (max-width: 1024px) {
    .pk-grid-list { grid-template-columns: repeat(3, 1fr); }
    .pk-list-body { gap: 24px; }
    .pk-filter { width: 170px; }
}
@media (max-width: 768px) {
    .pk-list { padding-top: 18px; }
    .pk-list-title { font-size: 20px; margin-bottom: 12px; }
    .pk-list-tabs { justify-content: flex-start; gap: 18px; }
    .pk-list-body { display: block; }
    /* 필터: 가로 스크롤 칩으로 변환 */
    .pk-filter { width: auto; position: static; margin-bottom: 16px; }
    .pk-filter h3 { display: none; }
    .pk-filter-grp { border: 0; padding: 0 0 4px; }
    .pk-filter-grp h4 { display: none; }
    .pk-filter-grp ul {
        display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; scrollbar-width: none;
    }
    .pk-filter-grp ul::-webkit-scrollbar { display: none; }
    .pk-filter-grp li { margin: 0; }
    .pk-filter-grp a {
        display: inline-block; padding: 7px 13px; border: 1px solid var(--line);
        border-radius: 999px; font-size: 13px; white-space: nowrap; background: #fff;
    }
    .pk-filter-grp a.on { border-color: #000; background: #000; color: #fff; }
    .pk-grid-list { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
}
