/*
 * 보드팩토리 쇼핑몰 스킨 - 상품 상세 묶음
 * (item.form, item.info, iteminfo.*, itemuse*, itemqa*, largeimage, personalpay)
 *
 * - 공통 UI 는 css/skin.css 의 .bfk-* 를 쓰고, 여기에는 상품 상세 고유 모양만 둔다.
 * - 코어 JS(js/shop.js)가 만드는/찾는 요소(.get_item_options, #sit_sel_option, #sit_tot_price …)도 여기서 꾸민다.
 * - 기기 구분: 768px 이하 모바일
 */

/* ---------- 별점 (--bfk-star: 0~5, 소수 가능) ---------- */
.bfk-item__stars { --bfk-star: 0; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; white-space: nowrap; vertical-align: -1px; }
.bfk-item__stars::before {
    content: "\2605\2605\2605\2605\2605";
    background: linear-gradient(90deg, var(--bfk-warn) calc(var(--bfk-star) * 20%), var(--bfk-border) 0);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bfk-item__stars--lg { font-size: 22px; }

/* ============================================================
 * 구매 영역 (item.form)
 * ============================================================ */
.bfk-item { margin-bottom: 8px; }
.bfk-item__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* 이미지 */
.bfk-item__gallery { position: sticky; top: calc(var(--bfk-sticky-top, 0px) + 20px); min-width: 0; }
.bfk-item__stage { position: relative; overflow: hidden; border-radius: calc(var(--bfk-radius) * 2); background: var(--bfk-soft); aspect-ratio: 1 / 1; }
.bfk-item__track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.bfk-item__track::-webkit-scrollbar { display: none; }
.bfk-item__slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: start; cursor: zoom-in; }
.bfk-item__slide img { width: 100%; height: 100%; object-fit: contain; }
.bfk-item__noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; color: var(--bfk-muted); font-size: .9rem; }
.bfk-item__noimg .bfk-ico { width: 48px; height: 48px; opacity: .4; }

.bfk-item__nav {
    position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-top: -21px; padding: 0; border: 1px solid var(--bfk-border); border-radius: 50%;
    background: var(--bfk-bg); color: var(--bfk-text); font-size: 1.4rem; opacity: 0; transition: opacity .15s;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .1);
}
.bfk-item__nav--prev { left: 12px; }
.bfk-item__nav--next { right: 12px; }
.bfk-item__stage:hover .bfk-item__nav, .bfk-item-large__stage .bfk-item__nav, .bfk-item__nav:focus-visible { opacity: 1; }
.bfk-item__nav:hover { color: var(--bfk-primary); border-color: var(--bfk-primary); }
.bfk-item__counter {
    position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px;
    background: color-mix(in srgb, var(--bfk-text) 70%, transparent); color: var(--bfk-bg); font-size: .78rem; line-height: 1.4;
}
.bfk-item__counter b { font-weight: 700; }
.bfk-item__zoom {
    position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; background: var(--bfk-bg); color: var(--bfk-text); font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
}
.bfk a.bfk-item__zoom:hover { color: var(--bfk-primary); }

.bfk-item__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bfk-item__thumb {
    display: block; width: 68px; height: 68px; padding: 0; overflow: hidden;
    border: 2px solid transparent; border-radius: var(--bfk-radius); background: var(--bfk-soft); opacity: .7; transition: opacity .15s, border-color .15s;
}
.bfk-item__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bfk-item__thumb:hover { opacity: 1; }
.bfk-item__thumb.is-active { border-color: var(--bfk-primary); opacity: 1; }

/* 요약 */
.bfk-item__summary { min-width: 0; }
.bfk-item__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.bfk-item__soldbadge { background: var(--bfk-text); color: var(--bfk-bg); }
.bfk-item__name { font-size: 1.65rem; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.bfk-item__basic { margin-top: 8px; color: var(--bfk-muted); font-size: .95rem; }
.bfk-item__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.bfk-item__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--bfk-muted); font-size: .88rem; }
.bfk-item__rating b { color: var(--bfk-text); }
.bfk-item__score { font-weight: 800; }
.bfk-item__tools { display: flex; align-items: center; gap: 2px; }
.bfk-item__tools .bfk-btn--icon { font-size: 1.15rem; }

