:root {
  --ink: #14120f;
  --ink-2: #2a2520;
  --muted: #70675d;
  --paper: #f6efe3;
  --paper-2: #fffaf1;
  --white: #ffffff;
  --line: #cdbfaa;
  --line-dark: #1b1712;
  --red: #cf3326;
  --blue: #174ea6;
  --gold: #b77b21;
  --shadow: 0 18px 44px rgba(33, 25, 16, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(20, 18, 15, 0.045) 1px, transparent 1px) 0 0 / 52px 52px,
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body.drawer-open,
body.modal-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

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

.announcement {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 7px 16px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.announcement a {
  border-bottom: 1px solid currentColor;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(360px, 1fr) minmax(220px, 300px) auto;
  gap: 18px;
  align-items: center;
  padding: 14px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(246, 239, 227, 0.95);
  border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--ink);
  color: var(--paper-2);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-nav a {
  border-bottom: 3px solid transparent;
  padding: 8px 0 5px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--red);
  color: var(--red);
}

.search {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.cart-trigger,
.primary-link,
.secondary-hero-link,
.product-card button,
.coupon-row button,
.category-list button,
.shop-command-panel a,
.newsletter-panel a,
.release-note a,
.rank-add,
.icon-button {
  border-radius: 0;
  font-weight: 900;
}

.cart-trigger {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 15px;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.cart-trigger strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 13px;
}

.cart-icon {
  display: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 390px);
  gap: 34px;
  align-items: stretch;
  padding: 38px 0 28px;
}

.hero-copy {
  min-height: 500px;
  padding: 42px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.hero h1,
.page-hero h1,
.shop-command h1,
.arrival-hero h1,
.bestseller-board h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  line-height: 1.02;
  font-weight: 900;
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.72;
}

.publisher-note {
  margin-top: 24px;
  padding: 18px 0 0;
  border-top: 2px solid var(--line-dark);
}

.publisher-note a,
.footer-brand a,
.publisher-section a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.primary-link,
.secondary-hero-link,
.newsletter-panel a,
.shop-command-panel a,
.release-note a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 2px solid var(--ink);
}

.primary-link,
.newsletter-panel a,
.shop-command-panel a {
  background: var(--ink);
  color: var(--paper-2);
  box-shadow: 4px 4px 0 var(--red);
}

.secondary-hero-link,
.release-note a {
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--blue);
}

#paypalBadge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-feature {
  position: relative;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 24px;
  background: var(--ink);
  color: var(--paper-2);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
}

.hero-feature img {
  width: min(260px, 80%);
  margin: 18px auto 8px;
  border: 2px solid var(--paper-2);
  background: var(--white);
  box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.18);
}

.hero-feature p,
.hero-feature h2 {
  margin: 0 0 8px;
}

.hero-feature h2,
.section-heading h2,
.catalog-heading h2,
.newsletter-panel h2,
.publisher-section h2,
.release-note h2,
.bestseller-spotlight h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.1;
}

.hero-feature a {
  color: var(--paper-2);
  font-weight: 900;
  text-decoration: underline;
}

.sale-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 3px solid var(--ink);
  background: var(--paper-2);
}

.stats div,
.trust-band div,
.bestseller-metrics article,
.release-timeline article,
.shop-assist article {
  padding: 20px;
  border-right: 2px solid var(--ink);
}

.stats div:last-child,
.trust-band div:last-child,
.bestseller-metrics article:last-child,
.release-timeline article:last-child,
.shop-assist article:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.stats span,
.trust-band span,
.bestseller-metrics span,
.release-timeline span,
.shop-assist span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0;
}

.category-showcase a {
  min-height: 168px;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}

.category-showcase a:nth-child(2) {
  background: var(--red);
}

.category-showcase a:nth-child(3) {
  background: var(--gold);
  color: var(--ink);
}

.category-showcase strong,
.trust-band strong,
.shop-assist strong,
.bestseller-metrics strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.1;
}

.category-showcase span {
  display: block;
  margin-top: 20px;
  line-height: 1.6;
}

