.book-flow-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: grid;
  grid-template-columns: 104px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(85, 70, 120, 0.12);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

@media (prefers-reduced-motion: reduce) {
  .book-list-card,
  .book-category-art img { transition: none; }
}

.book-flow-back,
.book-return-link {
  color: var(--books-purple);
  font-weight: 850;
  text-decoration: none;
}

.book-flow-back { font-size: .78rem; }

.book-flow-brand {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--books-ink);
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 850;
}

.book-flow-brand img {
  width: 34px;
  height: 30px;
  object-fit: contain;
}

.book-flow-icon {
  justify-self: end;
  color: var(--books-ink);
  font-size: 1.7rem;
}

.book-flow-shell {
  width: min(calc(100% - 28px), 920px);
  max-width: calc(100vw - 28px);
  margin: 0 auto;
  padding: 24px 0 32px;
  overflow-x: clip;
}

.book-category-head {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
  text-align: center;
  justify-items: center;
}

.book-category-head > .book-return-link { justify-self: start; }

.book-category-identity {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 210px;
  padding: 24px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(91, 59, 140, .12);
  border-radius: 24px;
  text-align: left;
  background: radial-gradient(circle at 12% 30%, rgba(201, 154, 58, .16), transparent 34%), linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(244, 239, 250, .9));
  box-shadow: 0 20px 50px rgba(54, 38, 79, .12);
}

.book-category-identity::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 210px;
  height: 210px;
  right: -84px;
  bottom: -116px;
  border: 36px solid rgba(91, 59, 140, .06);
  border-radius: 50%;
}

.book-category-art {
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 22px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 14px 32px rgba(54, 38, 79, .14);
}

.book-category-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.book-category-identity:hover .book-category-art img { transform: scale(1.035); }

.book-category-title-row {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.book-category-title-row > span { color: var(--books-gold); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.book-category-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--books-purple);
  background: rgba(91, 59, 140, 0.1);
  font-size: 1.5rem;
}

.book-category-search {
  width: min(100%, 520px);
  display: grid;
  gap: 7px;
  color: var(--books-purple);
  font-size: .88rem;
  font-weight: 850;
  text-align: left;
}

.book-category-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--books-border);
  border-radius: 12px;
  color: var(--books-ink);
  background: rgba(255, 255, 255, .88);
  font: inherit;
}

