/* 표지 중심 서점 목록. 상세 구매 화면과 다운로드 원본은 바꾸지 않는다. */
#view-store .store-catalog-section { container: store-books / inline-size; }
#view-store .store-textbook-grid, #view-store .store-shelf-books { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 22px; }
#view-store .store-textbook-grid.store-shelves { display: block; }
#view-store .store-shelf + .store-shelf { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
#view-store .store-shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
#view-store .store-shelf-heading h2 { margin: 0; color: var(--ink-900); font-size: 18px; font-weight: 800; letter-spacing: -.5px; line-height: 1.45; }
#view-store .store-shelf-heading button { flex-shrink: 0; padding: 5px 0 5px 8px; border: 0; background: transparent; box-shadow: none; color: var(--ink-700); font-size: 12px; }
#view-store .store-shelf-heading button > span:first-child { color: var(--brand-700); font-variant-numeric: tabular-nums; }
#view-store .store-shelf-heading button:hover { color: var(--brand-700); text-decoration: underline; }
#view-store .store-textbook-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#view-store .store-textbook-card:hover { box-shadow: none; }
#view-store .store-textbook-card:hover .store-textbook-title { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
#view-store .store-textbook-card:focus-visible { border-radius: 4px; }
#view-store .store-textbook-cover { flex: none; align-self: stretch; width: 100%; max-width: none; height: auto; aspect-ratio: 1280 / 1792; overflow: visible; }
#view-store .store-textbook-cover > img { object-position: center bottom; filter: drop-shadow(1px 2px 2px #0f172a18); }
#view-store .store-textbook-body { flex: 1; align-self: stretch; }
#view-store .store-textbook-kicker { margin: 0 0 3px; font-size: 10px; }
#view-store .store-textbook-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.9em; font-size: 14px; font-weight: 700; line-height: 1.45; letter-spacing: -.3px; word-break: keep-all; overflow-wrap: anywhere; }
#view-store .store-textbook-options-hint { min-height: 2.8em; margin: 5px 0 8px; font-size: 11px; line-height: 1.4; color: var(--ink-500); }
#view-store .store-textbook-bottom { gap: 4px; margin-top: auto; }
#view-store .store-textbook-price { font-size: 16px; font-weight: 800; }
#view-store .store-textbook-price small { font-size: 11px; }
#view-store .store-textbook-open { justify-content: flex-start; gap: 6px; padding: 0; border: 0; border-radius: 0; color: var(--ink-500); font-size: 11px; font-weight: 500; }
#view-store .store-textbook-card:hover .store-textbook-open { color: var(--brand-700); background: transparent; }
#view-store .store-cover-stack { flex: none; max-width: none; height: auto; align-self: stretch; }
#view-store .store-stacked-book { width: 84%; height: 91%; }
#view-store .store-stacked-book img { object-fit: contain; }
#view-store .store-stacked-back { top: 2px; right: 2px; transform: rotate(5deg); }
#view-store .store-stacked-front { bottom: 0; left: 2px; transform: rotate(-2deg); }
#view-store .store-stacked-book > span:not(.store-october-cover) { padding: 3px 1px; font-size: 9px; }
@container store-books (max-width: 900px) {
  #view-store .store-textbook-grid, #view-store .store-shelf-books { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
  #view-store .store-textbook-grid.store-shelves { display: block; }
}
@container store-books (max-width: 640px) {
  #view-store .store-textbook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  #view-store .store-shelf-books { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: 5px 4px 12px; }
  #view-store .store-shelf-books .store-textbook-card { scroll-snap-align: start; }
  #view-store .store-shelf-heading { margin-bottom: 12px; gap: 10px; }
  #view-store .store-shelf-heading h2 { font-size: 16px; }
  #view-store .store-shelf + .store-shelf { margin-top: 22px; padding-top: 20px; }
  #view-store .store-textbook-title { font-size: 13px; }
}

/* 전체 탐색은 분류 메뉴의 첫 단추에서 바로 연다. */
#view-store .store-category-filters .store-category-all { min-width: 52px; font-weight: 800; }
