/* 딥코드 전자책 스토어 — deepbook-pixel-shelf 템플릿 포팅 */
:root {
  --background: #121310;
  --foreground: #efeee9;
  --card: #1b1c18;
  --primary: #bef264;
  --primary-foreground: #1a200d;
  --secondary: #24251f;
  --muted-foreground: #96978e;
  --border: #32332c;
  --cover-lime: #bef264;
  --cover-teal: #4aa39a;
  --cover-silver: #cdcbc4;
  --cover-pink: #e4a9a5;
  --cover-ink: #23261e;
  --cover-light: #efeee9;
  --book-shadow: 4px 10px 24px rgba(0, 0, 0, 0.38);
  --detail-book-shadow: 8px 18px 32px rgba(0, 0, 0, 0.45);
  --reading: #f4f4f1;
  --reading-ink: #30312c;
  --reading-muted: #6f7069;
  --campaign-background: #000;
  --font-sans: "Noto Sans KR", sans-serif;
  --font-editorial: "Noto Serif KR", serif;
}
* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; }
::selection { background: var(--primary); color: var(--primary-foreground); }

.store-width { max-width: 1160px; margin-inline: auto; padding-inline: 32px; }
.store-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: var(--primary-foreground); border: 0; border-radius: 3px; font-weight: 700; font-size: 13px; padding: 0 22px; height: 44px; transition: filter 0.2s; }
.store-btn:hover { filter: brightness(1.06); }
.store-btn[disabled] { opacity: 0.45; pointer-events: none; }
.ghost-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--border); color: var(--foreground); border-radius: 3px; font-size: 12px; padding: 0 16px; height: 38px; }
.ghost-btn:hover { border-color: var(--muted-foreground); }
.link-btn { color: var(--primary); font-size: 12px; background: none; border: 0; padding: 0; }

/* 헤더 / 푸터 */
.site-header { height: 84px; border-bottom: 1px solid var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.header-left { display: flex; align-items: center; gap: 60px; }
.brand-logo img { height: 30px; display: block; }
.main-nav { display: flex; align-items: center; gap: 30px; height: 84px; font-size: 13px; }
.main-nav a { color: var(--muted-foreground); transition: color 0.2s; }
.main-nav a:hover { color: var(--foreground); }
.main-nav .current { color: var(--primary); height: 100%; display: flex; align-items: center; position: relative; }
.main-nav .current::after { content: ""; position: absolute; height: 2px; background: var(--primary); bottom: 0; left: 0; right: 0; }
.footer { padding-block: 32px; display: flex; justify-content: space-between; gap: 25px; color: var(--muted-foreground); font-size: 10px; border-top: 1px solid var(--border); margin-top: 60px; }
.footer p { margin-top: 14px; }
.footer img { height: 24px; width: auto; display: block; }
.footer-right { display: flex; flex-direction: column; gap: 10px; text-align: right; }

/* 히어로 */
.hero { position: relative; height: 262px; overflow: hidden; }
.hero-image { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--background) 0%, rgba(18, 19, 16, 0.88) 26%, transparent 65%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding-top: 26px; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--primary); }
.hero h1 { font-family: var(--font-editorial); font-size: 28px; font-weight: 600; line-height: 1.32; margin: 9px 0 8px; }
.hero-description { font-size: 12px; line-height: 1.7; color: var(--muted-foreground); margin: 0; }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.hero-cta > span { font-size: 11px; color: var(--muted-foreground); }
.hero-bottom { position: absolute; bottom: 13px; inset-inline: 0; z-index: 1; }
.hero-position { display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--muted-foreground); }
.hero-position .line { height: 2px; width: 56px; background: var(--border); }
.hero-position .line:first-of-type { background: var(--primary); }

