/* shop.css: the shop and archive pages (the approved comp shop/assets/shop.css, header and footer left to base.css).
   Product geometry tokens first; then the shop head, buttons, the book object, the display, the stages, the cards, the reflow. */
:root {
  /* product geometry (heights; widths follow each cover's own ratio --r) */
  --tile-cover: 320px;
  --tile-art: 380px;
  --tile-sink: 60px;
  --tile-side: 36px;
  --display-max: 1600px;
  --display-pad: 0px;
  --t-tile: 1.25rem;
  --stage-h: 520px;
  --card-h: 260px;
  --cross: 56px;
}

/* ==========================================================================
   Shop head: H1 + lead on the reading side, the count and the age finder opposite
   ========================================================================== */
.shop-head { padding-block: var(--s-6) var(--s-6); }
.shop-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--s-5) var(--s-7);
}
.shop-title h1 {
  font: 600 var(--t-h1)/1.15 var(--font-body);
  color: var(--plum);
}
.shop-title h1::after {
  content: ""; display: block; width: 72px; height: 2px; margin-block-start: 14px;
  background: var(--focus);
}
.lead { margin-block-start: 14px; max-width: 52ch; font-size: var(--t-lead); line-height: 1.6; color: var(--text); }

.shop-bar { display: grid; justify-items: end; gap: 10px; }
.shop-count { font: 700 var(--t-body)/1.4 var(--font-display); color: var(--text); }
.age-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; justify-content: flex-end; }
.age-label { font: 600 16px/1.4 var(--font-body); color: var(--text); }
.age-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.age-chip {
  min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid #77715F; border-radius: var(--r-pill);
  background: var(--paper-light); color: var(--text);
  font: 600 16px/1 var(--font-body); font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.age-chip:hover { border-color: var(--focus); color: var(--focus); }
.age-chip[aria-pressed="true"] { background: var(--focus); border-color: var(--focus); color: #fff; }
.shop-empty { grid-column: 1 / -1; text-align: center; padding: var(--s-6) 0 0; }
.shop-empty-title { font: 700 26px/1.3 var(--font-heading); }
.shop-empty p { margin-block-end: 12px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-control); cursor: pointer;
  text-decoration: none; text-align: center;
}
/* ---- shared with shop-table.css: the buy action and the age numeral (concept-table-v2 §3.4, §3.8).
   The shop listing does not load this file and the book page does not load shop-table.css, so the two
   copies are kept IDENTICAL; edit both together. ---- */
.btn-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 3px;
  background: var(--add); color: var(--add-text); text-decoration: none; text-align: center; white-space: nowrap;
  font: 700 18px/1.15 var(--font-body); cursor: pointer;
  transition: background-color var(--dur-state) var(--ease-standard), transform var(--dur-feedback) var(--ease-standard);
}
.btn-buy:hover, .btn-buy:focus-visible { background: var(--add-hover); color: var(--add-text); }
.btn-buy:active { transform: translateY(1px); }
.btn-buy.is-added::before {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.age-n {
  display: block; font: 700 40px/1.1 var(--font-display); color: var(--ink);
  direction: ltr; unicode-bidi: isolate; text-align: end; font-variant-numeric: tabular-nums;
}
/* ---- end of the shared block ---- */
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 18px; }
.btn-quiet {
  min-height: 44px; padding: 0 20px;
  border: 1.5px solid var(--focus); background: transparent; color: var(--focus);
  font: 700 17px/1 var(--font-display);
}

/* ==========================================================================
   The book as an object: binding on the right (inline-start), page block on
   the left, one neutral cast shadow.
   ========================================================================== */
