/* Collection shelf: shop, category, brand, and search. */

.shelf,
.bindex {
  --shelf-accent: var(--accent);
  padding: clamp(1.15rem, 2vw, 1.75rem) var(--frame-gap) 5.5rem;
  color: var(--text);
}

.shelf__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1rem;
  row-gap: 0.15rem;
}

.shelf__head .shelf__crumbs,
.shelf__head .shelf__tag,
.shelf__head .shelf__intro,
.shelf__head .shelf__total,
.shelf__head .shelf__did {
  max-width: none;
}

.shelf [hidden] {
  display: none !important;
}

.shelf__tag,
.bindex .shelf__tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shelf__tag-line {
  width: 1.75rem;
  height: 2px;
  background: var(--shelf-accent);
}

.shelf__title,
.bhero__title,
.bindex h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.shelf__title--sub {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.shelf__intro,
.bhero__story,
.shelf__seo-copy {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.shelf__intro p,
.bhero__story p {
  margin: 0.4rem 0 0;
}

.shelf__crumbs,
.shelf__tag,
.shelf__intro,
.shelf__did {
  flex: 0 0 100%;
}

.shelf__crumbs { order: 0; }
.shelf__tag { order: 1; }

.shelf__title {
  order: 2;
  flex: 0 1 auto;
  min-width: 0;
}

.shelf__head .shelf__intro {
  order: 4;
  flex: 0 0 100%;
  max-width: none;
}

.shelf__head .shelf__intro p {
  max-width: 40rem;
  margin: 0.2rem 0 0;
}
.shelf__did { order: 5; }

.shelf__total {
  order: 3;
  margin: 0 0 0 auto;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.shelf__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.shelf__crumbs a {
  text-decoration: none;
}

.shelf__did,
.shelf__askline {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
}

.shelf__kids,
.bhero__scales,
.bhero__series,
.shelf__related {
  display: flex;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

.shelf__kids a,
.bhero__scales a,
.bhero__series a,
.shelf__related a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.shelf__kids span,
.shelf__related span,
.bhero__series small {
  color: var(--text-muted);
}

.shelf__ideas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.shelf__ideas button {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.shelf__ideas button:hover {
  border-color: #121212;
}

.shelf__layout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 1.25rem 2.25rem;
  align-items: start;
  margin-top: 1.15rem;
}

.shelf__rail {
  position: sticky;
  top: var(--shelf-stick, 5.65rem);
  display: flex;
  max-height: calc(100svh - var(--shelf-stick, 5.65rem) - 1rem);
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.shelf__rail-bar,
.shelf__rail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
}

.shelf__rail-foot {
  flex-direction: column;
  align-items: stretch;
}

.shelf__rail-foot .shelf__button {
  width: 100%;
}

.shelf__rail-foot .shelf__text {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
}

.shelf__rail-foot .shelf__text:hover {
  border-color: #121212;
}

.shelf__rail-bar p,
.shelf__rail-foot {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
}

.shelf__rail .shelf__rail-close,
.shelf__dock {
  display: none;
}

.shelf__rail-body {
  overflow: auto;
  padding: 0 0.2rem 0.5rem 0;
  scrollbar-width: thin;
}

.facet {
  margin: 0;
  padding: 0.35rem 0 0.7rem;
  border: 0;
  border-top: 1px solid var(--line);
}

.facet legend {
  width: 100%;
  padding: 0;
}

.facet legend button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.facet legend .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s var(--ease-out);
}

.facet.is-shut legend .icon {
  transform: rotate(-90deg);
}

.facet__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.25s var(--ease-out);
}

.facet.is-shut .facet__panel {
  grid-template-rows: 0fr;
}

.facet__clip {
  overflow: hidden;
}

.facet__list {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.4rem;
}

.facet__list.is-pills,
.facet__list.is-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.facet__find input {
  width: 100%;
  margin-bottom: 0.45rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.shelf__check,
.shelf__pill,
.shelf__swatch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.85rem;
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
}

.shelf__check.is-off,
.shelf__pill.is-off,
.shelf__swatch.is-off {
  opacity: 0.38;
  cursor: not-allowed;
}

.shelf__check input,
.shelf__pill input,
.shelf__swatch input {
  accent-color: var(--shelf-accent);
}

.shelf__pill,
.shelf__swatch {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.shelf__pill:has(input:checked),
.shelf__swatch:has(input:checked),
.shelf__check:has(input:checked) span:first-of-type {
  border-color: var(--shelf-accent);
  color: var(--shelf-accent);
}

.shelf__count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.shelf__pill .shelf__count,
.shelf__swatch .shelf__count {
  margin-left: 0.15rem;
}

.shelf__dot {
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--swatch, #ddd);
}

.facet__list .is-extra {
  display: none;
}

.facet__list.is-open .is-extra {
  display: flex;
}

.facet__range {
  position: relative;
  display: grid;
  gap: 0.7rem;
  padding: 0.4rem 0 0.8rem;
}

.facet__hist {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 3rem;
}

.facet__hist span {
  flex: 1;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: color-mix(in srgb, var(--shelf-accent) 35%, var(--line));
}

.facet__range input[type="range"] {
  width: 100%;
  accent-color: var(--shelf-accent);
}

.facet__amounts {
  display: flex;
  gap: 0.5rem;
}

.facet__amounts label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.facet__amounts input {
  width: 100%;
  border: 0;
  background: transparent;
}

.shelf__main {
  min-width: 0;
}

.shelf__bar {
  position: sticky;
  top: calc(var(--admin-top, 0px) + var(--header-stack, 6.75rem) + 0.35rem);
  z-index: 6;
  margin-bottom: 0.85rem;
  padding: 0.45rem 0 0.4rem;
  background: var(--bg);
}

.site-header.is-docked:not(.is-hidden) ~ main .shelf__bar,
.site-header.is-docked:not(.is-hidden) ~ main .shelf__rail,
.site-header.is-docked:not(.is-hidden) ~ main .bindex__letters {
  top: calc(var(--admin-top, 0px) + 4.65rem);
}

.site-header.is-docked:not(.is-hidden) ~ main .shelf__rail {
  max-height: calc(100svh - var(--admin-top, 0px) - 5.45rem);
}

.site-header.is-hidden ~ main .shelf__bar,
.site-header.is-hidden ~ main .shelf__rail,
.site-header.is-hidden ~ main .bindex__letters {
  top: calc(var(--admin-top, 0px) + 0.45rem);
}

.shelf__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  padding: 0.35rem 0.4rem 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.shelf__showing {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.shelf__chips {
  display: flex;
  flex: 1 1 12rem;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.shelf__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--surface);
  color: inherit;
  font-size: 0.82rem;
  text-decoration: none;
}

.shelf__chip--clear {
  background: transparent;
  color: var(--shelf-accent);
}

.shelf__search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 11rem;
  margin-left: auto;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
}

.shelf__search .icon {
  width: 1rem;
  height: 1rem;
}

.shelf__search input,
.shelf__sort select {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
}

.shelf__sort select {
  padding: 0.4rem 0.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.shelf__density {
  display: flex;
  gap: 0.2rem;
}

.shelf__density button,
.shelf__icon,
.shelf__text,
.shelf__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.shelf__density button[aria-pressed="true"],
.shelf__icon:hover,
.shelf__density button:hover {
  background: var(--surface);
}

.shelf__density .icon,
.shelf__icon .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.shelf__progress {
  width: 6.5rem;
  height: 2px;
  margin: 0.55rem 0 0 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e5e2;
}

.shelf__progress span {
  display: block;
  height: 100%;
  background: var(--shelf-accent);
}

.shelf__grid {
  display: grid;
  grid-template-columns: repeat(var(--shelf-cols, 4), minmax(0, 1fr));
  gap: 1.35rem 0.9rem;
}

.shelf__more {
  display: flex;
  width: fit-content;
  min-width: 11.5rem;
  margin: 1.75rem auto 0;
  padding: 0.8rem 1.7rem;
  border: 0;
  background: #121212;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shelf__more:hover {
  background: var(--accent);
}

.shelf__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #121212;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.shelf__button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.shelf__textlink {
  color: var(--text-muted);
}

.js .shelf__pages {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.shelf__empty h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
}

.shelf__hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.shelf__hint {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.shelf__relaxed {
  margin-top: 1.5rem;
}

.pcard__compare {
  position: absolute;
  z-index: 3;
  top: 0.85rem;
  right: 3.7rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
}

.pcard__compare input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--shelf-accent);
}

@media (hover: hover) and (pointer: fine) {
  .shelf .pcard__compare {
    opacity: 0;
  }

  .shelf .pcard:hover .pcard__compare,
  .shelf .pcard:focus-within .pcard__compare,
  .shelf .pcard__compare:has(input:checked) {
    opacity: 1;
  }
}

@media (min-width: 1100px) {
  .shelf__rail-bar {
    padding: 0 0.2rem 0.15rem 0;
  }

  .shelf__rail-foot {
    padding: 0.35rem 0 0;
  }

  .shelf__rail-foot .shelf__button {
    display: none;
  }
}

.shelf__recent,
.shelf__seo,
.shelf__faq,
.bhero__row {
  margin-top: 2.5rem;
}

.shelf__recent h2,
.shelf__faq h2,
.bhero__row h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
}

