/* shop.gonglogic.com (ShopPageController), on the family tokens (static/family/tokens.css): paper, ink,
   surfaces and the shop's ledger-green --accent, so light and dark turn over with them.

   The shop UX pass (2026-11-16): what buying here is like said once at the top (.shop-assure), a filter
   by edition (.shop-filter), pictures on the sets, a breadcrumb, a product's other editions and sets,
   the other stores that sell it, and a shelf of things sold on other stores (.shop-away), each a card
   with ONE button to that store. Selectors that must beat the theme's bare-element rules (main.css: a,
   a:hover, h1-h4, ul) are written with two classes, as family.css is. */

.shop-wrap { max-width: 72rem; margin: 0 auto; padding-inline: var(--gutter, 1rem); }
.shop-narrow { max-width: 42rem; }
.shop-main { padding-block: var(--s-8, 2rem) var(--s-16, 4rem); }

/* The theme draws every form as a panel; the shop's are a button and a field or two. */
.shop-main form { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }

/* ── BUTTONS: the family's pill, in the shop's accent. --big is the one thing to do on a page. */
.shop-btn.shop-btn, .shop-main form .shop-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; margin-top: .5rem; padding: 0 var(--s-6, 1.5rem);
  border: 1px solid var(--accent); border-radius: var(--radius-pill, 999px);
  background: var(--accent); color: var(--on-accent);
  font: 600 var(--fs-2, 1rem)/1.2 var(--font-ui); text-decoration: none; cursor: pointer;
}
.shop-btn.shop-btn:hover, .shop-btn.shop-btn:focus-visible, .shop-main form .shop-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.shop-btn.shop-btn--big, .shop-main form .shop-btn--big { min-height: 52px; padding: 0 var(--s-8, 2rem); font-size: var(--fs-3, 1.125rem); }
.shop-btn.shop-btn--wide, .shop-main form .shop-btn--wide { width: 100%; }
@media (min-width: 40rem) { .shop-btn.shop-btn--wide, .shop-main form .shop-btn--wide { width: auto; min-width: 16rem; } }
/* A button that leaves for another store: the same weight, an arrow that says so. */
.shop-btn.shop-btn--out::after { content: '\2197'; font-weight: 400; }
.shop-main :focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* FormGuard's trap and the button's "opens in a new tab": a person never sees them. */
.shop-main .visually-hidden, .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.shop-section h2 { font-size: 1.35rem; }
.shop-test { margin: 0; padding: .5rem 1rem; text-align: center; font-weight: 600; background: #fde68a; color: #1d1b17; }

/* ── THE HOME PAGE'S HEAD: what it sells, how buying works, then what to show. */
.shop-head { padding-block: var(--s-8, 2rem) 0; }
.shop-head .shop-head__title { margin: 0; font-family: var(--font-text); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; color: var(--ink); }
.shop-head .shop-head__lede { max-width: 40rem; margin: .5rem 0 0; font-size: var(--fs-3, 1.125rem); line-height: 1.5; color: var(--ink-2); }

/* How buying works, as ticks: said once here and beside every button, so nobody has to look for it. */
.shop-assure.shop-assure { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin: var(--s-4, 1rem) 0 0; padding: 0; list-style: none; font: 500 var(--fs-1, .875rem)/1.4 var(--font-ui); color: var(--ink-2); }
.shop-assure.shop-assure li { display: inline-flex; align-items: baseline; gap: .4rem; margin: 0; }
.shop-assure.shop-assure li::before { content: '\2713'; font-weight: 700; color: var(--accent-ink); }
.shop-assure.shop-assure a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.shop-assure.shop-assure a:hover { color: var(--ink); text-decoration-color: currentColor; }
.shop-assure.shop-assure--product, .shop-assure.shop-assure--cart { flex-direction: column; gap: .3rem; margin-top: var(--s-3, .75rem); }

/* The categories (2026-11-17): one row of chips under every listing page's head, the page's own filled.
   Real addresses, so no script. */
.shop-cats.shop-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--s-5, 1.25rem) 0 0; }
.shop-chip.shop-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4, 1rem); border: 1px solid var(--line-2); border-radius: var(--radius-pill, 999px); background: var(--surface); color: var(--ink); font: 500 var(--fs-1, .875rem)/1.2 var(--font-ui); text-decoration: none; white-space: nowrap; }
.shop-chip.shop-chip:hover { border-color: var(--muted); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.shop-chip.shop-chip[aria-current] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

/* The sheet music's filter by edition (?for=): quieter than the categories, text links in a row. */
.shop-filter.shop-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .25rem; margin: var(--s-3, .75rem) 0 0; font: var(--fs-1, .875rem)/1.4 var(--font-ui); }
.shop-filter .shop-filter__label { margin-right: .35rem; color: var(--muted); }
.shop-filter.shop-filter a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .6rem; border-radius: var(--radius-s, 8px); color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.shop-filter.shop-filter a:hover { color: var(--ink); background: var(--surface-2); text-decoration-color: currentColor; }
.shop-filter.shop-filter a[aria-current] { color: var(--ink); background: var(--accent-wash); font-weight: 600; text-decoration: none; }