.book {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  vertical-align: bottom;
  isolation: isolate;
}
.book > img, .book > .sample-plate {
  height: auto;
  border-start-end-radius: 2px;
  border-end-end-radius: 2px;
  box-shadow: 0 2px 3px rgb(51 51 51 / .25), 0 14px 24px -14px rgb(51 51 51 / .35);
}
.book > img { display: block; }
.book::before {                 /* binding: a shaded strip on the reading-start edge */
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  inset-block: 0; inset-inline-start: 0; width: 12px;
  background: linear-gradient(to left, rgba(0, 0, 0, .2), rgba(0, 0, 0, .04) 70%, rgba(255, 255, 255, .18));
}
.book::after {                  /* the page block peeking past the fore-edge */
  content: ""; position: absolute; z-index: -1;
  inset-block: 3px 2px; inset-inline-end: -5px; width: 8px;
  background: repeating-linear-gradient(90deg, #FBFAF6 0 1px, #DAD5C8 1px 2px);
  border-radius: 1px;
}

/* ==========================================================================
   The display (signature): every product as one tall tile, side by side.
   Each tile is a slice of the book's own illustration, toned into its stage
   colour; the cover stands in front of it at its true proportions, on a
   paper strip that carries title, age, price and the cue to its section.
   Tile width follows the cover's width (--r), so no two tiles are alike.
   ========================================================================== */
.display { padding-block: 0 calc(var(--s-7) + var(--cross)); }
.tiles {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  width: min(var(--display-max), 100%);
  margin-inline: auto;
  padding-inline: var(--display-pad);
}
.tile {
  flex: 1 1 calc(var(--r) * var(--tile-cover) + 2 * var(--tile-side));
  min-width: 0;
  max-width: 440px;              /* a filtered display (one or two books) never balloons */
  display: flex;
}
.tiles-break { display: none; }
@media (min-width: 1200px) {    /* a larger catalogue: smaller covers, balanced rows, widths still set by each cover */
  .tiles-many { --tile-cover: 260px; --tile-art: 320px; --tile-side: 30px; }
  .tiles-many .tile { flex: var(--r) 1 0; }
  .tiles-many .tiles-break { display: block; flex: 0 0 100%; height: 0; }
}
.tile-link {
  position: relative;
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  background: var(--tint);
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-panel);
  overflow: hidden;
}
.tile-link:focus-visible { outline-offset: -3px; outline-width: 4px; }

/* the art: a vertical slice of the book's own picture, toned to the stage ground */
.tile-art {
  position: relative;
  display: block;
  height: var(--tile-art);
  overflow: hidden;
  background: var(--tint);
}
.tile-art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  filter: saturate(var(--sat, 1));
  transform: scale(var(--zoom, 1));
  transform-origin: var(--pos, 50% 50%);
}
.tile-art::before {             /* the tone: the stage colour laid over the art, lifted on hover */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--tint);
  opacity: var(--wash, .34);
  transition: opacity var(--dur-state, 240ms) var(--ease-standard, ease);
}
.tile-art::after {              /* the floor: the art settles into the stage colour where the cover stands */
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 46%; z-index: 1;
  background: linear-gradient(to top, var(--tint) 8%, transparent);
}
.tile-art-plain::before, .tile-art-plain::after { display: none; }
.tile-link:hover .tile-art::before, .tile-link:focus-visible .tile-art::before { opacity: 0; }

/* the cover, standing on the strip, in front of the art */
.tile-cover {
  position: relative; z-index: 2;
  display: flex; justify-content: center;
  margin-block-start: calc(-1 * var(--tile-cover) + var(--tile-sink));
  padding-inline: var(--tile-side);
  line-height: 0;
}
.tile-cover::after {            /* contact shadow on the strip, as wide as the cover */
  content: ""; position: absolute; z-index: -1; inset-block-end: -10px;
  inset-inline-start: 50%; transform: translateX(50%);
  width: calc(var(--r) * var(--tile-cover)); max-width: 100%; height: 20px;
  background: radial-gradient(closest-side, rgba(40, 30, 18, .30), transparent);
}
.tile-img { width: calc(var(--r) * var(--tile-cover)); max-width: 100%; }
.tile-cover .sample-plate { width: calc(.69 * var(--tile-cover)); padding: 18px 14px 14px; }