.shelf__recent-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(13rem, 18rem);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.shelf__seo-copy {
  max-height: 9.5rem;
  overflow: hidden;
}

.shelf__seo-copy.is-open {
  max-height: none;
}

.shelf__faq details {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}

.shelf__faq summary {
  cursor: pointer;
  font-weight: 700;
}

.shelf__shade {
  position: fixed;
  z-index: 44;
  inset: 0;
  border: 0;
  background: rgba(8, 8, 8, 0.48);
}

.shelf__dock {
  position: fixed;
  right: var(--frame-gap);
  bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  left: var(--frame-gap);
  z-index: 30;
  display: none;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(18, 18, 18, 0.16);
  backdrop-filter: blur(16px);
}

.shelf__dock button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.shelf__dock button:first-child {
  background: #121212;
  color: #fff;
}

.shelf__dock .icon {
  width: 1rem;
  height: 1rem;
}

.shelf__badge {
  min-width: 1.2rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: var(--shelf-accent);
  color: #fff;
  font-size: 0.72rem;
}

.shelf__sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 52;
  display: grid;
  gap: 0.2rem;
  max-height: min(70svh, 32rem);
  padding: 1.15rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  overflow: auto;
  border: 0;
  border-radius: 1.4rem 1.4rem 0 0;
  background: #fff;
  overscroll-behavior: contain;
}

