/* 📚 도서몰 새 화면 공용 모양 — 2026-11-29
   · 모든 선택자는 #bk 또는 .bk- 로 시작한다(전역 규칙 없음). #bk 밖에 놓이는 것(막대·창·알림)은 .bk- 로 시작.
   · 여러 화면이 함께 쓰는 것만 여기에. 한 화면만 쓰는 모양은 p_<화면>.css 로.
   · 색·치수는 아래 변수만 쓴다. 모서리는 6~14px(동그라미·알약 모양 없음). 주황은 누를 수 있는 것에만.
   · --bk-mnav: 모바일 하단 메뉴 높이. bk.js 가 실제 높이를 재서 <html> 에 넣는다(없으면 62px).
   · 사용법: /backup/book_redesign_20261129/spec/UI_KIT.md */

#bk, .bk-tray, .bk-dock, .bk-sheet, .bk-toast, .bk-dim {
  --bk-paper: #FAF5EC; --bk-band: #F3E9D7; --bk-card: #FFFDF8; --bk-white: #FFFFFF;
  --bk-ink: #3B2A1A; --bk-ink2: #6B5644; --bk-ink3: #8A7763; --bk-line: #E4D5BD;
  --bk-kraft: #C89F6B; --bk-kraft-d: #A97F4E; --bk-kraft-dd: #7A5530; --bk-kraft-l: #E9D3B0;
  --bk-or: #F4691F; --bk-or-d: #C9500F; --bk-or-l: #FFE9DA;
  --bk-dark: #2A231C; --bk-dark-t: #FFF7EA; --bk-dark-t2: #CDBFAA;
  --bk-warn: #8A5A00; --bk-warn-bg: #FFF4D6; --bk-mute: #7A6E61; --bk-mute-bg: #EFE9DF; --bk-ok: #2F6B4A; --bk-ok-bg: #E3F1E8; --bk-err: #B3401A;
  --bk-s0: #D9623B; --bk-s1: #2F5D62; --bk-s2: #D99A2B; --bk-s3: #49654A; --bk-s4: #2E4A6B; --bk-s5: #9C3D2E;
  --bk-shadow: 0 4px 14px rgba(92, 62, 27, .10);
  --bk-h1-xl: 26px; --bk-h1-l: 26px; --bk-h1-m: 24px;   /* 화면 큰 제목(h1) 세 단계: xl 첫 화면 · l 고르는 화면(골라드림 결과·상황별·한 상자) · m 그 밖. PC 값은 아래 768px 부터 44 · 40 · 32 */
  --bk-corr: repeating-linear-gradient(115deg, #8E683B 0 2px, #E3C79C 2px 6px);                       /* 골판지 단면 */
  --bk-kraft-face: repeating-linear-gradient(90deg, rgba(122,85,48,.08) 0 1px, transparent 1px 5px), linear-gradient(180deg, #CFA772, #C0965F);   /* 골판지 겉면 */
}

/* ───────── 바탕 ───────── */
#bk {
  position: relative; background: var(--bk-paper);
  border-image: conic-gradient(#FAF5EC 0 0) fill 0 / 0 / 0 100vw 56px 100vw;   /* 공통 틀(1168px) 밖 좌우와 아래 여백(공통 틀의 96px 가운데 남는 56px)까지 종이색으로 */
  color: var(--bk-ink); font-size: 16px; line-height: 1.5; letter-spacing: -.01em; font-weight: 400;
  word-break: keep-all; overflow-wrap: anywhere; padding-bottom: 0; margin-bottom: -40px; -webkit-text-size-adjust: 100%;
  min-height: calc(100vh - 120px);   /* 본문이 짧은 화면(결제 결과·빈 주문서 등)에서도 종이색이 풋터까지 이어지게 — 공통 틀(min-h-screen)에서 헤더 64px 와 아래 여백 56px 를 뺀 높이 */   /* 공통 틀이 아래에 96px 를 더 두므로 그만큼 당긴다(본문 끝 ~ 풋터 사이가 너무 비지 않게) */
}
#bk *, #bk *::before, #bk *::after, .bk-tray *, .bk-dock *, .bk-sheet *, .bk-toast * { box-sizing: border-box; }
#bk h1, #bk h2, #bk h3, #bk h4, #bk p, #bk ol, #bk ul, #bk dl, #bk dd, #bk figure { margin: 0; padding: 0; }
#bk ol, #bk ul { list-style: none; }
#bk a { color: inherit; text-decoration: none; }
#bk img { max-width: none; }
#bk s { text-decoration: line-through; }
#bk i, #bk em { font-style: normal; }
#bk button { font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; }
#bk a:focus-visible, #bk button:focus-visible, #bk input:focus-visible, #bk select:focus-visible, #bk textarea:focus-visible, #bk summary:focus-visible,
.bk-tray a:focus-visible, .bk-dock a:focus-visible, .bk-dock button:focus-visible, .bk-sheet a:focus-visible, .bk-sheet button:focus-visible, .bk-sheet input:focus-visible, .bk-toast a:focus-visible {
  outline: 3px solid var(--bk-s4); outline-offset: 2px; }
.bk-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bk-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (max-width: 767.98px) { #bk .bk-only-pc { display: none !important; } }
@media (min-width: 768px) { #bk .bk-only-m { display: none !important; } }

/* ───────── 단추 ───────── */
#bk .bk-btn, .bk-sheet .bk-btn, .bk-dock .bk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: 1.5px solid transparent; border-radius: 10px; background: none; color: var(--bk-ink);
  font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .12s; }
#bk .bk-btn:active, .bk-sheet .bk-btn:active, .bk-dock .bk-btn:active { transform: translateY(1px); }
#bk .bk-btn--pri, .bk-sheet .bk-btn--pri, .bk-dock .bk-btn--pri { background: var(--bk-or); border-color: var(--bk-or); color: #fff; box-shadow: 0 3px 0 var(--bk-or-d); }
#bk .bk-btn--pri:hover, .bk-sheet .bk-btn--pri:hover, .bk-dock .bk-btn--pri:hover { background: #E85F17; }
#bk .bk-btn--line, .bk-sheet .bk-btn--line, .bk-dock .bk-btn--line { background: var(--bk-card); border-color: var(--bk-or); color: var(--bk-or-d); }
#bk .bk-btn--line:hover, .bk-sheet .bk-btn--line:hover, .bk-dock .bk-btn--line:hover { background: var(--bk-or-l); }
#bk .bk-btn--ink, .bk-sheet .bk-btn--ink, .bk-dock .bk-btn--ink { background: var(--bk-card); border-color: var(--bk-ink); color: var(--bk-ink); }
#bk .bk-btn--ink:hover, .bk-sheet .bk-btn--ink:hover, .bk-dock .bk-btn--ink:hover { background: var(--bk-band); }
#bk .bk-btn--sm, .bk-sheet .bk-btn--sm { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 9px; }
#bk .bk-btn--lg, .bk-dock .bk-btn--lg { min-height: 54px; padding: 0 24px; font-size: 17px; }
#bk .bk-btn--block, .bk-sheet .bk-btn--block, .bk-dock .bk-btn--block { display: flex; width: 100%; }
#bk .bk-btn.is-in { background: var(--bk-ok-bg); border-color: var(--bk-ok); color: var(--bk-ok); box-shadow: none; }
#bk .bk-btn.is-busy, #bk .bk-add.is-busy { opacity: .6; pointer-events: none; }
#bk .bk-btn.is-sold, #bk .bk-btn[disabled], .bk-sheet .bk-btn[disabled], .bk-dock .bk-btn[disabled] { background: var(--bk-mute-bg); border-color: var(--bk-mute-bg); color: var(--bk-mute); box-shadow: none; cursor: default; pointer-events: none; }
#bk .bk-btns { display: flex; flex-wrap: wrap; gap: 8px; }
#bk .bk-btns--stretch > * { flex: 1 1 0; }

/* "모두 보기 →" 고리 */
#bk .bk-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--bk-or-d); white-space: nowrap; }
#bk .bk-more::after { content: ""; width: 8px; height: 8px; margin-left: 6px; border-top: 2.2px solid currentColor; border-right: 2.2px solid currentColor; transform: rotate(45deg); }
#bk .bk-more:hover { text-decoration: underline; text-underline-offset: 3px; }
#bk .bk-link { color: var(--bk-or-d); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 담기 단추(카드 안) */
#bk .bk-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 84px; padding: 0 14px;
  background: var(--bk-card); border: 1.5px solid var(--bk-or); border-radius: 9px; color: var(--bk-or-d);
  font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
#bk .bk-add::before, #bk .bk-btn[data-bk-add]::before { content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 100% 2.4px no-repeat, linear-gradient(currentColor, currentColor) center / 2.4px 100% no-repeat; }
#bk .bk-add:hover { background: var(--bk-or); color: #fff; }
#bk .bk-add.is-in { background: var(--bk-ok-bg); border-color: var(--bk-ok); color: var(--bk-ok); }
#bk .bk-add.is-in::before, #bk .bk-btn.is-in::before { content: ""; flex: none; width: 12px; height: 7px; margin-top: -3px; background: none; border-left: 2.4px solid currentColor; border-bottom: 2.4px solid currentColor; transform: rotate(-45deg); }
#bk .bk-add.is-sold { background: var(--bk-mute-bg); border-color: var(--bk-mute-bg); color: var(--bk-mute); cursor: default; }
#bk .bk-add.is-sold::before { display: none; }

/* ───────── 딱지 ───────── */
#bk .bk-chip, .bk-sheet .bk-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 1px 8px; background: var(--bk-card); border: 1px solid var(--bk-ink); border-radius: 4px;
  font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--bk-ink); white-space: nowrap; }
#bk .bk-chip--warn { background: var(--bk-warn-bg); border-color: var(--bk-warn-bg); color: var(--bk-warn); }
#bk .bk-chip--ok { background: var(--bk-ok-bg); border-color: var(--bk-ok-bg); color: var(--bk-ok); }
#bk .bk-chip--mute { background: var(--bk-mute-bg); border-color: var(--bk-mute-bg); color: var(--bk-mute); }
#bk .bk-chip--on { background: var(--bk-card); border-color: var(--bk-or-d); color: var(--bk-or-d); }
#bk .bk-eyebrow { display: inline-block; padding: 3px 10px; background: var(--bk-card); border: 1.5px solid var(--bk-ink); border-radius: 4px; font-size: 14px; font-weight: 700; color: var(--bk-ink); }
#bk .bk-flags { position: absolute; left: 6px; bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
#bk .bk-flag { display: inline-block; padding: 1px 6px; background: var(--bk-card); border: 1px solid var(--bk-ink); border-radius: 3px; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--bk-ink); white-space: nowrap; }
#bk .bk-flag--sold { background: var(--bk-mute-bg); border-color: var(--bk-mute); color: var(--bk-mute); }
#bk .bk-flag--pick { background: var(--bk-ink); color: #fff; }
#bk .bk-rankflag { position: absolute; left: 8px; top: 0; width: 32px; height: 40px; padding-top: 3px; text-align: center;
  font-family: "Noto Sans KR", "Noto Sans", sans-serif; font-size: 17px; font-weight: 900; line-height: 1.5; color: #fff; background: var(--bk-ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }

/* ───────── 안쪽 메뉴 ───────── */
#bk .bk-nav { position: relative; z-index: 20; background: var(--bk-card); border-bottom: 1.5px solid var(--bk-line);
  border-image: conic-gradient(#FFFDF8 0 0) fill 0 / 0 / 0 100vw; box-shadow: 0 1.5px 0 var(--bk-line), -100vw 1.5px 0 var(--bk-line), 100vw 1.5px 0 var(--bk-line); }
#bk .bk-nav__in { display: flex; align-items: center; gap: 12px; }
#bk .bk-nav__menu { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 8px; }
#bk .bk-nav__menu::-webkit-scrollbar { display: none; }
#bk .bk-nav__a { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 9px; font-size: 15px; font-weight: 500; color: var(--bk-ink2); white-space: nowrap; }
#bk .bk-nav__a:hover { color: var(--bk-ink); }
#bk .bk-nav__a.is-on { color: var(--bk-ink); font-weight: 700; }
#bk .bk-nav__a.is-on::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 0; height: 4px; background: var(--bk-ink); border-radius: 2px 2px 0 0; }
#bk .bk-nav__search { display: none; }
#bk .bk-nav--msearch .bk-nav__in { flex-wrap: wrap; }
#bk .bk-nav--msearch .bk-nav__menu { flex: 0 0 calc(100% + 32px); }
#bk .bk-nav--msearch .bk-nav__search { display: block; flex: 0 0 100%; padding: 0 0 10px; }
@media (min-width: 768px) {
  #bk .bk-nav__menu { margin: 0 0 0 -9px; padding: 0; }
  #bk .bk-nav--msearch .bk-nav__in { flex-wrap: nowrap; }
  #bk .bk-nav--msearch .bk-nav__menu { flex: 1 1 auto; }
  #bk .bk-nav__search, #bk .bk-nav--msearch .bk-nav__search { display: block; flex: 0 0 240px; padding: 0; }
  #bk .bk-nav__a { min-height: 56px; }
}
@media (min-width: 1100px) { #bk .bk-nav__search, #bk .bk-nav--msearch .bk-nav__search { flex-basis: 300px; } #bk .bk-nav__a { padding: 0 11px; } #bk .bk-nav__a.is-on::after { left: 11px; right: 11px; } #bk .bk-nav__menu { margin-left: -11px; } }

/* ───────── 찾기 칸 ───────── */
#bk .bk-search { position: relative; display: flex; align-items: center; height: 52px; background: var(--bk-white); border: 1.5px solid var(--bk-kraft-d); border-radius: 10px; }
#bk .bk-search:focus-within { border-color: var(--bk-ink); box-shadow: 0 0 0 3px var(--bk-kraft-l); }
#bk .bk-search .bk-search__in:focus-visible { outline: none; }   /* 초점 표시는 칸 전체(위 줄)가 맡는다 */
#bk .bk-search__ico { flex: none; width: 18px; height: 18px; margin-left: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5530' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat; }
#bk .bk-search__in { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
  font: inherit; font-size: 16px; color: var(--bk-ink); -webkit-appearance: none; appearance: none; }
#bk .bk-search__in::placeholder { color: var(--bk-ink3); font-size: 15px; }
#bk .bk-search__in::-webkit-search-cancel-button { -webkit-appearance: none; }
#bk .bk-search__btn { flex: none; align-self: stretch; min-width: 60px; margin: -1.5px; padding: 0 14px; background: var(--bk-ink); border: 0; border-radius: 0 10px 10px 0; color: #fff; font-size: 15px; font-weight: 700; }
#bk .bk-search--sm { height: 44px; }
#bk .bk-search__sug { position: absolute; z-index: 30; left: -1.5px; right: -1.5px; top: calc(100% + 6px); padding: 6px; background: var(--bk-white); border: 1.5px solid var(--bk-ink); border-radius: 10px; box-shadow: var(--bk-shadow); max-height: 60vh; overflow-y: auto; }
#bk .bk-search__sug[hidden] { display: none; }
#bk .bk-sug__k { padding: 8px 10px 4px; font-size: 13px; font-weight: 700; color: var(--bk-ink2); display: flex; align-items: center; justify-content: space-between; }
#bk .bk-sug__k button { min-height: 32px; padding: 0 6px; background: none; border: 0; font-size: 13px; color: var(--bk-ink2); text-decoration: underline; }
#bk .bk-sug__a { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px; border-radius: 7px; font-size: 15px; line-height: 1.4; color: var(--bk-ink); }
#bk .bk-sug__a:hover, #bk .bk-sug__a.is-cur { background: var(--bk-band); }
#bk .bk-sug__a b { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bk .bk-sug__a small { flex: none; max-width: 40%; font-size: 13px; color: var(--bk-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────── 구획 ───────── */
#bk .bk-sec { padding: 32px 0; }
#bk .bk-sec--band { background: var(--bk-band); border-image: conic-gradient(#F3E9D7 0 0) fill 0 / 0 / 0 100vw; }
#bk .bk-sec--white { background: var(--bk-card); border-image: conic-gradient(#FFFDF8 0 0) fill 0 / 0 / 0 100vw; }
#bk .bk-sec--dark { background: var(--bk-dark); border-image: conic-gradient(#2A231C 0 0) fill 0 / 0 / 0 100vw; color: var(--bk-dark-t); }
#bk .bk-sec--tight { padding: 20px 0; }
#bk .bk-sec__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eye eye" "h more" "p p"; align-items: end; gap: 0 12px; margin-bottom: 16px; }
#bk .bk-sec__ttl { display: contents; }   /* 제목 줄 오른쪽에 "더 보기", 설명은 그 아래 전체 폭 */
#bk .bk-sec__ttl .bk-eyebrow { grid-area: eye; justify-self: start; margin-bottom: 8px; }
#bk .bk-sec__h { grid-area: h; min-width: 0; }
#bk .bk-sec__p { grid-area: p; min-width: 0; }
#bk .bk-sec__head > .bk-more { grid-area: more; margin: -10px 0 -7px; }
#bk .bk-sec__h { font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -.035em; }
#bk h1.bk-sec__h { font-size: var(--bk-h1-m); }
#bk .bk-sec__p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--bk-ink2); }
#bk .bk-sec--dark .bk-sec__p { color: var(--bk-dark-t2); }
#bk .bk-sec--dark .bk-more { color: #FFB98F; }
#bk .bk-sec__foot { display: flex; justify-content: center; margin-top: 18px; }
@media (min-width: 768px) {
  #bk .bk-sec { padding: 48px 0; }
  #bk .bk-sec--tight { padding: 28px 0; }
  #bk .bk-sec__head { grid-template-areas: "eye eye" "h more" "p more"; margin-bottom: 22px; }
  #bk .bk-sec__head > .bk-more { margin: 0 0 -9px; }
  #bk { --bk-h1-xl: 44px; --bk-h1-l: 40px; --bk-h1-m: 32px; }
  #bk .bk-sec__h { font-size: 28px; }
  #bk .bk-sec__p { font-size: 16px; }
}
@media (min-width: 1232px) { .bk-wrap { padding: 0; max-width: 1168px; } #bk .bk-nav__menu { margin-left: -11px; } }

/* ───────── 값 ───────── */
#bk .bk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; line-height: 1.3; }
#bk .bk-price b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--bk-ink); }
#bk .bk-price s { font-size: 13px; color: var(--bk-ink3); }
#bk .bk-price--lg b { font-size: 26px; }
#bk .bk-price--lg s { font-size: 15px; }

/* ───────── 책 카드 ───────── */
#bk .bk-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
#bk .bk-card__cover { position: relative; display: block; flex: none; width: 100%; aspect-ratio: 4 / 5; background: linear-gradient(180deg, #F3E9D7, #EADCC3); border-radius: 10px 10px 0 0; border-bottom: 5px solid var(--bk-kraft); overflow: hidden; }
#bk .bk-card__cover img { position: absolute; left: 14%; top: 8%; width: 72%; height: 92%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(3px 0 5px rgba(59, 42, 26, .26)); transition: transform .18s; transform-origin: 50% 100%; }
#bk a.bk-card__cover:hover img { transform: translateY(-3px); }
#bk .bk-card.is-sold .bk-card__cover img { opacity: .55; }
#bk .bk-card__body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 10px 2px 0; }
#bk .bk-card__title { font-size: 16px; font-weight: 700; line-height: 1.38; letter-spacing: -.03em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#bk .bk-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
#bk .bk-card__title a::after { content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 5; }   /* 표지 어디를 눌러도 상세로 */
#bk .bk-card__author { margin-top: 3px; font-size: 14px; color: var(--bk-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bk .bk-card__line { margin-top: 7px; padding-left: 8px; border-left: 3px solid var(--bk-kraft-l); font-size: 14px; line-height: 1.45; color: var(--bk-ink2); letter-spacing: -.03em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#bk .bk-card__line--why { border-left-color: var(--bk-kraft-d); color: var(--bk-ink); }
#bk .bk-card__foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
#bk .bk-card__foot .bk-add { width: 100%; }
/* 작은 카드(가로 줄) */
#bk .bk-card--sm .bk-card__title { font-size: 15px; }
#bk .bk-card--sm .bk-price b { font-size: 16px; }
/* 행 모양(표지 왼쪽) */
#bk .bk-card--row { flex-direction: row; gap: 14px; align-items: stretch; }
#bk .bk-card--row .bk-card__cover { width: 92px; aspect-ratio: 3 / 4; border-radius: 8px 8px 0 0; border-bottom-width: 4px; align-self: flex-start; }
#bk .bk-card--row .bk-card__cover img { left: 9%; top: 6%; width: 82%; height: 94%; }
#bk .bk-card--row .bk-card__title a::after { right: auto; width: 92px; aspect-ratio: 3 / 4; }
#bk .bk-card--row .bk-card__body { padding: 0; }
#bk .bk-card--row .bk-card__foot { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 8px; }
#bk .bk-card--row .bk-card__foot .bk-add { width: auto; }
#bk .bk-card--row .bk-rankflag { left: 4px; width: 28px; height: 34px; font-size: 15px; }

/* 책 목록 격자: 모바일 1열 행 → PC 5칸 */
#bk .bk-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (max-width: 767.98px) {
  #bk .bk-grid > .bk-card { flex-direction: row; gap: 14px; padding: 14px 0; border-top: 1.5px dashed var(--bk-line); }
  #bk .bk-grid > .bk-card:first-child { border-top: 0; padding-top: 2px; }
  #bk .bk-grid > .bk-card .bk-card__cover { width: 92px; aspect-ratio: 3 / 4; border-radius: 8px 8px 0 0; border-bottom-width: 4px; align-self: flex-start; }
  #bk .bk-grid > .bk-card .bk-card__cover img { left: 9%; top: 6%; width: 82%; height: 94%; }
  #bk .bk-grid > .bk-card .bk-card__title a::after { top: 14px; right: auto; width: 92px; aspect-ratio: 3 / 4; }
  #bk .bk-grid > .bk-card:first-child .bk-card__title a::after { top: 2px; }
  #bk .bk-grid > .bk-card .bk-card__body { padding: 0; }
  #bk .bk-grid > .bk-card .bk-card__foot { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-top: 8px; }
  #bk .bk-grid > .bk-card .bk-card__foot .bk-add { width: auto; }
  #bk .bk-grid > .bk-card .bk-rankflag { left: 4px; width: 28px; height: 34px; font-size: 15px; }
}
@media (min-width: 768px) {
  #bk .bk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  #bk .bk-grid--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
}
@media (min-width: 1024px) {
  #bk .bk-grid--4, #bk .bk-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #bk .bk-grid--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { #bk .bk-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 22px; } #bk .bk-grid--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#bk .bk-grid--rows > .bk-card { flex-direction: row; gap: 14px; }
@media (min-width: 768px) {
  #bk .bk-grid--rows > .bk-card .bk-card__cover { width: 104px; aspect-ratio: 3 / 4; border-radius: 8px 8px 0 0; align-self: flex-start; }
  #bk .bk-grid--rows > .bk-card .bk-card__cover img { left: 9%; top: 6%; width: 82%; height: 94%; }
  #bk .bk-grid--rows > .bk-card .bk-card__title a::after { right: auto; width: 104px; aspect-ratio: 3 / 4; }
  #bk .bk-grid--rows > .bk-card .bk-card__body { padding: 0; }
  #bk .bk-grid--rows > .bk-card .bk-card__foot { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  #bk .bk-grid--rows > .bk-card .bk-card__foot .bk-add { width: auto; }
}

/* 가로로 미는 한 줄 */
#bk .bk-scroll { position: relative; margin: 0 -16px; }
#bk .bk-scroll__row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 10px; scroll-snap-type: x proximity; scroll-padding-left: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#bk .bk-scroll__row::-webkit-scrollbar { display: none; }
#bk .bk-scroll__row > * { flex: 0 0 140px; scroll-snap-align: start; }
#bk .bk-scroll__nav { position: absolute; z-index: 3; top: 70px; width: 44px; height: 44px; padding: 0; background: var(--bk-card); border: 1.5px solid var(--bk-ink); border-radius: 10px; box-shadow: var(--bk-shadow); }
#bk .bk-scroll__nav[hidden] { display: none; }
#bk .bk-scroll__nav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -7px; border-top: 2.4px solid var(--bk-ink); border-right: 2.4px solid var(--bk-ink); transform: rotate(45deg); }
#bk .bk-scroll__nav--prev { left: 4px; }
#bk .bk-scroll__nav--prev::before { transform: rotate(-135deg); margin-left: -3px; }
#bk .bk-scroll__nav--next { right: 4px; }
@media (max-width: 767.98px) { #bk .bk-scroll__nav { display: none; } }
@media (min-width: 768px) { #bk .bk-scroll__row > * { flex-basis: 160px; } #bk .bk-scroll__row { gap: 20px; } }
@media (min-width: 1232px) { #bk .bk-scroll { margin: 0; } #bk .bk-scroll__row { padding-left: 0; padding-right: 0; scroll-padding-left: 0; } #bk .bk-scroll__nav--prev { left: -14px; } #bk .bk-scroll__nav--next { right: -14px; } }

/* ───────── 많이 보낸 책 순위판(어두운 띠 안) ───────── */
#bk .bk-rank { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
#bk .bk-rank__top { position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; align-items: end; padding: 18px 16px 16px; background: #362D24; border: 1.5px solid #4A3F33; border-radius: 14px; }
#bk .bk-rank__no { position: absolute; left: 10px; top: -14px; z-index: 2; font-family: "Noto Sans KR", "Noto Sans", sans-serif; font-size: 68px; font-weight: 900; line-height: 1; color: var(--bk-kraft); text-shadow: 3px 3px 0 var(--bk-dark); letter-spacing: -.04em; }
#bk .bk-rank__cover { position: relative; display: block; aspect-ratio: 2 / 3; }
#bk .bk-rank__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, .45)); }
#bk .bk-rank__body { min-width: 0; }
#bk .bk-rank__title { font-size: 19px; font-weight: 800; line-height: 1.35; letter-spacing: -.03em; color: var(--bk-dark-t); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#bk .bk-rank__title a::after { content: ""; position: absolute; left: 16px; bottom: 16px; width: 124px; aspect-ratio: 2 / 3; }
#bk .bk-rank__author { margin-top: 4px; font-size: 14px; color: var(--bk-dark-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bk .bk-rank__line { margin-top: 8px; padding-left: 8px; border-left: 3px solid var(--bk-kraft-d); font-size: 14px; line-height: 1.5; color: var(--bk-dark-t2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#bk .bk-rank__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
#bk .bk-sec--dark .bk-price b { color: var(--bk-dark-t); }
#bk .bk-sec--dark .bk-price s { color: var(--bk-dark-t2); }
#bk .bk-sec--dark .bk-add { background: transparent; border-color: var(--bk-or); color: #FFB98F; }
#bk .bk-sec--dark .bk-add:hover { background: var(--bk-or); color: #fff; }
#bk .bk-sec--dark .bk-add.is-in { background: transparent; border-color: #8FCDA9; color: #8FCDA9; }
#bk .bk-sec--dark .bk-flag { border-color: var(--bk-dark); }
#bk .bk-rank__rest { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x proximity; scroll-padding-left: 16px; scrollbar-width: none; counter-reset: none; }
#bk .bk-rank__rest::-webkit-scrollbar { display: none; }
#bk .bk-rank__i { position: relative; flex: 0 0 132px; display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; }
#bk .bk-rank__c { position: relative; display: block; aspect-ratio: 4 / 5; background: #362D24; border-radius: 10px 10px 0 0; border-bottom: 4px solid var(--bk-kraft-dd); overflow: hidden; }
#bk .bk-rank__c img { position: absolute; left: 16%; top: 9%; width: 68%; height: 91%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(3px 0 5px rgba(0, 0, 0, .4)); }
#bk .bk-rank__n { position: absolute; left: 0; top: 0; min-width: 34px; height: 36px; padding: 0 6px; display: flex; align-items: center; justify-content: center; background: var(--bk-dark); border-radius: 0 0 8px 0;
  font-family: "Noto Sans KR", "Noto Sans", sans-serif; font-size: 20px; font-weight: 900; color: var(--bk-kraft); }
#bk .bk-rank__t { margin-top: 9px; font-size: 15px; font-weight: 700; line-height: 1.38; letter-spacing: -.03em; color: var(--bk-dark-t); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#bk .bk-rank__t a::after { content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 5; }
#bk .bk-rank__a { margin-top: 2px; font-size: 14px; color: var(--bk-dark-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bk .bk-rank__f { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
#bk .bk-rank__f .bk-add { width: 100%; }
@media (min-width: 1024px) {
  #bk .bk-rank { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: stretch; }
  #bk .bk-rank__top { grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; padding: 28px 28px 24px; }
  #bk .bk-rank__no { left: 14px; top: -22px; font-size: 104px; }
  #bk .bk-rank__cover { width: 200px; margin: 0 auto; }
  #bk .bk-rank__title { font-size: 22px; }
  #bk .bk-rank__title a::after { left: 50%; top: 28px; bottom: auto; width: 200px; margin-left: -100px; }
  #bk .bk-rank__rest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; overflow: visible; margin: 0; padding: 0; }
  #bk .bk-rank__i { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 12px; align-content: start; padding: 10px; background: #362D24; border: 1.5px solid #4A3F33; border-radius: 12px; }
  #bk .bk-rank__c { grid-row: 1 / 4; aspect-ratio: 3 / 4; background: none; border: 0; border-radius: 0; overflow: visible; }
  #bk .bk-rank__c img { left: 0; top: 0; width: 100%; height: 100%; }
  #bk .bk-rank__n { left: -10px; top: -10px; border-radius: 10px 0 8px 0; background: #362D24; }
  #bk .bk-rank__t { margin-top: 0; padding-left: 0; }
  #bk .bk-rank__t a::after { right: auto; left: 10px; top: 10px; width: 84px; aspect-ratio: 3 / 4; }
  #bk .bk-rank__t, #bk .bk-rank__a { grid-column: 2; }
  #bk .bk-rank__f { grid-column: 2; grid-row: 3; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; align-self: end; }   /* 지은이가 없는 책도 값·담기는 늘 맨 아래 줄 */
  #bk .bk-rank__f .bk-add { width: auto; min-width: 76px; padding: 0 10px; }
}

/* ───────── 한 상자 카드 ───────── */
#bk .bk-boxes { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 14px; scroll-snap-type: x proximity; scroll-padding-left: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#bk .bk-boxes::-webkit-scrollbar { display: none; }
#bk .bk-boxes > .bk-bx { flex: 0 0 276px; scroll-snap-align: start; }
#bk .bk-boxes--grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; overflow: visible; margin: 0; padding: 0; }
@media (min-width: 640px) { #bk .bk-boxes--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) {
  #bk .bk-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; }
  #bk .bk-boxes--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
}
#bk .bk-bx { --bk-bx: var(--bk-s0); position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--bk-card); border: 1.5px solid var(--bk-line); border-radius: 14px; overflow: hidden; box-shadow: var(--bk-shadow); }
#bk .bk-bx__top { position: relative; display: block; padding: 18px 18px 0; background: linear-gradient(180deg, #EFE0C5, #E6D1AE); border-top: 6px solid var(--bk-bx); }
#bk .bk-bx__covers { display: flex; align-items: flex-end; padding: 0 2px; }
#bk .bk-bx__cv { position: relative; flex: none; width: 27%; aspect-ratio: 2 / 3; margin-left: -8.75%; background: #EFE4D0; border-radius: 2px; box-shadow: -3px 0 6px rgba(59, 42, 26, .28); overflow: hidden; }
#bk .bk-bx__cv:first-child { margin-left: 0; }
#bk .bk-bx__cv:nth-child(2n) { margin-bottom: 6px; }
#bk .bk-bx__cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#bk .bk-bx__cv.is-sold img { opacity: .45; }
#bk .bk-bx__cv .bk-flag { position: absolute; left: 2px; top: 2px; font-size: 12px; padding: 0 3px; }
#bk .bk-bx__lip { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; height: 42px; margin: -24px -18px 0; padding-top: 7px; border-top: 2px solid #E9D3B0;
  background: var(--bk-corr) top / 100% 7px no-repeat, var(--bk-kraft-face); font-size: 14px; font-weight: 700; color: #4A2C0E; letter-spacing: .01em; }
#bk .bk-bx__body { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 16px; }
#bk .bk-bx__h { font-size: 18px; font-weight: 800; line-height: 1.35; letter-spacing: -.03em; }
#bk .bk-bx__h a { display: block; padding: 10px 0; margin: -10px 0; }
#bk .bk-bx__h a:hover { text-decoration: underline; text-underline-offset: 3px; }
#bk .bk-bx__p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--bk-ink2); }
#bk .bk-bx__price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin-top: auto; padding-top: 12px; }
#bk .bk-bx__p + .bk-bx__price, #bk .bk-bx__h + .bk-bx__price { border-top: 0; }
#bk .bk-bx__body > .bk-bx__price { margin-top: auto; }
#bk .bk-bx__price::before { content: ""; flex: 0 0 100%; height: 0; margin-bottom: 10px; border-top: 1.5px dashed var(--bk-line); }
#bk .bk-bx__price span { font-size: 14px; color: var(--bk-ink2); }
#bk .bk-bx__price b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
#bk .bk-bx__fee { font-size: 14px; color: var(--bk-ink2); text-align: right; }
#bk .bk-bx__act { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
#bk .bk-bx__more { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--bk-ink2); text-decoration: underline; text-underline-offset: 3px; }
#bk .bk-bx__more:hover { color: var(--bk-ink); }

/* ───────── 상황 카드 · 작은 단추 줄 ───────── */
#bk .bk-themes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 640px) { #bk .bk-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { #bk .bk-themes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } #bk .bk-themes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#bk .bk-th { --bk-th: var(--bk-s0); position: relative; min-width: 0; background: var(--bk-card); border: 1.5px solid var(--bk-line); border-radius: 10px; overflow: hidden; transition: border-color .15s, transform .12s; }
#bk .bk-th::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: var(--bk-th); box-shadow: inset -2px 0 0 rgba(0, 0, 0, .14); }
#bk .bk-th:hover { border-color: var(--bk-ink); transform: translateY(-1px); }
#bk .bk-th__a { display: flex; align-items: center; gap: 12px; min-height: 84px; height: 100%; padding: 10px 12px 10px 21px; }
#bk .bk-th__covers { flex: none; display: flex; align-items: flex-end; }
#bk .bk-th__covers img { width: 44px; height: 64px; object-fit: cover; border-radius: 2px; background: #EFE4D0; box-shadow: 0 2px 5px rgba(59, 42, 26, .25); }
#bk .bk-th__covers img + img { width: 40px; height: 58px; margin-left: -12px; }
#bk .bk-th__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#bk .bk-th__h { font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.03em; }
#bk .bk-th__p { margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--bk-ink2); letter-spacing: -.02em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#bk .bk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#bk .bk-tags__k { flex: 0 0 100%; font-size: 14px; font-weight: 700; color: var(--bk-ink2); }
#bk .bk-tag { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--bk-card); border: 1.5px solid var(--bk-line); border-radius: 8px; font-size: 15px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; transition: background-color .15s, border-color .15s; }
#bk .bk-tag:hover { background: var(--bk-or-l); border-color: var(--bk-or); }
#bk .bk-tag.is-on { background: var(--bk-ink); border-color: var(--bk-ink); color: #fff; font-weight: 700; }
#bk .bk-tags--scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
#bk .bk-tags--scroll::-webkit-scrollbar { display: none; }
#bk .bk-tags--scroll .bk-tags__k { flex: none; }
#bk .bk-tags--scroll .bk-tag { flex: none; }
@media (min-width: 768px) { #bk .bk-tags__k { flex: none; margin-right: 4px; } #bk .bk-tags--scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
/* 가로로 미는 단추줄 ‹ › (2026-12-05 · 휴대폰만, 더 있는 쪽에만 보이고 그쪽 끝이 흐려진다) */
#bk .bk-tagsx { position: relative; }
#bk .bk-tagsx__go { position: absolute; z-index: 2; top: 50%; display: none; align-items: center; justify-content: center; width: 34px; height: 34px; margin-top: -19px; padding: 0;
  background: var(--bk-ink, #3B2A1A); color: #FFF8EC; border: 0; border-radius: 9px; box-shadow: 0 3px 10px rgba(59, 42, 26, .28); cursor: pointer; -webkit-tap-highlight-color: transparent; }
#bk .bk-tagsx__go--r { right: -6px; }
#bk .bk-tagsx__go--l { left: -6px; }
#bk .bk-tagsx.is-r .bk-tagsx__go--r, #bk .bk-tagsx.is-l .bk-tagsx__go--l { display: inline-flex; }
#bk .bk-tagsx.is-r .bk-tagsx__go--r svg { animation: bkTagNudge 1.6s ease-in-out 3; }
@keyframes bkTagNudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(3px); } }
#bk .bk-tagsx.is-r .bk-tags--scroll { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent calc(100% - 8px)); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent calc(100% - 8px)); }
#bk .bk-tagsx.is-l .bk-tags--scroll { -webkit-mask-image: linear-gradient(90deg, transparent 8px, #000 64px); mask-image: linear-gradient(90deg, transparent 8px, #000 64px); }
#bk .bk-tagsx.is-l.is-r .bk-tags--scroll { -webkit-mask-image: linear-gradient(90deg, transparent 8px, #000 64px, #000 calc(100% - 64px), transparent calc(100% - 8px)); mask-image: linear-gradient(90deg, transparent 8px, #000 64px, #000 calc(100% - 64px), transparent calc(100% - 8px)); }
@media (prefers-reduced-motion: reduce) { #bk .bk-tagsx__go svg { animation: none !important; } }
@media (min-width: 768px) { #bk .bk-tagsx__go { display: none !important; } #bk .bk-tagsx .bk-tags--scroll { -webkit-mask-image: none !important; mask-image: none !important; } }
/* 하위 분류 고르기 격자(2026-12-01) — 휴대폰 3열(좁으면 2열), PC 는 여러 열. 권 수는 적지 않는다 */
#bk .bk-subgrid__k { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--bk-ink2); letter-spacing: -.02em; }
#bk .bk-subgrid__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
#bk .bk-subgrid__list > li { min-width: 0; margin: 0; padding: 0; }
#bk .bk-subgrid__b { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 48px; padding: 6px 6px; background: var(--bk-card); border: 1.5px solid var(--bk-line); border-radius: 9px; color: var(--bk-ink); font-size: 14.5px; font-weight: 700; line-height: 1.25; letter-spacing: -.04em; text-align: center; word-break: keep-all; overflow-wrap: anywhere; transition: background-color .15s, border-color .15s; }
#bk .bk-subgrid__b:hover { background: var(--bk-or-l); border-color: var(--bk-or); }
#bk .bk-subgrid__b--all { border-style: dashed; color: var(--bk-ink2); }
#bk .bk-subgrid__b.is-on { background: var(--bk-ink); border-color: var(--bk-ink); border-style: solid; color: #fff; }
@media (max-width: 339.98px) { #bk .bk-subgrid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  #bk .bk-subgrid__list { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  #bk .bk-subgrid__b { min-height: 46px; font-size: 15px; }
}

/* ───────── 시리즈 줄 ───────── */
#bk .bk-series { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 900px) { #bk .bk-series { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; } }
#bk .bk-srow { display: flex; gap: 14px; min-width: 0; padding: 14px; background: var(--bk-card); border: 1.5px solid var(--bk-line); border-radius: 12px; }
#bk .bk-srow__cover { flex: none; width: 84px; align-self: flex-start; }
#bk .bk-srow__cover img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; background: #EFE4D0; box-shadow: 5px 0 0 -1px #E3D2B6, 9px 0 0 -2px #D7C3A2, 4px 4px 10px rgba(59, 42, 26, .25); }
#bk .bk-srow__body { flex: 1; min-width: 0; }
#bk .bk-srow__h { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.03em; }
#bk .bk-srow__h a { display: block; padding: 11px 0; margin: -11px 0; }
#bk .bk-srow__h a:hover { text-decoration: underline; text-underline-offset: 3px; }
#bk .bk-srow__meta { margin-top: 2px; font-size: 14px; color: var(--bk-ink2); }
#bk .bk-srow__sent { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--bk-ink); }
#bk .bk-srow__boxes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#bk .bk-vbox { display: inline-flex; flex-direction: column; min-width: 78px; transition: transform .15s; }
#bk .bk-vbox:hover { transform: translateY(-2px); }
#bk .bk-vbox__mini { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 18px; padding: 0 8px; }
#bk .bk-vbox__mini i { display: block; width: 9px; height: 15px; border-radius: 1.5px 1.5px 0 0; background: var(--bk-s0); }
#bk .bk-vbox__mini i:nth-child(5n+2) { background: var(--bk-s1); height: 18px; }
#bk .bk-vbox__mini i:nth-child(5n+3) { background: var(--bk-s2); height: 13px; }
#bk .bk-vbox__mini i:nth-child(5n+4) { background: var(--bk-s3); height: 17px; }
#bk .bk-vbox__mini i:nth-child(5n) { background: var(--bk-s4); }
#bk .bk-vbox b { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 10px 0; border-radius: 0 0 6px 6px; white-space: nowrap;
  background: var(--bk-corr) top / 100% 6px no-repeat, linear-gradient(180deg, #E6CFA8, #DDC298); font-size: 15px; font-weight: 700; color: #4A2C0E; letter-spacing: -.02em; }
#bk .bk-vbox.is-next b { box-shadow: inset 0 0 0 2.5px var(--bk-or); color: var(--bk-or-d); background: var(--bk-corr) top / 100% 6px no-repeat, var(--bk-or-l); }
#bk .bk-vbox.is-on b { box-shadow: inset 0 0 0 2.5px var(--bk-ink); }
@media (min-width: 768px) { #bk .bk-srow { padding: 18px; gap: 18px; } #bk .bk-srow__cover { width: 100px; } #bk .bk-srow__h { font-size: 20px; } }

/* ───────── 서가(책등 선반) ───────── */
#bk .bk-shelf { position: relative; margin: 0 -16px; padding-bottom: 14px; }
#bk .bk-shelf__row { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 6px; overflow-x: auto; padding: 8px 16px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#bk .bk-shelf__row::-webkit-scrollbar { display: none; }
#bk .bk-shelf__b { --bk-sp: var(--bk-s0); position: relative; flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 192px; padding: 22px 0 9px; background: var(--bk-sp); color: #fff; border-radius: 3px 3px 0 0;
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, .16), inset -3px 0 0 rgba(0, 0, 0, .16); transition: transform .15s; }
#bk .bk-shelf__b::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 3px; background: rgba(255, 255, 255, .5); }
#bk .bk-shelf__b:hover, #bk .bk-shelf__b.is-on { transform: translateY(-6px); }
#bk .bk-shelf__b.is-on { box-shadow: inset 3px 0 0 rgba(255, 255, 255, .16), inset -3px 0 0 rgba(0, 0, 0, .16), 0 0 0 3px var(--bk-ink); }
#bk .bk-shelf__b--h1 { height: 180px; }
#bk .bk-shelf__b--h2 { height: 186px; }
#bk .bk-shelf__t { flex: 1; min-height: 0; writing-mode: vertical-rl; font-size: 16px; font-weight: 700; letter-spacing: .02em; line-height: 1.15; white-space: nowrap; overflow: hidden; }
#bk .bk-shelf__n { flex: none; margin-top: 8px; width: 100%; height: 8px; border-top: 2px solid rgba(255, 255, 255, .4); border-bottom: 2px solid rgba(255, 255, 255, .4); }   /* 책등 아래 꾸밈 띠(글 없음 — 권 수는 찍지 않는다) */
#bk .bk-shelf__b[style*="#D99A2B"] { color: #3B2A1A; }
#bk .bk-shelf__b[style*="#D99A2B"]::before { background: rgba(59, 42, 26, .45); }
#bk .bk-shelf__b[style*="#D99A2B"] .bk-shelf__n { border-color: rgba(59, 42, 26, .4); }
#bk .bk-shelf__board { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(180deg, #B98C56 0 4px, #8E683B 4px); box-shadow: 0 6px 8px rgba(59, 42, 26, .18); }
@media (min-width: 900px) {
  #bk .bk-shelf { margin: 0; }
  #bk .bk-shelf__row { gap: 8px; padding: 10px 20px 0; overflow: visible; }
  #bk .bk-shelf__b { flex: 1 1 0; min-width: 58px; height: 212px; }
  #bk .bk-shelf__b--h1 { height: 198px; }
  #bk .bk-shelf__b--h2 { height: 205px; }
  #bk .bk-shelf__t { font-size: 18px; }
  #bk .bk-shelf__board { border-radius: 2px; }
}

/* ───────── 상자 그림(책 5칸) ───────── */
#bk .bk-box { position: relative; width: 100%; max-width: 480px; aspect-ratio: 100 / 68; filter: drop-shadow(0 14px 10px rgba(92, 62, 27, .2)); }
#bk .bk-box__lid { position: absolute; z-index: 1; left: 5%; right: 5%; top: 6%; height: 50%; background: linear-gradient(180deg, #EBD6B4, #DDBF93); clip-path: polygon(3.5% 0, 96.5% 0, 100% 100%, 0 100%); }
#bk .bk-box__lid::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(122, 85, 48, .07) 0 1px, transparent 1px 5px); }
#bk .bk-box__in { position: absolute; z-index: 2; left: 2.5%; right: 2.5%; top: 42%; height: 16%; background: linear-gradient(180deg, #6B4926, #8A6238); }
#bk .bk-box__books { position: absolute; z-index: 3; left: 6%; right: 6%; bottom: 41%; display: flex; align-items: flex-end; gap: 1.8%; }
#bk .bk-slot { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 2 / 3; }
#bk .bk-slot--h1 { transform: translateY(5%); }
#bk .bk-slot--h2 { transform: translateY(1.5%) rotate(-1.2deg); }
#bk .bk-slot--h3 { transform: translateY(6%); }
#bk .bk-slot--h4 { transform: translateY(2.5%) rotate(1deg); }
#bk .bk-slot.is-on a { position: absolute; inset: 0; display: block; background: #EFE4D0; border-radius: 2px 2px 0 0; box-shadow: inset 0 0 0 1px rgba(59, 42, 26, .12), 3px 0 0 -1px #E3D2B6, 4px 2px 8px rgba(59, 42, 26, .3); overflow: hidden; }
#bk .bk-slot.is-on img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
#bk .bk-slot.is-on a:hover { transform: translateY(-4px); transition: transform .15s; }
#bk .bk-slot.is-new { animation: bk-drop .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes bk-drop { from { translate: 0 -46px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
#bk .bk-slot--empty { --c: #D9623B; }
#bk .bk-slot--empty:nth-child(5n+2) { --c: #2F5D62; }
#bk .bk-slot--empty:nth-child(5n+3) { --c: #B37A14; }
#bk .bk-slot--empty:nth-child(5n+4) { --c: #49654A; }
#bk .bk-slot--empty:nth-child(5n) { --c: #2E4A6B; }
#bk .bk-slot--empty a, #bk .bk-slot__blank { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 20% 2px 0;
  background: linear-gradient(var(--c), var(--c)) 0 0 / 100% 7px no-repeat, rgba(255, 253, 248, .93); border: 2px dashed var(--c); border-top: 0; border-bottom: 0; border-radius: 3px 3px 0 0; color: var(--bk-ink);
  font-size: 13px; font-weight: 700; line-height: 1.25; letter-spacing: -.05em; text-align: center; text-wrap: balance; box-shadow: 3px 3px 8px rgba(59, 42, 26, .16); transition: transform .15s, background-color .15s; }
#bk .bk-slot__blank { background: linear-gradient(var(--c), var(--c)) 0 0 / 100% 7px no-repeat, rgba(255, 253, 248, .6); box-shadow: none; }
@media (hover: hover) { #bk .bk-slot--empty a:hover { transform: translateY(-4px); background-color: #fff; color: var(--bk-or-d); } }
#bk .bk-slot__plus { flex: none; width: 14px; height: 14px; color: var(--c); background: linear-gradient(currentColor, currentColor) center / 100% 2.6px no-repeat, linear-gradient(currentColor, currentColor) center / 2.6px 100% no-repeat; }
#bk .bk-box__flap { position: absolute; z-index: 4; top: 46%; width: 8%; height: 20%; background: linear-gradient(180deg, #B98C56, #A97F4E); }
#bk .bk-box__flap--l { left: -5.5%; clip-path: polygon(0 62%, 100% 0, 100% 42%, 0 100%); }
#bk .bk-box__flap--r { right: -5.5%; clip-path: polygon(0 0, 100% 62%, 100% 100%, 0 42%); }
#bk .bk-box__front { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 46%; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 20px 14px 10px; border-radius: 0 0 6px 6px; background: var(--bk-kraft-face); }
#bk .bk-box__edge { position: absolute; left: 0; right: 0; top: 0; height: 11px; background: var(--bk-corr); border-top: 2px solid #E9D3B0; border-bottom: 1.5px solid rgba(92, 62, 27, .45); }
#bk .bk-box__print { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; color: rgba(74, 44, 14, .85); line-height: 1.25; }
#bk .bk-box__print i { display: block; width: 30px; height: 26px; margin-bottom: 5px; opacity: .85;
  background: linear-gradient(currentColor, currentColor) 6px 100% / 3px 62% no-repeat, linear-gradient(currentColor, currentColor) 21px 100% / 3px 62% no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 3px no-repeat;
  clip-path: none; position: relative; }
#bk .bk-box__print i::before, #bk .bk-box__print i::after { content: ""; position: absolute; top: 0; width: 11px; height: 11px; border-left: 3px solid currentColor; border-top: 3px solid currentColor; transform: rotate(45deg); transform-origin: 0 0; }
#bk .bk-box__print i::before { left: 7.5px; top: 1px; }
#bk .bk-box__print i::after { left: 22.5px; top: 1px; }
#bk .bk-box__print span { font-size: 14px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
#bk .bk-box__print span:first-of-type { font-size: 16px; font-weight: 800; }
#bk .bk-box__label { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 80px; padding: 7px 12px 15px; background: var(--bk-card); border: 1px solid rgba(92, 62, 27, .35); border-radius: 3px; box-shadow: 0 2px 0 rgba(92, 62, 27, .25); transform: rotate(-1.4deg); color: var(--bk-ink); line-height: 1.3; letter-spacing: -.03em; }
#bk .bk-box__label::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 6px; opacity: .5; background: repeating-linear-gradient(90deg, var(--bk-ink) 0 2px, transparent 2px 4px, var(--bk-ink) 4px 5px, transparent 5px 9px); }
#bk a.bk-box__label:hover { box-shadow: 0 2px 0 rgba(92, 62, 27, .25), 0 0 0 2px var(--bk-or); }
#bk .bk-box__label-k { font-size: 13px; font-weight: 700; color: var(--bk-ink2); }
#bk .bk-box__label b { font-size: 17px; font-weight: 800; }
#bk .bk-box__label-s { font-size: 14px; font-weight: 500; color: var(--bk-ink2); }
#bk .bk-box--sm { max-width: 300px; }
#bk .bk-box--sm .bk-box__front { grid-template-columns: minmax(0, 1fr); padding: 16px 10px 8px; }
#bk .bk-box--sm .bk-box__print { display: none; }
@media (max-width: 359.98px) { #bk .bk-box__front { grid-template-columns: minmax(0, 1fr); } #bk .bk-box__print { display: none; } }
@media (min-width: 1024px) {
  #bk .bk-box:not(.bk-box--sm) .bk-box__front { padding: 28px 22px 16px; gap: 18px; }
  #bk .bk-box:not(.bk-box--sm) .bk-box__edge { height: 14px; }
  #bk .bk-box:not(.bk-box--sm) .bk-box__print span { font-size: 16px; }
  #bk .bk-box:not(.bk-box--sm) .bk-box__print span:first-of-type { font-size: 20px; }
  #bk .bk-box:not(.bk-box--sm) .bk-box__print i { width: 38px; height: 34px; }
  #bk .bk-box:not(.bk-box--sm) .bk-box__label { min-height: 104px; padding: 10px 18px 20px; }
  #bk .bk-box:not(.bk-box--sm) .bk-box__label::after { left: 18px; right: 18px; bottom: 8px; height: 7px; }
  #bk .bk-box:not(.bk-box--sm) .bk-box__label b { font-size: 21px; }
  #bk .bk-box:not(.bk-box--sm) .bk-box__label-s { font-size: 15px; }
  #bk .bk-box:not(.bk-box--sm) .bk-box__label-k { font-size: 14px; }
  #bk .bk-box:not(.bk-box--sm) .bk-slot--empty a { font-size: 16px; padding-top: 24%; gap: 8px; background-size: 100% 9px, auto; }
  #bk .bk-box:not(.bk-box--sm) .bk-slot__plus { width: 18px; height: 18px; }
}

/* ───────── 알림 · 띠 ───────── */
#bk .bk-note, .bk-sheet .bk-note { padding: 12px 14px; background: var(--bk-band); border-left: 4px solid var(--bk-kraft-d); border-radius: 0 8px 8px 0; font-size: 15px; line-height: 1.55; color: var(--bk-ink); }
#bk .bk-note__h, .bk-sheet .bk-note__h { display: block; margin-bottom: 2px; font-weight: 700; }
#bk .bk-note__a { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -10px; font-weight: 700; color: var(--bk-or-d); text-decoration: underline; text-underline-offset: 3px; }
#bk .bk-note--warn, .bk-sheet .bk-note--warn { background: var(--bk-warn-bg); border-left-color: var(--bk-warn); color: #5E3D00; }
#bk .bk-note--ok { background: var(--bk-ok-bg); border-left-color: var(--bk-ok); color: #1F4A33; }
#bk .bk-note--mute { background: var(--bk-mute-bg); border-left-color: var(--bk-mute); color: #5A5046; }
#bk .bk-note--err { background: #FCE9E1; border-left-color: var(--bk-err); color: #7E2C10; }
#bk .bk-strips { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; padding-bottom: 4px; }
#bk .bk-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 14px; background: var(--bk-band); border: 1.5px solid var(--bk-line); border-radius: 10px; font-size: 15px; line-height: 1.5; }
#bk .bk-strip__k { font-weight: 700; }
#bk .bk-strip--warn { background: var(--bk-warn-bg); border-color: #EBD28F; color: #5E3D00; }
#bk .bk-strip__a { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; font-weight: 700; color: var(--bk-or-d); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ───────── 빈 상태 ───────── */
#bk .bk-empty { display: flex; flex-direction: column; align-items: center; padding: 44px 16px; text-align: center; }
#bk .bk-empty__art { display: flex; align-items: flex-end; gap: 4px; height: 46px; margin-bottom: 16px; padding: 0 14px; border-bottom: 6px solid var(--bk-kraft); }
#bk .bk-empty__art i { display: block; width: 14px; height: 36px; border: 2px dashed var(--bk-kraft-d); border-bottom: 0; border-radius: 2px 2px 0 0; }
#bk .bk-empty__art i:nth-child(2) { height: 30px; }
#bk .bk-empty__h { font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: -.03em; }
#bk .bk-empty__p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--bk-ink2); }
#bk .bk-empty__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }

/* ───────── 쪽 나누기 · 경로 · 탭 ───────── */
#bk .bk-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
#bk .bk-pager__a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; background: var(--bk-card); border: 1.5px solid var(--bk-line); border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--bk-ink); }
#bk a.bk-pager__a:hover { border-color: var(--bk-ink); }
#bk .bk-pager__a.is-on { background: var(--bk-ink); border-color: var(--bk-ink); color: #fff; font-weight: 700; }
#bk .bk-pager__a.is-off { color: #B9AB98; background: transparent; }
#bk .bk-pager__gap { color: var(--bk-ink3); padding: 0 2px; }
#bk .bk-pager__now { display: none; }
@media (max-width: 639.98px) {   /* 휴대폰: 번호가 두 줄로 넘치지 않게 "이전 · 3 / 10 · 다음" 한 줄 */
  #bk .bk-pager { flex-wrap: nowrap; gap: 8px; }
  #bk .bk-pager__a, #bk .bk-pager__gap { display: none; }
  #bk .bk-pager__a--prev, #bk .bk-pager__a--next { display: inline-flex; flex: 1 1 0; max-width: 128px; min-height: 48px; font-size: 16px; font-weight: 700; }
  #bk .bk-pager__now { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 88px; min-height: 44px; padding: 0 6px; font-size: 15px; color: var(--bk-ink2); white-space: nowrap; }
  #bk .bk-pager__now b { font-size: 17px; font-weight: 800; color: var(--bk-ink); }
}
#bk .bk-crumbs { padding: 12px 0 0; font-size: 14px; color: var(--bk-ink2); }
#bk .bk-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; }
#bk .bk-crumbs li { display: inline-flex; align-items: center; }
#bk .bk-crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 8px 0 4px; border-top: 1.6px solid var(--bk-ink3); border-right: 1.6px solid var(--bk-ink3); transform: rotate(45deg); }
#bk .bk-crumbs a { position: relative; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
#bk .bk-crumbs a::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: max(100%, 44px); transform: translateX(-50%); }   /* 짧은 글자("서가")도 누름 폭 44px */
#bk .bk-crumbs span { display: inline-flex; align-items: center; min-height: 44px; color: var(--bk-ink); font-weight: 700; }
#bk .bk-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--bk-ink); scrollbar-width: none; }
#bk .bk-tabs::-webkit-scrollbar { display: none; }
#bk .bk-tabs__a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 16px; background: transparent; border: 1.5px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; font-size: 15px; font-weight: 500; color: var(--bk-ink2); white-space: nowrap; }
#bk .bk-tabs__a:hover { color: var(--bk-ink); background: var(--bk-band); }
#bk .bk-tabs__a.is-on { background: var(--bk-ink); border-color: var(--bk-ink); color: #fff; font-weight: 700; }
#bk .bk-tabs__n { font-size: 13px; font-weight: 700; opacity: .85; }
#bk [data-bk-panel][hidden] { display: none; }

/* ───────── 걸음 ───────── */
#bk .bk-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; counter-reset: none; }
#bk .bk-steps__i { display: flex; gap: 12px; padding: 14px 0; border-top: 1.5px dashed var(--bk-line); }
#bk .bk-steps__i:first-child { border-top: 0; padding-top: 0; }
#bk .bk-steps__n { flex: none; display: flex; align-items: flex-start; justify-content: center; width: 32px; height: 38px; padding-top: 3px; background: var(--bk-ink); color: #fff; font-family: "Noto Sans KR", "Noto Sans", sans-serif; font-size: 16px; font-weight: 900; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
#bk .bk-steps__b { min-width: 0; }
#bk .bk-steps__h { display: block; font-size: 17px; font-weight: 800; line-height: 1.35; letter-spacing: -.03em; }
#bk .bk-steps__p { margin-top: 3px; font-size: 15px; line-height: 1.55; color: var(--bk-ink2); }
#bk .bk-steps__i.is-done .bk-steps__n { background: var(--bk-ok); }
#bk .bk-steps__i.is-on .bk-steps__n { background: var(--bk-kraft-dd); }
@media (min-width: 768px) {
  #bk .bk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  #bk .bk-steps__i:nth-child(2) { border-top: 0; padding-top: 0; }
}
@media (min-width: 1024px) {
  #bk .bk-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #bk .bk-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
  #bk .bk-steps--3 .bk-steps__i, #bk .bk-steps--4 .bk-steps__i { flex-direction: column; gap: 10px; border-top: 0; padding: 0; }
}
/* 한 줄 진행 표시(주문 단계 등) */
#bk .bk-steps--line { display: flex; gap: 0; }
#bk .bk-steps--line .bk-steps__i { flex: 1 1 0; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; text-align: center; position: relative; }
#bk .bk-steps--line .bk-steps__i + .bk-steps__i::before { content: ""; position: absolute; right: calc(50% + 22px); left: calc(-50% + 22px); top: 15px; height: 3px; background: var(--bk-line); }
#bk .bk-steps--line .bk-steps__i.is-done + .bk-steps__i::before { background: var(--bk-ok); }
#bk .bk-steps--line .bk-steps__n { width: 32px; height: 32px; padding-top: 0; align-items: center; border-radius: 8px; clip-path: none; background: var(--bk-mute-bg); color: var(--bk-mute); }
#bk .bk-steps--line .bk-steps__i.is-done .bk-steps__n { background: var(--bk-ok); color: #fff; }
#bk .bk-steps--line .bk-steps__i.is-on .bk-steps__n { background: var(--bk-ink); color: #fff; }
#bk .bk-steps--line .bk-steps__h { font-size: 14px; font-weight: 500; color: var(--bk-ink2); }
#bk .bk-steps--line .bk-steps__i.is-on .bk-steps__h { font-weight: 700; color: var(--bk-ink); }
#bk .bk-steps--line .bk-steps__p { font-size: 13px; }

/* ───────── 틀 · 표 ───────── */
#bk .bk-panel { padding: 18px 16px; background: var(--bk-card); border: 1.5px solid var(--bk-line); border-radius: 14px; }
#bk .bk-panel + .bk-panel { margin-top: 14px; }
#bk .bk-panel__h { margin-bottom: 12px; font-size: 18px; font-weight: 800; line-height: 1.35; letter-spacing: -.03em; }
#bk .bk-panel__h small { margin-left: 8px; font-size: 14px; font-weight: 500; color: var(--bk-ink2); }
#bk .bk-panel--kraft { background: repeating-linear-gradient(90deg, rgba(122, 85, 48, .08) 0 1px, transparent 1px 5px), linear-gradient(180deg, #E6CFA8, #DBBE92); border-color: var(--bk-kraft); }
@media (min-width: 768px) { #bk .bk-panel { padding: 24px; } #bk .bk-panel__h { font-size: 20px; } }
#bk .bk-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1024px) { #bk .bk-cols { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; } #bk .bk-cols__side { position: sticky; top: 84px; } }
#bk .bk-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
#bk .bk-table th, #bk .bk-table td { padding: 10px 8px; border-bottom: 1px solid var(--bk-line); text-align: left; vertical-align: top; }
#bk .bk-table th { width: 30%; max-width: 140px; font-weight: 500; color: var(--bk-ink2); white-space: nowrap; }
#bk .bk-table tr:last-child th, #bk .bk-table tr:last-child td { border-bottom: 0; }
#bk .bk-sum { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
#bk .bk-sum__r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#bk .bk-sum__r dt { color: var(--bk-ink2); }
#bk .bk-sum__r dt small { display: block; font-size: 13px; color: var(--bk-ink3); }
#bk .bk-sum__r dd { flex: none; font-weight: 700; text-align: right; }
#bk .bk-sum__r.is-minus dd { color: var(--bk-ok); }
#bk .bk-sum__r--total { margin-top: 4px; padding-top: 14px; border-top: 2px solid var(--bk-ink); }
#bk .bk-sum__r--total dt { font-size: 16px; font-weight: 700; color: var(--bk-ink); }
#bk .bk-sum__r--total dd { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }

/* ───────── 폼 ───────── */
#bk .bk-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { #bk .bk-form--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } #bk .bk-form__wide { grid-column: 1 / -1; } }
#bk .bk-field, .bk-sheet .bk-field { display: flex; flex-direction: column; min-width: 0; }
#bk .bk-field__l, .bk-sheet .bk-field__l { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--bk-ink); }
#bk .bk-field__req, .bk-sheet .bk-field__req { font-size: 13px; font-weight: 700; color: var(--bk-err); }
#bk .bk-field__opt, .bk-sheet .bk-field__opt { font-size: 13px; font-weight: 500; color: var(--bk-ink3); }
#bk .bk-input, .bk-sheet .bk-input { display: block; width: 100%; min-height: 50px; margin: 0; padding: 0 14px; background: var(--bk-white); border: 1.5px solid var(--bk-kraft-d); border-radius: 10px; box-shadow: none;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--bk-ink); -webkit-appearance: none; appearance: none; }
#bk .bk-input::placeholder, .bk-sheet .bk-input::placeholder { color: var(--bk-ink3); }
#bk .bk-input:focus, .bk-sheet .bk-input:focus { border-color: var(--bk-ink); box-shadow: 0 0 0 3px var(--bk-kraft-l); outline: none; }
#bk .bk-input[readonly], #bk .bk-input:disabled { background: var(--bk-band); color: var(--bk-ink2); }
#bk .bk-input--area, .bk-sheet .bk-input--area { padding: 12px 14px; min-height: 96px; resize: vertical; }
#bk .bk-field__m, .bk-sheet .bk-field__m { margin-top: 5px; font-size: 14px; line-height: 1.45; color: var(--bk-ink2); }
#bk .bk-field__m:empty { display: none; }
#bk .bk-field__err, .bk-sheet .bk-field__err { display: none; color: var(--bk-err); font-weight: 700; }
#bk .bk-field.is-err .bk-input, .bk-sheet .bk-field.is-err .bk-input, #bk .bk-field.is-err .bk-select select { border-color: var(--bk-err); background: #FFF8F5; }
#bk .bk-field.is-err .bk-field__err, .bk-sheet .bk-field.is-err .bk-field__err { display: block; }
#bk .bk-field.is-err .bk-field__hint { display: none; }
#bk .bk-inline { display: flex; gap: 8px; align-items: stretch; }
#bk .bk-inline > .bk-input { flex: 1; min-width: 0; }
#bk .bk-inline > .bk-btn { flex: none; min-height: 50px; }
#bk .bk-select, .bk-sheet .bk-select { position: relative; display: block; }
#bk .bk-select select, .bk-sheet .bk-select select { display: block; width: 100%; min-height: 50px; margin: 0; padding: 0 40px 0 14px; background: var(--bk-white); border: 1.5px solid var(--bk-kraft-d); border-radius: 10px; box-shadow: none; background-image: none;
  font: inherit; font-size: 16px; color: var(--bk-ink); -webkit-appearance: none; appearance: none; cursor: pointer; }
#bk .bk-select::after, .bk-sheet .bk-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2.4px solid var(--bk-ink); border-bottom: 2.4px solid var(--bk-ink); transform: rotate(45deg); pointer-events: none; }
#bk .bk-select select:focus { border-color: var(--bk-ink); box-shadow: 0 0 0 3px var(--bk-kraft-l); outline: none; }
#bk .bk-select--sm select { min-height: 44px; font-size: 15px; padding-left: 12px; }
#bk .bk-check, .bk-sheet .bk-check { position: relative; display: inline-flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 16px; line-height: 1.45; }
#bk .bk-check input, .bk-sheet .bk-check input, #bk .bk-opt input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
#bk .bk-check__box, .bk-sheet .bk-check__box { flex: none; position: relative; width: 24px; height: 24px; background: var(--bk-white); border: 2px solid var(--bk-kraft-d); border-radius: 6px; transition: background-color .15s, border-color .15s; }
#bk .bk-check input:checked + .bk-check__box, .bk-sheet .bk-check input:checked + .bk-check__box { background: var(--bk-ink); border-color: var(--bk-ink); }
#bk .bk-check input:checked + .bk-check__box::after, .bk-sheet .bk-check input:checked + .bk-check__box::after { content: ""; position: absolute; left: 5px; top: 5px; width: 11px; height: 6px; border-left: 2.6px solid #fff; border-bottom: 2.6px solid #fff; transform: rotate(-45deg); }
#bk .bk-check input:focus-visible + .bk-check__box, #bk .bk-opt input:focus-visible + .bk-opt__in { outline: 3px solid var(--bk-s4); outline-offset: 2px; }
#bk .bk-check__t small, .bk-sheet .bk-check__t small { display: block; margin-top: 2px; font-size: 14px; color: var(--bk-ink2); }
#bk .bk-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 640px) { #bk .bk-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } #bk .bk-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#bk .bk-opt { position: relative; display: block; cursor: pointer; }
#bk .bk-opt__in { display: flex; align-items: flex-start; gap: 12px; min-height: 56px; height: 100%; padding: 14px; background: var(--bk-card); border: 1.5px solid var(--bk-line); border-radius: 10px; transition: background-color .15s, border-color .15s; }
#bk .bk-opt:hover .bk-opt__in { border-color: var(--bk-kraft-d); }
#bk .bk-opt__mark { flex: none; position: relative; width: 22px; height: 22px; margin-top: 1px; background: var(--bk-white); border: 2px solid var(--bk-kraft-d); border-radius: 6px; }
#bk .bk-opt__t { min-width: 0; display: flex; flex-direction: column; }
#bk .bk-opt__t b { font-size: 16px; font-weight: 700; line-height: 1.4; }
#bk .bk-opt__t small { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--bk-ink2); }
#bk .bk-opt input:checked + .bk-opt__in { background: var(--bk-or-l); border-color: var(--bk-or-d); box-shadow: inset 0 0 0 1px var(--bk-or-d); }
#bk .bk-opt input:checked + .bk-opt__in .bk-opt__mark { background: var(--bk-or-d); border-color: var(--bk-or-d); }
#bk .bk-opt input:checked + .bk-opt__in .bk-opt__mark::after { content: ""; position: absolute; left: 4px; top: 4px; width: 10px; height: 6px; border-left: 2.6px solid #fff; border-bottom: 2.6px solid #fff; transform: rotate(-45deg); }
#bk .bk-qty { display: inline-flex; align-items: stretch; height: 47px; background: var(--bk-white); border: 1.5px solid var(--bk-kraft-d); border-radius: 9px; overflow: hidden; }
#bk .bk-qty__b { flex: none; width: 44px; padding: 0; background: var(--bk-card); border: 0; font-size: 20px; font-weight: 700; line-height: 1; color: var(--bk-ink); }
#bk .bk-qty__b:hover { background: var(--bk-band); }
#bk .bk-qty__b[disabled] { color: #C9BBA6; cursor: default; }
#bk .bk-qty__in { width: 46px; margin: 0; padding: 0; background: transparent; border: 0; border-left: 1.5px solid var(--bk-line); border-right: 1.5px solid var(--bk-line); border-radius: 0; box-shadow: none; font: inherit; font-size: 16px; font-weight: 700; text-align: center; color: var(--bk-ink); -moz-appearance: textfield; appearance: textfield; }
#bk .bk-qty__in::-webkit-outer-spin-button, #bk .bk-qty__in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ───────── 내 상자 막대(아래 고정 · #bk 밖) ───────── */
.bk-tray { position: fixed; z-index: 45; left: 8px; right: 8px; bottom: calc(var(--bk-mnav, 62px) + 6px + env(safe-area-inset-bottom, 0px)); font-size: 15px; line-height: 1.3; letter-spacing: -.02em; word-break: keep-all; transition: transform .2s, opacity .2s; }
.bk-tray.is-hide { transform: translateY(20px); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .2s, opacity .2s, visibility 0s .2s; }
.bk-tray__in { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 4px 4px 4px 12px; background: var(--bk-dark); color: var(--bk-dark-t); border-radius: 12px; box-shadow: 0 8px 22px rgba(40, 24, 8, .34), inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.bk-tray.is-bump .bk-tray__in { animation: bk-bump .4s; }
@keyframes bk-bump { 30% { transform: translateY(-5px); } 60% { transform: translateY(1px); } }
.bk-tray__spines { flex: none; display: flex; align-items: flex-end; gap: 3px; height: 32px; padding: 0 4px; border-bottom: 4px solid var(--bk-kraft); }
.bk-tray__spines i { display: block; width: 7px; height: 24px; border: 1.5px dashed rgba(255, 255, 255, .45); border-bottom: 0; border-radius: 1.5px 1.5px 0 0; transition: height .2s; }
.bk-tray__spines i:nth-child(2n) { height: 20px; }
.bk-tray__spines i.is-on { border: 0; background: var(--bk-s0); }
.bk-tray__spines i.is-on:nth-child(5n+2) { background: #4E9199; }
.bk-tray__spines i.is-on:nth-child(5n+3) { background: var(--bk-s2); }
.bk-tray__spines i.is-on:nth-child(5n+4) { background: #7BA37C; }
.bk-tray__spines i.is-on:nth-child(5n) { background: #6C93C2; }
.bk-tray__spines i.is-new { animation: bk-grow .4s cubic-bezier(.2, .9, .3, 1.3); transform-origin: 50% 100%; }
@keyframes bk-grow { from { transform: scaleY(.1); } to { transform: none; } }
.bk-tray__txt { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; color: var(--bk-dark-t2); font-size: 13px; line-height: 1.3; }
.bk-tray__txt b, .bk-tray__txt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-tray__txt b { font-size: 15px; font-weight: 700; color: var(--bk-dark-t); }
.bk-tray__btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; background: var(--bk-or); border-radius: 9px; color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.bk-tray__btn:hover { background: #E85F17; color: #fff; }
@media (max-width: 379.98px) { .bk-tray__in { gap: 8px; padding-left: 10px; } .bk-tray__btn { padding: 0 10px; } .bk-tray__spines i { width: 6px; } }
@media (max-width: 379.98px) { .bk-tray.is-reco .bk-tray__spines { display: none; } }   /* 좁은 화면의 빈 상자 안내("골라드림 받기")는 글이 잘리지 않게 책등 그림을 뺀다 */
@media (min-width: 768px) {
  .bk-tray { left: 50%; right: auto; bottom: 20px; width: min(720px, calc(100vw - 32px)); transform: translateX(-50%); }
  .bk-tray.is-hide { transform: translate(-50%, 20px); }
  .bk-tray__in { min-height: 60px; padding: 6px 6px 6px 18px; gap: 14px; }
  .bk-tray__spines { height: 36px; } .bk-tray__spines i { width: 9px; height: 28px; } .bk-tray__spines i:nth-child(2n) { height: 24px; }
  .bk-tray__txt { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
  .bk-tray__txt b, .bk-tray__txt span { display: inline; overflow: visible; }
  .bk-tray__txt b { font-size: 16px; }
  .bk-tray__txt b::after { content: " · "; font-weight: 400; color: var(--bk-dark-t2); }
  .bk-tray__btn { min-height: 48px; padding: 0 20px; font-size: 16px; }
}

/* 화면이 따로 두는 아래 고정 막대(내 상자의 주문 단추, 책 상세의 담기 단추 등 · #bk 밖) */
.bk-dock { position: fixed; z-index: 45; left: 0; right: 0; bottom: calc(var(--bk-mnav, 62px) + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bk-card); border-top: 1.5px solid var(--bk-ink); box-shadow: 0 -6px 16px rgba(59, 42, 26, .12); color: var(--bk-ink); font-size: 15px; line-height: 1.3; word-break: keep-all; transition: transform .2s, opacity .2s; }
.bk-dock.is-hide { transform: translateY(20px); opacity: 0; pointer-events: none; visibility: hidden; }
.bk-dock__txt { flex: 1; min-width: 0; margin: 0; }
.bk-dock__txt b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.bk-dock__txt span { display: block; font-size: 14px; color: var(--bk-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .bk-dock { bottom: 0; padding: 12px max(16px, calc((100vw - 1168px) / 2)); } .bk-dock--mob { display: none; } }

/* ───────── 알림 글(토스트 · #bk 밖) ───────── */
.bk-toast { position: fixed; z-index: 95; left: 8px; right: 8px; bottom: calc(var(--bk-mnav, 62px) + 66px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 6px 6px 6px 14px;
  background: #1F1913; color: #fff; border-radius: 10px; box-shadow: 0 8px 22px rgba(40, 24, 8, .34); font-size: 15px; line-height: 1.4; letter-spacing: -.02em; word-break: keep-all;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.bk-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bk-toast__t { flex: 1; min-width: 0; padding: 6px 0; }
.bk-toast__a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 8px; color: #fff; font-weight: 700; white-space: nowrap; text-decoration: none; }
.bk-toast--err { background: #7E2C10; }
.bk-toast--low { bottom: calc(var(--bk-mnav, 62px) + 10px + env(safe-area-inset-bottom, 0px)); }   /* 아래 고정 막대가 없는 화면 */
@media (min-width: 768px) { .bk-toast { left: 50%; right: auto; width: min(520px, calc(100vw - 32px)); bottom: 96px; transform: translate(-50%, 10px); } .bk-toast.is-on { transform: translate(-50%, 0); } .bk-toast--low { bottom: 28px; } }

/* ───────── 아래에서 올라오는 창 · 가운데 창(#bk 밖) ───────── */
.bk-dim { position: fixed; z-index: 90; inset: 0; background: rgba(42, 35, 28, .55); opacity: 0; transition: opacity .2s; }
.bk-dim.is-on { opacity: 1; }
.bk-sheet { position: fixed; z-index: 91; left: 0; right: 0; bottom: 0; max-height: 88vh; display: flex; flex-direction: column; background: var(--bk-card); color: var(--bk-ink); border-radius: 14px 14px 0 0; box-shadow: 0 -10px 30px rgba(40, 24, 8, .25);
  font-size: 16px; line-height: 1.5; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; transform: translateY(100%); transition: transform .2s; }
.bk-sheet.is-on { transform: none; }
.bk-sheet__head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 20px 12px 0 20px; }
.bk-sheet__h { margin: 0; padding-top: 6px; font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: -.03em; }
.bk-sheet__x { flex: none; position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.bk-sheet__x::before, .bk-sheet__x::after { content: ""; position: absolute; left: 12px; right: 12px; top: 21px; height: 2.4px; background: var(--bk-ink); transform: rotate(45deg); }
.bk-sheet__x::after { transform: rotate(-45deg); }
.bk-sheet__body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 20px 4px; font-size: 15px; color: var(--bk-ink2); -webkit-overflow-scrolling: touch; }
.bk-sheet__body p { margin: 0; }
.bk-sheet__foot { flex: none; display: flex; gap: 8px; padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.bk-sheet__foot > * { flex: 1 1 0; }
.bk-sheet__foot--col { flex-direction: column; }
.bk-sheet__foot--col > * { flex: none; }
@media (min-width: 768px) {
  .bk-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(440px, calc(100vw - 32px)); max-height: 84vh; border-radius: 14px; transform: translate(-50%, -46%); opacity: 0; transition: transform .2s, opacity .2s; }
  .bk-sheet.is-on { transform: translate(-50%, -50%); opacity: 1; }
  .bk-sheet--wide { width: min(640px, calc(100vw - 32px)); }
}
.bk-sheet--modal { left: 50%; right: auto; bottom: auto; top: 50%; width: min(440px, calc(100vw - 32px)); max-height: 84vh; border-radius: 14px; transform: translate(-50%, -46%); opacity: 0; transition: transform .2s, opacity .2s; }
.bk-sheet--modal.is-on { transform: translate(-50%, -50%); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  #bk *, #bk *::before, #bk *::after, .bk-tray, .bk-tray *, .bk-dock, .bk-toast, .bk-sheet, .bk-dim { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 한 덩어리로 읽혀야 하는 짧은 말(시각 등)이 줄 끝에서 갈라지지 않게 — 2026-11-29 */
#bk .bk-nb { white-space: nowrap; }

/* ───────── 그림(GPT 일러스트) 켜짐 — 2026-11-29 ─────────
   #bk 에 bk--art 가 붙을 때만(bk_settings.ui_art='1', _v2/lib/art.php). 꺼지면 위의 원래 모양 그대로.
   화풍: 리소그래프 인쇄풍 · 기준 그림 /backup/book_art_20261129/style/
   · 제목 글꼴: 마루부리 Bold (KS X 1001 한글 2,350자 + 영숫자로 줄인 판 209KB, 없는 글자는 원래 글꼴로)
   · 바탕: GPT 로 만든 은은한 종이 결(512px 이음매 없는 타일, 평균색 = #FAF5EC) */
@font-face { font-family: "BkMaru"; src: url("/php_common/web/images/book/art/font/MaruBuri-Bold-ks.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
#bk.bk--art { border-image: url("/php_common/web/images/book/art/bg/paper.webp?v=20261204b") 0 fill / 0 / 0 100vw 56px 100vw repeat; }
#bk.bk--art h1:not(.bk-dt-title), #bk.bk--art .bk-sec__h {
  font-family: "BkMaru", "Noto Sans KR", "Noto Sans", sans-serif; font-weight: 700; letter-spacing: -.03em; }

/* 2026-12-01 대표: 책등 높이는 그대로(들쭉날쭉), 글자 시작선만 맞춤 — 짧은 책등일수록 위 여백을 줄여 글자 윗선을 같은 높이에 둔다 */
#bk .bk-shelf__b { padding-top: 34px; }
#bk .bk-shelf__b--h1 { padding-top: 22px; }   /* 12px 낮음 */
#bk .bk-shelf__b--h2 { padding-top: 28px; }   /* 6px 낮음 */
@media (min-width: 768px) {
  #bk .bk-shelf__b { padding-top: 36px; }
  #bk .bk-shelf__b--h1 { padding-top: 22px; } /* 14px 낮음 */
  #bk .bk-shelf__b--h2 { padding-top: 29px; } /* 7px 낮음 */
}

/* 2026-12-01 휴대폰 왼쪽 아래 '추천상자 만들기' 떠 있는 단추(그림: art/fab/box·heart, 통통 튀고 하트가 피어오름) */
.bk-fab { position: fixed; z-index: 44; left: 10px; bottom: calc(var(--bk-mnav, 62px) + 84px + env(safe-area-inset-bottom, 0px)); }
.bk-fab[hidden] { display: none !important; }
/* 아래로 내리는 동안 왼쪽으로 비켜나며 옅어짐(bk.js initFab) — 멈추거나 위로 올리면 돌아온다 */
.bk-fab { transition: transform .25s ease, opacity .25s ease; will-change: transform; }
.bk-fab.is-away { transform: translateX(-62px) scale(.82); opacity: .35; pointer-events: none; }
.bk-fab__a { display: flex; flex-direction: column; align-items: center; gap: 0; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.bk-fab__pic { position: relative; display: block; width: 64px; height: 64px; animation: bkFabHop 2.6s ease-in-out infinite; transform-origin: 50% 100%; filter: drop-shadow(0 4px 3px rgba(59, 42, 26, .28)); }
.bk-fab__box { display: block; width: 64px; height: 64px; }
.bk-fab__heart { position: absolute; left: 50%; top: -4px; width: 20px; height: auto; margin-left: -10px; opacity: 0; animation: bkFabHeart 2.6s ease-out infinite; }
.bk-fab__t { margin-top: -2px; padding: 3px 7px 4px; background: #F4691F; color: #fff; border: 1.5px solid #3B2A1A; border-radius: 8px; box-shadow: 0 2px 0 #3B2A1A; font-size: 11.5px; font-weight: 800; line-height: 1.18; text-align: center; letter-spacing: -.03em; white-space: nowrap; }
.bk-fab__a:active .bk-fab__pic { animation-play-state: paused; transform: scale(.92); }
.bk-fab__x { position: absolute; top: -6px; right: -8px; width: 22px; height: 22px; padding: 0; border: 1.5px solid #3B2A1A; border-radius: 6px; background: #FFFDF8; color: #3B2A1A; font-size: 15px; font-weight: 700; line-height: 18px; text-align: center; cursor: pointer; }
@keyframes bkFabHop {
  0%, 62%, 100% { transform: translateY(0) rotate(0) scale(1, 1); }
  68% { transform: translateY(0) scale(1.08, .9); }
  76% { transform: translateY(-10px) rotate(-6deg) scale(.96, 1.05); }
  84% { transform: translateY(0) rotate(4deg) scale(1.05, .94); }
  90% { transform: translateY(-3px) rotate(-2deg); }
}
@keyframes bkFabHeart {
  0%, 66% { opacity: 0; transform: translateY(6px) scale(.5); }
  74% { opacity: 1; transform: translateY(-4px) scale(1); }
  100% { opacity: 0; transform: translateY(-26px) scale(1.15) rotate(10deg); }
}
@media (prefers-reduced-motion: reduce) { .bk-fab__pic, .bk-fab__heart { animation: none; } .bk-fab__heart { opacity: 1; } .bk-fab { transition: none; } }
@media (min-width: 768px) { .bk-fab { display: none !important; } }

/* ── 📣 제보하기 떠 있는 단추 + 모달 (2026-12-04 · bottom.php #bkReport · report.js) ──
   그림(fab/report.webp — 돋보기 든 고양이) + 버건디 이름표. 휴대폰: 오른쪽 아래, 맨 위로 단추(#goTopBtn) 바로 위(세로 · 높이는 bk.js placeGoTop 이 --bk-rpt-b 로 맞춤) / PC: 오른쪽 아래(가로, 고양이가 이름표 위로 고개 내밂) — 2026-12-05 대표 지시로 왼쪽→오른쪽 */
.bk-rpt-fab { position: fixed; z-index: 44; right: 10px; bottom: var(--bk-rpt-b, calc(var(--bk-mnav, 62px) + 84px + 54px + env(safe-area-inset-bottom, 0px))); transition: bottom .2s;
  display: flex; flex-direction: column; align-items: center; gap: 0; margin: 0; padding: 0; background: none; border: 0; cursor: pointer;
  font: 800 12px/1.15 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; letter-spacing: -.03em; -webkit-tap-highlight-color: transparent; }
.bk-rpt-fab__pic { display: block; width: 62px; height: 62px; transform-origin: 50% 100%; animation: bkRptPeek 3.2s ease-in-out infinite; filter: drop-shadow(0 4px 4px rgba(90, 20, 34, .25)); }
.bk-rpt-fab__pic img { display: block; width: 100%; height: 100%; }
.bk-rpt-fab__t { position: relative; margin-top: -6px; padding: 5px 10px 6px; color: #FFF4E4; white-space: nowrap;
  background: linear-gradient(180deg, #9B2C42 0%, #7A1C2E 100%); border: 1.5px solid #D4AD6A; border-radius: 999px;
  box-shadow: 0 3px 0 #5A1322, 0 6px 14px rgba(90, 20, 34, .28), inset 0 1px 0 rgba(255, 255, 255, .22); text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.bk-rpt-fab:not(.bk-rpt-fab--art) { flex-direction: row; }
.bk-rpt-fab:not(.bk-rpt-fab--art) svg { margin-right: -4px; padding: 7px; width: 34px; height: 34px; color: #FFF4E4; background: #7A1C2E; border: 1.5px solid #D4AD6A; border-radius: 999px; position: relative; z-index: 1; }
.bk-rpt-fab:not(.bk-rpt-fab--art) .bk-rpt-fab__t { margin-top: 0; }
.bk-rpt-fab:hover .bk-rpt-fab__pic { animation-duration: 1.2s; }
.bk-rpt-fab:active .bk-rpt-fab__t { transform: translateY(2px); box-shadow: 0 1px 0 #5A1322, 0 3px 8px rgba(90, 20, 34, .25); }
.bk-rpt-fab:focus-visible { outline: none; }
.bk-rpt-fab:focus-visible .bk-rpt-fab__t { outline: 3px solid #F4A15F; outline-offset: 2px; }
@keyframes bkRptPeek { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 78% { transform: translateY(-5px) rotate(-6deg); } 86% { transform: translateY(-2px) rotate(5deg); } 93% { transform: translateY(-4px) rotate(-3deg); } }
html.bk-kd-reading .bk-rpt-fab { opacity: 0; visibility: hidden; pointer-events: none; }
@media (min-width: 768px) {
  .bk-rpt-fab { right: 22px; bottom: 26px; flex-direction: row; align-items: flex-end; font-size: 15px; }
  .bk-rpt-fab__pic { position: relative; z-index: 1; width: 80px; height: 80px; margin-right: -26px; margin-bottom: -4px; }
  .bk-rpt-fab__t { margin: 0 0 6px; padding: 10px 18px 11px 32px; }
  .bk-rpt-fab__t::after { content: "틀린 곳을 찾으셨나요?"; position: absolute; right: 6px; bottom: calc(100% + 6px); padding: 5px 9px; border-radius: 8px; background: #FFFDF8; color: #5A1322; border: 1px solid #E6CFA5;
    font-size: 12.5px; font-weight: 700; text-shadow: none; white-space: nowrap; box-shadow: 0 4px 10px rgba(90, 20, 34, .14); opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; pointer-events: none; }
  .bk-rpt-fab:hover .bk-rpt-fab__t::after, .bk-rpt-fab:focus-visible .bk-rpt-fab__t::after { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .bk-rpt-fab__pic { animation: none; } }
@media print { .bk-rpt-fab { display: none !important; } }

.bk-sheet--rpt .bk-sheet__body { padding-bottom: 10px; }
.bk-rpt__lead { margin: 2px 0 10px; font-size: 15px; line-height: 1.55; color: var(--bk-ink2); word-break: keep-all; }
.bk-rpt__gift { margin: 0 0 16px; padding: 10px 12px; background: #FFF4E6; border: 1.5px dashed #F4A15F; border-radius: 10px; font-size: 14.5px; line-height: 1.45; color: #8A3D0C; word-break: keep-all; }
.bk-rpt__gift b { font-weight: 800; }
.bk-rpt__gift b::before { content: "☀ "; }
.bk-rpt__k { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--bk-ink); }
.bk-rpt__cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.bk-rpt__cat { min-height: 40px; padding: 0 12px; background: var(--bk-card, #fff); color: var(--bk-ink2); border: 1.5px solid rgba(59, 42, 26, .28); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: -.02em; cursor: pointer; }
.bk-rpt__cat:hover { border-color: var(--bk-ink); }
.bk-rpt__cat.is-on { background: var(--bk-ink, #3B2A1A); color: #fff; border-color: var(--bk-ink, #3B2A1A); }
.bk-rpt__ta { display: block; width: 100%; min-height: 120px; padding: 12px; background: #fff; color: var(--bk-ink); border: 1.5px solid rgba(59, 42, 26, .35); border-radius: 10px; font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.bk-rpt__ta:focus { outline: none; border-color: var(--bk-ink); box-shadow: 0 0 0 3px rgba(244, 105, 31, .22); }
.bk-rpt__meta { display: flex; justify-content: space-between; gap: 10px; margin: 6px 2px 0; font-size: 12.5px; color: var(--bk-ink3, #8a7a6a); }
.bk-rpt__cnt { flex: none; font-variant-numeric: tabular-nums; }
.bk-rpt__err { min-height: 1.2em; margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #C0392B; }
.bk-rpt__err:empty { display: none; }

/* 🎁 선물상자 그림 카드(2026-12-04 대표): 상자 전체가 보이고 책은 상자 안에 꽂힌다.
   그림 창 = 카드 폭 × 0.85(그림 7.5%~92.5%), 앞판 윗선 = 창의 72.7% → 같은 그림을 그 아래만 잘라 책 위에 덮는다. */
#bk.bk--art .bk-bx--art.bk-bx--gift .bk-bx__top { padding: 0; background: #6E0F1C; }
#bk.bk--art .bk-bx--art.bk-bx--gift .bk-bx__art { bottom: auto; height: auto; aspect-ratio: 1 / .85; }
#bk.bk--art .bk-bx--art.bk-bx--gift .bk-bx__art::after { display: none; }
#bk.bk--art .bk-bx--art.bk-bx--gift .bk-bx__art img { object-position: 50% 50%; transform: none !important; }
#bk.bk--art .bk-bx--art.bk-bx--gift .bk-bx__top::after { content: ""; position: absolute; left: 0; top: 0; z-index: 2; width: 100%; aspect-ratio: 1 / .85; pointer-events: none;
  background: url(/php_common/web/images/book/art/bundle/ubox.webp?v=20261204) 50% 50% / cover no-repeat; clip-path: inset(72.7% 0 0 0); }
#bk.bk--art .bk-bx--art.bk-bx--gift .bk-bx__covers { position: relative; z-index: 1; justify-content: center; margin: 0 10% 18.5%; padding: 34.1% 0 0; }
#bk.bk--art .bk-bx--art.bk-bx--gift .bk-bx__lip { z-index: 3; margin: -10px 0 0; }
/* (2026-12-05 대표) 상자별 선물상자 그림(art/bundle2/<id>.webp — 열린 상자, 앞판 윗선이 그림 높이 63.5%). 책은 상자 안에 서고 아랫부분은 앞판(--bx-art 를 69.4% 아래만 잘라 덮음)에 가린다 */
#bk.bk--art .bk-bx--art.bk-bx--gift2 .bk-bx__top { background: #F2C9B8; }
#bk.bk--art .bk-bx--art.bk-bx--gift2 .bk-bx__art img { object-position: 50% 30%; }
#bk.bk--art .bk-bx--art.bk-bx--gift2 .bk-bx__top::after { background-image: var(--bx-art); background-position: 50% 30%; clip-path: inset(69.4% 0 0 0); }
#bk.bk--art .bk-bx--art.bk-bx--gift2 .bk-bx__covers { margin: 0 10% 21.5%; padding: 31.1% 0 0; }
