/* ==========================================================================
   SUNWOO MIAE ATELIER (sunwoomiae.com)
   문학 미술관 + 독립 출판사(Taschen) + 절제된 라이프스타일(Aesop) 디자인 시스템
   ========================================================================== */

:root {
  --bg: #f7f5f0;          /* 따뜻한 아이보리 */
  --bg-secondary: #eae5dc; /* 종이 베이지 */
  --surface: #fbfaf7;      /* 미세하게 밝은 지면 */
  --ink: #292824;          /* 짙은 차콜 */
  --muted: #77736b;        /* 절제된 회갈색 */
  --accent: #b84a2c;       /* 원화 추출 주홍색 (구매·강조 한정) */
  --accent-hover: #963920;
  --sage: #747b6d;         /* 세이지 */
  --rule: rgba(41, 40, 36, 0.14);
  --rule-strong: rgba(41, 40, 36, 0.28);

  --font-editorial-en: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-serif-kr: 'Noto Serif KR', 'Gowun Batang', 'AppleMyungjo', 'Batang', serif;
  --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;

  --max-w: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg);
}

/* 중장년 시집 독자 배려 가독성 확대 모드 */
html.large-text {
  font-size: 112.5%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.72;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(var(--max-w), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   공통 타이포그래피 & 버튼 (둥근 SaaS 카드 배제, 절제된 에디토리얼 라인)
   ========================================================================== */

.en-label {
  font-family: var(--font-editorial-en);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.kr-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.section-heading {
  font-family: var(--font-serif-kr);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.025em;
  margin: 0;
}

.section-lead {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 540px;
  margin: 0.85rem 0 0;
}

/* 버튼: 직선적 에디토리얼 형태 + 넉넉한 터치 영역 (48px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.78rem 1.65rem;
  border-radius: 2px;
  border: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn-ink:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-quiet {
  border-color: var(--rule-strong);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-sm {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
}

.btn-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   A. HEADER (절제되고 간결한 단일 행 헤더)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  gap: 2rem;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
}

.brand-en {
  font-family: var(--font-editorial-en);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
}

.brand-kr {
  font-family: var(--font-serif-kr);
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 400;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s var(--ease);
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.util-btn {
  background: none;
  border: none;
  padding: 0.4rem 0.2rem;
  min-height: 40px;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.util-btn:hover {
  color: var(--accent);
}

.util-btn.active {
  color: var(--accent);
  font-weight: 600;
}

.cart-count-num {
  color: var(--accent);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 1px;
  background: var(--ink);
}

.mobile-drawer {
  border-top: 1px solid var(--rule);
  background: var(--bg);
  padding: 1.25rem var(--gutter) 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: var(--font-serif-kr);
  font-size: 1.05rem;
}

.mobile-drawer[hidden] {
  display: none;
}

/* ==========================================================================
   B. HERO (실제 원화 1점이 화면을 지배하는 비대칭 문학 미술관 첫 화면)
   ========================================================================== */

.hero-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--rule);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: end;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 1rem;
}

.hero-discipline {
  font-family: var(--font-editorial-en);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 2rem;
}

.hero-headline {
  font-family: var(--font-serif-kr);
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.03em;
  margin: 0 0 1.4rem;
  word-break: keep-all;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
  max-width: 390px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.hero-meta-strip {
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-artwork-col {
  margin: 0;
}

.hero-artwork-wrap {
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-secondary);
}

.hero-artwork-wrap img {
  width: 100%;
  height: auto; /* 원화 비율 100% 보존, 강제 크롭 없음 */
  transition: transform 0.9s var(--ease);
}

.hero-artwork-wrap:hover img {
  transform: scale(1.018);
}

.hero-artwork-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.95rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-artwork-caption strong {
  color: var(--ink);
  font-weight: 500;
  font-family: var(--font-serif-kr);
}

/* ==========================================================================
   C. FEATURED BOOK — 이달의 시집 (Taschen 아트북 모노그래프 스타일)
   ========================================================================== */

.featured-book-section {
  background: var(--bg-secondary);
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  border-bottom: 1px solid var(--rule);
}

.featured-book-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.featured-book-visual {
  display: flex;
  justify-content: center;
}

.monograph-book {
  width: min(370px, 100%);
  position: relative;
  cursor: pointer;
  box-shadow: -18px 24px 48px rgba(41, 40, 36, 0.16);
}

.monograph-book::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 12px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(255, 255, 255, 0.28) 45%,
    rgba(0, 0, 0, 0.04) 100%
  );
  pointer-events: none;
}

.monograph-book img {
  width: 100%;
  height: auto;
}

.featured-quote {
  font-family: var(--font-serif-kr);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.5;
  font-weight: 400;
  margin: 0 0 1rem;
  color: var(--ink);
}