/* 카탈로그 */
.catalog { padding-block: 24px 60px; }
.section-heading h2 { font-size: 24px; font-weight: 700; margin: 0 0 9px; }
.section-heading p { font-size: 12px; color: var(--muted-foreground); margin: 0; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin-block: 16px 22px; }
.filter-btn { background: transparent; border: 1px solid var(--border); color: var(--muted-foreground); border-radius: 3px; font-size: 11px; padding: 7px 13px; }
.filter-btn[data-active="true"] { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); font-weight: 700; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, 270px); justify-content: center; gap: 32px 28px; }
.book-card { position: relative; }
.book-art { height: 281px; background: var(--card); border: 1px solid rgba(50, 51, 44, 0.6); border-radius: 4px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.book-open { position: absolute; inset: 0; z-index: 1; }
.book-label { position: absolute; top: 13px; left: 13px; padding: 3px 7px; border: 1px solid var(--border); background: var(--background); font-size: 8px; color: var(--primary); z-index: 2; }
.book-info { padding-top: 15px; }
.book-category { font-size: 9px; color: var(--primary); }
.book-title { font-size: 15px; font-weight: 600; margin: 6px 0; }
.book-title a:hover { color: var(--primary); }
.book-author { font-size: 10px; color: var(--muted-foreground); }
.book-description { font-size: 11px; color: var(--muted-foreground); line-height: 1.7; margin: 10px 0 12px; }
.book-footer { display: flex; align-items: center; justify-content: space-between; }
.book-price { font-size: 14px; font-weight: 700; }
.book-price small { margin-left: 8px; font-size: 10px; font-weight: 400; color: var(--muted-foreground); text-decoration: line-through; }
.book-format { font-size: 8px; color: var(--muted-foreground); border: 1px solid var(--border); padding: 2px 5px; }

/* 북 커버 (제너러티브 아트) */
.cover { position: relative; width: 155px; height: 219px; padding: 20px 16px 13px; color: var(--cover-ink); background: var(--cover-lime); box-shadow: var(--book-shadow); border-radius: 1px 3px 3px 1px; overflow: hidden; transform: rotate(-5deg); transition: transform 0.35s; display: flex; flex-direction: column; }
.cover::before { content: ""; position: absolute; inset-block: 0; left: 4px; width: 2px; background: rgba(35, 38, 30, 0.15); }
.book-card:hover .cover { transform: rotate(0deg) translateY(-5px); }
.cover-teal { background: var(--cover-teal); transform: rotate(5deg); }
.cover-silver { background: var(--cover-silver); transform: rotate(-4deg); }
.cover-pink { background: var(--cover-pink); transform: rotate(5deg); }
.cover-top { font-size: 6px; letter-spacing: 1.5px; font-weight: 600; }
.cover-title { font-size: 21px; line-height: 1.35; font-weight: 800; margin-top: 12px; white-space: pre-line; z-index: 1; }
.cover-subtitle { font-size: 6px; margin-top: 7px; opacity: 0.75; }
.cover-art { width: 100%; height: 91px; margin-top: auto; fill: none; stroke: currentColor; stroke-width: 0.65; }
.cover-bottom { font-size: 5px; display: flex; justify-content: space-between; margin-top: 6px; }

/* 에디터 노트 */
.editor-note { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: 36px; }
.editor-inner { display: flex; align-items: center; gap: 34px; }
.editor-icon { color: var(--primary); width: 39px; height: 39px; flex-shrink: 0; }
.editor-inner h2 { font-family: var(--font-editorial); font-size: 20px; margin: 0 0 9px; font-weight: 600; }
.editor-inner p { font-size: 12px; color: var(--muted-foreground); line-height: 1.8; margin: 0; }
.editor-inner a { margin-left: auto; flex-shrink: 0; font-size: 12px; color: var(--primary); }

/* 책 상세 (블랙 에디토리얼) */
.book-detail-page { min-height: 100dvh; background: var(--campaign-background); }
.book-detail-breadcrumb { display: flex; justify-content: space-between; align-items: center; padding-top: 25px; font-size: 10px; color: var(--muted-foreground); }
.book-detail-breadcrumb a:hover { color: var(--primary); }
.book-detail-hero { padding-top: 32px; padding-bottom: 38px; }
.book-product-image { height: 290px; display: flex; align-items: center; justify-content: center; margin-top: 10px; }
.book-product-image .cover { width: 180px; height: 255px; padding: 24px 20px 16px; transform: rotate(-5deg); box-shadow: var(--detail-book-shadow); }
.book-product-image .cover-title { font-size: 21px; margin-top: 16px; }
.book-product-image .cover-art { height: 102px; }
.book-product-caption { text-align: center; }
.book-product-category { font-size: 10px; color: var(--muted-foreground); }
.book-product-caption h1 { font-size: 30px; font-weight: 600; line-height: 1.5; margin: 10px 20px 7px; }
.book-product-caption p { font-size: 12px; color: var(--muted-foreground); margin: 0 0 11px; }
.book-reading-width { width: 100%; max-width: 744px; margin-inline: auto; padding-inline: 32px; }
.book-section-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted-foreground); }
.book-intro-title { max-width: 580px; font-size: 30px; line-height: 1.7; font-weight: 500; margin: 22px 0 0; font-family: var(--font-editorial); }
.book-intro-meta { margin-top: 28px; display: flex; gap: 18px; font-size: 11px; color: var(--muted-foreground); }
.book-contents-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-bottom: 8px; }
.book-contents-heading h3 { font-size: 17px; font-weight: 600; margin: 0; }
.book-contents-heading span { font-size: 10px; color: var(--muted-foreground); }
.book-contents { list-style: none; padding: 0; margin: 0; }
.book-contents li { display: flex; align-items: baseline; gap: 22px; padding-block: 14px; font-size: 16px; border-bottom: 1px solid var(--border); }
.book-chapter-number { font-size: 12px; color: var(--muted-foreground); }
.book-purchase-section { padding-block: 48px 80px; border-top: 1px solid var(--border); margin-top: 56px; }
.book-purchase-section h2 { font-size: 24px; font-weight: 500; margin: 12px 0 0; }
.book-purchase-section > .book-reading-width > p { font-size: 12px; color: var(--muted-foreground); margin-top: 10px; }
.book-purchase-line { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; }
.book-purchase-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; font-size: 23px; font-weight: 600; }
.book-purchase-price s { font-size: 12px; color: var(--muted-foreground); font-weight: 400; }
.book-sticky-purchase { position: fixed; bottom: 0; inset-inline: 0; z-index: 40; border-top: 1px solid var(--border); background: rgba(18, 19, 16, 0.96); backdrop-filter: blur(16px); padding-bottom: env(safe-area-inset-bottom); }
.book-sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.book-sticky-inner strong { font-size: 16px; }
.book-sticky-inner span { font-size: 11px; color: var(--muted-foreground); display: block; }

