/* shop page only (linked from /shop/, not from any other page). Same tokens as styles.css. */
/* header: shop (cart) link to the right of the nav */
.header-right { display: flex; align-items: center; gap: var(--sp-2); }
.shop-link { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--tap); min-width: var(--tap); padding: 0 var(--sp-3); color: var(--on-black); font-family: var(--sans); font-weight: 600; text-decoration: none; border: 1px solid #6b665c; border-radius: var(--radius-s); }
.shop-link:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 0.15em; }
.shop-link[aria-current="page"] { border-color: var(--orange); }
.shop-link .icon { flex: none; }
@media (min-width: 48rem) {
  .shop-link { padding: 0; border-color: transparent; }
  .shop-link .shop-label { display: none; }
}

/* shop page: one compact row per book, filters as plain links */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); margin: var(--sp-5) 0 var(--sp-4); font-family: var(--sans); }
.filter-group { min-width: 0; }
.filter-head { margin: 0 0 var(--sp-1); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.filter-list li { margin: 0; }
.filter-list a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-4); border: 2px solid var(--border); border-radius: var(--radius-s); color: var(--text); text-decoration: none; font-weight: 600; }
.filter-list a:hover { background: var(--surface-2); }
.filter-list a[aria-current="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.shop-list { list-style: none; padding: 0; margin: 0 0 var(--sp-6); display: grid; gap: var(--sp-3); grid-template-columns: minmax(0, 1fr); }
.shop-row { display: grid; gap: var(--sp-4); grid-template-columns: 4rem minmax(0, 1fr); align-items: start; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--sp-3); margin: 0; }
.shop-row[hidden], .shop-list [hidden] { display: none; }
.shop-cover { display: block; }
.shop-cover .cover { max-width: 100%; }
.shop-info { min-width: 0; }
.shop-info h2 { font-size: var(--fs-h3); margin: 0; }
.shop-info h2 a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text); text-decoration: none; }
.shop-info h2 a:hover { text-decoration: underline; }
.shop-sub { font-size: var(--fs-sm); margin: 0 0 var(--sp-2); line-height: 1.35; }
/* store badge: about 28px tall pill; the link around it is 44px tall so the tap target is full size */
.store-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
.store-list li { margin: 0; }
.store-badge { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: var(--tap); text-decoration: none; color: var(--text); }
.store-name { display: inline-flex; align-items: center; height: 1.75rem; padding: 0 var(--sp-3); border: 2px solid var(--text); border-radius: 999px; font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; line-height: 1; }
.store-badge img { display: block; height: 1rem; width: auto; }
.store-badge:hover .store-name { background: var(--text); color: var(--bg); }
.shop-soon { font-family: var(--sans); font-size: var(--fs-sm); margin: 0; }
@media (min-width: 40rem) {
  .shop-row { grid-template-columns: 5rem minmax(0, 1fr); padding: var(--sp-4); }
}
/* desktop: table-like rows, cover | title and subtitle | formats */
@media (min-width: 48rem) {
  .shop-list { gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
  .shop-row { grid-template-columns: 5rem minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: var(--sp-5); align-items: center; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; padding: var(--sp-4) var(--sp-5); }
  .shop-row:last-child { border-bottom: 0; }
  .shop-cover { grid-row: 1 / 3; }
  .shop-info { display: contents; }
  .shop-info h2 { grid-column: 2; grid-row: 1; align-self: end; }
  .shop-sub { grid-column: 2; grid-row: 2; align-self: start; margin: 0; }
  .store-list, .shop-soon { grid-column: 3; grid-row: 1 / 3; flex-wrap: nowrap; }
}
@media (forced-colors: active) {
  .store-name, .filter-list a, .shop-link { border: 2px solid CanvasText; }
}