/* 가격 */
.bfk-item__price { margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--bfk-border); }
.bfk-item__cust { color: var(--bfk-muted); font-size: .92rem; }
.bfk-item__now { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.bfk-item__rate { color: var(--bfk-danger); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.bfk-item__sale { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.bfk-item__sale small { margin-left: 2px; font-size: 1.05rem; font-weight: 700; }
.bfk-item__sale--text { display: block; color: var(--bfk-muted); font-size: 1.4rem; }

/* 구매 정보 */
.bfk-item__info { display: grid; gap: 10px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--bfk-border); font-size: .92rem; }
.bfk-item__info > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; }
.bfk-item__info dt { display: inline-flex; align-items: center; gap: 6px; color: var(--bfk-muted); white-space: nowrap; }
.bfk-item__info dt label { display: inline-flex; align-items: center; gap: 6px; }
.bfk-item__info dd { margin: 0; }
.bfk-item__info dd small, .bfk-item__muted { color: var(--bfk-muted); font-size: .85rem; }
.bfk-item__mini-select { width: auto; min-height: 36px; padding: 0 10px; font-size: .88rem; }

/* 옵션 (코어 get_item_options / get_item_supply 출력) */
.bfk-item__opts { display: grid; gap: 16px; margin-top: 18px; border-radius: var(--bfk-radius); }
.bfk-item__opts.is-flash { animation: bfk-item-flash 1.2s ease-out; }
@keyframes bfk-item-flash {
    0%, 40% { box-shadow: 0 0 0 4px var(--bfk-primary-soft), 0 0 0 1px var(--bfk-primary); }
    100% { box-shadow: 0 0 0 4px transparent; }
}
.bfk-item__optlabel { margin-bottom: 8px; font-size: .95rem; font-weight: 800; }
.bfk-item__optlabel small { margin-left: 4px; color: var(--bfk-muted); font-size: .8rem; font-weight: 500; }
.bfk-item .get_item_options, .bfk-item .get_item_supply { display: grid; gap: 6px; margin-top: 10px; }
.bfk-item .get_item_options:first-of-type, .bfk-item .get_item_supply:first-of-type { margin-top: 0; }
.bfk-item .get_item_options > label, .bfk-item .get_item_supply > label { color: var(--bfk-muted); font-size: .85rem; font-weight: 600; }
.bfk-item .get_item_options > span, .bfk-item .get_item_supply > span { display: block; }
.bfk-item select.it_option, .bfk-item select.it_supply {
    width: 100%; min-height: 46px; padding: 0 36px 0 12px;
    border: 1px solid var(--bfk-border); border-radius: var(--bfk-radius); background-color: var(--bfk-bg); color: var(--bfk-text);
    font: inherit; font-size: .95rem; cursor: pointer;
}
.bfk-item select.it_option:focus, .bfk-item select.it_supply:focus { outline: 0; border-color: var(--bfk-primary); box-shadow: 0 0 0 3px var(--bfk-primary-soft); }
.bfk-item select.it_option:disabled { background-color: var(--bfk-soft); color: var(--bfk-muted); cursor: not-allowed; }

/* 선택한 상품 줄 (영카트 default_shop.css 의 #sit_opt_added 규칙을 이기도록 아이디를 함께 쓴다) */
.bfk-item__selected:empty { display: none; }
.bfk-item__selected { margin-top: 16px; }
.bfk-item #sit_opt_added { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.bfk-item #sit_opt_added li.bfk-item__sel { position: static; display: grid; gap: 10px; margin: 0; padding: 14px 16px; border: 0; border-radius: var(--bfk-radius); background: var(--bfk-soft); }
.bfk-item #sit_opt_added li.bfk-item__sel::after { content: none; }
.bfk-item__sel-name { display: flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 600; }
.bfk-item__sel-ctrl { display: flex; align-items: center; gap: 10px; }
.bfk-item__qty { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--bfk-border); border-radius: var(--bfk-radius); background: var(--bfk-bg); }
.bfk-item #sit_opt_added .bfk-item__qty button { float: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--bfk-text); font-size: 1rem; }
.bfk-item #sit_opt_added .bfk-item__qty button:hover { color: var(--bfk-primary); background: var(--bfk-primary-soft); }
.bfk-item #sit_opt_added .bfk-item__qty input { float: none; width: 48px; height: 34px; padding: 0; border: 0; border-left: 1px solid var(--bfk-border); border-right: 1px solid var(--bfk-border); border-radius: 0; background: none; color: var(--bfk-text); font: inherit; font-size: .92rem; font-weight: 700; text-align: center; }
.bfk-item #sit_opt_added .bfk-item__qty input:focus { outline: 0; background: var(--bfk-primary-soft); }
.bfk-item #sit_opt_added .sit_opt_prc { float: none; display: inline; width: auto; margin-left: auto; padding: 0; color: var(--bfk-muted); font-size: .88rem; font-weight: 600; line-height: 1.4; text-align: right; white-space: nowrap; }
.bfk-item #sit_opt_added .sit_opt_del { position: static; float: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--bfk-muted); font-size: 1.05rem; }
.bfk-item #sit_opt_added .sit_opt_del:hover { background: var(--bfk-bg); color: var(--bfk-danger); }
.bfk-item__hint { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--bfk-muted); font-size: .85rem; }
#sit_sel_option:has(li) + .bfk-item__hint { display: none; }

