/* footer:bf-store/mall 0.1.0 */
/* 스토어 바닥: 연한 회색 바탕, 메뉴 칸 · 고객센터 · 아래 줄 회사 정보 */
.bf-region--footer:has(.bfo-ft) { margin-top: 0; }
.bfo-ft { border-top: 1px solid var(--bfc-line, #e5e5e7); background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink, #111); }
.bfo-ft .bfo-in { max-width: var(--bfo-wide, 1440px); margin: 0 auto; padding: 0 var(--bf-gutter, 20px); box-sizing: border-box; }
.bfo-ft__in { padding-top: 48px !important; padding-bottom: 40px !important; }
.bfo-ft__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.bfo-ft__top.has-support { grid-template-columns: minmax(0, 1fr) 300px; }
.bfo-ft__support-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.bfo-ft__tel { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.bfo-ft__tel a { color: inherit; text-decoration: none; }
.bfo-ft__support-text { margin: 0 0 16px; color: var(--bfc-muted, #6b6b70); font-size: 14px; line-height: 1.7; }
.bfo-ft__support-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bfo-ft__sbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--bfc-chip-3, #d9d9de); border-radius: var(--bfo-r-20); background: var(--bfc-surface, #fff); color: var(--bfc-ink, #111); font-size: 14px; font-weight: 600; text-decoration: none; }
.bfo-ft__sbtn:hover { border-color: var(--bfc-ink, #111); color: var(--bfc-ink, #111); }
.bfo-ft__bottom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 32px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--bfc-chip-3, #dcdcdf); color: var(--bfc-muted, #6b6b70); font-size: 13px; line-height: 1.8; }
.bfo-ft__logo { grid-row: span 3; }
.bfo-ft__logo .bf-logo-w { margin: 0; }
.bfo-ft__logo .bf-logo-w__link { color: var(--bfc-ink, #111); text-decoration: none; }
.bfo-ft__logo .bf-logo-w__text { font-weight: 800; letter-spacing: .1em; }
.bfo-ft__links a { color: var(--bfc-ink-2, #3f3f46); font-weight: 600; text-decoration: none; }
.bfo-ft__links a:hover { text-decoration: underline; }
.bfo-ft__links p, .bfo-ft__info p, .bfo-ft__copy p { margin: 0; }
.bfo-ft__links :is(a + a) { margin-left: 16px; }
.bfo-ft :is(.bfo-ft__links, .bfo-ft__info, .bfo-ft__copy):empty { display: none; }


/* 맨 위로: 오른쪽 아래 떠 있는 동그란 단추 (조금 내려야 보임). 메신저 떠 있는 단추가 있으면 그 위로 */
.bfo-totop { position: fixed; right: 24px; bottom: 24px; z-index: 7900; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid var(--bfc-line, #e5e5e7); border-radius: 50%; background: var(--bfc-surface, #fff); color: var(--bfc-ink, #111); font-size: 22px; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .10); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, visibility .2s, transform .2s; }
.bfo-totop.is-on { opacity: 1; visibility: visible; transform: none; }
.bfo-totop:hover { color: var(--bfc-ink, #111); border-color: var(--bfc-ink, #111); }
html:has(.bfmsg-float) .bfo-totop { bottom: 96px; }
html:has(.bf-app-banner) .bfo-totop { bottom: 110px; }

@media (max-width: 1024px) {
    .bfo-ft__top.has-support { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    .bfo-ft__in { padding-top: 32px !important; padding-bottom: 28px !important; }
    .bfo-ft__bottom { grid-template-columns: minmax(0, 1fr); }
    .bfo-ft__logo { grid-row: auto; }
    .bfo-totop { right: 16px; bottom: calc(var(--bfc-tabbar-h, 0px) + 16px); width: 46px; height: 46px; }
    html:has(.bfmsg-float) .bfo-totop { bottom: calc(var(--bfc-tabbar-h, 0px) + 84px); }
    html:has(.bf-app-banner:not([hidden])) .bfo-totop { bottom: calc(var(--bfc-tabbar-h, 0px) + 84px); }
}
@media print {
    .bfo-totop { display: none; }
}

/* header:bf-store/mall 0.1.0 */
/*
 * 스토어 머리: 검은 안내 띠 · 흰 머리(아래 옅은 선) · 오른쪽 맨 단추(검색 · 장바구니 · 내 메뉴)
 * 큰 메뉴 펼침 칸은 큰 메뉴 위젯(bf/widgets/mega/style.css). 검색 단추를 누르면 머리 아래로 검색 칸이 펼쳐진다.
 * 휴대폰: 큰 메뉴 대신 아래 고정 막대(.bfo-tabbar)와 전체 메뉴 창
 */
.bfo-hd { position: relative; color: var(--bfc-ink, #111); }
.bfo-hd .bfo-in { max-width: var(--bfo-wide, 1440px); margin: 0 auto; padding: 0 var(--bf-gutter, 20px); box-sizing: border-box; }

/* 맨 위 안내 띠 */
.bfo-top { background: #111; color: #fff; }
.bfo-top[hidden] { display: none; }
.bfo-top__in { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; padding-right: 48px !important; padding-left: 48px !important; }
.bfo-top__text { margin: 0; padding: 9px 0; font-size: 13.5px; line-height: 1.5; text-align: center; }
.bfo-top__text a { margin-left: 8px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bfo-top__close { position: absolute; top: 50%; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; background: none; color: #fff; font-size: 18px; cursor: pointer; opacity: .8; }
.bfo-top__close:hover { opacity: 1; }

/* 머리 한 줄 */
.bfo-hd__main { position: relative; z-index: 2; border-bottom: 1px solid var(--bfc-line, #e5e5e7); background: var(--bfc-surface, #fff); }
.bf-region--header.is-stuck .bfo-hd__main { box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.bfo-hd__row { display: flex; align-items: center; gap: 32px; height: 72px; }
.bfo-hd__logo { flex-shrink: 0; min-width: 0; }
.bfo-hd__logo .bf-logo-w { margin: 0; font-size: inherit; }
.bfo-hd__logo .bf-logo-w__link { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.bfo-hd__logo .bf-logo-w__text, .bfc-drawer__logo .bf-logo-w__text { font-size: var(--bf-logo-fs, 24px); font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.bfo-hd__nav { display: flex; align-items: stretch; align-self: stretch; gap: 10px; flex: 1; min-width: 0; }
.bfo-hd .bfc-hd__menu { display: flex; flex: 0 1 auto; min-width: 0; }
.bfo-hd .bfc-hd__ads { display: flex; align-items: center; flex-shrink: 0; }
.bfo-hd .bfc-hd__ads:not(:has(.bfc-adnav)) { display: none; }

/* 오른쪽 단추: 바탕 없는 동그란 아이콘 */
.bfo-hd__right { display: flex; align-items: center; gap: 2px; flex-shrink: 0; margin-left: auto; }
.bfo-hd__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--bfc-ink, #111); font-size: 22px; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.bfo-hd__btn:hover { background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink, #111); }
.bfo-hd__btn[hidden] { display: none !important; }
.bfo-hd__btn .bf-icon { font-size: 22px; }
.bfo-hd__menu-btn { display: none; }
.bfo-hd__search-off { display: none; }
.bfo-hd.is-search-open .bfo-hd__search-on { display: none; }
.bfo-hd.is-search-open .bfo-hd__search-off { display: inline-block; }
.bfo-hd__count, .bfo-tabbar__count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--bfo-r-9); background: var(--bfc-primary, #2f5bea); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; box-sizing: border-box; }
.bfo-hd__count[hidden], .bfo-tabbar__count[hidden] { display: none; }
.bfo-hd__wx { display: flex; align-items: center; flex-shrink: 0; margin-right: 6px; }
.bfo-hd__wx:empty, .bfo-hd__wx:not(:has(.bfo-wx)), .bfo-hd__wx:has(.bfwt-error) { display: none; }
@media (max-width: 1280px) { .bfo-hd__wx { display: none; } }

/* 검색 칸: 머리 아래로 펼침 */
.bfo-hd__search { display: none; border-top: 1px solid var(--bfc-line, #e5e5e7); background: var(--bfc-surface, #fff); }
.bfo-hd.is-search-open .bfo-hd__search { display: block; }
.bfo-hd__search-in { padding-top: 24px !important; padding-bottom: 28px !important; }
.bfo-hd__search .bf-search-w { max-width: 760px; height: 56px; margin: 0 auto; padding: 0 6px 0 0; border: 0; border-radius: var(--bfo-r-28); background: var(--bfsw-bg, var(--bfc-chip, #f4f4f5)); }
.bfo-hd__search .bf-search-w__input { height: 100%; padding: 0 8px 0 24px; border: 0; background: transparent; color: var(--bfsw-text, var(--bfc-ink, #111)); font-size: 17px; }
.bfo-hd__search .bf-search-w__input::placeholder { color: var(--bfsw-ph, var(--bfc-faint, #6b6b75)); }
.bfo-hd__search .bf-search-w__btn { width: 46px; height: 46px; border-radius: 50%; background: var(--bfc-solid, #111); color: var(--bfc-on-solid, #fff); font-size: 20px; }
.bfo-hd__search .bf-search-w__ticker { display: none; }

@media (max-width: 1180px) {
    .bfo-hd__row { gap: 20px; }
}

/* 휴대폰 · 좁은 태블릿: 큰 메뉴는 전체 메뉴 창으로 */
@media (max-width: 1024px) {
    .bfo-hd__nav { display: none; }
    .bfo-hd__menu-btn { display: inline-flex; }
    .bfo-hd__row { height: 60px; }
}
@media (max-width: 768px) {
    .bfo-hd__row { gap: 8px; height: 56px; }
    .bfo-hd__logo .bf-logo-w__text { font-size: var(--bf-logo-fs, 20px); }
    .bfo-hd__btn { width: 40px; height: 40px; }
    .bfo-hd .bfc-dark-btn.bfo-hd__btn, .bfo-hd__msg { display: none !important; }
    .bfo-hd.has-tabbar .bfo-hd__menu-btn { display: none; }
    .bfo-top__text { font-size: 12.5px; }
    .bfo-hd__search-in { padding-top: 14px !important; padding-bottom: 16px !important; }
    .bfo-hd__search .bf-search-w { height: 50px; }
}

/* ---------- 휴대폰 아래 고정 막대 ---------- */
.bfo-tabbar { display: none; }
/* 앱 연동 모듈의 "앱 받기" 띠(화면 아래 떠 있음)가 있으면 바닥 끝 글이 가리지 않게 그만큼 비운다 */
html:has(.bf-app-banner:not([hidden])) .bf-site { padding-bottom: 76px; }

@media (max-width: 768px) {
    html:has(.bfo-tabbar) { --bfc-tabbar-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
    .bf-site:has(.bfo-tabbar) { padding-bottom: var(--bfc-tabbar-h); }
    html:has(.bf-app-banner:not([hidden])) .bf-site:has(.bfo-tabbar) { padding-bottom: calc(var(--bfc-tabbar-h) + 76px); }
    .bfo-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 4px env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--bfc-line, #e5e5e7); background: var(--bfc-surface, #fff); }
    .bfo-tabbar__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 64px; padding: 0; border: 0; background: none; color: var(--bfc-muted, #6b6b70); font: inherit; font-size: 11.5px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; }
    .bfo-tabbar__item .bf-icon { font-size: 23px; }
    .bfo-tabbar__item:hover, .bfo-tabbar__item.is-on { color: var(--bfc-ink, #111); }
    .bfo-tabbar__wish, .bfo-tabbar__msg { display: flex; flex-direction: column; align-items: center; gap: 3px; }
    .bfo-tabbar__msg { display: none; }
    html.bfo-msg-on .bfo-tabbar__wish { display: none; }
    html.bfo-msg-on .bfo-tabbar__msg { display: flex; }
    .bfo-tabbar__count { top: 7px; right: calc(50% - 22px); }
    .bfo-tabbar__me { display: inline-flex; width: 24px; height: 24px; overflow: hidden; border-radius: 50%; background: var(--bfc-chip-2, #ececee); }
    .bfo-tabbar__me img { width: 100%; height: 100%; object-fit: cover; }

    /* 아래 막대와 겹치지 않게: 앱 안내 띠 · 떠 있는 단추는 막대 위로, 메신저 떠 있는 단추는 막대 안 메신저 칸이 대신한다 */
    html:has(.bfo-tabbar) .bf-app-banner { bottom: calc(var(--bfc-tabbar-h) + 10px); }
    html.bfo-msg-on:has(.bfo-tabbar) .bfmsg-float { display: none; }
    html:has(.bfo-tabbar) .bfmsg-float { bottom: calc(var(--bfc-tabbar-h) + 10px); }
}

@media print {
    .bfo-tabbar, .bfo-hd__right, .bfo-top { display: none !important; }
}
/* ---------- 휴대폰 전체 메뉴 (오른쪽에서 열리는 창) ---------- */
.bfc-drawer { position: fixed; inset: 0; z-index: 10000; }
/* 창을 body 로 옮겨 띄우므로 사이트 영역(.bf-site)의 글꼴이 닿지 않는다 → 같은 글꼴을 직접 건다 */
.bfc-drawer, .bfc-drawer :is(button, input, select, textarea) { font-family: var(--bf-font, inherit); }
.bfc-drawer[hidden] { display: none; }
.bfc-drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .2s; }
.bfc-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(88vw, 380px); background: var(--bfc-surface, #fff); color: var(--bfc-ink, #27272a); box-shadow: -10px 0 30px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .22s ease; }
.bfc-drawer.is-open .bfc-drawer__backdrop { opacity: 1; }
.bfc-drawer.is-open .bfc-drawer__panel { transform: none; }
.bfc-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; height: 64px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--bfc-line, #e6e6ea); }
.bfc-drawer__logo { min-width: 0; }
.bfc-drawer__logo img { max-height: 30px; width: auto; }
.bfc-drawer__close { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; background: none; color: var(--bfc-ink-2, #52525b); font-size: 26px; cursor: pointer; }
.bfc-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }

/* 주메뉴: 1단은 굵은 줄 전체가 펼침 단추, 2단은 옅은 바탕 */
.bfc-drawer__nav ul { margin: 0; padding: 0; list-style: none; }
.bfc-drawer__nav .bf-menu-w__list--d0 > li { border-bottom: 1px solid var(--bfc-line, #e6e6ea); }
.bfc-drawer__nav .bf-menu-w__list--d0 > li > a, .bfc-drawer__nav .bfc-drawer__top { position: relative; display: flex; align-items: center; width: 100%; min-height: 62px; padding: 0 48px 0 18px; border: 0; background: none; color: var(--bfc-ink, #27272a); font: inherit; font-size: 17px; font-weight: 800; letter-spacing: -.01em; text-align: left; text-decoration: none; cursor: pointer; }
.bfc-drawer__row { display: flex; align-items: center; }
.bfc-drawer__nav a { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; text-decoration: none; }
.bfc-drawer__nav .is-current > a, .bfc-drawer__nav .is-current > .bfc-drawer__row > a, .bfc-drawer__nav .is-current > .bfc-drawer__top { color: var(--bfc-primary, #3e9fde); }
.bfc-drawer__sub { position: relative; flex-shrink: 0; width: 48px; height: 44px; border: 0; background: none; cursor: pointer; }
.bfc-drawer__sub::before, .bfc-drawer__nav .bf-menu-w__list--d0 > li > a::after { content: ""; position: absolute; top: 0; bottom: 0; margin: auto; width: 20px; height: 20px; background: var(--bfc-faint, #a1a1aa); transition: transform .2s;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z'/%3E%3C/svg%3E") center / 20px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z'/%3E%3C/svg%3E") center / 20px no-repeat; }
.bfc-drawer__sub::before { left: 0; right: 0; }
.bfc-drawer__nav .bfc-drawer__top::before { left: auto; right: 16px; }
/* 하위 메뉴 없는 1단은 오른쪽 화살표 */
.bfc-drawer__nav .bf-menu-w__list--d0 > li > a::after { right: 16px; transform: rotate(-90deg); }
.bfc-drawer li.is-open > .bfc-drawer__sub::before, .bfc-drawer li.is-open > .bfc-drawer__row .bfc-drawer__sub::before { transform: rotate(180deg); background: var(--bfc-primary, #3e9fde); }
/* 2단: 바탕색 없이 왼쪽 안내선 + 들여쓰기 (밝은 · 어두운 화면 모두 테마 색을 따른다) */
.bfc-drawer__nav .bf-menu-w__list--d1 { display: none; margin: -4px 14px 14px 26px; padding: 2px 0 2px 10px; border-left: 2px solid var(--bfc-line, #e6e6ea); }
.bfc-drawer__nav li.is-open > .bf-menu-w__list--d1 { display: block; }
.bfc-drawer__nav .bf-menu-w__list--d1 a { padding: 9px 12px; border-radius: var(--bfo-r-8); color: var(--bfc-ink-2, #52525b); font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.bfc-drawer__nav .bf-menu-w__list--d1 a:hover, .bfc-drawer__nav .bf-menu-w__list--d1 a:focus-visible { background: color-mix(in srgb, var(--bfc-ink, #27272a) 5%, transparent); color: var(--bfc-ink, #27272a); }
/* 지금 보는 화면: 대표 색 글자 + 옅은 대표 색 바탕 (마우스를 올린 줄과 구별) */
.bfc-drawer__nav .bf-menu-w__list--d1 .is-current > a, .bfc-drawer__nav .bf-menu-w__list--d1 .is-current > .bfc-drawer__row > a {
    background: color-mix(in srgb, var(--bfc-primary, #3e9fde) 11%, transparent); color: var(--bfc-primary, #3e9fde); font-weight: 700;
}
.bfc-drawer__nav .bf-menu-w__list--d2 { display: none; margin: 0 0 4px 12px; padding-left: 10px; border-left: 1px solid var(--bfc-line, #e6e6ea); }
.bfc-drawer__nav li.is-open > .bf-menu-w__list--d2 { display: block; }
.bfc-drawer__nav .bf-menu-w__list--d2 a { padding: 7px 12px; font-size: 14px; }
/* 1단 펼친 줄: 글자를 대표 색으로 */
.bfc-drawer__nav .bf-menu-w__list--d0 > li.is-open > .bfc-drawer__top { color: var(--bfc-primary, #3e9fde); }

/* 아래: 작은 링크 · 다크 모드 */
.bfc-drawer__foot { padding: 16px 18px calc(22px + env(safe-area-inset-bottom)); }
.bfc-drawer__links { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 16px; color: var(--bfc-muted, #6e6e77); font-size: 13.5px; }
.bfc-drawer__links a { color: inherit; text-decoration: none; }
.bfc-drawer__links a + a::before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 10px; background: var(--bfc-line, #e6e6ea); vertical-align: -1px; }
.bfc-drawer__dark { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 48px; border: 1px solid var(--bfc-line, #e6e6ea); border-radius: var(--bfc-radius, 4px); background: var(--bfc-surface, #fff); color: var(--bfc-ink-2, #52525b); font: inherit; font-size: 15px; cursor: pointer; }
.bfc-drawer__dark .bfc-dark-btn__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
html.bfc-drawer-open { overflow: hidden; }

@media (max-width: 768px) {
    .bfc-hd__menu-btn { display: inline-flex; }
}
/* 주메뉴 줄 오른쪽 광고 메뉴 (광고 모듈이 넣을 때만 보인다) */
.bfc-hd__nav-row { display: flex; align-items: center; gap: 16px; }
.bfc-hd__menu { flex: 1; min-width: 0; }
.bfc-hd__ads { flex-shrink: 0; }
.bfc-hd__ads:not(:has(.bfc-adnav)) { display: none; }
.bfc-drawer__ads:not(:has(.bfc-adnav)) { display: none; }
.bfc-drawer__ads { padding: 16px 18px 0; }
.bfc-drawer__ads .bfc-adnav { flex-wrap: wrap; }
.bfc-drawer__ads .bfc-adnav a { height: 40px; padding: 0 16px; font-size: 14.5px; }

/* 스토어 모양: 전체 메뉴 창도 둥근 모서리 · 회색 알약 */
.bfc-drawer__panel { border-radius: var(--bfo-r-28) 0 0 var(--bfo-r-28); }
.bfc-drawer__head { border-bottom: 0; }
.bfc-drawer__close { border-radius: 50%; background: var(--bfc-chip, #f4f4f5); width: 44px; height: 44px; font-size: 22px; }
.bfc-drawer__nav .bf-menu-w__list--d0 > li { border-bottom-color: var(--bfc-line-soft, #f4f4f5); }
.bfc-drawer__dark { border: 0; border-radius: var(--bfo-r-22); background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink, #16181d); font-weight: 600; }
.bfc-drawer__ads:not(:has(.bfc-adnav)) { display: none; }
@media (max-width: 768px) {
    .bfc-drawer__links a { padding: 8px 0; }
}

/* layout:bf-store/wide 0.1.0 */
/* 스토어 넓은 화면 (오른쪽 칸 스킨과 같은 간격). 빌더 페이지는 큰 사진 구역이 머리에 바로 붙게 위아래 여백 없이 */
.bfc-body.bfo-body { padding-top: 16px; padding-bottom: 56px; }
.bfc-body.bfo-body--wide:has(main.bf-main) { padding-top: 0; padding-bottom: clamp(40px, 6vw, 72px); }

@media (max-width: 768px) {
    .bfc-body.bfo-body { padding-top: 8px; padding-bottom: 32px; }
}

/* widget:bf-store/ad-links 0.1.0 */
/* 광고 메뉴 (주메뉴 줄 오른쪽 · 휴대폰 전체 메뉴 아래) */
.bfc-adnav { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bfc-adnav a { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 1px solid var(--bfc-primary-line, rgba(62, 159, 222, .3)); border-radius: var(--bfo-pill); background: var(--bfc-primary-soft, rgba(62, 159, 222, .1)); color: var(--bfc-primary, #3e9fde); font-size: 13.5px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.bfc-adnav a .bf-icon { width: 1em; height: 1em; fill: currentColor; }
.bfc-adnav a:hover, .bfc-adnav a.is-on { background: var(--bfc-primary, #3e9fde); color: #fff; }

/* widget:bf-store/drawer-account 0.1.1 */
/* 휴대폰 전체 메뉴 회원 칸 */
.bfc-acc { padding: 18px 18px 16px; background: color-mix(in srgb, var(--bfc-primary, #3e9fde) 6%, var(--bfc-surface, #fff)); }
.bfc-acc__hello { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--bfc-ink-2, #52525b); font-size: 14.5px; }
.bfc-acc__hello strong { color: var(--bfc-ink, #27272a); font-weight: 800; }
.bfc-acc__hello a { color: inherit; text-decoration: none; }
.bfc-acc__hello a:hover strong { color: var(--bfc-primary, #3e9fde); }
.bfc-acc__admin { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--bfc-muted, #6e6e77); font-size: 12.5px; text-decoration: none; }
.bfc-acc__main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bfc-acc__main a:only-child { grid-column: 1 / -1; }
.bfc-acc .bfc-acc__btn { display: flex; align-items: center; justify-content: center; height: 46px; border: 1px solid var(--bfc-line, #e6e6ea); border-radius: var(--bfc-radius, 4px); background: var(--bfc-surface, #fff); color: var(--bfc-primary, #3e9fde); font-size: 15px; font-weight: 700; text-decoration: none; }
.bfc-acc .bfc-acc__btn.is-primary { border-color: var(--bfc-primary, #3e9fde); background: var(--bfc-primary, #3e9fde); color: #fff; }
.bfc-acc__small { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.bfc-acc__small a { position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; height: 44px; border: 1px solid var(--bfc-line, #e6e6ea); border-radius: var(--bfc-radius, 4px); background: var(--bfc-surface, #fff); color: var(--bfc-ink, #27272a); font-size: 14px; font-weight: 600; text-decoration: none; }
.bfc-acc__small a .bf-icon { color: var(--bfc-primary, #3e9fde); font-size: 16px; }
.bfc-acc__badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--bfo-r-9); background: var(--bfc-point, #ff6b5b); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* widget:bf-store/mega 0.1.0 */
/* 큰 메뉴: 펼친 칸은 머리(.bfo-hd__main) 기준으로 화면 폭만큼 놓인다 */
.bfo-mega { display: flex; height: 100%; }
.bfo-mega__list { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.bfo-mega__item { display: flex; align-items: stretch; }
.bfo-mega__link { position: relative; display: flex; align-items: center; gap: 4px; padding: 0 14px; color: var(--bfc-ink, #111); font-size: 15.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bfo-mega__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--bfc-ink, #111); transform: scaleX(0); transition: transform .2s; }
.bfo-mega__item:is(:hover, .is-open) > .bfo-mega__link::after, .bfo-mega__item.is-current > .bfo-mega__link::after { transform: none; }
.bfo-mega__link:hover { color: var(--bfc-ink, #111); }
.bfo-mega__new { margin-left: 2px; }
.bfo-mega__empty { display: flex; align-items: center; color: var(--bfc-muted, #6b6b70); font-size: 14px; }
.bfo-mega .bfo-mega__src { display: none; }

.bfo-mega__panel { position: absolute; top: 100%; left: 0; right: 0; border-top: 1px solid var(--bfc-line, #e5e5e7); background: var(--bfc-surface, #fff); box-shadow: 0 24px 40px rgba(0, 0, 0, .08); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .18s, visibility .18s, transform .2s; }
.bfo-mega__item:is(:hover, .is-open, :focus-within) > .bfo-mega__panel { visibility: visible; opacity: 1; transform: none; }
/* 메뉴 글자와 펼친 칸 사이를 지나는 동안 닫히지 않게 (보이지 않는 다리) */
.bfo-mega__panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 8px; }
.bfo-mega__in { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; max-width: var(--bfo-wide, 1440px); margin: 0 auto; padding: 32px var(--bf-gutter, 20px) 40px; box-sizing: border-box; }
.bfo-mega__menu { flex: 1 1 260px; min-width: 0; }
.bfo-mega__title { margin: 0 0 12px; color: var(--bfc-muted, #6b6b70); font-size: 13px; font-weight: 600; }
.bfo-mega__sub { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 32px; margin: 0; padding: 0; list-style: none; }
.bfo-mega__sub a { display: inline-flex; align-items: center; gap: 4px; padding: 7px 0; color: var(--bfc-ink, #111); font-size: 18px; font-weight: 700; text-decoration: none; }
.bfo-mega__sub a:hover, .bfo-mega__sub a[aria-current="page"] { color: var(--bfc-primary, #2f5bea); }
.bfo-mega__all { display: inline-block; margin-top: 18px; color: var(--bfc-ink, #111); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bfo-mega__feat { display: flex; align-items: center; gap: 20px; flex: 0 1 480px; min-width: 0; padding: 16px; border-radius: var(--bfo-r-20); background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink, #111); text-decoration: none; }
.bfo-mega__feat:hover { color: var(--bfc-ink, #111); }
.bfo-mega__feat-img { flex: none; width: 180px; height: 140px; overflow: hidden; border-radius: var(--bfo-r-14); background: #fff; }
.bfo-mega__feat-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bfo-mega__feat:hover .bfo-mega__feat-img img { transform: scale(1.04); }
.bfo-mega__feat-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bfo-mega__feat-label { color: var(--bfc-primary, #2f5bea); font-size: 12px; font-weight: 700; }
.bfo-mega__feat-name { font-size: 19px; font-weight: 800; line-height: 1.35; }
.bfo-mega__feat .bfo-price__now, .bfo-mega__feat .bfo-price__off { font-size: 16px; }
.bfo-mega__feat-more { display: inline-flex; align-items: center; color: var(--bfc-ink-2, #3f3f46); font-size: 14px; }

@media (max-width: 1280px) {
    .bfo-mega__link { padding: 0 10px; font-size: 15px; }
    .bfo-mega__link::after { left: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .bfo-mega__panel { transition: none; }
}

/* widget:bf-store/quick-icons 0.1.0 */
/* 머리 오른쪽 아이콘 · 내 메뉴 (아이콘 모양은 머리 스킨의 .bfo-hd__btn) */
.bfo-quick { display: flex; align-items: center; gap: 2px; }
.bfo-me { position: relative; }
.bfo-me__face { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 5px; overflow: hidden; border-radius: 50%; background: var(--bfc-chip-2, #ececee); cursor: pointer; list-style: none; }
.bfo-me__face::-webkit-details-marker { display: none; }
.bfo-me__face img { width: 100%; height: 100%; object-fit: cover; }
.bfo-me[open] .bfo-me__face, .bfo-me__face:focus-visible { box-shadow: 0 0 0 3px var(--bfc-chip-3, #d9d9de); outline: none; }
.bfo-me__panel { position: absolute; top: calc(100% + 14px); right: 0; z-index: 50; width: 230px; padding: 8px; border: 1px solid var(--bfc-line, #e5e5e7); border-radius: var(--bfo-r-18); background: var(--bfc-surface, #fff); box-shadow: var(--bfc-shadow-lg, 0 10px 30px rgba(22, 24, 29, .12)); }
.bfo-me__name { margin: 6px 10px 8px; color: var(--bfc-muted, #60606b); font-size: 13px; }
.bfo-me__name strong { color: var(--bfc-ink, #111); font-size: 15px; }
.bfo-me__panel ul { margin: 0; padding: 0; list-style: none; }
.bfo-me__panel a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: var(--bfo-r-12); color: var(--bfc-ink-2, #3f3f46); font-size: 14.5px; text-decoration: none; }
.bfo-me__panel a:hover, .bfo-me__panel a:focus-visible { background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink, #111); outline: none; }
.bfo-me__panel .bf-icon { font-size: 18px; color: var(--bfc-muted, #60606b); }

/* 휴대폰: 아래 막대에 내 정보 칸이 있으므로 회원 그림 · 로그인은 머리에서 뺀다 (아래 막대를 끈 머리는 그대로) */
@media (max-width: 768px) {
    .has-tabbar .bfo-me, .has-tabbar .bfo-login { display: none; }
}

/* widget:bf-store/sitemap 0.1.2 */
.bfc-sitemap { display: grid; grid-template-columns: repeat(var(--bfc-sitemap-cols, 7), minmax(0, 1fr)); gap: 24px 16px; }
.bfc-sitemap__head { display: block; margin-bottom: 14px; color: var(--bfc-ink, #27272a); font-size: 15px; font-weight: 700; text-decoration: none; }
.bfc-sitemap__list { margin: 0; padding: 0; list-style: none; }
.bfc-sitemap__list li + li { margin-top: 9px; }
.bfc-sitemap__list a { color: var(--bfc-ink-2, #555); font-size: 14px; text-decoration: none; }
.bfc-sitemap a:hover { color: var(--bfc-ink, #16181d); text-decoration: underline; }
.bfc-sitemap__empty { color: var(--bfc-muted, #6e6e77); font-size: 13px; }

@media (max-width: 1024px) {
    .bfc-sitemap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .bfc-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* widget:bf-store/weather-mini 0.1.0 */
/* 머리 작은 날씨: 날씨 모듈 한 줄 모양을 테두리 · 바탕 없이 줄이고 지역 이름 · 최저/최고 · 자료 표시는 숨긴다 (title 에 지역) */
.bfo-wx { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--bfo-r-22); color: var(--bfc-ink-2, #3f3f46); font-size: 14px; text-decoration: none; white-space: nowrap; }
a.bfo-wx:hover { background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink, #16181d); }
.bfo-wx .bfwt { --bfwt-bg: transparent; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font-size: inherit; }
.bfo-wx .bfwt__loading { min-height: 0; }
.bfo-wx .bfwt__loading span { width: 14px; height: 14px; border-width: 2px; }
.bfo-wx .bfwt-line { gap: 6px; }
.bfo-wx .bfwt-line__i { font-size: 18px; }
.bfo-wx .bfwt-line__t { order: 2; color: var(--bfc-ink, #16181d); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.bfo-wx .bfwt-line__txt { flex: none; order: 1; overflow: visible; color: inherit; font-size: 14px; }
.bfo-wx .bfwt-line__name, .bfo-wx .bfwt-line__txt small, .bfo-wx .bfwt-foot, .bfo-wx .bfwt-note, .bfo-wx .bfwt-admin { display: none; }
/* 받지 못하면 칸째 숨긴다 (머리에는 안내를 띄우지 않음) */
.bfo-wx:has(.bfwt-error) { display: none; }
@media (max-width: 1180px) { .bfo-wx { display: none; } }

/* widget:bf/search 1.5.0 */
/* 입력 칸은 원래 넓이(글자 수 × 글자 크기)를 0 으로 두고 남은 자리만 채운다 — 휴대폰 글꼴 크기를 키우면 원래 넓이가 자리보다 커져 검색창이 화면 밖으로 나가던 문제 (삼성 인터넷) */
.bf-search-w { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--bf-color-border); border-radius: 999px; background: var(--bf-color-bg); }
.bf-search-w:focus-within { border-color: var(--bf-color-primary); }
.bf-search-w__input { flex: 1; width: 0; min-width: 0; height: 40px; padding: 0 16px; border: 0; border-radius: 999px 0 0 999px; background: transparent; font-size: .95rem; outline: none; }
.bf-search-w__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border: 0; border-radius: 0 999px 999px 0; background: transparent; color: var(--bf-color-muted); font-size: 20px; cursor: pointer; }
.bf-search-w__btn:hover { color: var(--bf-color-primary); }

/* 펼침 목록 (실시간 인기 검색어 등) */
.bf-suggest { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; min-width: 260px; padding: 6px 0; border: 1px solid var(--bf-color-border, #e5e7eb); border-radius: 4px; background: var(--bf-color-bg, #fff); color: var(--bf-color-text, #1f2937); box-shadow: 0 10px 28px rgba(15, 23, 42, .12); text-align: left; }
.bf-suggest[hidden] { display: none; }
.bf-suggest__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 14px 8px; }
.bf-suggest__head strong { font-size: 13px; font-weight: 800; }
.bf-suggest__head small { color: var(--bf-color-muted, #6b7280); font-size: 11.5px; }
.bf-suggest__list { margin: 0; padding: 0; list-style: none; }
.bf-suggest__item { display: flex; align-items: center; gap: 10px; padding: 7px 14px; color: inherit; font-size: 14px; text-decoration: none; }
.bf-suggest__item:hover, .bf-suggest__item.is-active { background: color-mix(in srgb, var(--bf-color-primary, #0ea5e9) 8%, transparent); }
.bf-suggest__n { flex: none; width: 18px; color: var(--bf-color-muted, #6b7280); font-size: 13px; font-weight: 700; text-align: center; }
.bf-suggest__n.is-top { color: var(--bf-color-primary, #0ea5e9); }
.bf-suggest__word { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-suggest__ch { flex: none; color: var(--bf-color-muted, #9ca3af); font-size: 11px; font-weight: 700; }
.bf-suggest__ch.is-new { color: #10b981; }
.bf-suggest__ch.is-up { color: #ef4444; }
.bf-suggest__ch.is-down { color: #3b82f6; }

/* 검색창 안 왼쪽: 실시간 인기 검색어가 몇 초마다 위로 넘어간다 (누르면 그 검색어로 검색) */
.bf-search-w__ticker { position: relative; flex: none; display: flex; align-items: center; gap: 8px; width: 180px; height: 40px; padding: 0 12px 0 16px; overflow: hidden; }
.bf-search-w__ticker::after { content: ""; position: absolute; top: 25%; right: 0; bottom: 25%; width: 1px; background: var(--bf-color-border, #e5e7eb); }
.bf-search-w__ticker-label { flex: none; padding: 1px 5px; border-radius: 2px; background: color-mix(in srgb, var(--bf-color-primary, #0ea5e9) 12%, transparent); color: var(--bf-color-primary, #0ea5e9); font-size: 11px; font-weight: 800; line-height: 1.5; }
.bf-search-w__ticker-list { position: relative; flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; list-style: none; }
.bf-search-w__ticker-list li { position: absolute; inset: 0; display: flex; align-items: center; transform: translateY(100%); opacity: 0; transition: transform .45s ease, opacity .45s ease; }
.bf-search-w__ticker-list li.is-on { transform: none; opacity: 1; }
.bf-search-w__ticker-list li.is-out { transform: translateY(-100%); opacity: 0; }
.bf-search-w__ticker-list li:first-child { transform: none; opacity: 1; }
.bf-search-w__ticker-list.is-ready li:first-child:not(.is-on) { transform: translateY(100%); opacity: 0; }
.bf-search-w__ticker-list.is-ready li.is-out:first-child { transform: translateY(-100%); }
.bf-search-w__ticker a { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; color: inherit; font-size: 13.5px; text-decoration: none; }
.bf-search-w__ticker a:hover span { text-decoration: underline; }
.bf-search-w__ticker b { flex: none; color: var(--bf-color-primary, #0ea5e9); font-weight: 800; }
.bf-search-w__ticker span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-search-w__ticker em { flex: none; font-size: 9px; font-style: normal; font-weight: 800; }
.bf-search-w__ticker em.is-new { color: #10b981; }
.bf-search-w__ticker em.is-up { color: #ef4444; }
.bf-search-w__ticker em.is-down { color: #3b82f6; }
@media (prefers-reduced-motion: reduce) {
    .bf-search-w__ticker-list li { transition: none; }
}
/* 좁은 화면에서는 검색어 칸을 넓게 쓰도록 숨긴다 */
@media (max-width: 768px) {
    .bf-search-w__ticker { display: none; }
}

/* 1.4.0: 안내 문구 · 입력 글자 · 돋보기 색 (설정이 없으면 예전 그대로) */
.bf-search-w[style*="--bfsw-text"] .bf-search-w__input { color: var(--bfsw-text); }
.bf-search-w[style*="--bfsw-ph"] .bf-search-w__input::placeholder { color: var(--bfsw-ph); opacity: 1; }
.bf-search-w[style*="--bfsw-icon"] .bf-search-w__btn { color: var(--bfsw-icon); }
/* 1.5.0: 검색창 바탕색 · 테두리 색 */
.bf-search-w[style*="--bfsw-bg"] { background: var(--bfsw-bg); }
.bf-search-w[style*="--bfsw-line"] { border-color: var(--bfsw-line); }

/* widget:bf/site-logo 1.1.0 */
.bf-logo-w { margin: 0; font-size: inherit; line-height: 1; min-width: 0; }
.bf-logo-w__link { display: inline-flex; align-items: center; max-width: 100%; color: var(--bf-color-text); text-decoration: none; }
.bf-logo-w__link img { width: auto; max-width: 100%; vertical-align: middle; }
/* 어두운 화면용 로고: 테마가 어두운 화면일 때 html 에 data-bf-dark 또는 자기 표시를 붙이고 바꿔 보여 준다 */
.bf-logo-w__img--dark { display: none; }
html[data-bf-dark] .bf-logo-w__img--light { display: none; }
html[data-bf-dark] .bf-logo-w__img--dark { display: inline; }
.bf-logo-w__text { font-size: var(--bf-logo-fs, 22px); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 모바일: 긴 사이트 이름이 옆 메뉴 버튼을 가리지 않도록 줄이고 말줄임 */
@media (max-width: 768px) {
    .bf-logo-w__text { font-size: min(var(--bf-logo-fs, 22px), 18px); }
}

