/* block:bf-search/results 1.1.0 */
/* 통합검색 결과 — 테마 색 변수(--bfc-* 커뮤니티 테마, 없으면 --bf-color-* 빌더 디자인)를 따른다 */
.bfx {
    --x-primary: var(--bfc-primary, var(--bf-color-primary, #0ea5e9));
    --x-soft: color-mix(in srgb, var(--x-primary) 9%, transparent);
    --x-line: var(--bfc-line, var(--bf-color-border, #e5e7eb));
    --x-ink: var(--bfc-ink, var(--bf-color-text, #1f2937));
    --x-muted: var(--bfc-muted, var(--bf-color-muted, #6b7280));
    --x-faint: var(--bfc-faint, #9ca3af);
    --x-surface: var(--bfc-surface, var(--bf-color-bg, #fff));
    --x-radius: var(--bfc-radius, var(--bf-radius, 6px));
    --x-point: var(--bfc-point, #ff6b5b);
    color: var(--x-ink);
}
.bfx a { color: inherit; text-decoration: none; }
.bfx .bf-icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; vertical-align: -0.125em; }
.bfx-off { padding: 40px; text-align: center; color: #888; }

/* 검색창 */
.bfx-box { display: flex; max-width: 760px; height: 54px; margin: 0 auto 18px; border: 2px solid var(--x-primary); border-radius: var(--x-radius); background: var(--x-surface); overflow: hidden; }
.bfx-box__input { flex: 1; min-width: 0; padding: 0 18px; border: 0; background: transparent; color: var(--x-ink); font-size: 16px; outline: none; }
.bfx-box__btn { width: 64px; border: 0; background: var(--x-primary); color: #fff; font-size: 22px; cursor: pointer; }

/* 탭 줄 */
.bfx-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--x-line); }
.bfx-tabs__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.bfx-tabs__list::-webkit-scrollbar { display: none; }
.bfx-tabs__list a { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 46px; padding: 0 12px; color: var(--x-muted); font-weight: 600; white-space: nowrap; }
.bfx-tabs__list a i { color: var(--x-faint); font-size: 12px; font-style: normal; font-weight: 500; }
.bfx-tabs__list a:hover { color: var(--x-ink); }
.bfx-tabs__list a.is-on { color: var(--x-ink); font-weight: 800; }
.bfx-tabs__list a.is-on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; background: var(--x-primary); }
.bfx-tabs__list a.is-on i { color: var(--x-primary); }
.bfx-tabs__tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bfx-tabs__sep { width: 1px; height: 16px; background: var(--x-line); }
.bfx-period { display: flex; gap: 2px; }
.bfx-period a { flex-shrink: 0; padding: 4px 8px; white-space: nowrap; border-radius: var(--x-radius); color: var(--x-muted); font-size: 13px; }
.bfx-period a.is-on { background: var(--x-soft); color: var(--x-primary); font-weight: 700; }

/* 검색 탭을 헤더 바로 아래 흰 띠로 (bfx--top). 띠는 그림자로 화면 가로 끝까지 칠해 가로 스크롤이 생기지 않게 한다 */
.bf-area:has(.bfx--top) { padding-top: 0 !important; }
.bfx--top .bfx-tabs { margin-bottom: 22px; border-bottom: 0; background: var(--x-surface); box-shadow: 0 0 0 100vmax var(--x-surface), 0 1px 0 100vmax var(--x-line); clip-path: inset(0 -100vmax -1px); }
.bfx-pill { display: inline-flex; flex-shrink: 0; align-items: center; gap: 2px; white-space: nowrap; height: 30px; padding: 0 12px; border: 1px solid var(--x-line); border-radius: 999px; background: var(--x-surface); color: var(--x-muted); font-size: 13px; font-weight: 600; }
.bfx-pill:hover { border-color: var(--x-primary); color: var(--x-primary); }
.bfx-pill.is-on { border-color: var(--x-primary); background: var(--x-primary); color: #fff; }

/* 본문 · 사이드 */
.bfx-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.bfx.has-side .bfx-body { grid-template-columns: minmax(0, 1fr) 320px; }
.bfx-main { min-width: 0; }
.bfx-side { display: grid; gap: 16px; }

.bfx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bfx-head__sum { margin: 0; color: var(--x-muted); }
.bfx-head__sum b { color: var(--x-ink); }
.bfx-head__sum b:last-child { color: var(--x-primary); }

.bfx-related { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bfx-related > span { flex-shrink: 0; color: var(--x-muted); font-size: 13px; font-weight: 700; }
.bfx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bfx-chips--center { justify-content: center; margin-top: 18px; }
.bfx-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--x-soft); color: var(--x-ink); font-size: 13px; white-space: nowrap; }
.bfx-chip i { color: var(--x-faint); font-size: 11.5px; font-style: normal; }
.bfx-chip:hover { color: var(--x-primary); }
.bfx-chip.is-on { background: var(--x-primary); color: #fff; font-weight: 700; }
.bfx-chip.is-on i { color: rgba(255, 255, 255, .8); }

.bfx-filter { display: grid; gap: 10px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-surface); }
.bfx-filter__row { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 10px; }
.bfx-filter__label { padding-top: 6px; color: var(--x-muted); font-size: 13px; font-weight: 700; }
/* 고르지 않은 칩은 옅은 회색 (고른 칩만 대표 색) */
.bfx-filter .bfx-chip:not(.is-on) { background: color-mix(in srgb, var(--x-ink) 6%, var(--x-surface)); }
.bfx-filter .bfx-chip:not(.is-on):hover { background: color-mix(in srgb, var(--x-ink) 10%, var(--x-surface)); color: var(--x-ink); }

/* 섹션 (통합검색 탭) */
.bfx-sec { margin-bottom: 18px; padding: 18px 20px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-surface); }
.bfx-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bfx-sec__head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.bfx-sec__head h2 i { color: var(--x-primary); font-style: normal; font-weight: 700; }
.bfx-sec__head a { display: inline-flex; align-items: center; color: var(--x-muted); font-size: 13px; }
.bfx-sec__head a:hover { color: var(--x-primary); }

/* 목록 공통 */
.bfx-list > * { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--x-line); }
.bfx-list > *:first-child { border-top: 0; }
.bfx-tag { display: block; margin-bottom: 3px; color: var(--x-primary); font-size: 12.5px; font-weight: 700; }
.bfx-post__title { display: block; font-size: 16px; font-weight: 700; line-height: 1.45; }
.bfx-post__title:hover { text-decoration: underline; }
.bfx-post__text { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--x-muted); font-size: 14px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bfx b { color: var(--x-primary); font-weight: 800; }
.bfx-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; color: var(--x-faint); font-size: 12.5px; }
.bfx-meta span { display: inline-flex; align-items: center; gap: 3px; }
.bfx-meta b { color: var(--x-muted); font-weight: 700; }
.bfx-lock { margin-right: 3px; color: var(--x-faint); }
.bfx-post__thumb { flex: 0 0 108px; height: 76px; overflow: hidden; border-radius: var(--x-radius); background: var(--x-soft); }
.bfx-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bfx-post__body { min-width: 0; flex: 1; }

.bfx-file__icon { display: inline-flex; flex: 0 0 40px; align-items: center; justify-content: center; height: 40px; border-radius: var(--x-radius); background: var(--x-primary); color: #fff; font-size: 20px; }
.bfx-file > div { min-width: 0; flex: 1; }
.bfx-qna { align-items: flex-start; }
.bfx-qna__tag { flex-shrink: 0; padding: 3px 9px; border-radius: 4px; background: var(--x-primary); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bfx-qna > div { min-width: 0; flex: 1; }
.bfx-qna__date { flex-shrink: 0; color: var(--x-faint); font-size: 12.5px; }

/* 카드형 · 이미지형 격자 */
.bfx-grid { display: grid; gap: 14px; }
.bfx-grid--card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bfx-grid--card.is-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bfx-card { display: grid; align-content: start; gap: 4px; }
.bfx-card__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 640 / 448; overflow: hidden; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-surface); color: var(--x-faint); font-size: 28px; }
.bfx-card__img img { width: 100%; height: 100%; object-fit: contain; }
.bfx-card__title { margin-top: 6px; overflow: hidden; font-size: 14.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bfx-card__sub { color: var(--x-muted); font-size: 12.5px; }
.bfx-card__price { font-weight: 800; }
.bfx-card__score { display: inline-flex; align-items: center; gap: 2px; color: #f59e0b; font-size: 12.5px; font-weight: 700; }
.bfx-grid--img { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }

/* 상품 */
.bfx-grid--shop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bfx-shop { display: grid; align-content: start; gap: 3px; }
.bfx-shop__img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-surface); color: var(--x-faint); font-size: 28px; }
.bfx-shop__img img { width: 100%; height: 100%; object-fit: cover; }
.bfx-shop__badge { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 3px; background: rgba(17, 24, 39, .78); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 700; }
.bfx-shop.is-soldout .bfx-shop__img img { opacity: .55; }
.bfx-shop__cat { margin-top: 6px; color: var(--x-faint); font-size: 12px; }
.bfx-shop__title { overflow: hidden; font-size: 14.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bfx-shop:hover .bfx-shop__title { color: var(--x-primary); }
.bfx-shop__price { font-weight: 800; }
.bfx-shop__price del { color: var(--x-faint); font-size: 12.5px; font-weight: 500; }
.bfx-shop__price b { color: var(--x-point); }
.bfx-grid--img.is-wide { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bfx-img { display: grid; gap: 4px; }
.bfx-img img { width: 100%; aspect-ratio: 1; border-radius: var(--x-radius); object-fit: cover; background: var(--x-soft); }
.bfx-grid--img.is-wide .bfx-img img { aspect-ratio: 4 / 3; }
.bfx-img__cap { display: -webkit-box; overflow: hidden; font-size: 12.5px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bfx-img__src { color: var(--x-faint); font-size: 11.5px; }

/* 기술 Q&A */
.bfx-qa__count { display: grid; place-items: center; flex: 0 0 54px; height: 54px; border: 1px solid var(--x-line); border-radius: var(--x-radius); color: var(--x-muted); font-size: 11px; line-height: 1.2; }
.bfx-qa__count b { color: var(--x-ink); font-size: 17px; }
.bfx-qa.is-answered .bfx-qa__count { border-color: var(--x-primary); }
.bfx-qa.is-solved .bfx-qa__count { border-color: #0c8a73; background: #0c8a73; color: #fff; }
.bfx-qa.is-solved .bfx-qa__count b { color: #fff; }
.bfx-qa > div { min-width: 0; flex: 1; }
.bfx-qa__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.bfx-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.bfx-badge.is-open { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #b36b00; }
.bfx-badge.is-answered { background: var(--x-soft); color: var(--x-primary); }
.bfx-badge.is-solved { background: color-mix(in srgb, #10b981 16%, transparent); color: #0a8f77; }
.bfx-badge.is-bounty { border: 1px solid color-mix(in srgb, var(--x-primary) 45%, transparent); background: transparent; color: var(--x-primary); }

/* 빈 화면 · 아래 안내 · 쪽 번호 */
.bfx-empty { padding: 56px 20px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-surface); text-align: center; }
.bfx-empty__icon { color: var(--x-primary); font-size: 40px; }
.bfx-empty strong { display: block; margin-top: 10px; font-size: 17px; }
.bfx-empty p { margin: 6px 0 0; color: var(--x-muted); }
.bfx-empty .bfx-pill { margin-top: 14px; }
.bfx-foot { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--x-line); border-radius: var(--x-radius); color: var(--x-muted); text-align: center; }
.bfx-foot a { color: var(--x-primary); font-weight: 700; text-decoration: underline; }
.bfx-pager { display: flex; justify-content: center; gap: 4px; margin: 20px 0; }
.bfx-pager a, .bfx-pager strong { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: var(--x-radius); color: var(--x-muted); font-size: 14px; }
.bfx-pager a:hover { background: var(--x-soft); }
.bfx-pager strong { background: var(--x-primary); color: #fff; }

/* 사이드: 대표 카드 */
.bfx-know { padding: 18px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-surface); }
.bfx-know__label { display: inline-block; margin-bottom: 10px; padding: 2px 9px; border-radius: 999px; background: var(--x-soft); color: var(--x-primary); font-size: 12px; font-weight: 700; }
.bfx-know__top { display: flex; gap: 12px; }
.bfx-know__top img { flex: 0 0 84px; height: 62px; border-radius: var(--x-radius); object-fit: cover; }
.bfx-know__title { display: block; font-weight: 800; line-height: 1.4; }
.bfx-know__cat { display: block; color: var(--x-muted); font-size: 12.5px; }
.bfx-know__score { display: inline-flex; align-items: center; gap: 2px; color: #f59e0b; font-size: 13px; font-weight: 700; }
.bfx-know__text { margin: 10px 0 0; color: var(--x-muted); font-size: 13px; line-height: 1.6; }
.bfx-know__spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--x-radius); background: var(--x-soft); font-size: 12.5px; }
.bfx-know__spec dt { color: var(--x-muted); }
.bfx-know__spec dd { margin: 0; }
.bfx-know__price { margin: 12px 0 0; text-align: right; }
.bfx-know__price span { margin-right: 6px; color: var(--x-muted); font-size: 12.5px; }
.bfx-know__price b { color: var(--x-point); font-size: 22px; }
.bfx-know__btns { display: flex; gap: 6px; margin-top: 12px; }
.bfx-btn { display: inline-flex; flex: 1; align-items: center; justify-content: center; height: 38px; border: 1px solid var(--x-line); border-radius: var(--x-radius); font-size: 13px; font-weight: 700; }
.bfx-btn--primary { border-color: var(--x-primary); background: var(--x-primary); color: #fff !important; }

/* 사이드: 인기 검색어 */
.bfx-rank { padding: 16px 18px; border: 1px solid var(--x-line, var(--bfc-line, #e5e7eb)); border-radius: var(--x-radius, 6px); background: var(--x-surface, var(--bfc-surface, #fff)); }
.bfx-rank h2 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.bfx-rank h2 small { color: var(--x-faint, #9ca3af); font-size: 11.5px; font-weight: 500; }
.bfx-rank ol { margin: 0; padding: 0; list-style: none; }
.bfx-rank li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.bfx-rank li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
.bfx-rank li a:hover { color: var(--x-primary, #0ea5e9); }
.bfx-rank__n { flex: 0 0 18px; color: var(--x-faint, #9ca3af); font-weight: 800; text-align: center; }
.bfx-rank__n.is-top { color: var(--x-primary, #0ea5e9); }
.bfx-rank__ch { display: inline-flex; align-items: center; color: var(--x-faint, #9ca3af); font-size: 11.5px; }
.bfx-rank__ch.is-new { color: #10b981; font-weight: 800; }
.bfx-rank__ch.is-up { color: var(--x-point, #ff6b5b); }
.bfx-rank__ch.is-down { color: var(--x-primary, #0ea5e9); }
.bfx-rank__empty { margin: 0; color: #9ca3af; font-size: 13px; }

/* 사이드: 광고 */
.bfx-ad { position: relative; display: grid; align-content: end; gap: 4px; min-height: 150px; padding: 18px; overflow: hidden; border-radius: var(--x-radius); background: #12233a center / cover no-repeat; color: #fff !important; }
.bfx-ad::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(0, 0, 0, .55)); }
.bfx-ad > * { position: relative; }
.bfx-ad__label { position: absolute !important; top: 12px; left: 14px; padding: 1px 7px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 3px; font-size: 11px; }
.bfx-ad strong { font-size: 17px; line-height: 1.35; }
.bfx-ad span:not(.bfx-ad__label) { font-size: 12.5px; opacity: .85; }

/* 좁은 화면 */
@media (max-width: 1280px) {
    .bfx.has-side .bfx-body { grid-template-columns: minmax(0, 1fr) 290px; }
    .bfx-grid--img { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
    .bfx.has-side .bfx-body { grid-template-columns: minmax(0, 1fr); }
    .bfx-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .bfx-tabs { flex-wrap: wrap; }
    .bfx-tabs__tools { overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 8px; }
    .bfx-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .bfx-filter__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .bfx-filter__label { padding-top: 0; }
    .bfx-grid--card, .bfx-grid--card.is-wide, .bfx-grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bfx-grid--img, .bfx-grid--img.is-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bfx-side { grid-template-columns: minmax(0, 1fr); }
    .bfx-sec { padding: 14px; }
}

@media (max-width: 600px) {
    .bfx-box { height: 48px; }
    .bfx-post__thumb { flex-basis: 84px; height: 60px; }
    .bfx-qna { flex-wrap: wrap; }
    .bfx-qna__date { width: 100%; }
    .bfx-shop__price { white-space: nowrap; }
    .bfx-shop__price del { display: block; }
}

/* ------------------------------------------------------------------ 보강: 결과 머리 · 묶음 · 한 줄 · 인기 검색어 */
.bfx-head { margin-bottom: 14px; }
.bfx-head__sum { margin: 0; color: var(--x-ink); font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.4; }
.bfx-head__q { color: var(--x-primary); }
.bfx-head__sum b { margin-left: 4px; color: var(--x-ink); }
.bfx-head__sum small { margin-left: 1px; color: var(--x-muted); font-size: 15px; font-weight: 600; }

.bfx-related { padding: 12px 14px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-surface); }
.bfx-related > span { display: inline-flex; align-items: center; gap: 4px; }
.bfx-related .bfx-chip { border: 1px solid var(--x-line); background: var(--x-surface); color: var(--x-ink); font-weight: 600; transition: border-color .15s, color .15s, background-color .15s; }
.bfx-related .bfx-chip:hover { border-color: var(--x-primary); background: var(--x-soft); color: var(--x-primary); }

.bfx-sec { padding: 6px 20px 8px; }
.bfx-sec__head { margin: 0 -20px; padding: 14px 20px 12px; border-bottom: 1px solid var(--x-line); }
.bfx-sec__head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 16.5px; }
.bfx-sec__icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--x-radius); background: var(--x-soft); color: var(--x-primary); font-size: 16px; }
.bfx-sec__head h2 i { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--x-soft); font-size: 12.5px; }
.bfx-sec__more { height: 30px; padding: 0 6px 0 12px; border: 1px solid var(--x-line); border-radius: 999px; font-weight: 600; transition: border-color .15s, color .15s; }
.bfx-sec__more:hover { border-color: var(--x-primary); }

.bfx-list > * { position: relative; margin: 0 -12px; padding: 16px 12px; border-top-color: color-mix(in srgb, var(--x-line) 60%, transparent); border-radius: var(--x-radius); transition: background-color .15s; }
.bfx-list > *:hover { background: color-mix(in srgb, var(--x-primary) 4%, transparent); }
.bfx-list > *:hover + * { border-top-color: transparent; }
.bfx-post__title:hover, .bfx-list > *:hover .bfx-post__title { color: var(--x-primary); text-decoration: none; }
.bfx-tag { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.bfx-tag__board, .bfx-tag__cat { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 3px; font-size: 11.5px; font-weight: 700; }
.bfx-tag__board { background: var(--x-soft); color: var(--x-primary); }
.bfx-tag__cat { border: 1px solid var(--x-line); color: var(--x-muted); font-weight: 600; }
.bfx-meta { gap: 4px 14px; margin-top: 8px; }
.bfx-meta .bf-icon { font-size: 13px; opacity: .8; }

.bfx-rank { padding: 0; overflow: hidden; }
.bfx-rank h2 { margin: 0; padding: 14px 16px 12px; border-bottom: 1px solid var(--x-line); }
.bfx-rank ol { padding: 6px 8px 8px; }
.bfx-rank li { gap: 10px; padding: 7px 8px; border-radius: var(--x-radius); transition: background-color .15s; }
.bfx-rank li:hover { background: color-mix(in srgb, var(--x-primary) 6%, transparent); }
.bfx-rank__n { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; height: 22px; border-radius: 4px; color: var(--x-muted); font-size: 12.5px; }
.bfx-rank__n.is-top { background: var(--x-primary); color: #fff; }
.bfx-rank__ch { min-width: 22px; justify-content: flex-end; font-weight: 700; }
.bfx-rank__ch.is-new { padding: 0 5px; min-width: 0; border-radius: 3px; background: color-mix(in srgb, #10b981 14%, transparent); font-size: 10.5px; }

.bfx-empty { padding: 64px 20px; }
.bfx-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--x-soft); font-size: 30px; }

@media (max-width: 600px) {
    .bfx-head__sum { font-size: 17px; }
    .bfx-sec { padding: 4px 14px 6px; }
    .bfx-sec__head { margin: 0 -14px; padding: 12px 14px 10px; }
    .bfx-list > * { margin: 0 -8px; padding: 14px 8px; }
}
/* 헤더 상단 고정이 켜져 있으면 맨 위 검색 탭 줄도 헤더 바로 밑에 붙어 함께 따라온다 (헤더 한 덩어리처럼 보이게)
 * --bf-sticky-h: 붙어 있는 헤더 높이 (빌더 bf.js 가 잰다). 헤더 그림자는 끄고 탭 줄 아래 선으로 나눈다 */
.bf-site:has(> .bf-region--header.is-sticky) .bfx--top .bfx-tabs { position: sticky; top: var(--bf-sticky-h, 0px); z-index: 90; }
.bf-site:has(.bfx--top) > .bf-region--header.is-stuck { box-shadow: none; }

/* ---------- 브랜드 진열 · 사이트 바로가기 (통합검색 탭 맨 위) ---------- */
.bfx-promo { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.bfx-adtag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid var(--x-line); border-radius: 4px; color: var(--x-muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.bfx-adtag.is-reg { border-color: color-mix(in srgb, var(--x-primary) 35%, transparent); color: var(--x-primary); }

.bfx-brand { padding: 18px 20px 20px; border: 1px solid var(--x-line); border-top: 3px solid var(--x-primary); border-radius: var(--x-radius); background: var(--x-surface); }
.bfx-brand__head { display: flex; align-items: center; gap: 12px; }
.bfx-brand__logo { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; border: 1px solid var(--x-line); border-radius: 10px; background: var(--x-soft); color: var(--x-primary); font-size: 19px; font-weight: 900; }
.bfx-brand__logo img { width: 100%; height: 100%; object-fit: cover; }
.bfx-brand__who { display: flex; flex-direction: column; min-width: 0; margin-right: auto; line-height: 1.35; }
.bfx-brand__name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.bfx a.bfx-brand__name:hover { color: var(--x-primary); }
.bfx-brand__sub { color: var(--x-muted); font-size: 12.5px; }
.bfx-brand__notice { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: var(--x-radius); background: var(--x-soft); color: var(--x-ink); font-size: 14px; font-weight: 600; }
.bfx-brand__notice > .bf-icon:first-child { color: var(--x-primary); font-size: 16px; }
.bfx-brand__notice span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfx-brand__notice > .bf-icon:last-child { color: var(--x-muted); }
.bfx a.bfx-brand__notice:hover { color: var(--x-primary); }
.bfx-brand__body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.bfx-brand__body.is-text { grid-template-columns: minmax(0, 1fr); }
.bfx-brand__visual { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--x-radius); background: var(--x-soft); }
.bfx-brand__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bfx-brand__visual:hover img { transform: scale(1.03); }
.bfx-brand__text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.bfx-brand__title { font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: -.01em; }
.bfx a.bfx-brand__title:hover { color: var(--x-primary); text-decoration: underline; text-underline-offset: 3px; }
.bfx-brand__desc { margin: 8px 0 0; color: var(--x-muted); font-size: 14px; line-height: 1.65; }
.bfx-brand__chips, .bfx-site__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bfx-brand__chip, .bfx-site__chip { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border: 1px solid var(--x-line); border-radius: 999px; background: var(--x-surface); color: var(--x-ink); font-size: 13px; font-weight: 600; white-space: nowrap; transition: border-color .15s, color .15s, background-color .15s; }
.bfx a.bfx-brand__chip:hover, .bfx a.bfx-site__chip:hover { border-color: var(--x-primary); background: var(--x-soft); color: var(--x-primary); }
.bfx-brand__prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--x-line); list-style: none; }
.bfx-brand__prod { display: flex; flex-direction: column; gap: 8px; }
.bfx-brand__prodimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--x-radius); background: var(--x-soft); color: var(--x-faint); font-size: 26px; }
.bfx-brand__prodimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bfx-brand__prod:hover img { transform: scale(1.04); }
.bfx-brand__cap { overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bfx a.bfx-brand__prod:hover .bfx-brand__cap { color: var(--x-primary); }

.bfx-sites { border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-surface); }
.bfx-site { display: flex; gap: 18px; padding: 16px 20px; }
.bfx-site + .bfx-site { border-top: 1px solid var(--x-line); }
.bfx-site__main { flex: 1; min-width: 0; }
.bfx-site__src { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.bfx-site__mark { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 5px; flex-shrink: 0; border-radius: 999px; background: var(--x-primary); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: -.02em; }
.bfx-site__name { flex-shrink: 0; font-weight: 700; }
.bfx-site__url { min-width: 0; overflow: hidden; color: var(--x-muted); text-overflow: ellipsis; white-space: nowrap; }
.bfx-site__title { display: inline-block; margin-top: 8px; color: var(--x-primary); font-size: 17px; font-weight: 700; line-height: 1.4; }
.bfx a.bfx-site__title { color: var(--x-primary); }
.bfx a.bfx-site__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.bfx-site__desc { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: var(--x-muted); font-size: 14px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bfx-site__promo { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--x-point); font-size: 13.5px; font-weight: 700; }
.bfx a.bfx-site__promo:hover span { text-decoration: underline; }
.bfx-site__chips { margin-top: 10px; }
.bfx-site__chip { height: 28px; padding: 0 11px; font-size: 12.5px; }
.bfx-site__thumb { display: block; width: 116px; height: 116px; flex-shrink: 0; overflow: hidden; border-radius: var(--x-radius); background: var(--x-soft); }
.bfx-site__thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 600px) {
    .bfx-brand { padding: 14px 14px 16px; }
    .bfx-brand__body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .bfx-brand__title { font-size: 17px; }
    .bfx-brand__prods { gap: 8px; }
    .bfx-brand__chips, .bfx-site__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .bfx-site { gap: 12px; padding: 14px; }
    .bfx-site__thumb { width: 84px; height: 84px; }
    .bfx-site__url { display: none; }
}

/* 브랜드 상품이 3개를 넘으면 옆으로 밀어 보기 */
.bfx-brand__slide { position: relative; }
.bfx-brand__prods.is-swipe { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bfx-brand__prods.is-swipe::-webkit-scrollbar { display: none; }
.bfx-brand__prods.is-swipe > li { scroll-snap-align: start; }
.bfx-brand__nav { position: absolute; top: calc(50% - 8px); z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--x-line); border-radius: 50%; background: var(--x-surface); color: var(--x-ink); font-size: 20px; box-shadow: 0 2px 10px rgba(15, 23, 42, .16); cursor: pointer; transition: opacity .15s, color .15s, border-color .15s; }
.bfx-brand__nav:hover { border-color: var(--x-primary); color: var(--x-primary); }
.bfx-brand__nav.is-prev { left: -16px; }
.bfx-brand__nav.is-next { right: -16px; }
.bfx-brand__nav:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
    .bfx-brand__prods.is-swipe { grid-auto-columns: 42%; }
    .bfx-brand__nav { display: none; }
}

/* 다른 기능이 넣는 결과 묶음 (공식홈: 마켓 아이템) — 그림 카드 4칸 */
.bfx-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 14px 0 12px; list-style: none; }
.bfx-more__item { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.bfx-more__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-soft); color: var(--x-faint); font-size: 28px; }
.bfx-more__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bfx-more__item:hover .bfx-more__img img { transform: scale(1.04); }
.bfx-more__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bfx-more__sub { color: var(--x-muted); font-size: 12px; }
.bfx-more__title { overflow: hidden; font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bfx a.bfx-more__item:hover .bfx-more__title { color: var(--x-primary); }
.bfx-more__desc { display: -webkit-box; overflow: hidden; color: var(--x-muted); font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bfx-more__meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 12.5px; }
.bfx-more__meta b { color: var(--x-primary); font-weight: 800; }
.bfx-more__meta span { color: #f59e0b; font-weight: 700; }
@media (max-width: 900px) {
    .bfx-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bfx-more__foot { display: flex; justify-content: center; padding: 6px 0 14px; }