.featured-book-title {
  font-family: var(--font-serif-kr);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.featured-pub-line {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.featured-desc {
  font-size: 0.98rem;
  color: var(--ink);
  margin: 0 0 2rem;
  max-width: 520px;
}

/* 일반 도서 vs 친필 사인본 직관적 선택 행 */
.edition-selector {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 1.75rem;
}

.edition-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.edition-row + .edition-row {
  border-top: 1px solid var(--rule);
}

.edition-name {
  font-weight: 500;
  display: block;
}

.edition-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.edition-price {
  font-size: 1.08rem;
  font-weight: 600;
  white-space: nowrap;
}

.featured-sub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   공통 섹션 리듬
   ========================================================================== */

.editorial-section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  border-bottom: 1px solid var(--rule);
}

.editorial-section.tinted {
  background: var(--surface);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* 필터 바 (둥근 칩 도배 대신 절제된 밑줄 내비게이션) */
.underline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.filter-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.65rem 0.1rem;
  margin-bottom: -1px;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-tab:hover {
  color: var(--ink);
}

.filter-tab.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.inline-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--rule-strong);
  padding: 0.45rem 0;
  min-width: 240px;
}

.inline-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.92rem;
}

/* ==========================================================================
   D. BOOKS — 독립 출판사 & 서점 편집 레이아웃 (비대칭 서가 + 서지 목록)
   ========================================================================== */

.books-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.5rem 2.5rem;
  margin-bottom: 4.5rem;
}

.book-edition {
  display: flex;
  flex-direction: column;
}

/* 첫 번째 책을 더 크게 배치해 균일한 카드 반복을 깸 */
.book-edition.is-lead {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.4rem;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.book-plate-wrap {
  background: var(--bg-secondary);
  padding: 2rem 1.75rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-bottom: 1.2rem;
}

.book-edition.is-lead .book-plate-wrap {
  margin-bottom: 0;
  padding: 2.4rem;
}

/* 독립 출판사 단행본 비율 */
.book-plate {
  width: 170px;
  aspect-ratio: 13 / 19;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.1rem 1rem 1.3rem;
  box-shadow: -10px 14px 26px rgba(41, 40, 36, 0.16);
  transition: transform 0.35s var(--ease);
}

.book-edition.is-lead .book-plate {
  width: 220px;
}

/* 가로형 그림 시집(《솜솜히 사모하여 꽃이 되는 소리》 등) 비율 보존 */
.book-plate.is-landscape {
  width: 220px;
  aspect-ratio: 46 / 39;
}

.book-edition.is-lead .book-plate.is-landscape {
  width: 256px;
}

.book-plate-wrap:hover .book-plate {
  transform: translateY(-4px);
}

.book-plate::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 9px;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.04));
  pointer-events: none;
}

.book-plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 실제 원본 표지: 강제 크롭·가짜 책등 음영 없이 원판 비율 그대로 표시 */
.book-plate.has-cover {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  background: transparent;
  box-shadow: -8px 12px 24px rgba(41, 40, 36, 0.16);
}

.book-plate.has-cover::before {
  display: none;
}

.book-plate.has-cover img {
  position: static;
  width: auto;
  height: auto;
  max-width: 195px;
  max-height: 265px;
  object-fit: contain;
  display: block;
}

.book-edition.is-lead .book-plate.has-cover img {
  max-width: 245px;
  max-height: 340px;
}

.book-plate.has-cover.is-landscape img {
  max-width: 245px;
  max-height: 220px;
}

.detail-media .book-plate.has-cover img {
  max-width: 280px;
  max-height: 390px;
}

/* 전체 서지 목록 표지 썸네일 */
.biblio-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
}

.biblio-thumb {
  width: 38px;
  height: 52px;
  object-fit: contain;
  background: var(--bg-secondary);
  border: 1px solid var(--rule);
  flex-shrink: 0;
}