.book-category-head h1,
.book-detail-title h1 {
  margin: 0;
  color: var(--books-ink);
  font-size: clamp(2rem, 10vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.book-category-head p {
  margin: 0;
  color: var(--books-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.book-sort {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--books-border);
  border-radius: 999px;
  color: var(--books-purple);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.book-sort select {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  outline: 0;
}

.book-count {
  font-weight: 750;
}

.book-list {
  display: grid;
  gap: 28px;
}

.book-subject-group {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.book-subject-group-list {
  display: grid;
  gap: 12px;
}

.book-subject-divider {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid rgba(31, 92, 119, .18);
  border-left: 5px solid #d78a12;
  border-radius: 8px;
  background: #edf5f7;
  box-shadow: 0 8px 20px rgba(31, 54, 77, .07);
}

.book-subject-divider span {
  color: #a75e05;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.book-subject-divider h2 {
  margin: 0;
  color: #132f43;
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  line-height: 1.15;
}

.book-subject-divider b {
  padding: 6px 9px;
  border-radius: 999px;
  color: #315469;
  background: #fff;
  font-size: .72rem;
  white-space: nowrap;
}

.book-list-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 74px;
  gap: 12px;
  align-items: center;
  min-height: 156px;
  padding: 10px;
  border: 1px solid rgba(67, 40, 109, .12);
  border-radius: 14px;
  background: #fffefa;
  box-shadow: 0 10px 26px rgba(41, 31, 58, 0.08);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.book-list-card:hover,
.book-list-card:focus-within { border-color: rgba(91, 59, 140, .28); box-shadow: 0 18px 38px rgba(54, 38, 79, .14); transform: translateY(-3px); }

.book-list-card.is-unavailable {
  background: linear-gradient(135deg, #fff 0%, #faf8fc 100%);
}

.book-list-card.is-unavailable .book-list-cover img {
  filter: saturate(.72);
  opacity: .84;
}

.book-unavailable-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #7c2532 !important;
  background: #fbe8eb;
  font-size: .78rem !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.book-college-spotlight {
  position: sticky;
  top: 72px;
  z-index: 18;
  margin: 18px 0 14px;
  border: 1px solid rgba(36, 83, 114, .18);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(238, 249, 255, .98), rgba(255, 249, 229, .98));
  box-shadow: 0 10px 28px rgba(31, 54, 77, .12);
  backdrop-filter: blur(12px);
}

.book-college-spotlight a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 8px 14px;
  color: #172334;
  text-decoration: none;
}

.book-college-spotlight img {
  width: 48px;
  height: 58px;
  object-fit: cover;
  object-position: top center;
  border-radius: 7px;
  box-shadow: 0 5px 13px rgba(36, 32, 75, .2);
}

.book-spotlight-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.book-spotlight-copy small {
  color: #b54d12;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.book-spotlight-copy strong {
  overflow: hidden;
  font-size: .94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-spotlight-copy em {
  color: #566274;
  font-size: .76rem;
  font-style: normal;
}

.book-college-spotlight > a > b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-radius: 10px;
  color: #fff;
  background: #1f5c77;
  font-size: .78rem;
  white-space: nowrap;
}

.premium-purchase-card--unavailable {
  border-color: rgba(124, 37, 50, .2) !important;
  background: linear-gradient(135deg, #fff 0%, #fdf4f5 100%) !important;
}

.premium-availability {
  display: grid;
  gap: 7px;
}

.premium-availability span {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #7c2532;
  background: #fbe3e7;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.premium-availability strong {
  color: #3f2630 !important;
  font-size: 1rem !important;
}

.book-alternative-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.book-similar-button {
  min-height: 48px;
  justify-content: center;
  border: 1px solid rgba(91, 59, 140, .25);
  color: #4c326d;
  background: #fff;
}

.book-list-cover img {
  width: 96px;
  height: 134px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(21, 21, 45, 0.12);
}

.book-list-copy {
  min-width: 0;
}

.book-list-copy h2 {
  margin: 0 0 3px;
  color: var(--books-ink);
  font-size: clamp(1rem, 4.6vw, 1.45rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.book-list-copy strong {
  color: var(--books-purple);
}

.book-list-copy .book-list-price {
  display: block;
  margin-top: 7px;
  color: #17243a;
  line-height: 1;
}

.book-list-price del,
.book-price-row del {
  display: block;
  margin-bottom: 3px;
  color: #8d95a3;
  font-size: .78rem;
  font-weight: 700;
  opacity: .78;
}

.book-list-price strong {
  color: #52327f;
  font-size: 1.35rem;
  line-height: 1.05;
}

.book-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0;
  color: #4e4a5e;
  font-size: 0.86rem;
}

.book-list-copy > p:last-child {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--books-muted);
  font-size: 0.88rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.book-list-actions {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.book-view-button,
.book-buy-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--books-purple);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(63, 39, 101, 0.18);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.book-view-button:hover,
.book-buy-button:hover {
  background: #43286d;
  box-shadow: 0 13px 26px rgba(63, 39, 101, 0.24);
  transform: translateY(-1px);
}

.book-view-button:focus-visible,
.book-buy-button:focus-visible,
.book-favorite:focus-visible,
.book-more:focus-visible,
.book-review-action:focus-visible {
  outline: 3px solid rgba(201, 154, 58, 0.48);
  outline-offset: 3px;
}

.book-favorite {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--books-border);
  border-radius: 8px;
  color: var(--books-purple);
  background: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(54, 38, 79, 0.08);
}

.book-favorite b {
  font-size: 0.82rem;
}

.book-favorite.is-active {
  color: #fff;
  border-color: var(--books-purple);
  background: var(--books-purple);
}

.book-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 22px;
  border: 1px solid rgba(67, 40, 109, .12);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(246, 239, 225, .72), rgba(255, 255, 255, .94) 46%, rgba(246, 243, 250, .9));
  box-shadow: 0 18px 46px rgba(41, 31, 58, .11);
}

.book-detail-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -120px;
  width: 230px;
  height: 230px;
  border: 38px solid rgba(201, 154, 58, .065);
  border-radius: 50%;
}

.book-cover-stage {
  position: relative;
  width: 118px;
}

.book-detail-cover {
  width: 100%;
  height: 164px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 22px 38px rgba(27, 22, 37, 0.22);
}

.book-cover-stage > span {
  position: absolute;
  right: -8px;
  bottom: 10px;
  min-width: 38px;
  padding: 5px 8px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  color: #fff;
  background: var(--books-purple);
  box-shadow: 0 8px 18px rgba(54, 38, 79, .2);
  font-size: .66rem;
  font-weight: 900;
  text-align: center;
}

.book-detail-title > span,
.book-detail-title strong {
  color: var(--books-purple);
  font-weight: 900;
}

.book-detail-title .book-detail-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--books-gold);
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.book-detail-title strong {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.book-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  color: #565268;
  font-weight: 750;
  font-size: 0.86rem;
}

.book-detail-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(91, 59, 140, 0.08);
}