/* 주문 · 결제 */
.checkout-page { padding-block: 40px 80px; }
.checkout-page h1 { font-size: 28px; margin: 6px 0 32px; }
.back-link { font-size: 11px; color: var(--muted-foreground); }
.back-link:hover { color: var(--foreground); }
.checkout-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.checkout-section { margin-bottom: 40px; }
.checkout-section h2 { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.checkout-section .hint { font-size: 13.5px; line-height: 1.75; color: var(--muted-foreground); margin: -10px 0 16px; }
.shelf-row { display: flex; gap: 18px; align-items: center; border-bottom: 1px solid var(--border); padding-block: 14px; }
.shelf-row .cover { width: 58px; height: 82px; padding: 8px; transform: none; flex-shrink: 0; }
.shelf-row .cover-title { font-size: 9px; margin-top: 4px; }
.shelf-row .cover-top, .shelf-row .cover-subtitle, .shelf-row .cover-bottom { display: none; }
.shelf-row .cover-art { height: 30px; }
.shelf-row-info { flex: 1; min-width: 0; }
.shelf-row-info strong { font-size: 15px; display: block; }
.shelf-row-info .meta { font-size: 13px; color: var(--muted-foreground); margin-top: 4px; }
.shelf-row-info .price { font-size: 15px; margin-top: 8px; }
.remove-btn { background: none; border: 0; color: var(--muted-foreground); font-size: 16px; padding: 6px; }
.remove-btn:hover { color: var(--foreground); }
.field-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field-grid label { font-size: 13px; color: var(--muted-foreground); display: flex; flex-direction: column; gap: 8px; }
.field-grid input { height: 48px; border-radius: 3px; border: 1px solid var(--border); background: var(--background); color: var(--foreground); padding: 0 14px; font-size: 15px; outline: none; font-family: inherit; }
.field-grid input:focus { border-color: var(--primary); }
.bump-box { border: 1px dashed var(--border); border-radius: 3px; padding: 22px; background: var(--card); }
.bump-box[data-selected="true"] { border-color: var(--primary); background: rgba(190, 242, 100, 0.05); }
.bump-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.bump-head h2 { margin: 0; font-size: 16px; }
.bump-head span { font-size: 13px; color: var(--primary); }
.bump-check { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; font-size: 15px; line-height: 1.6; cursor: pointer; }
.bump-check input { accent-color: var(--primary); margin-top: 3px; }
.bump-check .plus { color: var(--primary); }
.summary-box .store-btn { height: 52px; font-size: 16px; }
.summary-box { border: 1px solid var(--border); border-radius: 3px; background: var(--card); padding: 24px; position: sticky; top: 20px; }
.summary-box h2 { font-size: 16px; margin: 0 0 20px; }
.summary-box dl { margin: 0; font-size: 15px; }
.summary-box dl div { display: flex; justify-content: space-between; margin-bottom: 12px; }
.summary-box dt { color: var(--muted-foreground); }
.summary-box .discount dd { color: var(--primary); }
.summary-box .total { border-top: 1px solid var(--border); padding-top: 16px; font-size: 20px; font-weight: 700; }
.agree-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted-foreground); margin: 20px 0 16px; line-height: 1.7; cursor: pointer; }
.agree-row input { accent-color: var(--primary); margin-top: 2px; }
.pay-note { font-size: 10px; color: var(--muted-foreground); margin-top: 12px; }
.empty-state { padding: 70px 10px; text-align: center; color: var(--muted-foreground); font-size: 14px; line-height: 2.2; }