.biblio-thumb-fallback {
  width: 38px;
  height: 52px;
  background: var(--bg-secondary);
  border: 1px solid var(--rule);
  font-size: 0.68rem;
  color: var(--muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.plate-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.plate-title {
  font-family: var(--font-serif-kr);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 500;
  word-break: keep-all;
}

.plate-footer {
  font-family: var(--font-serif-kr);
  font-size: 0.72rem;
  border-top: 1px solid currentColor;
  padding-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  opacity: 0.76;
}

/* 절제된 문학 단행본 컬러 팔레트 */
.theme-farewell { background: #f7f5f0; color: #292824; }
.theme-spring { background: #f1e8dc; color: #3a2d25; }
.theme-blossom { background: #ede3e1; color: #442b29; }
.theme-twilight { background: #2c3238; color: #f3efe7; }
.theme-lake { background: #d8e0e2; color: #253338; }
.theme-floral { background: #ece3d7; color: #3f3126; }
.theme-dried { background: #e3dcd0; color: #3c342b; }
.theme-road { background: #e1e4dd; color: #2c342c; }
.theme-terracotta { background: #8c412d; color: #f7f5f0; }
.theme-essay { background: #ece9e0; color: #2d2b27; }
.theme-mist { background: #dfe2e5; color: #282e34; }
.theme-island { background: #3b494e; color: #f2efe8; }
.theme-forest { background: #384139; color: #f2efe8; }

.book-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.book-status-text {
  color: var(--sage);
  font-weight: 500;
}

.book-status-text.is-new {
  color: var(--accent);
}

.book-name {
  font-family: var(--font-serif-kr);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  line-height: 1.38;
  cursor: pointer;
}

.book-name:hover {
  color: var(--accent);
}

.book-blurb {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.book-purchase-strip {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.book-price-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.94rem;
}

.book-price-line strong {
  font-size: 1.05rem;
}

.book-action-pair {
  display: flex;
  gap: 0.5rem;
}

.book-action-pair .btn {
  flex: 1;
}

.external-stores {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.external-stores a {
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.external-stores a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* 서지 목록 테이블 (전체 도서를 한눈에 보는 도서관형 리스트) */
.bibliography-heading {
  font-family: var(--font-serif-kr);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
}

.biblio-list {
  border-top: 1px solid var(--ink);
}

.biblio-row {
  display: grid;
  grid-template-columns: 72px 124px 1fr 120px 110px auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
}

.biblio-year {
  font-family: var(--font-editorial-en);
  font-size: 1.05rem;
  color: var(--muted);
}

.biblio-id {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.biblio-title {
  font-family: var(--font-serif-kr);
  font-weight: 500;
  cursor: pointer;
}

.biblio-title:hover {
  color: var(--accent);
}

.biblio-pub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

/* ==========================================================================
   E. ARTWORK GALLERY — 미술관형 비대칭 갤러리 (비율 보존 · 원작/미등록 엄격 구분)
   ========================================================================== */

.gallery-intro-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
  flex-wrap: wrap;
}

/* 메인 검증 원화 SWM-ART-0001 대형 전시 */
.gallery-hero-piece {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  margin-bottom: 5rem;
}

.gallery-plate-frame {
  background: var(--bg-secondary);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  cursor: pointer;
}

.gallery-plate-frame img {
  width: 100%;
  height: auto; /* 절대 강제 크롭하지 않음 */
}

.placard {
  border-top: 1px solid var(--ink);
  padding-top: 1.4rem;
}

.placard-id {
  font-family: var(--font-editorial-en);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: var(--sage);
  margin-bottom: 0.45rem;
}

.placard-title {
  font-family: var(--font-serif-kr);
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
  cursor: pointer;
}

.placard-title:hover {
  color: var(--accent);
}

.placard-meta {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.placard-story {
  font-size: 0.94rem;
  color: var(--ink);
  margin: 0 0 1.4rem;
}

.placard-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
}

.placard-specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}

.placard-specs span {
  color: var(--muted);
}

/* 나머지 아카이브 작품 비대칭 2열 매거진 배치 */
.gallery-asymmetric-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 4rem 3.5rem;
  align-items: start;
}

.gallery-item.offset-down {
  margin-top: 3.5rem;
}

/* 원본 스캔본 대기 중인 작품을 위한 정갈한 미술관 아카이브 플레이트 (임의 AI 이미지 사용 금지 준수) */
.archival-placeholder {
  background: var(--bg-secondary);
  border: 1px solid var(--rule);
  padding: 2.8rem 2.2rem;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.gallery-item.is-tall .archival-placeholder {
  min-height: 390px;
}

.archival-placeholder:hover {
  border-color: var(--ink);
}

.archival-placeholder-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-editorial-en);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.archival-placeholder-center {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.archival-placeholder-center strong {
  display: block;
  font-family: var(--font-serif-kr);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.archival-placeholder-center span {
  font-size: 0.82rem;
  color: var(--muted);
}

.archival-placeholder-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--sage);
}

.gallery-item-meta {
  padding-top: 1.1rem;
}

.gallery-item-meta h3 {
  font-family: var(--font-serif-kr);
  font-size: 1.22rem;
  font-weight: 500;
  margin: 0.25rem 0 0.35rem;
  cursor: pointer;
}

.gallery-item-meta h3:hover {
  color: var(--accent);
}

.gallery-item-meta p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.gallery-item-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
}

/* ==========================================================================
   F. SHOP — 작품을 소장하는 방법 (명확한 가격·배송·쉬운 구매)
   ========================================================================== */

.shop-policy-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  font-size: 0.88rem;
}

.shop-policy-strip strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.shop-policy-strip span {
  color: var(--muted);
  font-size: 0.84rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2.2rem;
}

.shop-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.6rem;
}

.shop-visual {
  background: var(--bg-secondary);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  margin-bottom: 1.15rem;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.shop-visual img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain; /* 이미지 비율 보존 */
}

.shop-typo-plate {
  width: 100%;
  height: 100%;
  border: 1px solid var(--rule);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
}

.shop-typo-plate span {
  font-family: var(--font-editorial-en);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--sage);
}

.shop-typo-plate strong {
  font-family: var(--font-serif-kr);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.45;
}

.shop-typo-plate small {
  font-size: 0.76rem;
  color: var(--muted);
}

.shop-top-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.shop-status {
  color: var(--sage);
  font-weight: 500;
}

.shop-status.is-accent {
  color: var(--accent);
}

.shop-title {
  font-family: var(--font-serif-kr);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
  line-height: 1.4;
  cursor: pointer;
}

.shop-title:hover {
  color: var(--accent);
}

.shop-subtitle {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.shop-price-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.shop-price {
  font-size: 1.14rem;
  font-weight: 600;
}

.shop-shipping {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.95rem;
}

/* ==========================================================================
   G. ARTIST — 문학적 에디토리얼 작가 소개
   ========================================================================== */

.artist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.artist-statement {
  font-family: var(--font-serif-kr);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.55;
  font-weight: 400;
  margin: 1.5rem 0 2rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--accent);
}

.artist-bio p {
  margin: 0 0 1.15rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.artist-affiliations {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.artist-portrait-placeholder {
  background: var(--bg-secondary);
  border: 1px solid var(--rule);
  padding: 2.2rem;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 220px;
}

.artist-records-block {
  margin-bottom: 2.2rem;
}

.artist-records-block h3 {
  font-family: var(--font-serif-kr);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ink);
}

.record-rows {
  list-style: none;
  padding: 0;
  margin: 0;
}

.record-rows li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
}

.record-year {
  font-family: var(--font-editorial-en);
  font-size: 1.02rem;
  color: var(--accent);
  font-weight: 600;
}

.record-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

/* IP · 저작권 문의 (작가 섹션 하단 에디토리얼 문의) */
.ip-inquiry-grid {
  margin-top: 4.5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--rule-strong);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.ip-list {
  margin-top: 1.8rem;
  border-top: 1px solid var(--rule);
}

.ip-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.ip-row-num {
  font-family: var(--font-editorial-en);
  color: var(--sage);
  font-size: 1rem;
}

.ip-row strong {
  display: block;
  font-family: var(--font-serif-kr);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.ip-row p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.editorial-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
}

.editorial-form h3 {
  font-family: var(--font-serif-kr);
  font-weight: 500;
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.editorial-form > p {
  margin: 0 0 1.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.field span {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--bg);
  padding: 0.78rem 0.95rem;
  min-height: 46px;
  font-size: 0.94rem;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: #ffffff;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

/* ==========================================================================
   H. ARCHIVE — 확장형 문학·전시·작품 기록부
   ========================================================================== */

.archive-ledger {
  border-top: 1px solid var(--ink);
}

.archive-row {
  display: grid;
  grid-template-columns: 72px 140px 120px 1fr auto;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
}

.archive-year {
  font-family: var(--font-editorial-en);
  font-size: 1.15rem;
  font-weight: 600;
}

.archive-id {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.archive-type {
  font-size: 0.82rem;
  color: var(--sage);
  font-weight: 500;
}

.archive-title {
  font-family: var(--font-serif-kr);
  font-size: 1.02rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
}

.archive-detail {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: #23221f;
  color: rgba(247, 245, 240, 0.78);
  padding: 4rem 0 3.2rem;
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247, 245, 240, 0.14);
}

.footer-wordmark {
  font-family: var(--font-editorial-en);
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  color: #f7f5f0;
  margin-bottom: 0.65rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(247, 245, 240, 0.5);
  font-size: 0.8rem;
}

/* ==========================================================================
   모달 · 통합 검색 오버레이 · 장바구니 드로어 · 테스트 결제 구분
   ========================================================================== */

.overlay-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(29, 28, 25, 0.56);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.overlay-backdrop[hidden],
.drawer-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: min(840px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  position: relative;
}

.close-x {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.close-x:hover {
  background: var(--ink);
  color: var(--bg);
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2.4rem;
  align-items: start;
}

.detail-media {
  background: var(--bg-secondary);
  padding: 1.5rem;
  display: grid;
  place-items: center;
}

.detail-media img {
  width: 100%;
  height: auto;
}

.detail-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.88rem;
}

.detail-specs th,
.detail-specs td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.detail-specs th {
  width: 96px;
  color: var(--muted);
  font-weight: 500;
}

.linked-products-box {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-strong);
}

.linked-products-box h4 {
  font-family: var(--font-serif-kr);
  font-size: 0.96rem;
  margin: 0 0 0.75rem;
}

.linked-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
}

/* 통합 검색 오버레이 */
.search-panel {
  width: min(720px, 100%);
}

.search-input-lg {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  background: transparent;
  padding: 0.85rem 0;
  font-family: var(--font-serif-kr);
  font-size: 1.25rem;
  outline: none;
  margin-bottom: 1.4rem;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  max-height: 55vh;
  overflow-y: auto;
}

.search-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}

.search-result-row:hover {
  color: var(--accent);
}

/* 장바구니 드로어 */
.drawer-backdrop {
  display: flex;
  justify-content: flex-end;
  padding: 0;
}

.cart-drawer {
  width: min(440px, 100%);
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--rule-strong);
  display: flex;
  flex-direction: column;
}

.drawer-head {
  padding: 1.35rem 1.6rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.drawer-head h3 {
  margin: 0;
  font-family: var(--font-serif-kr);
  font-weight: 500;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.6rem;
}

.empty-state {
  padding: 3.5rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.cart-line-title {
  font-weight: 500;
  margin: 0 0 0.2rem;
}

.cart-line-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule-strong);
}

.qty-box button {
  background: none;
  border: none;
  width: 34px;
  height: 32px;
  cursor: pointer;
}

.qty-box span {
  min-width: 28px;
  text-align: center;
  font-size: 0.88rem;
}

.cart-line-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.remove-link {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

.drawer-foot {
  padding: 1.35rem 1.6rem 1.6rem;
  border-top: 1px solid var(--rule);
  background: var(--bg-secondary);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.summary-row.total {
  margin: 0.9rem 0 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule-strong);
  font-size: 1.1rem;
  font-weight: 600;
}

/* 테스트 결제 안내 배너 (실제 PG 결제와 명확히 구분) */
.test-mode-banner {
  border: 1px solid var(--accent);
  background: rgba(184, 74, 44, 0.06);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.4rem;
  font-size: 0.86rem;
  color: var(--ink);
}

.test-mode-banner strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.2rem;
}

.checkout-summary {
  background: var(--bg-secondary);
  padding: 1rem 1.15rem;
  margin-bottom: 1.35rem;
  font-size: 0.9rem;
}

.pay-radio-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.45rem 0 1.4rem;
}

.pay-radio {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  font-size: 0.92rem;
  cursor: pointer;
}

/* 토스트 */
.toast-bar {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 120;
  background: var(--ink);
  color: var(--bg);
  padding: 0.85rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  max-width: calc(100% - 2rem);
}

.toast-bar[hidden] {
  display: none;
}

.toast-btn {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 0.38rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ==========================================================================
   BOOK PREVIEW (책 속 맛보기) & PRESS (언론 보도) 에디토리얼 스타일
   ========================================================================== */

/* 페이지 전환 라우팅 · 홈 5관 디렉토리 · 초판 임박 팝업 · 어르신 초간편 소셜 로그인 */
.page-view[hidden] {
  display: none !important;
}

.site-nav a.is-active {
  color: var(--accent);
  font-weight: 600;
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.scarcity-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.scarcity-pill {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.28rem 0.78rem;
  letter-spacing: 0.02em;
}

.scarcity-sub-pill {
  display: inline-block;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.78rem;
  padding: 0.26rem 0.7rem;
}

.home-doors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.door-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.22s ease, transform 0.22s var(--ease);
}

.door-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}

.door-card-accent {
  background: rgba(184, 74, 44, 0.05);
  border-color: rgba(184, 74, 44, 0.35);
}

.door-num {
  font-family: var(--font-editorial-en);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--sage);
  margin-bottom: 0.65rem;
}

.door-card h3 {
  font-family: var(--font-serif-kr);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 0.55rem;
}

.door-card p {
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.door-enter {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.door-card:hover .door-enter {
  color: var(--accent);
}

/* 신간 초판 소진 임박 팝업 */
.promo-popup-panel {
  width: min(720px, 100%);
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.promo-popup-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 2rem;
  align-items: center;
}

.promo-popup-media {
  background: var(--bg-secondary);
  padding: 1.25rem;
  display: grid;
  place-items: center;
}

.promo-popup-media img {
  max-height: 310px;
  width: auto;
  box-shadow: -8px 12px 24px rgba(41, 40, 36, 0.18);
}

.promo-benefit-box {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.86rem;
  display: grid;
  gap: 0.35rem;
}

.promo-popup-foot {
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
}

.promo-hide-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

/* 카카오 · 네이버 · 구글 1초 간편 로그인 버튼 */
.social-login-stack {
  display: grid;
  gap: 0.65rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 50px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s ease;
}

.social-btn:hover {
  opacity: 0.9;
}

.social-kakao {
  background: #fee500;
  color: #191919;
}

.social-naver {
  background: #03c75a;
  color: #ffffff;
}

.social-google {
  background: #ffffff;
  color: #292824;
  border-color: var(--rule-strong);
}

.senior-checkout-helper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .home-doors-grid,
  .promo-popup-grid {
    grid-template-columns: 1fr;
  }
}

/* 사위분(운영자) 전용 관리자 대시보드 스타일 */
.admin-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.admin-kpi-strip > div {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
}

.admin-kpi-strip span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.admin-kpi-strip strong {
  font-size: 1.15rem;
  font-weight: 600;
}

.admin-order-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.3rem;
  margin-bottom: 0.9rem;
}

.admin-order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-status-select {
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.admin-order-details {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--bg);
  padding: 0.75rem 0.9rem;
  margin: 0.65rem 0 0.8rem;
}

.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-email-preview {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--rule-strong);
}

.admin-forwarding-box {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.35rem 1.5rem;
}

.admin-forwarding-box h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif-kr);
  font-size: 1.08rem;
}

.admin-forwarding-box ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--ink);
}

@media (max-width: 760px) {
  .admin-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 카드 결제 세부 옵션 · 약관 동의 · 주문조회 · 법정고지 푸터 */
.card-sub-options {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 0.95rem 1.05rem;
  margin-bottom: 1.15rem;
}

.checkout-agreements {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.95rem 0;
  margin-bottom: 1.25rem;
}

.agree-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.55;
  cursor: pointer;
}

.agree-line input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.agree-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.55rem;
  padding-left: 1.45rem;
}

.agree-doc-links .text-link {
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom-color: var(--rule-strong);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 0.65rem;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #f7f5f0;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(247, 245, 240, 0.35);
}

.footer-link-btn:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.order-history-card {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
}

.order-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.order-history-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.legal-sections {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.legal-sec h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif-kr);
  font-size: 1rem;
  font-weight: 600;
}

.legal-sec p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.75;
}