.collection-strip,
.newsletter-panel,
.publisher-section,
.shop-layout,
.arrival-editorial,
.bestseller-spotlight {
  margin: 34px 0;
  padding: 28px;
  border: 3px solid var(--ink);
  background: var(--paper-2);
}

.section-heading,
.catalog-heading,
.panel-head,
.cart-head,
.ranking-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading p,
.section-heading h2,
.catalog-heading p,
.catalog-heading h2,
.newsletter-panel p,
.newsletter-panel h2,
.publisher-section p,
.publisher-section h2,
.release-note p,
.release-note h2,
.bestseller-spotlight p,
.bestseller-spotlight h2 {
  margin-top: 0;
}

.section-heading a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.mini-product-card,
.product-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.mini-product-card {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.mini-product-card p,
.mini-product-card h3,
.product-card h3,
.product-card p {
  margin-top: 0;
}

.mini-product-card p,
.product-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-product-card h3,
.product-card h3,
.ranked-item h3,
.cart-item h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.15;
}

.product-title-link:hover,
.product-title-link:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cover-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.cover-button img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.cover-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  place-items: center;
  border: 2px dashed var(--ink);
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.trust-band,
.shop-assist,
.bestseller-metrics,
.release-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 34px 0;
  border: 3px solid var(--ink);
  background: var(--paper-2);
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}

.filter-block {
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.filter-block h2,
.filter-block label {
  display: block;
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 900;
}

.filter-block select,
.checkout-form input,
.checkout-form textarea,
.coupon-row input,
.search input {
  width: 100%;
}

.filter-block select,
.checkout-form input,
.checkout-form textarea,
.coupon-row input {
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  padding: 10px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-list button {
  min-height: 38px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
}

.category-list button:hover,
.category-list button.is-active {
  background: var(--ink);
  color: var(--paper-2);
}

.catalog-panel {
  min-width: 0;
}

.catalog-heading {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}

.catalog-heading > p {
  color: var(--muted);
  font-weight: 900;
}

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

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

.product-card .cover-button img {
  transition: transform 160ms ease;
}

.product-card:hover .cover-button img {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--blue);
}

.card-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
}

.product-card p {
  color: var(--ink-2);
  line-height: 1.55;
}

.arrival-shelf .mini-product-card {
  align-content: start;
  min-width: 0;
}

.arrival-shelf .mini-product-card .cover-button img {
  height: 184px;
  object-fit: contain;
  background: var(--paper-2);
}

.arrival-shelf .mini-product-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price-stack {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.price {
  color: var(--red);
  font-size: 19px;
}

.price-stack s {
  color: var(--muted);
}

.add-btn,
.rank-add {
  min-height: 40px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  padding: 0 13px;
}

.card-actions,
.book-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.details-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 900;
}

.details-link:hover,
.details-link:focus-visible {
  background: var(--blue);
  color: var(--white);
}

.add-btn:disabled {
  cursor: not-allowed;
  background: var(--line);
  color: var(--muted);
}

.empty-state,
.cart-empty,
.empty-rank {
  margin: 0;
  padding: 18px;
  border: 2px dashed var(--line-dark);
  color: var(--muted);
  font-weight: 800;
}

.newsletter-panel,
.publisher-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.newsletter-panel p,
.publisher-section p {
  color: var(--muted);
  line-height: 1.7;
}

.publisher-section address {
  display: grid;
  gap: 8px;
  min-width: min(360px, 100%);
  padding: 20px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-style: normal;
}

.publisher-section address span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-page main,
.arrivals-page main,
.bestsellers-page main {
  padding-top: 32px;
}

.book-page main {
  padding-top: 32px;
}

.book-page {
  background:
    linear-gradient(90deg, rgba(23, 78, 166, 0.06) 1px, transparent 1px) 0 0 / 52px 52px,
    var(--paper);
}

.book-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.book-breadcrumb a {
  color: var(--blue);
}

.book-detail-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 40px;
  padding: 34px;
  border: 3px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 10px 10px 0 var(--blue);
}

.book-cover-panel {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.book-cover-panel img,
.book-cover-panel .cover-placeholder {
  width: min(100%, 340px);
  max-height: 510px;
  object-fit: contain;
  box-shadow: 8px 8px 0 var(--red);
}

.book-info-panel {
  min-width: 0;
}

.book-info-panel h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
}

