/* ==========================================================================
   서브 페이지 공통 요소: 분류 칩, 검색창, 고객 지원 탭, 태그, 페이지 번호
   ========================================================================== */

/* 고객 지원 탭이 있는 페이지는 위치 표시 아래 간격이 좁습니다 */
.hk-sub--tabs { padding-top: 32px; }

.hk-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 80px;
    border: 1px solid var(--hk-line);
}
.hk-tabs__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 8px;
    font-size: 20px;
    font-weight: 500;
    line-height: 25px;
    text-align: center;
    transition: background-color .2s;
}
.hk-tabs__item + .hk-tabs__item { border-left: 1px solid var(--hk-line); }
.hk-tabs__item:hover { background: #f7f7f7; }
.hk-tabs__item.is-active { background: #f0f0f0; }

/* 분류 칩 + 검색 */
.hk-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 40px;
}
.hk-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hk-chip {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 24px;
    border: 1px solid var(--hk-line);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    white-space: nowrap;
    transition: border-color .2s, color .2s;
}
.hk-chip:hover { border-color: #b8c7d8; }
.hk-chip.is-active { border-color: var(--hk-blue); color: var(--hk-blue); }

.hk-search {
    position: relative;
    flex: 0 0 320px;
    height: 40px;
}
.hk-search__input {
    width: 100%;
    height: 100%;
    padding: 0 44px 0 16px;
    border: 1px solid var(--hk-line);
    border-radius: 8px;
    background: var(--hk-white);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.hk-search__input::placeholder { color: #9a9a9a; }
.hk-search__input:focus { border-color: var(--hk-blue); }
.hk-search__input::-webkit-search-cancel-button { display: none; }
.hk-search__btn {
    position: absolute;
    right: 8px;
    top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: #a0a0a0;
}
.hk-search__btn:hover { color: var(--hk-blue); }

/* 태그 */
.hk-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    height: 25px;
    padding: 0 16px;
    border: 1px solid var(--hk-line);
    border-radius: 20px;
    background: var(--hk-white);
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    white-space: nowrap;
}
.hk-tag:empty { display: none; }

/* 페이지 번호 */
.hk-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}
.hk-pager__pages { display: flex; margin: 0 16px; }
.hk-pager__num,
.hk-pager__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
}
.hk-pager__num { color: var(--hk-page-off); transition: color .2s; }
.hk-pager__num:hover { color: #777; }
.hk-pager__num.is-current { color: var(--hk-blue); }
.hk-pager__arrow { color: var(--hk-black); }
.hk-pager__arrow .hk-icon { width: 7px; height: 13px; }
.hk-pager__arrow.is-disabled { color: #ccc; }

.hk-empty {
    padding: 100px 0;
    border-top: 1px solid var(--hk-line);
    border-bottom: 1px solid var(--hk-line);
    color: var(--hk-muted);
    text-align: center;
}

@media (max-width: 1000px) {
    .hk-toolbar { flex-direction: column; align-items: stretch; }
    .hk-search { flex: none; width: 100%; max-width: 420px; }
    .hk-tabs { margin-bottom: 48px; }
    .hk-pager { margin-top: 56px; }
}

@media (max-width: 500px) {
    .hk-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--hk-gutter) * -1); padding: 0 var(--hk-gutter) 4px; scrollbar-width: none; }
    .hk-chips::-webkit-scrollbar { display: none; }
    .hk-chip { height: 36px; padding: 0 18px; }
    .hk-tabs__item { height: 48px; font-size: 15px; line-height: 1.3; }
    .hk-sub--tabs { padding-top: 24px; }
    .hk-tabs { margin-bottom: 36px; }
    .hk-toolbar { margin-bottom: 28px; }
}