/* 자사몰 정가 취소선 · 할인율 배지 (도서 10%+5%P / 굿즈·프린트 15%) */
.price-origin {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  margin-right: 0.35rem;
  text-decoration: line-through;
}

.discount-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(184, 74, 44, 0.09);
  border: 1px solid rgba(184, 74, 44, 0.25);
  padding: 0.14rem 0.48rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.edition-price-col {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* 유튜브 시와그림 영상관 & 작가 실제 프로필 사진 */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.4rem;
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1917;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 0.9rem;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.video-thumb-wrap:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

.video-play-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(41, 40, 36, 0.86);
  color: #f7f5f0;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease;
}

.video-thumb-wrap:hover .video-play-badge {
  background: var(--accent);
}

.video-meta-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--sage);
  margin-bottom: 0.35rem;
}

.video-title {
  font-family: var(--font-serif-kr);
  font-size: 1.08rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
  line-height: 1.4;
  cursor: pointer;
}

.video-title:hover {
  color: var(--accent);
}

.video-desc {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.video-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.video-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.artist-portrait-frame {
  margin: 0 0 2.5rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 1.25rem;
}

.artist-portrait-frame img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center top;
}

.artist-portrait-frame figcaption {
  padding-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
}

/* 자사몰 직판 안내 배지 & 판본 선택 셀렉트 */
.direct-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.direct-store-badges span {
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--bg-secondary);
  border: 1px solid var(--rule);
  padding: 0.28rem 0.7rem;
}