/* the paper strip: one shelf edge in the book's colour, then the shop facts */
.tile-strip {
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-block-start: calc(-1 * var(--tile-sink));
  padding: calc(var(--tile-sink) + 18px) 14px 20px;
  background: var(--paper-light);
  border-block-start: 4px solid var(--accent);
  text-align: center;
}
.tile-title {
  flex: 1 1 auto; display: flex; align-items: center;   /* spare height sits around the title, so age, price and the cue align across tiles */
  font: 700 var(--t-tile)/1.3 var(--font-heading);
  color: var(--olive);
  text-wrap: balance;
}
.tile-new {                     /* a small ribbon on the cover's upper corner (the left, away from the binding) */
  position: absolute; z-index: 2; inset-block-start: 8px; inset-inline-end: -6px;
  padding: 5px 12px 5px 10px;
  background: var(--plum); color: #fff;
  font: 600 14px/1.2 var(--font-body);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 2px 3px rgb(51 51 51 / .25);
}
.tile-new::after {              /* the fold behind the cover edge */
  content: ""; position: absolute; inset-block-start: 100%; inset-inline-end: 0;
  border-block-start: 5px solid rgb(0 0 0 / .45); border-inline-start: 6px solid transparent;
}
.tile-meta {
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 14px;
}
.tile-age { font-size: var(--t-small); color: var(--text-muted); }
.tile-price { font: 700 22px/1.3 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.tile-more {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  font: 700 17px/1.2 var(--font-display);
  color: var(--link);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.tile-more-icon { flex: none; transition: transform var(--dur-state, 240ms) var(--ease-standard, ease); }
.tile-link:hover .tile-more, .tile-link:focus-visible .tile-more { text-decoration-thickness: 2px; }
.tile-link:hover .tile-more-icon, .tile-link:focus-visible .tile-more-icon { transform: translateY(3px); }

/* arrival: the section a tile leads to marks itself with its own colour */
.stage:target, .card:target { scroll-margin-block-start: 0; }
.stage:target::before, .card:target::before {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 6px; z-index: 4;
  background: var(--accent);
  transform-origin: right;
  animation: arrive var(--dur-arrive, 700ms) var(--ease-arrive, cubic-bezier(.2, .7, .2, 1)) both;
}
.card { position: relative; }
.stage:target .book-title, .card:target .card-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 10px; }
.book-title:focus, .card-title:focus, .shop-empty-title:focus { outline: none; }
@keyframes arrive { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  :root { --dur-state: 0ms; --dur-arrive: 0ms; }
  .tile-link:hover .tile-more-icon { transform: none; }
}

/* ==========================================================================
   The stage: one per featured book, on the book's own tint
   ========================================================================== */
.stage {
  position: relative;
  background: var(--tint);
  padding-block: var(--s-9) var(--s-9);
}
.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--s-8);
  align-items: start;
}
.stage-cover {
  position: sticky; inset-block-start: 24px; z-index: 3;
  display: flex; justify-content: center;
  margin-block-start: calc(-1 * (var(--s-9) + var(--cross)));
  padding-block-end: 24px;
}
.stage-cover::after {           /* contact shadow on the stage floor */
  content: ""; position: absolute; z-index: -1; inset-block-end: 6px;
  inset-inline: 18%; height: 26px;
  background: radial-gradient(closest-side, rgba(40, 30, 18, .28), transparent);
}
.stage-img { width: calc(var(--r) * var(--stage-h)); }

.stage-info { display: flex; flex-direction: column; gap: var(--s-4); padding-block-start: 4px; }
.title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.book-title {
  font: 700 var(--t-h2)/var(--lh-head) var(--font-heading);
  color: var(--olive);
  text-wrap: balance;
}
.chip-new {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  border: 1.5px solid var(--plum); border-radius: var(--r-pill);
  color: var(--plum); font: 600 14px/1 var(--font-body);
}
.credits { font-size: var(--t-small); color: var(--text-muted); }
.age-line { align-self: flex-start; }
.age-line strong {
  display: inline-block; padding: 6px 16px;
  border: 1.5px solid var(--accent); border-radius: var(--r-pill);
  background: var(--paper-light);
  font: 600 16px/1.4 var(--font-body); color: var(--text);
}

/* the buy panel: the one raised object on each stage */
.buy {
  margin-block-start: 8px;
  padding: 18px 24px 20px;
  background: var(--paper-light);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-raise);
  max-width: 560px;
}
.buy-title { font: 700 17px/1.3 var(--font-heading); color: var(--text-muted); margin-block-end: 8px; }
.buy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.price {
  font: 700 var(--t-price)/1 var(--font-display);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-inline-end: auto;
}
.buy-row .btn-buy { min-width: 190px; }
.in-cart { margin-block-start: 10px; font-size: var(--t-small); font-weight: 600; color: var(--focus); }

