/* 좌우 폭은 .l-page(1200px) 그대로 — 검색결과 페이지와 같은 폭으로 맞춘다 */
.brand-hall {
    padding: 20px 0 100px;
}

.brand-hall__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

/* 탭 크기·간격은 GNB 1뎁스(16px) / 검색결과 탭(.srt-tab)과 동일 */
.bh-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 10px;
    border-bottom: 1px solid #e9e9e9;
}

.bh-tab {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #999;
    padding: 16px 0 18px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    cursor: pointer;
}

.bh-tab.is-active {
    color: #111;
    font-weight: 700;
    border-bottom-color: #111;
}

.bh-tab:not(.is-active):hover {
    color: #555;
}

.bh-tab__count {
    display: inline-block;
    margin-left: 4px;
    font-style: normal;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #207eff;
}

/* 브랜드 수를 모르는 첫 방문에만 세 자리 폭을 예약한다(최대 164개) — 재방문은 캐시값으로 처음부터 최종 폭 */
.bh-tabs--reserve .bh-tab__count {
    min-width: 3ch;
}

.brand-hall__section {
    margin-top: 32px;
}

.brand-hall__section-title {
    font-size: 16px;
    font-weight: 700;
}

.brand-hall__section-title em {
    margin-left: 6px;
    font-style: normal;
    font-weight: 500;
    color: #767676;
}

.bh-rail {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.bh-rail__item {
    flex: 0 0 120px;
    text-align: center;
}

.bh-rail__item a {
    display: block;
}

.bh-rail .bh-thumb {
    width: 120px;
    height: 120px;
    border-radius: 12px;
}

.bh-rail__name {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 셀 그리드·타이포는 검색결과 브랜드 탭(.srt-brand-grid / .srt-brand-cell)과 동일 */
.bh-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.bh-cell a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.bh-cell a:hover {
    border-color: #bbb;
}

/* 로딩 자리 확보 — 데이터가 늦게 와도 아래 영역(푸터)이 밀리지 않게 한 화면 높이를 잡아둔다 */
.bh-list--loading {
    min-height: 100vh;
    align-content: start;
}

.bh-cell--loading {
    height: 70px;
    border-radius: 8px;
    background: #f5f5f5;
}

.bh-rail__item--loading {
    height: 145px;
    border-radius: 12px;
    background: #f5f5f5;
}

.bh-cell__name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bh-cell__count {
    font-size: 14px;
    font-weight: 700;
    color: #207eff;
    flex-shrink: 0;
}

.bh-cell__arrow {
    color: #c9c9c9;
    font-size: 13px;
    margin-left: 4px;
}

.bh-thumb {
    display: block;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.bh-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bh-empty {
    grid-column: 1 / -1;
    padding: 60px 0;
    text-align: center;
    color: #767676;
}