.book-option-label {
  display: block;
  margin-bottom: 0.55rem;
}

.book-edition-select {
  width: 100%;
  min-height: 40px;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--surface);
  font-size: 0.84rem;
  color: var(--ink);
  cursor: pointer;
}

.book-edition-select:focus {
  outline: none;
  border-color: var(--accent);
}

.direct-ship-note {
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.modal-edition-box {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.modal-edition-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.modal-edition-row + .modal-edition-row {
  border-top: 1px solid var(--rule);
}

.modal-edition-row strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.modal-edition-row span {
  font-size: 0.8rem;
  color: var(--muted);
}

.modal-edition-btns {
  display: flex;
  gap: 0.45rem;
}

/* 작가관 바로가기 & 오늘의 시 맛보기 */
.author-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
  font-size: 0.86rem;
}

.author-store-links a {
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.15rem;
  color: var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.author-store-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.poems-reading-band {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--ink);
}

.poems-band-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.poems-band-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.poems-reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.poem-sheet {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
}

.poem-sheet-source {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--sage);
  letter-spacing: 0.04em;
}

.poem-sheet-title {
  font-family: var(--font-serif-kr);
  font-size: 1.22rem;
  font-weight: 500;
  margin: 0 0 1.15rem;
}

.poem-sheet-body {
  font-family: var(--font-serif-kr);
  font-size: 0.96rem;
  line-height: 1.95;
  color: var(--ink);
  margin: 0 0 1.5rem;
  white-space: pre-line;
}