/* 결제 결과 */
.result-page { max-width: 560px; margin-inline: auto; padding: 80px 24px; text-align: center; }
.result-page h1 { font-size: 24px; margin: 20px 0 10px; }
.result-page .sub { font-size: 13px; color: var(--muted-foreground); line-height: 1.9; }
.result-icon { width: 48px; height: 48px; color: var(--primary); margin-inline: auto; }
.download-list { margin: 32px 0; text-align: left; }
.order-meta { font-size: 11px; color: var(--muted-foreground); margin-top: 32px; }

@media (max-width: 900px) {
  .header-left { gap: 30px; }
  .main-nav { gap: 20px; }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero h1 { font-size: 25px; }
  .hero-image { object-position: 60% center; }
  .book-art { height: 260px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-box { position: static; }
}
@media (max-width: 640px) {
  .store-width { padding-inline: 20px; }
  .site-header, .main-nav { height: 70px; }
  .brand-logo img { height: 24px; }
  .header-left { gap: 24px; }
  .main-nav { gap: 16px; font-size: 12px; }
  .hero { height: 196px; }
  .hero-image { object-position: 65% center; opacity: 0.55; }
  .hero::after { background: linear-gradient(90deg, var(--background), transparent 120%); }
  .hero-inner { padding-top: 22px; }
  .hero h1 { font-size: 20px; }
  .hero-description { font-size: 11px; }
  .hero-cta > span, .hero-bottom { display: none; }
  .catalog { padding-top: 18px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading p { font-size: 11px; line-height: 1.8; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .book-art { height: 205px; }
  .cover { width: 124px; height: 178px; padding: 15px 12px 10px; }
  .cover-title { font-size: 18px; }
  .cover-art { height: 65px; }
  .book-title { font-size: 13px; }
  .book-description { font-size: 10px; }
  .book-price { font-size: 12px; }
  .book-label { font-size: 7px; top: 9px; left: 9px; }
  .editor-inner { gap: 17px; flex-wrap: wrap; }
  .editor-inner h2 { font-size: 17px; }
  .editor-inner p { font-size: 11px; }
  .editor-inner a { margin-left: 0; }
  .footer { flex-direction: column; }
  .footer-right { text-align: left; }
  .book-product-image { height: 275px; margin-top: 4px; }
  .book-product-image .cover { width: 158px; height: 224px; padding: 20px 17px 14px; }
  .book-product-image .cover-title { font-size: 18px; }
  .book-product-image .cover-art { height: 85px; }
  .book-product-caption h1 { font-size: 25px; }
  .book-reading-width { padding-inline: 24px; }
  .book-intro-title { font-size: 24px; margin-top: 26px; }
  .book-contents li { font-size: 14px; gap: 17px; }
  .book-purchase-price { font-size: 21px; gap: 5px; flex-direction: column; align-items: flex-start; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 패키지 연출 (구성상품 있는 책) */
.package-stack { position: relative; }
.package-stack::before, .package-stack::after { content: ""; position: absolute; inset: 8px -9px; border-radius: 2px; z-index: 0; }
.package-stack::before { background: #2c2d27; transform: rotate(9deg); }
.package-stack::after { background: #23241f; transform: rotate(-4deg); }
.package-stack .cover { position: relative; z-index: 1; }
/* 체크아웃 추가 요소 */
.field-grid .span2 { grid-column: 1 / -1; }
.composition { border-bottom: 1px solid var(--border); margin-bottom: 16px; padding-bottom: 8px; }
.comp-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-foreground); margin-bottom: 9px; }
@media (max-width: 640px) { .field-grid .span2 { grid-column: auto; } }

/* 푸터 사업자 정보 */
.biz-toggle { display: inline-block; margin-top: 12px; font-size: 10.5px; color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.biz-info { font-size: 10.5px; color: var(--muted-foreground); line-height: 1.9; margin-top: 10px; }

/* ---------- 8비트 리디자인 ---------- */
.px-font, .cover-title, .hero8 h1, .ticker8, .ph-q, .eyebrow8 { font-family: 'Galmuri11', 'Noto Sans KR', sans-serif; }
/* 히어로 */
.hero8 { position: relative; overflow: hidden; padding: 72px 0 0; background:
  repeating-linear-gradient(0deg, rgba(190,242,100,.045) 0 1px, transparent 1px 24px),
  repeating-linear-gradient(90deg, rgba(190,242,100,.045) 0 1px, transparent 1px 24px),
  radial-gradient(ellipse 90% 70% at 50% -10%, #1a2010 0%, var(--background) 60%); }
.hero8-inner { text-align: left; padding-bottom: 56px; }
.eyebrow8 { font-size: 11px; letter-spacing: 3px; color: var(--primary); margin-bottom: 18px; }
.hero8 h1 { font-size: 40px; line-height: 1.5; margin: 0 0 14px; font-weight: 400; }
.hero8 .k8 { color: var(--primary); text-shadow: 3px 3px 0 rgba(190,242,100,.25); }
.cursor8 { color: var(--primary); animation: blink8 1.1s steps(1) infinite; margin-left: 4px; }
@keyframes blink8 { 50% { opacity: 0; } }
.hero8-sub { font-size: 14px; color: var(--muted-foreground); margin: 0 0 28px; }
.btn8 { display: inline-block; background: var(--primary); color: var(--primary-foreground); font-family: 'Galmuri11', sans-serif; font-size: 14px; padding: 14px 24px; border: 0; border-radius: 0; box-shadow: 5px 5px 0 #2c3519; transition: transform .1s, box-shadow .1s; }
.btn8:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #2c3519; filter: none; }
.ticker8 { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; overflow: hidden; white-space: nowrap; font-size: 12px; color: var(--muted-foreground); letter-spacing: 2px; }
.ticker8-track { display: inline-block; animation: tick8 30s linear infinite; }
@keyframes tick8 { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
/* 4칸 그리드 양끝 정렬 */
.book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: stretch; gap: 24px 18px; }
.book-art { height: 240px; }
.cover { width: 140px; height: 198px; padding: 16px 13px 11px; }
.cover-title { font-size: 17px; font-weight: 400; }
/* 8비트 커버 */
.cover, .package-stack .cover { border-radius: 0; border: 2px solid rgba(10,11,8,.55); box-shadow: 7px 7px 0 rgba(10,11,8,.45); }
.cover::before { display: none; }
.book-card:hover .cover { transform: rotate(0deg) translate(-2px, -2px); box-shadow: 10px 10px 0 rgba(10,11,8,.5); }
.cover-art { stroke: none; fill: currentColor; opacity: .85; height: 84px; }
/* 플레이스홀더 카드 */
.book-card.ph .book-art { border-style: dashed; border-color: #34362c; background: transparent; }
.ph-q { font-size: 64px; color: var(--primary); opacity: .55; text-shadow: 5px 5px 0 rgba(190,242,100,.15); }
.book-card.ph .book-title { color: var(--muted-foreground); }
@media (max-width: 900px) { .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero8 h1 { font-size: 32px; } }
@media (max-width: 640px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .book-art { height: 205px; }
  .cover { width: 118px; height: 170px; padding: 13px 11px 9px; }
  .cover-title { font-size: 14px; }
  .hero8 { padding-top: 48px; }
  .hero8 h1 { font-size: 26px; }
  .ph-q { font-size: 48px; }
}

/* ---------- 3D 북 목업 (디하북스 스타일) ---------- */
.book3d { position: relative; width: 158px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); transition: transform .25s; }
.book3d img { display: block; width: 100%; height: auto; border-radius: 2px 6px 6px 2px; }
.book3d::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.14); border-radius: 1px; }
.book3d .b3-edge { position: absolute; right: -6px; top: 1.5%; bottom: 1.5%; width: 6px; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(0deg, #f2f0ec 0 2px, #dddad4 2px 3px); }
.book-card:hover .book3d { transform: translateY(-6px); }
.shelf-row .book3d { width: 54px; flex-shrink: 0; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.shelf-row .book3d .b3-edge { right: -3px; width: 3px; }
.shelf-row .book3d::before { left: 3px; width: 1px; }

/* ---------- 타이포 스케일 업 ---------- */
.main-nav { font-size: 14.5px; gap: 34px; }
.hero8 h1 { font-size: 46px; }
.hero8-sub { font-size: 16.5px; margin-bottom: 32px; }
.eyebrow8 { font-size: 12.5px; }
.btn8 { font-size: 15px; padding: 16px 28px; }
.ticker8 { font-size: 13px; }
.section-heading h2 { font-size: 30px; }
.section-heading p { font-size: 14.5px; margin-top: 6px; }
.filter-btn { font-size: 13px; padding: 9px 16px; }
.book-art { height: 272px; }
.book-category { font-size: 11px; }
.book-title { font-size: 18px; }
.book-author { font-size: 12.5px; }
.book-description { font-size: 13.5px; }
.book-price { font-size: 17px; }
.book-price small { font-size: 12px; }
.book-format { font-size: 10px; padding: 3px 7px; }
.book-card.ph .book-title { font-size: 15px; }
.editor-inner h2 { font-size: 24px; }
.editor-inner p { font-size: 14px; }
.editor-inner a { font-size: 14px; }
.footer { font-size: 12px; }
@media (max-width: 640px) {
  .hero8 h1 { font-size: 30px; }
  .hero8-sub { font-size: 14px; }
  .section-heading h2 { font-size: 24px; }
  .book-title { font-size: 15px; }
  .book-description { font-size: 12px; }
  .book-price { font-size: 15px; }
  .book-art { height: 225px; }
  .book3d { width: 120px; }
}

/* ---------- 8비트 커버 v2 (게임 타이틀 스크린) ---------- */
.cover8 { --c8: #bef264; --c8l: #e6ffb0; --c8d: #74a338; --frame: #bef264;
  position: relative; width: 168px; height: 240px; background: #0b0c08;
  border: 3px solid var(--frame); box-shadow: 6px 6px 0 rgba(0,0,0,.55), inset 0 0 0 2px #0b0c08, inset 0 0 0 3px rgba(255,255,255,.14);
  display: flex; flex-direction: column; padding: 16px 13px 12px; font-family: 'Galmuri11', sans-serif;
  transition: transform .15s, box-shadow .15s; overflow: hidden; }
.cover8::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }
.c8-silver { --c8: #ff5a3c; --c8l: #ffa184; --c8d: #9c2f1a; --frame: #d8b25a; }
.c8-pink, .c8-lime { --c8: #bef264; --c8l: #e6ffb0; --c8d: #74a338; --frame: #cfccc0; }
.c8-top { font-size: 7px; letter-spacing: 2px; color: var(--frame); opacity: .9; }
.c8-title { font-size: 21px; line-height: 1.45; color: #fff; margin-top: 12px; text-shadow: 2px 2px 0 var(--c8d); }
.c8-art { width: 72%; height: auto; margin: auto auto 6px; }
.c8-art .p-base { fill: var(--c8); }
.c8-art .p-light { fill: var(--c8l); }
.c8-art .p-dark { fill: var(--c8d); }
.c8-meta { display: flex; justify-content: space-between; font-size: 6px; color: #8a8b80; letter-spacing: .5px; margin-bottom: 7px; }
.c8-press { font-size: 8.5px; color: var(--c8); text-align: center; letter-spacing: 1px; animation: blink8 1.2s steps(1) infinite; }
.book-card:hover .cover8 { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(0,0,0,.6); }
/* 체크아웃·후기 소형 */
.shelf-row .cover8 { width: 56px; height: 80px; padding: 6px 5px 5px; border-width: 2px; box-shadow: 3px 3px 0 rgba(0,0,0,.5); flex-shrink: 0; }
.shelf-row .c8-title { font-size: 8px; margin-top: 3px; text-shadow: 1px 1px 0 var(--c8d); }
.shelf-row .c8-top, .shelf-row .c8-meta, .shelf-row .c8-press { display: none; }
.shelf-row .c8-art { width: 70%; margin: auto; }
@media (max-width: 640px) {
  .cover8 { width: 128px; height: 184px; padding: 11px 10px 9px; }
  .c8-title { font-size: 16px; margin-top: 8px; }
  .c8-press { font-size: 7px; }
}

/* 약관 페이지 */
.legal { max-width: 640px; margin: 48px auto 72px; padding: 0 22px; font-size: 14px; line-height: 1.85; color: var(--foreground); }
.legal h1 { font-size: 24px; margin: 0 0 8px; }
.legal h2 { font-size: 16px; margin: 30px 0 10px; }
.legal p { margin: 0 0 12px; }
.legal ol, .legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--primary); }
.legal-date { color: var(--muted-foreground); font-size: 12px; }
.legal-biz { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); }
.footer-right a { color: var(--muted-foreground); }
.footer-right a:hover { color: var(--foreground); }
.pay-note { font-size: 10.5px; color: var(--muted-foreground); margin-top: 12px; line-height: 1.7; }
.pay-note a { color: var(--muted-foreground); }
