:root {
  --paper: #f6f0e8;
  --paper-deep: #ece4da;
  --ink: #171717;
  --muted: #6f6b66;
  --line: rgba(23, 23, 23, 0.14);
  --accent: #ea6a2d;
  --accent-soft: #f6b16c;
  --navy: #24446b;
  --sage: #b6c3a5;
  --card: rgba(255, 255, 255, 0.74);
  --shadow: 0 28px 60px rgba(51, 38, 23, 0.12);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(234, 106, 45, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(36, 68, 107, 0.16), transparent 28%),
    linear-gradient(180deg, #fbf8f3 0%, #f2ece4 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 18px auto 36px;
  padding: 22px 20px 40px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 44px;
  background: rgba(255, 251, 247, 0.92);
  box-shadow: var(--shadow);
  overflow: clip;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 22px;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 58px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
}

.brand-mark span {
  position: absolute;
  display: block;
  background: var(--ink);
}

.brand-mark span:first-child {
  inset: 14px 24px 14px 14px;
  border-radius: 999px;
}

.brand-mark span:last-child {
  inset: 24px 14px 14px 14px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.eyebrow,
.section-tag,
.visual-label,
.highlight-label,
.panel-title,
.panel-subtitle,
.panel-footnote {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.top-nav a,
.header-actions {
  min-height: 64px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  border-left: 1px solid var(--line);
  font-size: 0.98rem;
  white-space: nowrap;
}

.top-nav a:last-child {
  border-right: 1px solid var(--line);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.ghost-icon,
.cta-pill,
.primary-button,
.chip,
.view-all {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.ghost-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.search-ring {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.search-ring::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.cta-pill,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.cta-pill {
  background: var(--ink);
  color: #fff8f1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 36px;
  padding: 40px 8px 34px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.section-tag {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1,
.catalog-topbar h2,
.story-copy h2,
.seller-section h2 {
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.93;
  text-wrap: balance;
}

.hero-copy,
.hero-visual,
.catalog-content,
.catalog-topbar > div,
.highlight-row article,
.product-card,
.product-info,
.seller-section > * {
  min-width: 0;
}

.hero h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4rem, 9vw, 7.3rem);
}

.hero h1 span {
  display: block;
}

.hero-text,
.hero-note p,
.panel-copy,
.highlight-row article p,
.steps-grid p,
.seller-section p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 30px 0 34px;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #f08c4d);
  color: #fff8f1;
  box-shadow: 0 14px 30px rgba(234, 106, 45, 0.26);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.secondary-link::after {
  content: "";
  display: inline-block;
  width: 54px;
  height: 1px;
  background: currentColor;
}

.hero-note {
  max-width: 34rem;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-visual {
  display: grid;
  gap: 18px;
  align-content: end;
}

.visual-card {
  min-height: 620px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.9)),
    linear-gradient(125deg, rgba(36, 68, 107, 0.06), rgba(234, 106, 45, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.visual-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.book-spines {
  position: absolute;
  right: 28px;
  bottom: -12px;
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.book-spine {
  width: 122px;
  height: 430px;
  border-radius: 12px 12px 0 0;
  box-shadow: 16px 14px 0 var(--ink);
  transform-origin: bottom center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 26px;
}

.book-spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #fff8f1;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.book-spine.orange {
  height: 356px;
  background: linear-gradient(180deg, #f27d31, #eb5f20);
  transform: rotate(13deg);
}

.book-spine.blue {
  height: 420px;
  background: linear-gradient(180deg, #335983, #1f3f67);
  transform: rotate(10deg);
}

.book-spine.sand {
  height: 470px;
  background: linear-gradient(180deg, #f3c662, #eeb151);
  transform: rotate(6deg);
}

.mini-insight {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(51, 38, 23, 0.08);
}

.mini-insight strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 28px 8px 10px;
}

.stats-strip article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.44);
}

.stats-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.stats-strip p {
  margin: 0;
  color: var(--muted);
}

.preview-section {
  padding: 34px 8px 0;
}

.preview-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.preview-header h2,
.catalog-hero h1,
.detail-copy h1,
.detail-fallback h1 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.93;
  text-wrap: balance;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.preview-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 22px;
  border-radius: 28px;
  color: #fff8f1;
  box-shadow: 0 18px 32px rgba(51, 38, 23, 0.12);
}

.orange-card {
  background: linear-gradient(145deg, #ec7b3a, #ca5221);
}

.blue-card {
  background: linear-gradient(145deg, #365b85, #1a3557);
}

.sand-card {
  background: linear-gradient(145deg, #f2c666, #d89d34);
  color: var(--ink);
}

.preview-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.82;
}

.preview-card h3 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
}

.preview-card p {
  margin: 0;
  line-height: 1.7;
}

.preview-link {
  margin-top: auto;
  font-weight: 700;
}

.catalog-main,
.detail-main {
  padding-top: 28px;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: end;
  padding: 0 8px 8px;
}

.catalog-hero-copy,
.detail-subtitle,
.detail-panel p,
.detail-specs dd,
.detail-fallback p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.catalog-section {
  padding: 22px 8px 0;
}

.catalog-shell {
  display: grid;
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(234, 106, 45, 0.08), rgba(255, 255, 255, 0.45));
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.filters-panel,
.catalog-content {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(51, 38, 23, 0.06);
}

.filters-panel {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 28px 22px;
}

.panel-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.panel-copy {
  margin: 0;
}

.panel-group {
  display: grid;
  gap: 14px;
}

.panel-subtitle {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.chip.is-active {
  border-color: transparent;
  background: var(--ink);
  color: #fff8f1;
  box-shadow: 0 12px 26px rgba(23, 23, 23, 0.14);
}

.panel-footnote {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.catalog-content {
  padding: 22px;
}

.catalog-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
}

.catalog-topbar h2,
.story-copy h2,
.seller-section h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

.view-all {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.highlight-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 22px;
}

.highlight-row article {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(245, 240, 234, 0.72);
}

.highlight-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.avatar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.avatar-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.product-card-link .product-card {
  height: 100%;
}

.product-card {
  display: grid;
  gap: 16px;
  min-height: 430px;
  padding: 18px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 30px rgba(51, 38, 23, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-meta,
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.cover-frame {
  display: grid;
  place-items: center;
  min-height: 255px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(246, 240, 232, 0.85), rgba(255, 255, 255, 0.95));
}

.book-cover {
  width: min(72%, 220px);
  aspect-ratio: 0.68;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  color: #fff8f1;
  box-shadow: 0 18px 30px rgba(23, 23, 23, 0.14);
}

.cover-title {
  font-family: "Baskerville", "Iowan Old Style", serif;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.cover-author {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 0;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.product-author,
.product-condition {
  margin: 4px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.product-price {
  font-size: 1.05rem;
}

.story-section {
  padding: 54px 8px 0;
}

.story-copy {
  max-width: 42rem;
  margin-bottom: 26px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps-grid article,
.seller-section {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: rgba(234, 106, 45, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.steps-grid h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.steps-grid p,
.seller-section p {
  margin: 0;
}

.seller-section {
  display: grid;
  grid-template-columns: 1fr minmax(0, 0.8fr) auto;
  align-items: center;
  gap: 24px;
  margin: 28px 8px 0;
  background:
    linear-gradient(120deg, rgba(36, 68, 107, 0.1), transparent 50%),
    rgba(255, 255, 255, 0.74);
}

.ghost-icon:hover,
.chip:hover,
.view-all:hover,
.cta-pill:hover,
.primary-button:hover,
.product-card:hover {
  transform: translateY(-2px);
}

.product-card:hover {
  box-shadow: 0 22px 36px rgba(51, 38, 23, 0.12);
}

.detail-hero {
  padding: 8px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1fr);
  gap: 24px;
}

.detail-cover-card,
.detail-panel,
.related-card,
.detail-fallback {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 34px rgba(51, 38, 23, 0.08);
}

.detail-cover-card {
  padding: 24px;
}

.detail-cover-shell {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(246, 240, 232, 0.85), rgba(255, 255, 255, 0.96));
}

.detail-carousel {
  display: grid;
  gap: 16px;
}

.detail-carousel-track {
  position: relative;
  min-height: 100%;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(246, 240, 232, 0.85), rgba(255, 255, 255, 0.96));
}

.detail-carousel-slide {
  display: none;
  margin: 0;
}

.detail-carousel-slide.is-active {
  display: block;
}

.detail-carousel-slide img {
  width: min(100%, 320px);
  aspect-ratio: 0.68;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 22px 34px rgba(23, 23, 23, 0.18);
}

.detail-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.detail-carousel-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.18);
  cursor: pointer;
}

.detail-carousel-dot.is-active {
  background: var(--accent);
}

.carousel-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.carousel-arrow-left {
  transform: rotate(-135deg);
}

.carousel-arrow-right {
  transform: rotate(45deg);
}

.detail-cover {
  width: min(100%, 320px);
  aspect-ratio: 0.68;
  padding: 28px 24px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  color: #fff8f1;
  box-shadow: 0 22px 34px rgba(23, 23, 23, 0.18);
}

.detail-cover-title {
  font-family: "Baskerville", "Iowan Old Style", serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.detail-cover-author {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-copy {
  display: grid;
  gap: 18px;
  padding: 12px 4px 12px 0;
}

.detail-copy h1 {
  max-width: 12ch;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-meta span,
.detail-panel-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-panel {
  padding: 20px;
}

.detail-panel-label {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
}

.detail-specs {
  display: grid;
  gap: 16px;
  margin: 0;
}

.detail-specs div {
  display: grid;
  gap: 4px;
}

.detail-specs dt {
  font-weight: 700;
}

.detail-specs dd {
  margin: 0;
}

.detail-related {
  padding: 34px 8px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  color: inherit;
}

.related-cover {
  min-height: 240px;
  padding: 18px;
  border-radius: 22px;
  display: flex;
  align-items: end;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.related-cover span {
  color: #fff8f1;
  font-family: "Baskerville", "Iowan Old Style", serif;
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.related-copy {
  display: grid;
  gap: 6px;
}

.related-copy p {
  margin: 0;
  color: var(--muted);
}

.detail-fallback {
  display: grid;
  gap: 18px;
  margin: 8px;
  padding: 28px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -8px;
    padding-inline: 8px;
    padding-bottom: 4px;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    flex: 0 0 auto;
    padding: 16px 22px;
  }

  .top-nav a:first-child {
    border-left: 1px solid var(--line);
    padding-left: 22px;
  }

  .header-actions {
    border-left: 0;
    padding-left: 0;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .visual-card {
    min-height: 500px;
  }

  .catalog-hero {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seller-section {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-copy {
    padding-right: 0;
  }
}

@media (max-width: 960px) {
  .catalog-shell {
    padding: 14px;
    border-radius: 28px;
  }

  .stats-strip,
  .steps-grid,
  .highlight-row,
  .catalog-shell {
    grid-template-columns: 1fr;
  }

  .catalog-topbar {
    flex-direction: column;
    align-items: start;
  }

  .filters-panel,
  .catalog-content {
    border-radius: 24px;
  }

  .preview-header,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .preview-header {
    display: grid;
  }

  .preview-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-insight {
    width: 100%;
    justify-content: space-between;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 14px, 100%);
    margin: 8px auto 24px;
    padding: 16px 12px 26px;
    border-radius: 28px;
  }

  .top-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .top-nav a {
    padding: 14px 18px;
    justify-content: flex-start;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    padding-top: 28px;
    gap: 22px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(2.6rem, 13vw, 4.1rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .primary-button,
  .view-all,
  .cta-pill {
    width: 100%;
  }

  .hero-text,
  .hero-note {
    max-width: none;
  }

  .visual-card {
    min-height: 360px;
    padding: 18px;
  }

  .book-spines {
    inset: auto 8px -22px auto;
    gap: 14px;
    transform: scale(0.82);
    transform-origin: bottom right;
  }

  .book-spine {
    width: 82px;
    box-shadow: 10px 10px 0 var(--ink);
  }

  .book-spine span {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid,
  .related-grid,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .catalog-shell {
    padding: 10px;
    gap: 14px;
    border-radius: 24px;
  }

  .catalog-content,
  .filters-panel,
  .seller-section,
  .steps-grid article {
    padding: 18px;
  }

  .cover-frame {
    min-height: 220px;
  }

  .product-card {
    min-height: 0;
  }

  .detail-actions .primary-button,
  .detail-actions .view-all {
    width: 100%;
  }

  .detail-cover-card {
    padding: 18px;
  }

  .detail-cover-shell {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: calc(100% - 10px);
    padding: 12px 10px 22px;
    border-radius: 22px;
  }

  .site-header {
    padding: 4px 4px 16px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .top-nav a {
    padding: 13px 16px;
    font-size: 0.92rem;
  }

  .hero {
    padding: 22px 4px 26px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 14vw, 3.4rem);
  }

  .secondary-link::after {
    width: 36px;
  }

  .visual-card {
    min-height: 300px;
  }

  .book-spines {
    right: -4px;
    bottom: -36px;
    transform: scale(0.68);
  }

  .catalog-topbar h2,
  .story-copy h2,
  .seller-section h2,
  .preview-header h2,
  .catalog-hero h1,
  .detail-copy h1,
  .detail-fallback h1 {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
  }

  .product-card {
    padding: 14px;
  }

  .cover-title {
    font-size: 1.35rem;
  }

  .product-meta,
  .product-bottom {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