.poem-sheet-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.86rem;
}

.book-quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.preview-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--rule-strong);
  padding: 0.32rem 0.72rem;
  font-size: 0.78rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-chip-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(184, 74, 44, 0.04);
}

.biblio-actions-col {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: end;
}

.modal-tabs {
  display: flex;
  gap: 1.4rem;
  border-bottom: 1px solid var(--rule);
  margin: 0.4rem 0 1.35rem;
}

.modal-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.55rem 0.1rem;
  margin-bottom: -1px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.modal-tab.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.preview-reader-sheet {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.65rem;
  margin-bottom: 1.25rem;
}

.preview-reader-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin: 0 0 0.45rem;
}

.preview-reader-heading {
  font-family: var(--font-serif-kr);
  font-size: 1.06rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--ink);
}

.preview-poem-lines {
  font-family: var(--font-serif-kr);
  font-size: 0.96rem;
  line-height: 1.95;
  color: var(--ink);
  margin: 0;
  white-space: pre-line;
}

.preview-toc-box {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule-strong);
}

.preview-toc-box h5 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.preview-toc-box ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--ink);
}

.preview-toc-box li + li {
  margin-top: 0.25rem;
}

.preview-review-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.68;
}

.preview-press-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--rule);
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.preview-press-card span {
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
}