/* A breadcrumb above a category page's name. */
.shop-head .shop-crumbs { margin-bottom: var(--s-2, .5rem); }
.shop-head .shop-crumbs span[aria-current] { color: var(--muted); }

/* "All 27, from US$4.99 →": the way on from a short list to the page that has it all. */
.shop-more.shop-more { display: inline-flex; align-items: center; min-height: 40px; color: var(--accent-ink); font: 600 var(--fs-1, .875rem)/1.3 var(--font-ui); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.shop-more.shop-more:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ── THE FRONT PAGE (2026-11-17): what is in season, then a short row per category. */
.shop-feature.shop-feature { margin: 0 0 var(--s-10, 2.5rem); padding: var(--s-6, 1.5rem); border: 1px solid var(--line); border-radius: var(--radius-m, 12px); background: var(--paper-2); }
.shop-feature .shop-feature__eyebrow { margin: 0; font: 600 var(--fs-1, .875rem)/1.3 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); }
.shop-feature .shop-feature__title { margin: .25rem 0 .4rem; font-family: var(--font-text); font-size: var(--fs-5, 1.75rem); line-height: 1.2; }
.shop-feature .shop-feature__title a { color: var(--ink); text-decoration: none; }
.shop-feature .shop-feature__title a:hover { text-decoration: underline; }
.shop-feature .shop-feature__lede { max-width: 44rem; margin: 0 0 var(--s-4, 1rem); color: var(--ink-2); }
.shop-feature .shop-feature__act { margin: var(--s-4, 1rem) 0 0; }
.shop-feature .shop-feature__act .shop-btn { margin-top: 0; }