.book-author {
  margin: 12px 0 22px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.book-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.book-price {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.book-description {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
}

.book-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 26px 0;
  border: 2px solid var(--ink);
}

.book-facts div {
  min-width: 0;
  padding: 13px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.book-facts div:nth-child(2n) {
  border-right: 0;
}

.book-facts div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.book-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-facts dd {
  margin: 5px 0 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.book-add-btn {
  min-width: 154px;
}

.book-not-found {
  padding: 52px 34px;
  border: 3px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 10px 10px 0 var(--red);
}

.book-not-found h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.shop-command,
.arrival-hero,
.bestseller-board,
.page-hero {
  margin-bottom: 30px;
  border: 3px solid var(--ink);
  background: var(--paper-2);
}

.shop-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: stretch;
  padding: 34px;
}

.shop-command p,
.arrival-hero p,
.bestseller-board p,
.page-hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.shop-command-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  border-left: 3px solid var(--ink);
}

.shop-command-panel strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
}

.shop-assist {
  grid-template-columns: repeat(3, 1fr);
}

.shop-catalog-layout {
  background: var(--white);
}

.arrivals-page {
  background:
    linear-gradient(90deg, rgba(23, 78, 166, 0.07) 1px, transparent 1px) 0 0 / 46px 46px,
    #eef3fb;
}

.arrival-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  padding: 34px;
  background: #fffdf7;
  box-shadow: 10px 10px 0 var(--blue);
}

.arrival-date-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: var(--white);
}

.arrival-date-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 70px;
  line-height: 0.9;
}

.arrival-date-card p {
  color: var(--white);
}

.arrival-editorial {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.arrival-shelf {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 14px;
}

.arrival-shelf .mini-product-card {
  grid-template-columns: 1fr;
}

.release-note {
  padding-right: 22px;
  border-right: 2px solid var(--ink);
}

.release-note p {
  color: var(--muted);
  line-height: 1.65;
}

.release-timeline {
  grid-template-columns: repeat(3, 1fr);
}

.release-timeline strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.arrival-catalog .catalog-panel {
  border-left: 2px solid var(--blue);
  padding-left: 22px;
}

.bestsellers-page {
  background:
    linear-gradient(90deg, rgba(207, 51, 38, 0.07) 1px, transparent 1px) 0 0 / 44px 44px,
    #fff5ee;
}

.bestseller-board {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 0;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--red);
}

.bestseller-copy {
  padding: 34px;
  background: var(--ink);
  color: var(--paper-2);
}

.bestseller-copy p {
  color: #eadfcc;
}

.ranking-card {
  padding: 24px;
  background: var(--paper-2);
}

.ranking-card-head {
  align-items: center;
}

.ranked-list {
  display: grid;
  gap: 12px;
}