.shelf__sheet > p {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.shelf__sheet label {
  display: flex;
  gap: 0.65rem;
  min-height: 2.75rem;
  align-items: center;
  padding: 0 0.85rem;
  border-radius: 0.9rem;
}

.shelf__sheet label:has(input:checked) {
  background: #121212;
  color: #fff;
}

.shelf__tray {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 32;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
}

.shelf__tray-row {
  display: flex;
  gap: 0.3rem;
}

.shelf__tray img,
.shelf__tray-ph {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: contain;
  background: var(--surface);
}

.shelf__dialog {
  width: min(68rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1rem;
}

.shelf__dialog header,
.shelf__dialog form {
  display: grid;
  gap: 0.7rem;
}

.shelf__dialog header {
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

.shelf__dialog h2 {
  margin: 0;
  font-family: var(--font-display);
}

.compare__scroll {
  overflow-x: auto;
}

.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.compare img {
  width: 6rem;
  height: 4rem;
  object-fit: contain;
}

.compare.is-diff .is-same {
  display: none;
}

.shelf__field {
  display: grid;
  gap: 0.3rem;
}

.shelf__field input {
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.shelf__hp {
  position: absolute;
  left: -999px;
}

.shelf__toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #121212;
  color: #fff;
}

.bhero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: 2.25rem;
  padding: clamp(1.15rem, 2vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 1.85rem;
  background:
    radial-gradient(70% 120% at 100% 40%, rgba(225, 6, 0, 0.06), transparent 58%),
    #fff;
}

.bhero__title {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
}

.bhero__story {
  margin-top: 0.7rem;
}

.bhero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.2rem, 1fr));
  gap: 0.55rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.bhero__facts li {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.7rem 0.8rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.bhero__facts strong {
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.bhero__facts span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bhero__scales {
  margin-top: 0.9rem;
  scrollbar-width: none;
}

.bhero__scales::-webkit-scrollbar {
  display: none;
}

.bhero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1.05rem;
}

.bhero__actions .shelf__button {
  min-height: 2.75rem;
  padding-inline: 1.1rem;
}

.bhero__stage {
  position: relative;
  width: min(100%, 24rem);
  aspect-ratio: 1;
  justify-self: end;
  color: var(--bg-stroke, #d7d7d7);
}

.bhero__wheel {
  display: none;
}

.bhero__rings {
  transform-origin: 400px 400px;
}

.bhero__arc {
  transform-origin: 400px 400px;
  transform: rotate(-18deg);
  color: var(--shelf-accent);
}

.bhero__frame {
  position: absolute;
  inset: 7%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 1.7rem;
  background:
    radial-gradient(90% 70% at 50% 100%, rgba(18, 18, 18, 0.07), transparent 58%),
    #f3f3f1;
  box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.05);
}

.bhero .bhero__frame img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  object-position: center;
}

.bhero__series {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  overflow: visible;
}

.bhero__series a {
  display: flex;
  justify-content: space-between;
  border-radius: 1rem;
}

.shelf__grid--row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bindex__find {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 24rem;
  margin-top: 1rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.bindex__find input {
  width: 100%;
  border: 0;
  font: inherit;
}

.bindex__letters {
  position: sticky;
  top: var(--shelf-stick, 5.65rem);
  z-index: 3;
  display: flex;
  gap: 0.35rem;
  margin: 1.2rem 0;
  overflow-x: auto;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.bindex__letters a,
.bindex__letters span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.bindex__letters span {
  opacity: 0.3;
}

.bindex__group h2 {
  margin: 1.4rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.bindex__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bindex__group a {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.bindex__group img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.bindex__group span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.bindex__group small {
  color: var(--text-muted);
}

@keyframes shelf-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1099px) {
  body:has(.shelf__dock) .site-main {
    z-index: 3;
  }

  body:has(.shelf__dock) .site-footer {
    margin-bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
  }

  .shelf__layout {
    grid-template-columns: 1fr;
  }

  .shelf__bar {
    position: static;
    margin: 0 0 0.85rem;
    padding: 0;
    background: transparent;
  }

  .shelf__tools {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .shelf__showing,
  .shelf__sort,
  .shelf__density,
  .shelf__icon,
  .shelf__progress,
  .shelf__chips {
    display: none;
  }

  .shelf__search {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--line);
    background: #fff;
  }

  body.shelf-locked .site-main {
    z-index: 80;
  }

  body.shelf-locked .shelf__bar,
  body.shelf-locked .shelf__dock {
    visibility: hidden;
  }

  .shelf__rail {
    position: fixed;
    z-index: 50;
    inset: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    max-height: none;
    overflow: hidden;
    border-radius: 0;
    background: #fff;
    backdrop-filter: none;
    padding-top: env(safe-area-inset-top, 0px);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease-out);
  }

  .shelf__rail::before {
    content: "";
    width: 2.4rem;
    height: 0.28rem;
    margin: 0.7rem auto 0.15rem;
    border-radius: 999px;
    background: #e4e2df;
    flex: none;
  }

  .shelf__rail-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    padding: 0.35rem 1rem 0.7rem;
  }

  .shelf__rail-bar .shelf__text {
    min-height: 2.3rem;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .shelf__rail:not(.is-open) {
    visibility: hidden;
    pointer-events: none;
  }

  .shelf__rail.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-header.is-docked:not(.is-hidden) ~ main .shelf__rail,
  .site-header.is-docked ~ main .shelf__rail,
  .site-header.is-hidden ~ main .shelf__rail {
    top: 0;
    bottom: 0;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  .shelf__rail-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 1rem 0.5rem;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .shelf__rail .shelf__rail-close,
  .shelf__dock {
    display: inline-flex;
  }

  .shelf__dock {
    display: grid;
  }

  .shelf__grid,
  .shelf__grid--row,
  .bhero__series {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bhero {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1rem;
    border-radius: 1.4rem;
  }

  .bhero__stage {
    width: min(100%, 18rem);
    justify-self: center;
    order: -1;
  }

  .bhero__actions .shelf__button {
    flex: 1 1 12rem;
  }
}

@media (max-width: 767px) {
  .shelf__tools {
    border-radius: 1.15rem;
    padding: 0.5rem;
  }

  .shelf__search {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .shelf__grid,
  .shelf__grid--row,
  .bhero__series {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bhero__title {
    font-size: 2rem;
  }

  .bhero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .bhero__facts li {
    padding: 0.6rem 0.55rem 0.65rem;
  }

  .bhero__facts strong {
    font-size: 0.86rem;
  }

  .bhero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bhero__actions .shelf__button {
    width: 100%;
  }

  .shelf__grid[data-cols="1"] {
    grid-template-columns: 1fr;
  }

  .shelf__density [data-cols="3"],
  .shelf__density [data-cols="4"],
  .shelf__density [data-cols="5"] {
    display: none;
  }

  .shelf__tray {
    right: 0.8rem;
    bottom: 5rem;
    left: 0.8rem;
  }
}

@media (min-width: 768px) {
  .shelf__density [data-cols="1"],
  .shelf__density [data-cols="2"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bhero__rings,
  .bhero__arc,
  .facet__panel,
  .shelf__rail {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1099px) {
  body.shelf-locked {
    overflow: hidden;
  }
}
