.parent-links:has(.bookshop-nav-link) {
  flex-wrap: wrap;
  gap: 0 clamp(10px, 2vw, 22px);
}

.parent-links a.bookshop-nav-link {
  color: #184e4e;
  font-weight: 850;
}

.bookshop .shell {
  width: min(100%, 1110px);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 34px);
}

.bookshop .bookshop-back { max-width: none; }

.bookshop-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block: 28px 38px;
  padding: clamp(24px, 6vw, 66px);
  border-radius: 28px;
  color: #fff9ed;
  background: #144d4b;
}

.bookshop-hero-copy { position: relative; z-index: 1; }
.bookshop-hero .bookshop-kicker {
  margin: 0 0 9px;
  color: #ffcf9e;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bookshop-hero h1,
.bookshop-series h2,
.bookshop-card h3,
.bookshop-together h2 {
  font-family: "Bookman Old Style", Georgia, serif;
  letter-spacing: -.035em;
  margin: 0;
}

.bookshop-hero h1 { font-size: clamp(2.25rem, 6.5vw, 4.5rem); line-height: 1.03; }
.bookshop-hero p:last-child { max-width: 55ch; margin: 16px 0 0; font-size: clamp(.94rem, 2vw, 1.1rem); }

.bookshop-hero-paw {
  position: absolute;
  right: 9%;
  top: -12%;
  width: clamp(85px, 16vw, 170px);
  height: auto;
  transform: rotate(20deg);
  opacity: .25;
}

.bookshop-series { margin-bottom: 18px; }
.bookshop-series h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.14; }
.bookshop-series p { margin: 6px 0 0; color: #52675c; }

.bookshop-delivery {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid #dce8dc;
  border-radius: 13px;
  background: #edf5ed;
  color: #30574a;
  font-size: .9rem;
}
.bookshop-delivery p { margin: 0; }
.bookshop-delivery p + p { margin-top: 5px; }

.bookshop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 25px);
}

.bookshop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fffdfa;
  border: 1px solid #e8ddca;
  border-radius: 21px;
  box-shadow: 0 4px 0 #eee5d8;
}

.bookshop-cover {
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(16px, 3vw, 28px);
  background: #e8f2ea;
}

.bookshop-card[data-book="math"] .bookshop-cover { background: #f8ead2; }
.bookshop-card[data-book="physics"] .bookshop-cover { background: #eceaf4; }

.bookshop-cover img {
  display: block;
  width: min(100%, 230px);
  height: auto;
  border-radius: 4px 9px 9px 4px;
  box-shadow: 0 8px 18px #123b3a35;
}

.bookshop-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(16px, 2.5vw, 24px);
}

.bookshop-tag {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #e9efe0;
  color: #345943;
  font-size: .76rem;
  font-weight: 750;
}

.bookshop-card h3 { font-size: clamp(1.32rem, 3vw, 1.65rem); line-height: 1.14; }
.bookshop-card h3 + p { margin: 11px 0 20px; color: #52675c; font-size: .93rem; }
.bookshop-purchase {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.bookshop-buy,
.bookshop-pending {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: .88rem;
  font-weight: 750;
}

.bookshop-buy { background: #24594e; color: #fff; text-decoration: none; }
.bookshop-buy:hover { background: #15443d; }
.bookshop-pending { background: #f1efe6; color: #555e53; }
.bookshop-checkout { margin-top: 16px; color: #52675c; font-size: .9rem; }

.bookshop-together {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-block: 32px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid #e8ddca;
  border-radius: 17px;
  background: #f9eddb;
}

.bookshop-together img { flex-shrink: 0; }
.bookshop-together h2 { font-size: 1.35rem; line-height: 1.2; }
.bookshop-together p { margin: 6px 0 0; color: #52675c; }

@media (max-width: 740px) {
  .bookshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 510px) {
  .bookshop-grid { grid-template-columns: 1fr; }
  .bookshop-hero { margin-block: 18px 25px; border-radius: 21px; }
  .bookshop-cover img { width: min(100%, 205px); }
  .bookshop-hero-paw { right: 2%; }
}