/* 총 금액 */
.bfk-item__total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--ezd-rule, #dce3e8); }
.bfk-item__total:empty { display: none; }
.bfk-item__total-label { font-size: .95rem; font-weight: 700; }
.bfk-item__total-label small { color: var(--bfk-muted); font-weight: 500; }
.bfk-item__total strong { color: var(--bfk-primary); font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.bfk-item__total strong small { margin-left: 2px; font-size: 1rem; }

.bfk-item__soldout { display: flex; align-items: center; gap: 6px; margin-top: 16px; }

/* 구매 버튼 */
.bfk-item__buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 18px; }
.bfk-item__buy .bfk-btn--lg { min-height: 54px; font-size: 1.02rem; }
.bfk-item__buy .bfk-item__wish { width: 54px; font-size: 1.3rem; }
.bfk-item__buy .bfk-item__alarm { grid-column: 1 / 3; }
.bfk-item__notice { grid-column: 1 / 3; display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: var(--bfk-radius); background: var(--bfk-soft); color: var(--bfk-muted); font-weight: 600; }
.bfk-item__naverpay { margin-top: 12px; }

/* 이전/다음 상품 */
.bfk-item__siblings { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--bfk-border); font-size: .88rem; }
.bfk-item__siblings a { display: inline-flex; align-items: center; gap: 4px; color: var(--bfk-muted); }
.bfk-item__siblings #siblings_next { margin-left: auto; }

/* ============================================================
 * 상세 정보 (item.info)
 * ============================================================ */
.bfk-item-detail { margin-top: 56px; }
.bfk-item-detail__tabs {
    position: sticky; top: var(--bfk-sticky-top, 0px); z-index: 20; display: flex; overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--bfk-border); background: var(--bfk-bg);
}
.bfk-item-detail__tabs::-webkit-scrollbar { display: none; }
.bfk-item-detail__tabs a {
    flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 52px; padding: 0 18px;
    border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--bfk-muted); font-size: .95rem; font-weight: 700; white-space: nowrap;
}
.bfk-item-detail__tabs a span { color: var(--bfk-primary); font-size: .85rem; }
.bfk-item-detail__tabs a.is-active { border-bottom-color: var(--bfk-text); color: var(--bfk-text); }