.book-purchase-card,
.book-detail-section {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--books-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(41, 31, 58, 0.075);
}

.book-purchase-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 20px;
  padding: 18px 20px;
  border-color: rgba(67, 40, 109, .16);
  border-radius: 16px;
  background: #fffefa;
  box-shadow: 0 16px 38px rgba(41, 31, 58, .1);
}

.book-purchase-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(78, 60, 112, .1);
}

.book-purchase-heading > span {
  color: var(--books-ink);
  font-size: .82rem;
  font-weight: 900;
}

.book-purchase-heading small {
  color: var(--books-muted);
  font-size: .72rem;
  font-weight: 750;
}

.book-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.book-purchase-card span {
  color: var(--books-muted);
}

.book-purchase-card strong {
  display: block;
  color: #52327f;
  font-size: clamp(1.9rem, 8.5vw, 2.5rem);
  line-height: 1.05;
}

.book-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
}

.book-trust-strip span {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(67, 40, 109, .08);
  border-radius: 10px;
  color: var(--books-ink);
  background: #fff;
  text-align: left;
  font-size: 0.68rem;
  line-height: 1.15;
  font-weight: 800;
}

.book-trust-strip b {
  font: inherit;
}

.book-trust-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #345995;
  font-style: normal;
  box-shadow: 0 7px 16px rgba(52, 89, 149, .18);
}

.book-trust-icon img {
  width: 21px;
  height: 21px;
  display: block;
  filter: brightness(0) invert(1);
}

.book-trust-icon--instant {
  background: #bd7b18;
  box-shadow: 0 7px 16px rgba(189, 123, 24, .2);
}

.book-trust-icon--support {
  background: #258264;
  box-shadow: 0 7px 16px rgba(37, 130, 100, .2);
}

.book-buy-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.book-detail-section h2 {
  margin: 0 0 16px;
  color: var(--books-ink);
  font-size: 1.24rem;
  line-height: 1.2;
}

.book-detail-section h2::after {
  content: "";
  width: 42px;
  height: 3px;
  display: block;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--books-gold);
}

.book-description-section {
  border-left: 4px solid #c99a3a;
  background: #fffaf0;
}

.book-specification-section {
  border-left: 4px solid #5b72a6;
  background: #f6f8fc;
}

.book-reviews-section {
  border-left: 4px solid #76539c;
  background: #faf7fc;
}

.book-description {
  max-height: 118px;
  overflow: hidden;
  color: var(--books-ink);
  line-height: 1.65;
}

.book-description.is-open {
  max-height: none;
}

.book-more {
  min-height: 42px;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid var(--books-border);
  border-radius: 8px;
  color: var(--books-purple);
  background: #fff;
  font-weight: 850;
}

.book-detail-grid {
  display: grid;
  gap: 8px;
  margin: 0;
}

.book-detail-grid div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(78, 60, 112, 0.1);
}

.book-detail-grid dt {
  color: var(--books-muted);
  font-weight: 800;
}

.book-detail-grid dd {
  margin: 0;
  color: var(--books-ink);
}

.book-empty {
  padding: 18px;
  border: 1px dashed var(--books-border);
  border-radius: 16px;
  color: var(--books-muted);
  background: rgba(255, 255, 255, 0.64);
}