.qty { display: inline-flex; align-items: stretch; border: 1.5px solid #77715F; border-radius: var(--r-control); background: #fff; }
.qty-btn {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  font: 700 22px/1 var(--font-body); color: var(--focus);
}
.qty-btn:hover { background: var(--pale-blue); }
.qty-input {
  width: 48px; height: 44px; border: 0; border-inline: 1px solid var(--rule);
  text-align: center; font-weight: 700; font-variant-numeric: tabular-nums;
  background: transparent; -moz-appearance: textfield; appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.page-link {                    /* the book's own page: more detail and the reviews */
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 700 19px/1.2 var(--font-display); color: var(--link);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.page-link:hover, .page-link:focus-visible { text-decoration-thickness: 2px; }
.page-link-icon { flex: none; transition: transform var(--dur-state, 240ms) var(--ease-standard, ease); }
.page-link:hover .page-link-icon { transform: translateX(-3px); }
/* the book page's «דפי צביעה» link is product.css .pp-colouring (Change 9) */

.desc { max-width: 62ch; margin-block-start: 8px; font-size: var(--t-read); line-height: var(--lh-read); }
.desc p + p { margin-block-start: 0.8em; }

/* lower band: the excerpt with the interior art (the reviews live on the book page) */
.stage-lower { margin-block-start: var(--s-8); }
.excerpt {
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    repeat(12, minmax(0, calc(var(--wrap) / 12)))
    minmax(var(--gutter), 1fr);
  align-items: center;
}
.excerpt-art { grid-column: 7 / -1; grid-row: 1; position: relative; }
.excerpt-art img { display: block; width: 100%; }
.excerpt-art figcaption {
  margin-block-start: 8px; padding-inline-start: 4px;
  font-size: var(--t-small); color: var(--text-muted);
}
.excerpt-panel {
  grid-column: 2 / 7; grid-row: 1;
  position: relative; z-index: 1;
  margin-inline-end: -48px;
  padding: 40px 44px;
  background: var(--paper-light);
  border-radius: var(--r-panel);
  box-shadow: 0 18px 40px -22px rgba(40, 32, 20, .45);
}
.excerpt-solo .excerpt-panel { grid-column: 4 / 12; margin-inline-end: 0; }
.excerpt-cap { font: 600 var(--t-small)/1.4 var(--font-body); color: var(--text-muted); margin-block-end: 14px; }
.excerpt-text { font: 400 var(--t-excerpt)/1.9 var(--font-display); color: var(--text); }

/* ==========================================================================
   The card tier: from 7 products, every product after the featured four
   ========================================================================== */
.all-products { background: var(--paper); padding-block: var(--s-9); }
.all-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; }
.all-title { font: 700 var(--t-h2)/1.2 var(--font-heading); color: var(--text); }
.sort { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.sort select {
  min-height: 44px; padding-inline: 12px 36px;
  border: 1.5px solid #77715F; border-radius: var(--r-control); background-color: var(--paper-light);
}
.sample-note { margin-block-start: 8px; color: var(--text-muted); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 16px; }
.cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6); margin-block-start: var(--s-6);
}
.card {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  background: var(--paper-light);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
.card-plate {
  display: flex; align-items: center; justify-content: center;
  padding: 36px 22px 40px;
  background: var(--tint);
}
.card-img { width: calc(var(--r) * var(--card-h)); max-width: 100%; }
.sample-plate {
  display: flex; flex-direction: column; justify-content: space-between;
  width: calc(.69 * var(--card-h)); max-width: 100%; aspect-ratio: .69;
  padding: 22px 16px 18px;
  background: var(--accent); color: #fff;
  line-height: 1.25;
}
.sample-plate-title { font: 700 22px/1.25 var(--font-heading); }
.sample-plate-label { font: 600 14px/1.3 var(--font-body); border-block-start: 1px solid rgba(255, 255, 255, .6); padding-block-start: 8px; }
.card-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 28px 30px; min-width: 0; }
.card-title { font: 700 var(--t-h3)/1.3 var(--font-heading); color: var(--olive); }
.chip-sample {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px;
  border: 1.5px solid var(--text-muted); border-radius: var(--r-pill);
  font: 600 14px/1 var(--font-body); color: var(--text-muted);
}
.card .age-line strong { padding: 4px 12px; font-size: 15px; }
.card-desc { color: var(--text); }
.card .buy-row { width: 100%; margin-block-start: 4px; }
.card .price { font-size: 26px; }
.price-note { font: 600 14px/1 var(--font-body); color: var(--text-muted); }
.card .btn-buy { min-width: 0; font-size: 18px; min-height: 48px; padding-inline: 20px; }
.card-more { width: 100%; border-block-start: 1px solid var(--rule); padding-block-start: 8px; }
.card-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--link); }

/* ==========================================================================
   The slim «כותבים עלינו» strip
   ========================================================================== */
.writers { background: var(--paper-light); padding-block: var(--s-6); border-block-start: 1px solid var(--rule); }
.writers-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; }
.writers-title { font: 700 26px/1.3 var(--font-heading); color: var(--text); }
.writers-link { font-weight: 700; font-size: var(--t-lead); }

/* ==========================================================================
   Reflow: 900-1199, 600-899, under 600
   ========================================================================== */