.bfk-item-detail__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.bfk-item-detail.has-dock .bfk-item-detail__layout { grid-template-columns: minmax(0, 1fr) 300px; }
.bfk-item-detail__main { min-width: 0; }
.bfk-item-detail__sec { padding-top: 48px; scroll-margin-top: calc(var(--bfk-sticky-top, 0px) + 56px); }
.bfk-item-detail__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.bfk-item-detail__head .bfk-item-detail__title { margin-bottom: 0; }
.bfk-item-detail__title { margin-bottom: 18px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.bfk-item-detail__title small { margin-left: 4px; color: var(--bfk-primary); font-size: 1.05rem; }
.bfk-item-detail__subtitle { display: flex; align-items: center; gap: 6px; margin: 32px 0 12px; font-size: 1.02rem; font-weight: 800; }
.bfk-item-detail__explan { overflow: hidden; }
.bfk-item-detail__explan img { display: block; margin-left: auto; margin-right: auto; }
.bfk-item-detail__avg { display: inline-flex; align-items: center; gap: 8px; color: var(--bfk-muted); font-size: .9rem; }
.bfk-item-detail__avg strong { color: var(--bfk-text); font-size: 1.4rem; font-weight: 800; }

.bfk-item-detail__notice { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ezd-rule, #dce3e8); font-size: .9rem; }
.bfk-item-detail__notice th, .bfk-item-detail__notice td { padding: 12px 14px; border-bottom: 1px solid var(--bfk-border); text-align: left; vertical-align: top; }
.bfk-item-detail__notice th { width: 32%; background: var(--bfk-soft); color: var(--bfk-muted); font-weight: 600; }

.bfk-item-detail__guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bfk-item-detail__guidebox { padding: 20px 22px; border-radius: calc(var(--bfk-radius) * 1.5); background: var(--bfk-soft); }
.bfk-item-detail__guidebox .bfk-item-detail__subtitle { margin-top: 0; }
.bfk-item-detail__guidebox .bfk-content { font-size: .92rem; line-height: 1.75; }

/* 구매 요약 (넓은 화면: 오른쪽에 따라옴) */
.bfk-item-dock { position: sticky; top: calc(var(--bfk-sticky-top, 0px) + 76px); margin-top: 48px; }
.bfk-item-dock__inner { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--bfk-border); border-radius: calc(var(--bfk-radius) * 2); background: var(--bfk-bg); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.bfk-item-dock__name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 700; line-height: 1.45; }
.bfk-item-dock__total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--bfk-border); font-size: .88rem; }
.bfk-item-dock__total small { color: var(--bfk-muted); }
.bfk-item-dock__total strong { color: var(--bfk-primary); font-size: 1.35rem; font-weight: 800; white-space: nowrap; }
.bfk-item-dock__total strong small { margin-left: 1px; color: inherit; font-size: .9rem; }
.bfk-item-dock__hint { display: flex; align-items: center; gap: 6px; color: var(--bfk-muted); font-size: .82rem; }
.bfk-item-dock__btns { display: grid; gap: 8px; }
.bfk-item-dock__btns .bfk-btn { width: 100%; }

/* ============================================================
 * 사용후기 / 상품문의 목록 (itemuse, itemqa, 전체 목록)
 * ============================================================ */