.book-reviews {
  display: grid;
  gap: 12px;
}

.book-review-card {
  padding: 14px;
  border: 1px solid rgba(78, 60, 112, 0.12);
  border-radius: 10px;
  background: #fff;
}

.book-review-card strong {
  display: block;
  margin-top: 4px;
  color: var(--books-ink);
}

.book-review-card p {
  margin: 8px 0 0;
  color: var(--books-muted);
  line-height: 1.5;
}

.book-review-stars {
  color: #d39a22;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.book-review-action {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border: 1px solid rgba(91, 59, 140, 0.2);
  border-radius: 8px;
  color: var(--books-purple);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.book-review-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.book-review-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 13, 35, .56);
  backdrop-filter: blur(5px);
}

.book-review-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 22px;
  border-radius: 18px;
  color: var(--books-ink);
  background: #fff;
  box-shadow: 0 24px 65px rgba(20, 13, 35, .28);
}

.book-review-dialog h2,
.book-review-dialog p { margin: 0; }
.book-review-dialog p { margin-top: 5px; color: var(--books-muted); }
.book-review-dialog form { margin-top: 18px; display: grid; gap: 12px; }
.book-review-dialog label { display: grid; gap: 6px; color: var(--books-purple); font-size: .88rem; font-weight: 800; }
.book-review-dialog input,
.book-review-dialog select,
.book-review-dialog textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--books-border); border-radius: 10px; color: var(--books-ink); background: #fff; font: inherit; }
.book-review-dialog textarea { resize: vertical; }
.book-review-dialog form button { min-height: 46px; border: 0; border-radius: 12px; color: #fff; background: var(--books-purple); font: inherit; font-weight: 900; cursor: pointer; }
.book-review-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--books-ink); background: rgba(91, 59, 140, .1); font: inherit; font-weight: 900; cursor: pointer; }
}