@media (max-width: 1199px) {
  :root { --tile-cover: 290px; --tile-art: 340px; --tile-side: 28px; --stage-h: 440px; --card-h: 230px; }
  .stage-grid { column-gap: var(--s-7); }
  .excerpt { grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); }
  .excerpt-art { grid-column: 1 / -1; grid-row: 1; }
  .excerpt-art figcaption { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
  .excerpt-panel, .excerpt-solo .excerpt-panel { grid-column: 2; grid-row: 2; margin-inline-end: 0; margin-block-start: -40px; width: min(720px, 100%); }
  .excerpt-solo .excerpt-panel { grid-row: 1; margin-block-start: 0; justify-self: center; }
}
@media (max-width: 899px) {
  :root { --tile-cover: 250px; --tile-art: 290px; --tile-sink: 50px; --tile-side: 22px; --t-tile: 1.125rem; --stage-h: 400px; --card-h: 220px; --cross: 40px; }
  .shop-head-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-bar { justify-items: stretch; }
  .age-filter { justify-content: flex-start; }
  .stage-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); }
  .stage-cover { position: relative; inset-block-start: auto; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards > .card:last-child:nth-child(odd) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
@media (max-width: 599px) {
  :root { --gutter: 16px; --tile-cover: 186px; --tile-art: 220px; --tile-sink: 34px; --tile-side: 12px; --display-pad: 0px; --t-tile: 1.0625rem; --stage-h: 340px; --card-h: 240px; --cross: 32px; }
  .shop-head { padding-block: var(--s-6) var(--s-5); }
  .lead { font-size: var(--t-body); }
  /* the count shares the label's line: the filter is two rows, label + count, then the chips */
  .shop-bar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; }
  .age-filter { display: contents; }
  .age-label { grid-row: 1; grid-column: 1; }
  .shop-count { grid-row: 1; grid-column: 2; }
  .age-chips { grid-row: 2; grid-column: 1 / -1; flex: 1 1 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 3px; width: 100%; }
  .age-chips > .age-chip:first-child { grid-column: 1 / -1; justify-self: start; padding: 0 18px; }
  .age-chip { min-width: 0; min-height: 44px; padding: 0; font-size: 15px; }
  .tiles { gap: 4px; }
  .tile { flex: 0 1 calc(50% - 2px); max-width: calc(50% - 2px); }   /* a lone tile in the last row stays one column wide */
  .tile-strip { padding: calc(var(--tile-sink) + 14px) 8px 14px; gap: 4px; }
  .tile-price { font-size: 20px; }
  .tile-meta { gap: 0 10px; }
  .display { padding-block-end: calc(var(--s-6) + var(--cross)); }
  .stage { padding-block: var(--s-8) var(--s-8); }
  .stage-cover { margin-block-start: calc(-1 * (var(--s-8) + var(--cross))); }
  .stage-img { max-width: 78vw; }
  .buy { padding: 16px 16px 18px; }
  .buy-row { gap: 12px; }
  .price { font-size: 28px; }
  .buy-row .btn-buy { flex: 1 1 100%; min-height: 52px; }
  .desc { font-size: 1.0625rem; }
  .excerpt-panel, .excerpt-solo .excerpt-panel { padding: 28px 22px; margin-block-start: -32px; }
  .excerpt-solo .excerpt-panel { margin-block-start: 0; }
  .excerpt-text { font-size: 1.25rem; }
  .card, .cards > .card:last-child:nth-child(odd) { grid-template-columns: minmax(0, 1fr); }
  .card-info { padding: 22px 18px 24px; }
  .card .btn-buy { flex: 1 1 100%; }
  .writers-title { font-size: 22px; }
}

/* ---------- pagination of the card band (WooCommerce's own markup, in the site's chips) ---------- */
.shop .woocommerce-pagination { margin-block-start: var(--s-6); }
.shop .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; list-style: none; }
.shop .woocommerce-pagination ul.page-numbers li { float: none; margin: 0; padding: 0; border: 0; overflow: visible; }
.shop .woocommerce-pagination ul.page-numbers li .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 14px; margin: 0;
  border: 1.5px solid #77715F; border-radius: var(--r-pill);
  background: var(--paper-light); color: var(--text);
  font: 600 16px/1 var(--font-body); font-variant-numeric: tabular-nums; text-decoration: none;
}
.shop .woocommerce-pagination ul.page-numbers li a.page-numbers:hover { border-color: var(--focus); color: var(--focus); background: var(--paper-light); }
.shop .woocommerce-pagination ul.page-numbers li .page-numbers.current { background: var(--focus); border-color: var(--focus); color: #fff; }
.shop-none { padding-block: var(--s-6) var(--s-8); text-align: center; }