.ranked-item {
  display: grid;
  grid-template-columns: 36px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.rank-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.rank-cover {
  padding: 0;
  border: 0;
  background: transparent;
}

.rank-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.rank-cover .cover-placeholder {
  width: 58px;
  border-width: 1px;
}

.ranked-item h3,
.ranked-item p {
  margin: 0;
}

.ranked-item p {
  color: var(--muted);
  font-size: 12px;
}

.bestseller-metrics {
  grid-template-columns: repeat(3, 1fr);
}

.bestseller-spotlight {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
}

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

.bestseller-catalog .filters {
  top: 100px;
}

.page-hero {
  padding: 42px;
  box-shadow: 10px 10px 0 var(--gold);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  justify-content: flex-end;
  background: rgba(20, 18, 15, 0.5);
}

.cart-drawer.is-open {
  display: flex;
}

.cart-panel {
  width: min(500px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
}

.cart-head {
  align-items: start;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
}

.cart-items {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.cart-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.cart-item .cover-placeholder {
  width: 82px;
  border-width: 1px;
}

.cart-item p {
  margin: 0 0 12px;
  color: var(--muted);
}

.qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 32px 36px 32px;
  border: 2px solid var(--ink);
}

.qty-control button,
.qty-control span {
  display: grid;
  min-height: 32px;
  place-items: center;
  border: 0;
  background: var(--white);
  color: var(--ink);
}

.qty-control span {
  border-inline: 2px solid var(--ink);
}

.remove-btn {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 900;
  text-decoration: underline;
}

.coupon-row,
.checkout-form,
.totals,
.payment-box {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.coupon-row > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.coupon-row button {
  border: 2px solid var(--ink);
  background: var(--blue);
  color: var(--white);
  padding: 0 16px;
}

.checkout-form label,
.coupon-row label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.totals {
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.grand-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  font-size: 20px;
}

.payment-box {
  padding: 16px;
  border: 2px solid var(--gold);
  background: #fff7df;
}

.payment-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(20, 18, 15, 0.56);
}

.modal-backdrop.is-open {
  display: grid;
}

.product-modal {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 28px;
  border: 3px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 10px 10px 0 var(--ink);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
}

.modal-product {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
}

.modal-product img {
  border: 2px solid var(--ink);
  background: var(--white);
}

.modal-product > .cover-placeholder {
  min-height: 360px;
}

.modal-product h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.08;
}

.modal-product p {
  color: var(--muted);
  line-height: 1.75;
}

.modal-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.modal-facts div {
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.modal-facts strong,
.modal-facts span {
  display: block;
}

.modal-facts span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  min-width: 220px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  font-weight: 900;
  text-align: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr);
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 46px auto 0;
  padding: 28px 0 38px;
  border-top: 3px solid var(--ink);
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.footer-brand span,
.site-footer p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .site-nav,
  .search {
    grid-column: 1 / -1;
  }

  .hero,
  .shop-layout,
  .arrival-editorial,
  .bestseller-spotlight {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

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

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

  .release-note,
  .arrival-catalog .catalog-panel {
    border: 0;
    padding: 0;
  }
}

@media (max-width: 780px) {
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .announcement {
    flex-direction: column;
    gap: 4px;
  }

  .topbar {
    padding: 12px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero h1,
  .page-hero h1,
  .shop-command h1,
  .arrival-hero h1,
  .bestseller-board h1 {
    font-size: 40px;
  }

  .hero-copy,
  .shop-command,
  .arrival-hero,
  .page-hero {
    padding: 24px;
  }

  .hero-copy {
    min-height: 0;
  }

  .stats,
  .category-showcase,
  .trust-band,
  .shop-assist,
  .bestseller-metrics,
  .release-timeline,
  .shop-command,
  .arrival-hero,
  .bestseller-board,
  .newsletter-panel,
  .publisher-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .stats div,
  .trust-band div,
  .bestseller-metrics article,
  .release-timeline article,
  .shop-assist article {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .stats div:last-child,
  .trust-band div:last-child,
  .bestseller-metrics article:last-child,
  .release-timeline article:last-child,
  .shop-assist article:last-child {
    border-bottom: 0;
  }

  .shop-command-panel {
    border-left: 0;
    border-top: 3px solid var(--ink);
  }

  .footer-links {
    justify-content: flex-start;
  }

  .modal-product {
    grid-template-columns: 1fr;
  }

  .modal-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .cart-trigger,
  .search {
    width: 100%;
  }

  .hero h1,
  .page-hero h1,
  .shop-command h1,
  .arrival-hero h1,
  .bestseller-board h1 {
    font-size: 32px;
  }

  .product-grid,
  .mini-product-grid,
  .arrival-shelf,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .mini-product-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .ranked-item {
    grid-template-columns: 32px 54px minmax(0, 1fr);
  }

  .rank-add {
    grid-column: 1 / -1;
  }

  .coupon-row > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .book-detail-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
    box-shadow: 6px 6px 0 var(--blue);
  }

  .book-cover-panel {
    min-height: 300px;
    padding: 18px;
  }

  .book-cover-panel img,
  .book-cover-panel .cover-placeholder {
    max-height: 380px;
  }

  .book-info-panel h1 {
    font-size: 36px;
  }

  .book-facts {
    grid-template-columns: 1fr;
  }

  .book-facts div,
  .book-facts div:nth-child(2n),
  .book-facts div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .book-facts div:last-child {
    border-bottom: 0;
  }
}