@media (max-width: 370px) {
  .book-list-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .book-list-cover img {
    width: 74px;
    height: 104px;
  }

  .book-list-actions {
    left: 98px;
  }

  .book-detail-hero {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .book-detail-cover {
    width: 98px;
    height: 136px;
  }
}

@media (max-width: 560px) {
  .book-college-spotlight {
    top: 62px;
    margin: 12px -2px 10px;
    border-radius: 13px;
  }

  .book-college-spotlight a {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 64px;
    padding: 7px 9px;
  }

  .book-college-spotlight img {
    width: 42px;
    height: 50px;
  }

  .book-spotlight-copy strong { font-size: .8rem; }
  .book-spotlight-copy em { font-size: .67rem; }

  .book-college-spotlight > a > b {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 0;
  }

  .book-college-spotlight > a > b span { font-size: 1rem; }

  .book-flow-header {
    min-height: 62px;
    grid-template-columns: 74px 1fr 34px;
    padding: 8px 12px;
  }

  .book-flow-brand {
    font-size: 1.05rem;
  }

  .book-flow-brand img {
    width: 28px;
    height: 26px;
  }

  .book-flow-shell {
    width: min(calc(100% - 22px), 920px);
    max-width: calc(100vw - 22px);
    padding-top: 18px;
  }

  .book-category-head {
    gap: 14px;
    margin-bottom: 20px;
  }

  .book-category-identity { min-height: 0; padding: 18px 14px; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; border-radius: 20px; }
  .book-category-art { width: 82px; border-radius: 16px; }

  .book-category-title-row {
    gap: 5px;
  }

  .book-category-title-row > span { font-size: .61rem; }

  .book-category-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.2rem;
  }

  .book-category-head h1 {
    font-size: clamp(1.38rem, 6.7vw, 2rem);
    line-height: 1.08;
    overflow-wrap: normal;
  }

  .book-category-title-row p {
    display: -webkit-box;
    overflow: hidden;
    font-size: .79rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .book-sort {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .book-list {
    gap: 10px;
  }

  .book-list-card {
    position: relative;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 0;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(54, 38, 79, 0.09);
  }

  .book-list-cover img {
    width: 82px;
    height: 116px;
    border-radius: 12px;
  }

  .book-list-copy h2 {
    display: -webkit-box;
    width: auto;
    margin-bottom: 4px;
    overflow: hidden;
    font-size: clamp(0.98rem, 4.3vw, 1.12rem);
    line-height: 1.16;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .book-list-copy {
    padding-bottom: 42px;
  }

  .book-list-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.22;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .book-meta-line {
    gap: 5px;
    margin: 7px 0;
    font-size: 0.76rem;
  }

  .book-meta-line span {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(91, 59, 140, 0.08);
  }

  .book-meta-line span:not(:first-child) {
    display: none;
  }

  .book-list-copy > p:last-child {
    display: none;
  }

  .book-list-actions {
    position: absolute;
    left: 106px;
    right: 12px;
    bottom: 12px;
    grid-column: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
  }

  .book-view-button {
    min-height: 36px;
    width: auto;
    padding: 0 15px;
    border-radius: 999px;
    font-size: 0.86rem;
  }

  .book-favorite {
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
    font-size: 1.1rem;
  }

  .book-detail-hero {
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 15px;
    border-radius: 20px;
  }

  .book-cover-stage {
    width: 108px;
  }

  .book-detail-cover {
    width: 108px;
    height: 150px;
    border-radius: 14px;
  }

  .book-detail-title h1 {
    max-width: 100%;
    font-size: clamp(1.26rem, 6vw, 1.7rem);
    line-height: 1.06;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .book-detail-title > span {
    font-size: 0.76rem;
  }

  .book-detail-title .book-favorite {
    margin-top: 10px;
  }

  .book-purchase-card {
    gap: 12px;
    padding: 16px;
    overflow: hidden;
  }

  .book-price-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .book-trust-strip span {
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 6px 3px;
    text-align: center;
  }

  .book-trust-strip b {
    overflow-wrap: anywhere;
  }

  .book-buy-button {
    width: auto;
    max-width: 100%;
    padding: 0 14px;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .book-detail-title,
  .book-detail-section,
  .book-purchase-card {
    max-width: calc(100vw - 28px);
    overflow-x: hidden;
  }

  .book-flow-shell {
    max-width: calc(100vw - 28px);
    overflow-x: clip;
  }
}

@media (min-width: 720px) {
  .book-detail-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .book-cover-stage {
    width: 260px;
  }

  .book-detail-cover {
    width: 260px;
    height: 360px;
  }

  .book-price-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .book-purchase-card {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  }

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

/* Professional book detail layout: prominent cover and restrained actions. */
.book-detail-title {
  min-width: 0;
}

.book-detail-title h1 {
  font-size: clamp(1.45rem, 5.6vw, 3rem);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.book-purchase-card {
  margin-top: 14px;
  gap: 8px 16px;
  padding: 14px 16px;
  border-radius: 18px;
}

.book-purchase-card strong {
  font-size: clamp(1.9rem, 8.5vw, 2.5rem);
}

.book-buy-button {
  min-height: 56px;
  padding: 0 24px;
  font-size: .98rem;
  letter-spacing: 0;
}

@media (max-width: 719px) {
  .books-detail-page .book-flow-shell {
    width: min(calc(100% - 18px), 920px);
    max-width: calc(100vw - 18px);
  }

  .book-detail-hero {
    grid-template-columns: clamp(126px, 38vw, 158px) minmax(0, 1fr);
    gap: clamp(13px, 4vw, 20px);
    padding: clamp(16px, 4.5vw, 22px);
  }

  .book-cover-stage,
  .book-detail-cover {
    width: clamp(126px, 38vw, 158px);
  }

  .book-detail-cover {
    height: auto;
    aspect-ratio: 13 / 18;
  }

  .book-detail-title h1 {
    font-size: clamp(1.08rem, 5.15vw, 1.55rem);
    line-height: 1.1;
    hyphens: none;
  }

  .book-detail-title strong {
    margin-top: 6px;
    font-size: .84rem;
  }

  .book-detail-meta {
    margin-top: 9px;
    font-size: .76rem;
  }

  .book-purchase-card {
    max-width: calc(100vw - 18px);
    padding: 15px;
  }

  .book-purchase-heading {
    padding-bottom: 7px;
  }

  .book-price-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .book-buy-button {
    width: 100%;
    max-width: none;
    min-height: 56px;
    padding: 0 20px;
  }
}

@media (min-width: 480px) and (max-width: 719px) {
  .book-price-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .book-buy-button {
    width: auto;
    min-width: 210px;
  }
}

@media (min-width: 720px) {
  .book-detail-hero {
    grid-template-columns: clamp(285px, 34vw, 330px) minmax(0, 1fr);
    gap: 38px;
    padding: 34px;
  }

  .book-cover-stage,
  .book-detail-cover {
    width: clamp(285px, 34vw, 330px);
  }

  .book-detail-cover {
    height: auto;
    aspect-ratio: 5 / 7;
  }

  .book-buy-button {
    min-width: 220px;
  }
}

/* Premium detail treatment shared by every UNS Livres presentation page. */
.books-detail-page .book-flow-header {
  border-bottom-color: rgba(16, 24, 39, .12);
  background: rgba(249, 250, 251, .92);
  box-shadow: 0 8px 24px rgba(16, 24, 39, .06);
}

.books-detail-page .book-flow-shell {
  width: min(calc(100% - 24px), 980px);
  max-width: calc(100vw - 24px);
  padding-top: 20px;
  padding-bottom: 42px;
}

.books-detail-page .book-return-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: #263b5c;
  font-size: .83rem;
}

.books-detail-page .book-detail-hero {
  border: 1px solid rgba(31, 55, 84, .16);
  border-top: 5px solid #bd8122;
  background: linear-gradient(120deg, #fffaf0 0%, #ffffff 48%, #edf3f8 100%);
  box-shadow: 0 24px 52px rgba(16, 24, 39, .14);
}

.books-detail-page .book-detail-hero::after {
  display: none;
}

.books-detail-page .book-detail-title .book-detail-eyebrow {
  color: #8d5c0b;
}

.books-detail-page .book-detail-meta span {
  color: #233854;
  background: #e8eef4;
}

.books-detail-page .book-purchase-card {
  border: 1px solid rgba(255, 255, 255, .1);
  color: #f8fafc;
  background: linear-gradient(135deg, #101827 0%, #1d314a 100%);
  box-shadow: 0 22px 46px rgba(16, 24, 39, .22);
}

.books-detail-page .book-purchase-heading {
  border-bottom-color: rgba(255, 255, 255, .14);
}

.books-detail-page .book-purchase-heading > span,
.books-detail-page .book-purchase-heading small,
.books-detail-page .book-purchase-card .book-price-row span {
  color: #dce5ef;
}

.books-detail-page .book-price-row del {
  color: #cbd5e1;
  opacity: .76;
}

.books-detail-page .book-purchase-card strong {
  color: #f5c45e;
}

.books-detail-page .book-buy-button {
  border: 1px solid #f5c45e;
  color: #101827;
  background: #f5c45e;
  box-shadow: 0 12px 28px rgba(245, 196, 94, .24);
}

.books-detail-page .book-buy-button:hover {
  color: #101827;
  background: #ffd77f;
  transform: translateY(-2px);
}

.books-detail-page .book-trust-strip span {
  border-color: rgba(255, 255, 255, .12);
  color: #f8fafc;
  background: rgba(255, 255, 255, .07);
}

.books-detail-page .book-trust-icon {
  background: #2f6c8f;
}

.books-detail-page .book-trust-icon--instant {
  background: #b67817;
}

.books-detail-page .book-trust-icon--support {
  background: #25705f;
}

.books-detail-page .book-purchase-card .offer-cycle {
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.books-detail-page .book-purchase-card .offer-cycle-copy strong,
.books-detail-page .book-purchase-card .offer-cycle-copy span,
.books-detail-page .book-purchase-card .offer-cycle-countdown b,
.books-detail-page .book-purchase-card .offer-cycle-countdown small {
  color: #f8fafc;
}

.books-detail-page .book-purchase-card .offer-cycle-countdown > span {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
}

.books-detail-page .book-detail-section {
  border: 1px solid rgba(31, 55, 84, .14);
  border-left: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(16, 24, 39, .09);
}

.books-detail-page .book-description-section {
  border-top: 4px solid #bd8122;
  background: #fffbf3;
}

.books-detail-page .book-specification-section {
  border-top: 4px solid #356a91;
  background: #f4f8fb;
}

.books-detail-page .book-reviews-section {
  border-top: 4px solid #287564;
  background: #f3f9f7;
}

.book-reviews-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.book-reviews-heading h2 {
  margin-bottom: 0;
}

.book-review-action {
  min-height: 46px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #1f6658;
  border-radius: 10px;
  color: #fff;
  background: #1f6658;
  box-shadow: 0 10px 22px rgba(31, 102, 88, .2);
}

.book-review-action:hover {
  background: #174f45;
  transform: translateY(-1px);
}

.book-review-card {
  border: 1px solid rgba(31, 102, 88, .13);
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 39, .06);
}

@media (max-width: 520px) {
  .book-reviews-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .book-review-action {
    width: 100%;
  }

  .books-detail-page .book-purchase-card .offer-cycle-copy {
    text-align: left;
  }
}

/* Streamlined offer card inspired by the UNS Livres sales reference. */
.books-detail-page .book-purchase-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: clamp(18px, 5vw, 28px);
  border-color: rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: linear-gradient(135deg, #10283b 0%, #16364d 100%);
  box-shadow: 0 18px 38px rgba(16, 40, 59, .18);
}

.books-detail-page .book-purchase-heading {
  display: block;
  padding: 0;
  border: 0;
}

.books-detail-page .book-purchase-heading > span {
  color: #f2bd58;
  font-size: .86rem;
  letter-spacing: .01em;
}

.books-detail-page .book-price-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.books-detail-page .book-price-stack del {
  margin: 0 0 4px;
  color: #c7d2dc;
  font-size: .92rem;
}

.books-detail-page .book-price-stack strong {
  font-size: clamp(2.25rem, 11vw, 3.6rem);
  line-height: .98;
}

.book-discount {
  align-self: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 217, 139, .42);
  border-radius: 9px;
  color: #fff7e8 !important;
  background: #9a6818;
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

.books-detail-page .book-buy-button {
  width: 100%;
  max-width: none;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: clamp(.88rem, 4vw, 1.02rem);
}

.books-detail-page .book-purchase-card .offer-cycle.is-inline {
  width: 100%;
  margin: 0;
  padding: 13px 0;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.books-detail-page .offer-cycle.is-inline .offer-cycle-copy {
  display: block;
  text-align: center;
}

.books-detail-page .offer-cycle.is-inline .offer-cycle-copy span {
  color: #d8e1e8;
  font-size: .75rem;
}

.books-detail-page .offer-cycle.is-inline .offer-cycle-countdown {
  display: block;
}

.books-detail-page .offer-cycle.is-inline .offer-cycle-countdown > span {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.books-detail-page .offer-inline-time b {
  color: #fff;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

.books-detail-page .offer-inline-time i {
  color: #f2bd58;
  font-style: normal;
}

.books-detail-page .book-trust-strip {
  gap: 0;
}

.books-detail-page .book-trust-strip span {
  min-width: 0;
  justify-content: center;
  padding: 5px 8px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .14);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.books-detail-page .book-trust-strip span:last-child {
  border-right: 0;
}

.books-detail-page .book-trust-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 8px;
  box-shadow: none;
}

.books-detail-page .book-trust-icon img {
  width: 18px;
  height: 18px;
}

@media (max-width: 390px) {
  .books-detail-page .book-price-stack strong {
    font-size: clamp(2rem, 10.5vw, 2.7rem);
  }

  .book-discount {
    padding: 7px 8px;
    font-size: .68rem;
  }

  .books-detail-page .book-purchase-card .offer-cycle.is-inline {
    flex-wrap: wrap;
  }

  .books-detail-page .book-trust-strip span {
    padding-inline: 4px;
    font-size: .61rem;
  }
}

.book-subject-filter {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.book-subject-filter > span {
  color: #42526a;
  font-size: .78rem;
  font-weight: 800;
}

.book-subject-options {
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding: 2px 1px 7px;
}

.book-subject-options button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid #ccd6e2;
  border-radius: 8px;
  color: #24364d;
  background: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.book-subject-options button small {
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #52667b;
  background: #edf1f5;
  font-size: .68rem;
}

.book-subject-options button:hover,
.book-subject-options button:focus-visible {
  border-color: #356a91;
  color: #173f5b;
  outline: 3px solid rgba(53, 106, 145, .16);
  outline-offset: 1px;
}

.book-subject-options button[aria-pressed="true"] {
  border-color: #173f5b;
  color: #fff;
  background: #173f5b;
}

.book-subject-options button[aria-pressed="true"] small {
  color: #173f5b;
  background: #fff;
}

.book-subject-select {
  display: none;
}

/* Compact catalogue controls */
.book-catalog-controls {
  box-sizing: border-box;
  min-width: 0;
  width: min(100%, 920px);
  padding: 10px;
  border: 1px solid rgba(67, 40, 109, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 30px rgba(41, 31, 58, .08);
  backdrop-filter: blur(12px);
}

.book-controls-primary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.book-category-search {
  position: relative;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

.book-category-search svg {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #6d6680;
  stroke-width: 2;
  pointer-events: none;
}

.book-category-search input {
  min-height: 44px;
  padding: 0 12px 0 40px;
  border-radius: 10px;
  background: #fff;
}

.book-sort {
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  font-size: .82rem;
}

.book-count {
  min-width: 72px;
  padding: 0 8px;
  color: #6d6680 !important;
  font-size: .78rem !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.book-subject-filter {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.book-subject-filter > span { flex: 0 0 auto; }

.book-subject-options {
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}

.book-subject-options button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .76rem;
}

.book-list-cover--pair {
  position: relative;
  width: 96px;
  height: 134px;
  display: block;
}

.book-list-cover--pair img {
  position: absolute;
  top: 3px;
  width: 68px;
  height: 128px;
  object-fit: contain;
  background: #fff;
}

.book-list-cover--pair img:first-child { left: 0; transform: rotate(-3deg); }
.book-list-cover--pair img:last-child { right: 0; transform: rotate(3deg); }

.book-detail-cover-set { display: contents; }

.book-cover-stage--pair {
  width: min(100%, 390px) !important;
}

.book-cover-stage--pair .book-detail-cover-set {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.book-cover-stage--pair .book-detail-cover {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 5 / 7;
  object-fit: contain;
  background: #fff;
}

.book-detail-hero--cover-pair {
  grid-template-columns: minmax(250px, 390px) minmax(0, 1fr);
}

@media (max-width: 560px) {
  .book-catalog-controls { padding: 8px; border-radius: 14px; }
  .book-controls-primary { grid-template-columns: minmax(0, 1fr) 110px; }
  .book-sort { width: 110px; padding-inline: 9px; }
  .book-sort select { width: 100%; max-width: 100%; font-size: .76rem; }
  .book-count { grid-column: 1 / -1; min-width: 0; padding: 0 4px; text-align: left; }
  .book-sort > span { display: none; }
  .book-subject-filter {
    display: grid;
    gap: 6px;
  }
  .book-subject-filter > span { display: none; }
  .book-subject-options { display: none; }
  .book-subject-select {
    min-width: 0;
    display: block;
  }
  .book-subject-select select {
    width: 100%;
    min-height: 44px;
    padding: 0 40px 0 13px;
    border: 1px solid #ccd6e2;
    border-radius: 10px;
    color: #173f5b;
    background: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
  }
  .book-list { gap: 24px; }
  .book-subject-divider {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    min-height: 54px;
    padding: 9px 11px;
    border-left-width: 4px;
  }
  .book-subject-divider span {
    grid-column: 1 / -1;
    font-size: .59rem;
  }
  .book-subject-divider h2 {
    font-size: 1rem;
  }
  .book-subject-divider b {
    padding: 5px 8px;
    font-size: .66rem;
  }
  .book-list-cover--pair { width: 82px; height: 116px; }
  .book-list-cover--pair img { width: 58px; height: 110px; }
  .book-cover-stage--pair { width: clamp(190px, 58vw, 240px) !important; }
  .book-cover-stage--pair .book-detail-cover-set { gap: 6px; }
  .book-detail-hero--cover-pair { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .book-detail-hero--cover-pair .book-detail-title { width: 100%; }
  .book-detail-hero--cover-pair .book-detail-meta { justify-content: center; }
}