.shop-row.shop-row { margin-bottom: var(--s-8, 2rem); padding-top: var(--s-5, 1.25rem); border-top: 1px solid var(--line); }
.shop-row .shop-row__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.shop-row .shop-row__name { margin: 0; font-family: var(--font-text); font-size: var(--fs-4, 1.375rem); line-height: 1.2; }
.shop-row .shop-row__name a { color: var(--ink); text-decoration: none; }
.shop-row .shop-row__name a:hover { text-decoration: underline; }
.shop-row .shop-row__lede { margin: .3rem 0 var(--s-4, 1rem); color: var(--ink-2); }
/* A row is at most four tiles; on a phone two to a line, so a row is two short lines, never a long list. */
.shop-tiles.shop-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.shop-tiles.shop-tiles > li { margin: 0; }
.shop-tile.shop-tile { display: flex; flex-direction: column; gap: .3rem; height: 100%; color: var(--ink); text-decoration: none; }
.shop-tile .shop-tile__art { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-s, 8px); background: var(--surface-2); }
.shop-tile .shop-tile__art--page { aspect-ratio: 8.5 / 5.5; background: #fff; }
.shop-tile .shop-tile__art--wide { aspect-ratio: 16 / 9; }
.shop-tile .shop-tile__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shop-tile .shop-tile__name { font-weight: 600; line-height: 1.3; }
.shop-tile .shop-tile__sub { font-size: var(--fs-1, .875rem); color: var(--ink-2); }
.shop-tile.shop-tile:hover { color: var(--ink); text-decoration: none; }
.shop-tile.shop-tile:hover .shop-tile__name { text-decoration: underline; }
.shop-tile.shop-tile:hover .shop-tile__art { border-color: var(--accent); }
@media (max-width: 44rem) {
  .shop-tiles.shop-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .shop-feature.shop-feature { padding: var(--s-4, 1rem); }
}

/* /sheet-music: each occasion's tunes by name, a list that wraps, each leading to its row on the occasion's page. */
.shop-names.shop-names { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.shop-names.shop-names li { margin: 0; }
.shop-names.shop-names a { display: inline-block; padding-block: 6px; color: var(--accent-ink); }
.shop-names.shop-names a:hover { color: var(--ink); }
.shop-summary .shop-summary__more { margin: var(--s-3, .75rem) 0 0; }
.shop-shelf .shop-shelf__name a { color: var(--ink); text-decoration: none; }
.shop-shelf .shop-shelf__name a:hover { text-decoration: underline; }
.shop-tune { scroll-margin-top: 1rem; }

/* A sale that is really on, on another store (ShopSales.ss): a band with one button. */
.shop-sale.shop-sale { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.25rem; margin: 0 0 var(--s-8, 2rem); padding: var(--s-4, 1rem) var(--s-5, 1.25rem); border: 1px solid var(--accent); border-radius: var(--radius-m, 12px); background: var(--accent-wash); }
.shop-sale .shop-sale__text { flex: 1 1 20rem; margin: 0; color: var(--ink); }
.shop-sale .shop-sale__ends { color: var(--ink-2); }
.shop-sale .shop-btn { margin-top: 0; }
.shop-away__note.shop-away__note { max-width: 44rem; margin: 0 0 var(--s-6, 1.5rem); color: var(--ink-2); }

/* ── SHELVES */
.shop-shelf { margin-bottom: var(--s-10, 2.5rem); scroll-margin-top: 1rem; }
.shop-shelf .shop-shelf__name { margin: 0 0 var(--s-2, .5rem); padding-top: var(--s-6, 1.5rem); border-top: 1px solid var(--line); font-family: var(--font-text); font-size: var(--fs-5, 1.75rem); line-height: 1.2; color: var(--ink); }
.shop-shelf .shop-shelf__sub { margin: var(--s-5, 1.25rem) 0 var(--s-3, .75rem); font: 600 var(--fs-1, .875rem)/1.3 var(--font-ui); letter-spacing: .02em; color: var(--muted); }
.shop-shelf .shop-shelf__lede { margin: 0 0 var(--s-4, 1rem); color: var(--ink-2); }

/* Sets: a picture of page 1, the name, the price, as cards in a grid. */
.shop-sets.shop-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.shop-sets.shop-sets > li { margin: 0; }
.shop-set.shop-set { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); grid-template-rows: 1fr auto; gap: .25rem .9rem; height: 100%; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-m, 12px); background: var(--surface); color: var(--ink); text-decoration: none; }
.shop-set.shop-set:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); color: var(--ink); text-decoration: none; }
.shop-set .shop-set__art { grid-row: 1 / span 2; display: block; aspect-ratio: 8.5 / 11; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.shop-set .shop-set__art img { display: block; width: 100%; height: auto; }
.shop-set .shop-set__name { font-weight: 600; line-height: 1.35; }
.shop-set .shop-set__price { font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.shop-set.shop-set:hover .shop-set__name { text-decoration: underline; }

/* Single pieces: a row per tune, its editions side by side. */
.shop-tunes.shop-tunes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 25rem), 1fr)); gap: 1.25rem 2rem; margin: 0; padding: 0; list-style: none; }
.shop-tune.shop-tune { margin: 0; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.shop-tune .shop-tune__name { margin: 0 0 .5rem; font-family: var(--font-text); font-size: var(--fs-3, 1.125rem); line-height: 1.3; color: var(--ink); }
.shop-eds.shop-eds { display: grid; grid-template-columns: repeat(3, minmax(0, 7.5rem)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.shop-eds.shop-eds > li { margin: 0; }
.shop-edition__link.shop-edition__link { display: flex; flex-direction: column; gap: .2rem; color: var(--ink); text-decoration: none; font-size: var(--fs-1, .875rem); line-height: 1.3; }
.shop-edition__link .shop-edition__art { display: block; aspect-ratio: 8.5 / 5.5; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-s, 8px); background: #fff; }
.shop-edition__link .shop-edition__art img { display: block; width: 100%; height: auto; }
.shop-edition__link .shop-edition__name { font-weight: 600; }
.shop-edition__link.shop-edition__link:hover { color: var(--ink); text-decoration: none; }
.shop-edition__link.shop-edition__link:hover .shop-edition__name { text-decoration: underline; }
.shop-edition__link.shop-edition__link:hover .shop-edition__art { border-color: var(--accent); }
.shop-card__price { color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* On a phone a tune's editions are a list, each a small picture beside its name and price. */
@media (max-width: 44rem) {
  .shop-tunes.shop-tunes { gap: .75rem; }
  .shop-tune.shop-tune { padding-bottom: .75rem; }
  .shop-tune .shop-tune__name { margin-bottom: .35rem; font-size: var(--fs-2, 1rem); }
  .shop-eds.shop-eds { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .shop-edition__link.shop-edition__link { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: .1rem .75rem; min-height: 44px; }
  .shop-edition__link .shop-edition__art { aspect-ratio: 8.5 / 4; }
  .shop-edition__link .shop-card__price { white-space: nowrap; }
  .shop-set.shop-set { grid-template-columns: 3.5rem minmax(0, 1fr); }
}

/* Any other line the checkout sells: a grid of cards. */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.shop-card__link { display: flex; flex-direction: column; gap: .3rem; height: 100%; color: inherit; text-decoration: none; }
.shop-card__art { display: block; aspect-ratio: 8.5 / 11; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-s, 8px); background: #fff; }
.shop-card__art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top; }
.shop-card__art--wide { aspect-ratio: 16 / 9; background: none; }
.shop-card__link:hover .shop-card__name { text-decoration: underline; }
.shop-card__name { font-weight: 600; line-height: 1.3; }

/* ── SOLD ON OTHER STORES: the hub's second half. A band of its own, so it never reads as this cart's. */
.shop-away.shop-away { margin-top: var(--s-12, 3rem); padding: var(--s-6, 1.5rem) var(--s-5, 1.25rem) var(--s-2, .5rem); border: 1px solid var(--line); border-radius: var(--radius-m, 12px); background: var(--paper-2); }
.shop-away .shop-away__title { margin: 0; font-family: var(--font-text); font-size: var(--fs-5, 1.75rem); line-height: 1.2; color: var(--ink); }
.shop-away .shop-away__lede { max-width: 44rem; margin: .4rem 0 var(--s-2, .5rem); color: var(--ink-2); }
.shop-away .shop-shelf { margin-bottom: var(--s-6, 1.5rem); }
.shop-away .shop-shelf .shop-shelf__name { font-size: var(--fs-4, 1.375rem); padding-top: var(--s-4, 1rem); }
.shop-away__grid.shop-away__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.shop-away__card.shop-away__card { display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-m, 12px); background: var(--surface); }
.shop-away__card .shop-away__art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.shop-away__card .shop-away__art img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.shop-away__card .shop-away__body { display: flex; flex: 1; flex-direction: column; gap: .4rem; padding: var(--s-4, 1rem); }
.shop-away__card .shop-away__name { margin: 0; font-family: var(--font-text); font-size: var(--fs-3, 1.125rem); line-height: 1.3; color: var(--ink); }
.shop-away__card .shop-away__words { margin: 0; font-size: var(--fs-1, .875rem); line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shop-away__card .shop-away__where { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; margin: auto 0 0; padding-top: .35rem; font-size: var(--fs-1, .875rem); }
.shop-away__card .shop-away__tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 .55rem; border-radius: var(--radius-pill, 999px); background: var(--surface-2); color: var(--ink-2); font-weight: 500; }
.shop-away__card .shop-away__price { font-weight: 600; color: var(--ink); }
.shop-away__card .shop-away__act { margin: 0; }
.shop-away__card .shop-away__act .shop-btn { width: 100%; margin-top: .25rem; }
.shop-away__card .shop-away__more { margin: 0; font-size: var(--fs-1, .875rem); color: var(--muted); }
.shop-away__card .shop-away__more a { display: inline-block; padding-block: 4px; color: var(--accent-ink); }
.shop-away__card .shop-away__more a:hover { color: var(--ink); }
@media (max-width: 40rem) { .shop-away.shop-away { padding-inline: var(--s-3, .75rem); } }

/* ── ONE PRODUCT */
.shop-crumbs.shop-crumbs { grid-area: crumbs; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .4rem; margin: 0 0 var(--s-4, 1rem); font: var(--fs-1, .875rem)/1.4 var(--font-ui); color: var(--muted); }
.shop-crumbs.shop-crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--accent-ink); }
.shop-crumbs.shop-crumbs a:hover { color: var(--ink); }

.shop-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "crumbs crumbs" "art buy" "art text"; gap: 0 2.5rem; align-items: start; }
.shop-product__buy { grid-area: buy; }
.shop-product__art { grid-area: art; position: sticky; top: 1rem; }
.shop-product__text { grid-area: text; }
.shop-product__art img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-s, 8px); background: #fff; box-shadow: var(--shadow-1); }
.shop-product .shop-product__name { margin: 0; font-family: var(--font-text); font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.15; color: var(--ink); }
.shop-product .shop-product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin: .6rem 0 1rem; font: 600 var(--fs-5, 1.75rem)/1.2 var(--font-ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.shop-product .shop-product__currency { font-size: var(--fs-1, .875rem); font-weight: 400; color: var(--muted); }
.shop-product__words { margin-top: 1.5rem; white-space: pre-line; }
.shop-product .shop-product__heading { margin: 1.5rem 0 .4rem; font-family: var(--font-text); font-size: var(--fs-3, 1.125rem); color: var(--ink); }
.shop-files { margin: 0; padding-left: 1.2rem; }
.shop-incart { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin: 0; font-weight: 600; color: var(--ink); }
.shop-incart .shop-incart__tick { color: var(--accent-ink); }
@media (max-width: 44rem) {
  .shop-product { grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "buy" "art" "text"; gap: 1.25rem; }
  .shop-product .shop-crumbs { margin-bottom: 0; }
  .shop-product__art { position: static; }
  .shop-main.shop-product { padding-top: 1rem; }
  .shop-product .shop-product__name { font-size: 1.6rem; }
  .shop-product .shop-product__price { margin: .35rem 0 .5rem; }
  .shop-product .shop-btn--big { width: 100%; }
  .shop-sample { margin-top: .9rem; }
}
/* Before paying: a sample to hear, the whole first page, the editions, a bundle's saving (2026-11-14). */
.shop-product__page { display: block; cursor: zoom-in; }
.shop-sample { margin: 1.25rem 0 0; }
.shop-sample figcaption { margin-bottom: .35rem; font-weight: 600; }
.shop-sample audio { display: block; width: 100%; max-width: 26rem; }
.shop-saving { margin: -.5rem 0 1rem; font-size: .95rem; color: var(--ink-2); }
.shop-saving strong { color: var(--accent-ink); }
.shop-editions { margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.shop-editions div { display: block; }
.shop-editions dt { display: inline; font-weight: 600; }
.shop-editions dt::after { content: ': '; }
.shop-editions dd { display: inline; margin: 0; }
/* The tune's other editions and the sets that hold it: short lists with the price at the end. */
.shop-related .shop-product__heading { margin-top: 0; }
.shop-related { margin-bottom: 1.25rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-m, 12px); background: var(--surface); }
.shop-related__list.shop-related__list { margin: 0; padding: 0; list-style: none; }
.shop-related__list.shop-related__list li { display: flex; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin: 0; padding: .2rem 0; }
.shop-related__list.shop-related__list a { display: inline-block; padding-block: 4px; color: var(--accent-ink); }
.shop-related__list.shop-related__list a:hover { color: var(--ink); }
.shop-related__price { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.shop-alsoon a { color: var(--accent-ink); }

/* ── THE CART */
.shop-lines { margin: 1rem 0; padding: 0; list-style: none; }
.shop-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.shop-line__name { flex: 1 1 14rem; min-width: 0; }
.shop-line__price { font-variant-numeric: tabular-nums; }
.shop-line__remove, .shop-link { padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; text-decoration: underline; cursor: pointer; }
/* The cart's own lines: page 1 small, the name, the price, Remove. (The receipt's lines stay text.) */
.shop-line:has(.shop-line__art) { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; grid-template-areas: "art text price" "art form form"; align-items: start; gap: .2rem 1rem; }
.shop-line .shop-line__art { grid-area: art; display: block; aspect-ratio: 8.5 / 11; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.shop-line .shop-line__art img { display: block; width: 100%; height: auto; }
.shop-line .shop-line__text { grid-area: text; min-width: 0; }
.shop-line:has(.shop-line__art) .shop-line__price { grid-area: price; font-weight: 600; }
.shop-line .shop-line__form { grid-area: form; }
.shop-line .shop-line__remove { min-height: 32px; font-size: var(--fs-1, .875rem); color: var(--ink-2); }
.shop-line .shop-line__remove:hover { color: var(--bad); }
.shop-total { display: flex; justify-content: space-between; margin: 1rem 0; font-size: 1.15rem; }
.shop-total--small { margin: .5rem 0; font-size: 1rem; color: var(--ink-2); }
.shop-pay { margin: 0 0 .5rem; }

.shop-eyebrow { margin: 0 0 .25rem; color: var(--ink-2); }
.shop-small { font-size: .92rem; color: var(--ink-2); }
.shop-note { padding: .7rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius-s, 8px); background: var(--surface); }
.shop-note--bad { border-color: var(--bad); background: var(--bad-wash); }
.shop-section { margin-top: 2.5rem; }

/* ── THE ORDER */
.shop-downloads { margin: 1.5rem 0; padding: 0; list-style: none; }
.shop-download { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .5rem; padding: .8rem 1rem; border: 1px solid var(--accent); border-radius: var(--radius-s, 8px); background: var(--surface); font-weight: 600; overflow-wrap: anywhere; }
.shop-download:hover { background: var(--accent-wash); }
.shop-download__meta { font-weight: normal; color: var(--ink-2); }

.shop-receipt { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-m, 12px); background: var(--surface); }
.shop-receipt h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.shop-receipt__facts { margin: 0; }
.shop-receipt__facts div { display: flex; gap: 1rem; padding: .15rem 0; }
.shop-receipt__facts dt { flex: 0 0 5.5rem; color: var(--ink-2); }
.shop-receipt__facts dd { margin: 0; overflow-wrap: anywhere; }

/* ── FORMS: sign in, join, find an order. SilverStripe's login form puts the box before its label,
   and the theme drew it on a line of its own above the words; here they sit together. */
.shop-form label { display: block; margin: .9rem 0 .25rem; font-weight: 600; }
.shop-form input[type="email"], .shop-form input[type="text"], .shop-form input[type="password"] { display: block; width: 100%; max-width: 26rem; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line-2); border-radius: var(--radius-s, 8px); background: var(--surface); color: var(--ink); font: inherit; }
.shop-form fieldset { margin: 0; padding: 0; border: 0; }
.shop-form .field.checkbox { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 0; }
.shop-form .field.checkbox input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--accent); }
.shop-form .field.checkbox label { margin: 0; font-weight: 500; }
.shop-form .btn-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1.25rem; }
.shop-form .btn-toolbar p { margin: 0; }
.shop-form input[type="submit"], .shop-form .btn-toolbar .action { min-height: 48px; width: auto; min-width: 10rem; margin: 0; padding: 0 var(--s-6, 1.5rem); border: 1px solid var(--accent); border-radius: var(--radius-pill, 999px); background: var(--accent); color: var(--on-accent); font: 600 var(--fs-2, 1rem)/1.2 var(--font-ui); text-transform: none; letter-spacing: 0; cursor: pointer; }
.shop-form input[type="submit"]:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.shop-form button { margin-top: 1rem; }
.shop-form .message { margin: .5rem 0; }