.preview-press-card strong {
  font-family: var(--font-serif-kr);
  font-weight: 500;
  font-size: 0.9rem;
}

/* 언론 보도 섹션 */
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.press-card {
  border-top: 1px solid var(--ink);
  padding: 1.4rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
}

.press-card.is-lead {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--accent);
  padding: 2rem 2.2rem;
}

.press-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.press-media-tag {
  color: var(--accent);
  font-weight: 600;
}

.press-title {
  font-family: var(--font-serif-kr);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.42;
  margin: 0 0 0.7rem;
  word-break: keep-all;
}

.press-card.is-lead .press-title {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.press-title a:hover {
  color: var(--accent);
}

.press-summary {
  margin: 0 0 1.25rem;
  font-size: 0.91rem;
  color: var(--muted);
  line-height: 1.72;
}

.press-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.press-poem-banner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--rule);
  padding: 2rem 2.4rem;
}

.press-poem-title {
  font-family: var(--font-serif-kr);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.press-poem-excerpt {
  font-family: var(--font-serif-kr);
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--ink);
  margin: 0;
}

.press-poem-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  text-align: right;
}

.archive-link-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

/* ==========================================================================
   반응형 (모바일에서 단순 축소가 아닌 독립적 가독성 & 터치 최적화)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-layout,
  .featured-book-grid,
  .gallery-hero-piece,
  .artist-layout,
  .ip-inquiry-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-artwork-col {
    order: -1; /* 모바일에서는 첫 화면 상단에 작가의 실제 원화를 먼저 감상 */
  }

  .books-editorial-grid,
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-edition.is-lead {
    grid-column: span 2;
  }

  .biblio-row {
    grid-template-columns: 60px 1fr auto;
  }

  .biblio-id,
  .biblio-status-col,
  .biblio-price-col {
    display: none;
  }

  .archive-row {
    grid-template-columns: 64px 1fr;
  }

  .archive-id,
  .archive-type,
  .archive-link-col {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .header-bar {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .books-editorial-grid,
  .videos-grid,
  .poems-reading-grid,
  .gallery-asymmetric-grid,
  .shop-grid,
  .shop-policy-strip,
  .press-grid,
  .press-poem-banner,
  .detail-grid,
  .field-pair {
    grid-template-columns: 1fr;
  }

  .press-card.is-lead {
    grid-column: span 1;
    padding: 1.5rem;
  }

  .press-poem-action,
  .archive-link-stack {
    align-items: flex-start;
    text-align: left;
  }

  .book-edition.is-lead {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .gallery-item.offset-down {
    margin-top: 0;
  }

  .edition-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .inline-search {
    width: 100%;
    min-width: 0;
  }

  .brand-kr {
    display: none;
  }

  .hide-on-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   한국어 모바일 줄나눔 방지(keep-all) · 반응형 가독성 고도화 & 어르신 간편주문 UI
   ========================================================================== */

body,
h1,
h2,
h3,
h4,
p,
li,
button,
a,
.btn,
.hero-headline,
.hero-sub,
.section-heading,
.section-lead,
.book-name,
.book-desc,
.shop-title,
.shop-subtitle,
.door-card,
.door-card h3,
.door-card p,
.modal-panel,
.promo-popup-panel,
.scarcity-strip {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 어르신 간편주문 플로팅 버튼 */
.senior-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #23221f;
  color: #f7f5f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(24, 22, 18, 0.24);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.senior-fab:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.senior-fab-icon {
  font-size: 1.05rem;
  line-height: 1;
}

/* 어르신 계좌입금 간편주문 모달 내부 UI */
.easy-order-bank-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--accent);
  padding: 0.95rem 1.05rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.easy-bank-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.easy-bank-kicker {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.easy-bank-account {
  font-size: 1.04rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.easy-bank-holder {
  font-size: 0.82rem;
  color: var(--muted);
}

.easy-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.9rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.easy-divider::before,
.easy-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.easy-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.easy-btn-kakao {
  background: #fee500;
  border: 1px solid #e6cf00;
  color: #191919;
  font-weight: 600;
}

.easy-btn-kakao:hover {
  background: #f2da00;
}

.easy-btn-sms {
  background: #2f5d47;
  border: 1px solid #2f5d47;
  color: #ffffff;
  font-weight: 600;
}

.easy-btn-sms:hover {
  background: #244a38;
}

.easy-btn-email {
  font-weight: 500;
}

/* 모바일(<=760px) 타이포·줄나눔·여백·버튼 정밀 최적화 */
@media (max-width: 760px) {
  .wrap {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }

  .header-bar {
    gap: 0.5rem;
    min-height: 62px;
  }

  .header-utils {
    gap: 0.45rem;
  }

  .util-btn {
    font-size: 0.82rem;
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
  }

  .brand-en {
    font-size: 1.02rem;
    letter-spacing: 0.12em;
  }

  .hero-section {
    padding-top: 2rem;
    padding-bottom: 2.6rem;
  }

  .hero-headline {
    font-size: clamp(1.78rem, 7.4vw, 2.35rem);
    line-height: 1.3;
    letter-spacing: -0.025em;
  }

  .hero-sub {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero-actions .btn,
  .book-action-pair .btn {
    width: 100%;
    justify-content: center;
  }

  .btn {
    white-space: normal;
    line-height: 1.38;
    text-align: center;
    padding: 0.82rem 1rem;
  }

  .btn-sm {
    padding: 0.58rem 0.85rem;
    font-size: 0.84rem;
  }

  .editorial-section {
    padding: 2.8rem 0;
  }

  .section-heading {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
    line-height: 1.34;
  }

  .section-lead {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .underline-filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }

  .filter-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .home-directory-grid,
  .door-grid,
  .easy-channel-grid {
    grid-template-columns: 1fr !important;
  }

  .scarcity-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
  }

  .scarcity-strip .btn {
    width: 100%;
  }

  .book-action-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .modal-panel,
  .promo-popup-panel {
    padding: 1.35rem 1.15rem;
    max-height: 90vh;
  }

  .promo-popup-grid {
    grid-template-columns: 1fr !important;
    gap: 1.1rem;
  }

  .promo-popup-cover {
    max-width: 170px;
    margin: 0 auto;
  }

  .senior-fab {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.72rem 1rem;
    font-size: 0.84rem;
  }

  .site-footer {
    padding-bottom: 5.2rem; /* 하단 플로팅 버튼과 겹치지 않도록 여백 확보 */
  }
}

/* ==========================================================================
   듀얼 팝업 (① 강원예총 대상 수상 축하 + ② 대상 수상자 신작 초판 품절 임박)
   ========================================================================== */

.dual-popup-stage {
  width: min(940px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dual-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.promo-card {
  width: 100% !important;
  max-height: none !important;
  display: flex;
  flex-direction: column;
  padding: 1.65rem 1.55rem 1.5rem;
  position: relative;
}

.award-popup-card {
  background: linear-gradient(165deg, #fdfaf2 0%, #f7f2e4 100%);
  border: 1.5px solid #d5b97d;
}

.award-popup-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  background: #23221f;
  color: #f3d79b;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.award-highlight-box {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(154, 107, 36, 0.28);
  border-left: 3px solid #b6832d;
  padding: 0.85rem 0.95rem;
  margin-bottom: 1.1rem;
  line-height: 1.55;
}

.book-promo-card {
  border: 1.5px solid var(--rule-strong);
}

.book-promo-top {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  align-items: center;
}

.book-promo-thumb {
  border: 1px solid var(--rule);
  background: var(--bg-secondary);
  padding: 0.25rem;
}

.book-promo-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.dual-popup-foot {
  background: rgba(250, 248, 244, 0.96);
  border: 1px solid var(--rule-strong);
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .dual-popup-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .promo-card {
    padding: 1.35rem 1.15rem 1.25rem;
  }

  .book-promo-top {
    grid-template-columns: 76px 1fr;
    gap: 0.85rem;
  }
}