.bfk-item-rv__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.bfk-item-rv__lead { color: var(--bfk-muted); font-size: .9rem; }
.bfk-item-rv__list, .bfk-item-qa__list { border-top: 2px solid var(--ezd-rule, #dce3e8); }
.bfk-item-rv__item, .bfk-item-qa__item { border-bottom: 1px solid var(--bfk-border); }
.bfk-item-rv__empty { padding: 48px 20px; border-top: 2px solid var(--ezd-rule, #dce3e8); border-bottom: 1px solid var(--bfk-border); }

.bfk-item-rv__sum { display: flex; align-items: flex-start; gap: 14px; padding: 16px 4px; cursor: pointer; list-style: none; }
.bfk-item-rv__sum::-webkit-details-marker { display: none; }
.bfk-item-rv__sum:hover .bfk-item-rv__subject { color: var(--bfk-primary); }
.bfk-item-rv__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.bfk-item-rv__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bfk-item-rv__subject { display: block; font-size: .98rem; font-weight: 700; overflow-wrap: anywhere; }
.bfk-item-rv__excerpt { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--bfk-muted); font-size: .9rem; }
.bfk-item-rv__details[open] .bfk-item-rv__excerpt { display: none; }
.bfk-item-rv__photo { flex-shrink: 0; width: 76px; height: 76px; overflow: hidden; border-radius: var(--bfk-radius); background: var(--bfk-soft); }
.bfk-item-rv__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bfk-item-rv__details[open] .bfk-item-rv__photo { display: none; }
.bfk-item-rv__chev { flex-shrink: 0; display: inline-flex; align-self: center; color: var(--bfk-muted); font-size: 1.2rem; transition: transform .15s; }
.bfk-item-rv__details[open] .bfk-item-rv__chev { transform: rotate(180deg); }
.bfk-item-rv__body { display: grid; gap: 14px; padding: 0 4px 20px; }
.bfk-item-rv__body .bfk-content { font-size: .95rem; }
.bfk-item-rv__body .bfk-content img { border-radius: var(--bfk-radius); }
.bfk-item-rv__reply { padding: 14px 16px; border-left: 3px solid var(--bfk-primary); border-radius: 0 var(--bfk-radius) var(--bfk-radius) 0; background: var(--bfk-soft); }
.bfk-item-rv__reply-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; font-size: .9rem; }
.bfk-item-rv__reply-head .bfk-ico { color: var(--bfk-primary); }
.bfk-item-rv__reply-head span { color: var(--bfk-muted); font-size: .82rem; }
.bfk-item-rv__reply .bfk-content { font-size: .92rem; }

.bfk-item-qa__state { flex-shrink: 0; display: inline-flex; align-items: center; height: 24px; margin-top: 1px; padding: 0 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.bfk-item-qa__state.is-done { background: color-mix(in srgb, var(--bfk-success) 12%, transparent); color: var(--bfk-success); }
.bfk-item-qa__state.is-wait { background: var(--bfk-soft); color: var(--bfk-muted); }
.bfk-item-qa__lock { display: inline-flex; margin-right: 2px; color: var(--bfk-muted); vertical-align: -2px; }
.bfk-item-qa__q, .bfk-item-qa__a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.bfk-item-qa__a { padding: 14px; border-radius: var(--bfk-radius); background: var(--bfk-soft); }
.bfk-item-qa__mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bfk-border); color: var(--bfk-text); font-size: .85rem; font-weight: 800; }
.bfk-item-qa__a .bfk-item-qa__mark { background: var(--bfk-primary); color: var(--bfk-bg); }
.bfk-item-qa__wait, .bfk-item-qa__locked { display: flex; align-items: center; gap: 6px; color: var(--bfk-muted); font-size: .9rem; }

/* 상품문의 쪽 번호 (코어 itemqa_page 는 .qa_page 를 쓴다) */
.bfk .qa_page {
    display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px;
    border: 1px solid var(--bfk-border); border-radius: var(--bfk-radius);
    background: var(--bfk-bg); color: var(--bfk-text); font-size: .82rem; font-weight: 600; line-height: 1; text-indent: 0;
}
.bfk .qa_page:hover { border-color: var(--bfk-primary); color: var(--bfk-primary); }
#itemuse[aria-busy="true"], #itemqa[aria-busy="true"] { opacity: .5; transition: opacity .15s; }

/* 전체 후기 / 전체 문의 */
.bfk-item-board__search { margin-bottom: 16px; }
.bfk-item-board__sort { margin-bottom: 12px; }
.bfk-item-board__list { border-top: 2px solid var(--ezd-rule, #dce3e8); }
.bfk-item-board__item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--bfk-border); }
.bfk-item-board__product { display: grid; gap: 8px; align-content: start; font-size: .82rem; color: var(--bfk-muted); }
.bfk-item-board__thumb { display: block; width: 120px; height: 120px; overflow: hidden; border-radius: var(--bfk-radius); background: var(--bfk-soft); }
.bfk-item-board__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bfk-item-board__pname { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.bfk-item-board__body .bfk-item-rv__sum { padding-top: 0; }

/* ============================================================
 * 새 창: 후기/문의 쓰기, 이미지 크게 보기, 모바일 상품 정보
 * ============================================================ */
.bfk-item-write { max-width: 760px; }
.bfk-item-write__item { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 14px; border-radius: var(--bfk-radius); background: var(--bfk-soft); font-size: .95rem; }
.bfk-item-write__item img { width: 56px; height: 56px; border-radius: var(--bfk-radius); object-fit: cover; }
.bfk-item-write__editor textarea { width: 100%; min-height: 220px; padding: 12px; border: 1px solid var(--bfk-border); border-radius: var(--bfk-radius); font: inherit; font-size: .95rem; line-height: 1.6; resize: vertical; }
.bfk-item-write__editor textarea:focus { outline: 0; border-color: var(--bfk-primary); box-shadow: 0 0 0 3px var(--bfk-primary-soft); }
.bfk-item-write .bfk-check .bfk-ico { color: var(--bfk-muted); }

.bfk-item-write__rate { display: flex; align-items: center; gap: 14px; }
.bfk-rate { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.bfk-rate input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bfk-rate label { display: inline-flex; color: var(--bfk-border); font-size: 34px; cursor: pointer; transition: color .1s, transform .1s; }
.bfk-rate label .bfk-ico { width: 1em; height: 1em; }
.bfk-rate input:checked ~ label, .bfk-rate label:hover, .bfk-rate label:hover ~ label { color: var(--bfk-warn); }
.bfk-rate input:focus-visible + label { outline: 2px solid var(--bfk-primary); outline-offset: 2px; border-radius: var(--ezd-r-4); }
.bfk-rate label:active { transform: scale(.9); }
.bfk-rate__text { color: var(--bfk-warn); font-weight: 700; }

.bfk-item-large { max-width: none; }
.bfk-item-large__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 240px; border-radius: var(--bfk-radius); background: var(--bfk-soft); }
.bfk-item-large__fig { margin: 0; text-align: center; cursor: zoom-out; }
.bfk-item-large__fig img { display: block; max-width: 100%; max-height: calc(100vh - 230px); margin: 0 auto; }
.bfk-item-large__thumbs { justify-content: center; }
.bfk-item-large__thumbs .bfk-item__thumb { width: 60px; height: 60px; }

.bfk-item-pop__basic { margin-bottom: 16px; color: var(--bfk-muted); }
.bfk-item-pop .bfk-item-detail__guidebox + .bfk-item-detail__guidebox { margin-top: 12px; }

/* ============================================================
 * 개인결제 목록
 * ============================================================ */
.bfk-pp__list { display: grid; gap: 10px; }
.bfk a.bfk-pp__card {
    display: flex; align-items: center; gap: 16px; padding: 18px 20px;
    border: 1px solid var(--bfk-border); border-radius: calc(var(--bfk-radius) * 1.5); background: var(--bfk-bg); color: var(--bfk-text);
    transition: border-color .15s, box-shadow .15s;
}
.bfk a.bfk-pp__card:hover { border-color: var(--bfk-primary); box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.bfk-pp__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--bfk-primary-soft); color: var(--bfk-primary); font-size: 1.4rem; }
.bfk-pp__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bfk-pp__name { font-weight: 700; }
.bfk-pp__no { color: var(--bfk-muted); font-size: .82rem; }
.bfk-pp__price { font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.bfk-pp__price small { margin-left: 1px; font-size: .9rem; }
/* PC 코어가 빈 목록 문구를 한 번 더 출력하는 경우 숨김 */
.bfk-pp + .sct_noitem { display: none; }

/* ============================================================
 * 모바일 (768px 이하)
 * ============================================================ */
@media (max-width: 1024px) {
    .bfk-item__top { gap: 32px; }
    .bfk-item-detail.has-dock .bfk-item-detail__layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
}

@media (max-width: 768px) {
    .bfk-item__top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .bfk-item__gallery { position: static; }
    .bfk-item__nav { display: none; }
    .bfk-item__thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .bfk-item__thumbs::-webkit-scrollbar { display: none; }
    .bfk-item__thumb { flex-shrink: 0; width: 56px; height: 56px; }
    .bfk-item__name { font-size: 1.35rem; }
    .bfk-item__rate { font-size: 1.35rem; }
    .bfk-item__sale { font-size: 1.55rem; }
    .bfk-item__info > div { grid-template-columns: 96px minmax(0, 1fr); }
    .bfk-item__sel-ctrl { flex-wrap: wrap; }

    .bfk-item-detail { margin-top: 36px; }
    .bfk-item-detail__tabs a { flex: 1 0 auto; padding: 0 12px; min-height: 48px; font-size: .9rem; }
    .bfk-item-detail.has-dock .bfk-item-detail__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .bfk-item-detail.has-dock { padding-bottom: 84px; }
    .bfk-item-detail__sec { padding-top: 36px; scroll-margin-top: calc(var(--bfk-sticky-top, 0px) + 50px); }
    .bfk-item-detail__guide { grid-template-columns: minmax(0, 1fr); }
    .bfk-item-detail__notice th { width: 38%; }

    /* 구매 요약 → 아래 고정 막대 */
    .bfk-item-dock {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; margin: 0;
        transform: translateY(110%); transition: transform .2s ease;
    }
    .bfk-item-dock.is-away { transform: none; }
    .bfk-item-dock__inner {
        grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--bfk-border); border-radius: 0;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
    }
    .bfk-item-dock__name, .bfk-item-dock__hint { display: none; }
    .bfk-item-dock__total { display: grid; gap: 0; padding: 0; border: 0; font-size: .78rem; }
    .bfk-item-dock__total strong { font-size: 1.1rem; }
    .bfk-item-dock__btns { grid-template-columns: auto auto; }
    .bfk-item-dock__btns .bfk-btn--lg { min-height: 46px; padding: 0 16px; font-size: .95rem; }
    .bfk-item-dock__btns [data-bfk-dock="장바구니"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .bfk-item-dock__btns [data-bfk-dock="장바구니"] { width: 46px; padding: 0; font-size: 1.2rem; }

    .bfk-item-rv__photo { width: 60px; height: 60px; }
    .bfk-item-board__item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .bfk-item-board__product { grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; }
    .bfk-item-board__thumb { width: 48px; height: 48px; }

    .bfk a.bfk-pp__card { flex-wrap: wrap; gap: 12px; padding: 16px; }
    .bfk-pp__go { display: none; }
}