@media print {
    .shop-test, .shop-noprint, .shop-downloads, header, footer, nav { display: none !important; }
    .shop-receipt { border: 0; padding: 0; }
}

/* A product sold more than one way (the studio licence, 2026-11-14): a choice before the button. */
.shop-choice { margin: 1rem 0; }
.shop-choice__set { margin: 0 0 0.9rem; padding: 0; border: 0; }
.shop-choice__legend { margin-bottom: 0.5rem; font-weight: 600; }
.shop-choice__option { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.5rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line-2); border-radius: var(--radius-s, 8px); background: var(--surface); cursor: pointer; }
.shop-choice__option:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.shop-choice__option input { margin-top: 0.25rem; accent-color: var(--accent); }
.shop-choice__text { display: flex; flex-direction: column; gap: 0.15rem; }
.shop-choice__name { font-weight: 600; }
.shop-choice__price { margin-left: 0.35rem; font-weight: 400; }
.shop-choice__what { font-size: 0.92rem; color: var(--ink-2); }
.shop-line__licence { display: block; margin-top: 0.2rem; font-size: 0.88rem; color: var(--ink-2); }

/* Single editions sold only on another store (the carols' letter names and duets on Sheet Music Direct):
   a list, each with its store, its price and, when this shop has it in a set, that set. */
