.book-covers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  padding: 0;
}
.book-covers a {
  display: grid;
  gap: .75rem;
  text-align: center;
}
.book-covers img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(38, 62, 50, .2);
  border-radius: .375rem;
}

.product-page { padding-block: 2rem 4rem; }
.product-layout { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(1rem, 5vw, 4rem); align-items: center; }
.product-layout img { width: 100%; height: auto; border-radius: .375rem; }
.stan-buy { display: inline-block; padding: .8em 1.3em; border-radius: .45rem; background: #263e32; color: #fff8e7; font-weight: 700; }
@media (max-width: 38rem) { .product-layout { grid-template-columns: 1fr; } .product-layout img { max-width: 17rem; } }

.shop-intro { padding-block: clamp(1.6rem, 5vw, 3.5rem) 1.3rem; }
.shop-intro h1 { margin: 0 0 .55rem; }
.shop-intro p { margin: .35rem 0; max-width: 42rem; }
.shop-contact a { text-decoration: underline; text-underline-offset: .2em; }
.shop-format { font-size: .95rem; font-weight: 600; }
.shop-products { padding-block-end: 4rem; }
.shop-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.shop-card, .shop-bundle { border: 1px solid #d9ded2; border-radius: .85rem; background: #fffdf7; }
.shop-card { display: flex; flex-direction: column; padding: clamp(.8rem, 2vw, 1.25rem); }
.shop-card-images { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: .55rem; }
.shop-card-images a { display: block; }
.shop-card-images img, .sample-pages img { display: block; width: 100%; height: auto; border: 1px solid #e1e1d8; border-radius: .3rem; }
.shop-card-copy { display: flex; flex: 1; flex-direction: column; }
.shop-card h2, .shop-bundle h2 { margin: .75rem 0 .25rem; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.shop-card p, .shop-bundle p { margin: 0 0 .65rem; }
.shop-card .shop-price { margin-top: auto; }
.shop-price { font-weight: 700; }
.shop-actions { display: flex; gap: .5rem 1rem; align-items: center; flex-wrap: wrap; }
.shop-actions a:not(.stan-buy) { text-decoration: underline; text-underline-offset: .2em; }
.shop-bundle { display: grid; grid-template-columns: minmax(4.5rem, 8rem) minmax(0, 1fr); align-items: center; gap: clamp(.8rem, 3vw, 2rem); margin-block-start: 1.5rem; padding: clamp(.8rem, 2vw, 1.25rem); }
.shop-bundle img { display: block; width: 100%; height: auto; border-radius: .3rem; }
.sr-shop { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.book-preview { margin-top: 3rem; scroll-margin-top: 5rem; }
.sample-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 26rem)); gap: clamp(.75rem, 3vw, 2rem); }
.sample-pages figure { margin: 0; }
.sample-pages figcaption { margin-top: .45rem; }
@media (max-width: 52rem) { .shop-cards { grid-template-columns: 1fr; } }

.sc-cart-toolbar { display: flex; justify-content: flex-end; padding-block-start: .8rem; }
.sc-cart-toolbar[hidden], .sc-cart [hidden] { display: none; }
.sc-cart-toggle, .sc-cart-head button, .sc-cart-quantity button {
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fffdf7;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.sc-cart-toggle { padding: .5rem .9rem; font-weight: 700; }
.sc-offers { display: grid; gap: .45rem; margin: auto 0 .75rem; padding-top: .35rem; }
.sc-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .6rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.sc-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-offer .stan-buy { padding: .55em .75em; }
button.stan-buy { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
button.stan-buy:disabled { opacity: .65; cursor: wait; }
.sc-cart {
  width: min(100%, 27rem);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: clamp(1rem, 4vw, 1.6rem);
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  overflow-y: auto;
}
.sc-cart::backdrop { background: rgb(16 32 25 / .5); }
body:has(.sc-cart[open]) { overflow: hidden; }
.sc-cart-head, .sc-cart-line, .sc-cart-total { display: flex; justify-content: space-between; gap: .8rem; }
.sc-cart-head { align-items: center; }
.sc-cart-head h2 { margin: 0; font-family: var(--serif); font-size: 2.25rem; }
.sc-cart-head button { width: 2.75rem; height: 2.75rem; font-size: 1.4rem; }
.sc-cart-items { padding: 0; margin: 1rem 0; list-style: none; }
.sc-cart-line { align-items: flex-start; padding: .85rem 0; border-top: 1px solid var(--line); }
.sc-cart-line:last-child { border-bottom: 1px solid var(--line); }
.sc-cart-item-format, .sc-cart-note { display: block; color: var(--muted); font-size: .9rem; }
.sc-cart-quantity { display: flex; align-items: center; gap: .6rem; margin-top: .45rem; }
.sc-cart-quantity button { min-width: 2.75rem; min-height: 2.75rem; padding-inline: .55rem; }
.sc-cart-total { margin: 0; }
.sc-cart-note { margin: .4rem 0 .9rem; }
.sc-checkout { width: 100%; }
.sc-cart-status:empty { display: none; }