.shop-away__rows.shop-away__rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.shop-away__row.shop-away__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .75rem; margin: 0; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-s, 8px); background: var(--surface); font-size: var(--fs-1, .875rem); }
.shop-away__row .shop-away__piece a { color: var(--accent-ink); font-weight: 600; }
.shop-away__row .shop-away__piece a:hover { color: var(--ink); }
.shop-away__row .shop-away__tag { color: var(--muted); }
.shop-away__row .shop-away__price { font-weight: 600; color: var(--ink); white-space: nowrap; }
.shop-away__row .shop-away__inset { grid-column: 1 / -1; color: var(--ink-2); }
.shop-away__row .shop-away__inset a { color: var(--accent-ink); }
.shop-related__store { font-size: var(--fs-1, .875rem); color: var(--muted); }

/* On a phone a card from another store is a row: the cover small at the side, so thirteen of them are
   a short scroll rather than thirteen screens (the shop UX pass measured 430px a card). */
@media (max-width: 40rem) {
  .shop-away__card.shop-away__card { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: start; }
  .shop-away__card .shop-away__art { margin: var(--s-3, .75rem) 0 0 var(--s-3, .75rem); border-radius: var(--radius-s, 8px); }
  .shop-away__card .shop-away__body { padding: var(--s-3, .75rem); gap: .3rem; }
  .shop-away__card .shop-away__body:only-child { grid-column: 1 / -1; }
  .shop-away__card .shop-away__words { -webkit-line-clamp: 2; }
  .shop-away__card .shop-away__act .shop-btn { min-height: 44px; font-size: var(--fs-1, .875rem); }
}
.shop-related__what { flex: 1 1 auto; min-width: 0; }

/* Single editions sold elsewhere, folded on an occasion's page (ShopAwayShelves.ss). */
.shop-away__fold .shop-away__summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-ink); font: 600 var(--fs-1, .875rem)/1.3 var(--font-ui); cursor: pointer; }
.shop-away__fold .shop-away__summary:hover { color: var(--ink); }
.shop-away__fold[open] .shop-away__summary { margin-bottom: .5rem; }
