/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 70px;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: clip;
}

:lang(bn) body {
  font-size: 15px;
  line-height: 1.75;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.2;
}

:lang(bn) h1,
:lang(bn) h2,
:lang(bn) h3 {
  line-height: 1.45;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: var(--color-background);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

[hidden] {
  display: none !important;
}

.page-width {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 16px;
}

.page-width--narrow {
  max-width: 760px;
}

@media (min-width: 750px) {
  .page-width {
    padding: 0 40px;
  }
}

.section {
  padding: 48px 0;
}

/* ---------- Price, quantity, pagination (core snippets) ---------- */

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.price--large {
  font-size: 18px;
}

.price__compare {
  font-size: 0.85em;
  opacity: 0.5;
}

.price--on-sale .price__sale {
  color: var(--color-sale);
}

.price__savings {
  flex-basis: 100%;
  color: var(--color-sale);
  font-size: 13px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-sale);
  color: #fff;
  font-size: 12px;
}

.quantity {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1px solid rgba(var(--color-foreground-rgb), 0.2);
}

.quantity__button {
  width: 42px;
  height: 100%;
  border: 0;
  background: none;
  cursor: pointer;
}

.quantity__button .icon {
  width: 14px;
  height: 14px;
  margin: 0 auto;
}

.quantity__input {
  width: 36px;
  border: 0;
  background: none;
  text-align: center;
  -moz-appearance: textfield;
}

.quantity__input::-webkit-inner-spin-button,
.quantity__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 40px 0;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  text-decoration: none;
}

.pagination .pagination__current {
  border-bottom: 2px solid currentColor;
  font-weight: 600;
}

/* ---------- Drawers, sheet ---------- */

.drawer > summary {
  list-style: none;
}

.drawer > summary::-webkit-details-marker {
  display: none;
}

.drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
}

.drawer__panel {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  width: min(400px, 90vw);
  background: #fff;
  color: #1f1f1f;
  overflow-y: auto;
  animation: drawer-in-left 0.25s ease;
}

.drawer__panel--left {
  left: 0;
}

.drawer__panel--right {
  right: 0;
  animation-name: drawer-in-right;
}

details.drawer:not([open]) .drawer__panel,
details.drawer:not([open]) .drawer__overlay {
  display: none;
}

.is-closing .drawer__panel,
.is-closing .drawer__overlay {
  opacity: 0;
  transition: opacity 0.2s ease;
}

@keyframes drawer-in-left {
  from {
    transform: translateX(-100%);
  }
}

@keyframes drawer-in-right {
  from {
    transform: translateX(100%);
  }
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 10px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.drawer__title {
  font-family: var(--font-heading);
  font-size: 18px;
}

.drawer__count {
  font-size: 14px;
  opacity: 0.6;
}

.drawer-search {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
}

.drawer-search .icon {
  position: absolute;
  left: 0;
  opacity: 0.5;
}

.drawer-search input {
  width: 100%;
  height: 44px;
  padding: 0 0 0 30px;
  border: 0;
  background: none;
}

.drawer-search input:focus {
  outline: none;
}

.menu-drawer__list,
.menu-drawer__sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

:lang(en) .menu-drawer__link {
  text-transform: uppercase;
}

:lang(bn) .menu-drawer__link {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.menu-drawer__link::-webkit-details-marker {
  display: none;
}

.menu-drawer__link .icon {
  width: 16px;
  height: 16px;
}

.menu-drawer__sublist a {
  display: block;
  padding: 10px 20px 10px 32px;
  text-decoration: none;
}

.menu-drawer__footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 16px 20px 24px;
}

.menu-drawer__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
}

.menu-drawer__language {
  margin-bottom: 8px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.cart-drawer .drawer__overlay {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-drawer .drawer__panel {
  width: min(420px, 92vw);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  animation: none;
}

.cart-drawer.is-open .drawer__overlay {
  opacity: 1;
}

.cart-drawer.is-open .drawer__panel {
  transform: none;
}

.cart-drawer__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 20px 20px;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
}

.sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  padding: 22px 18px 24px;
  overflow-y: auto;
  background: #fff;
  color: #1f1f1f;
  animation: sheet-in 0.25s ease;
}

@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
}

.sheet__close {
  position: absolute;
  top: 6px;
  right: 6px;
}

@media (min-width: 750px) {
  .sheet__panel {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: 480px;
    transform: translate(-50%, -50%);
    animation: none;
  }
}

.quick-buy__head {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding-right: 32px;
}

.quick-buy__image {
  width: 96px;
  aspect-ratio: var(--card-ratio);
  object-fit: cover;
}

.quick-buy__title {
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.3;
}

.quick-buy__head .text-link {
  margin-top: 8px;
}

/* ---------- Pages, FAQ, contact ---------- */

.rich-text {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.rich-text--start {
  justify-items: start;
  text-align: left;
}

.rich-text__heading {
  font-size: calc(28px * var(--heading-scale));
}

.page__title {
  margin-bottom: 24px;
  font-size: calc(30px * var(--heading-scale));
}

.page__title--center {
  text-align: center;
}

.contact {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.contact__text {
  text-align: center;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(var(--color-foreground-rgb), 0.12);
  text-decoration: none;
}

.trust__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(var(--color-foreground-rgb), 0.06);
}

.contact__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

:lang(en) .contact__label {
  text-transform: uppercase;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form .icon {
  position: absolute;
  left: 14px;
  opacity: 0.5;
}

.search-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 44px;
  border: 1px solid rgba(var(--color-foreground-rgb), 0.2);
  background: var(--color-background);
}

.search-form--page {
  max-width: 560px;
  margin: 0 auto 24px;
}

.search__count {
  margin-bottom: 18px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

.not-found {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.not-found .search-form--page {
  width: 100%;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px 0;
  text-align: center;
}

.empty .icon {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

/* ---------- Cart lines ---------- */

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

.line {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.line__media {
  flex-shrink: 0;
  width: 84px;
  background: #f1f1f1;
}

.line__media img {
  width: 100%;
  aspect-ratio: var(--card-ratio);
  object-fit: cover;
}

.line__details {
  display: grid;
  flex: 1;
  gap: 4px;
  align-content: start;
  min-width: 0;
}

.line__origin {
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.line__title {
  font-weight: 500;
  text-decoration: none;
}

.line__variant {
  font-size: 13px;
  opacity: 0.7;
}

.line__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.line__bottom .quantity {
  height: 38px;
}

.line__bottom .quantity__button {
  width: 34px;
}

.line__price {
  display: grid;
  justify-items: end;
  font-weight: 500;
}

.line__saved {
  color: var(--color-sale);
  font-size: 12px;
}

.line__remove {
  justify-self: start;
  font-size: 12px;
  opacity: 0.6;
}

.summary {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.summary__saved {
  color: var(--color-sale);
  font-size: 14px;
}

.summary__note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f5f5f5;
  font-size: 14px;
}

.summary form {
  margin: 0;
}

/* ---------- Scroll reveal, reduced motion ---------- */

.has-animations [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.has-animations [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .has-animations [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Boi's look (Bookie) ---------- */

/*
 * Bookie's language, measured from its demo: black on white with large
 * rounded light grey cards (18px), bold sans headings, black pill
 * buttons, a black top line, a wide rounded search box in the header and
 * the links spread across a second row, books standing spine out under
 * the opening and at the foot of the page, a black band of huge
 * capitals, grey book tiles with a stock bar and a genre and format line,
 * and grey shelf panels. Its moon switches to a dark look: near-black
 * page, dark grey cards, white pills.
 */

:root {
  --ink: #111111;
  --page: #ffffff;
  --tile: #e8e8e8;
  --panel: #f4f4f4;
  --card: #ffffff;
  --grey: #666666;
  --rule: rgba(0, 0, 0, 0.1);
  --solid: #111111;
  --on-solid: #ffffff;
  --soft: #ececec;
  --red: #d0021b;
  --radius: 18px;
  --band: #111111;
  --on-band: #ffffff;
  color-scheme: light;
}

html[data-mode="dark"] {
  --ink: #f2f2f2;
  --page: #121212;
  --tile: #2a2a2a;
  --panel: #1c1c1c;
  --card: #2a2a2a;
  --grey: #a5a5a5;
  --rule: rgba(255, 255, 255, 0.14);
  --solid: #ffffff;
  --on-solid: #111111;
  --soft: #2f2f2f;
  --red: #ff5a6a;
  --band: #ffffff;
  --on-band: #111111;
  --color-background: #121212;
  --color-foreground: #f2f2f2;
  --color-foreground-rgb: 242, 242, 242;
  --color-sale: #ff5a6a;
  color-scheme: dark;
}

html[data-mode="dark"] [class*="color-scheme"] {
  --color-background: #121212;
  --color-foreground: #f2f2f2;
  --color-foreground-rgb: 242, 242, 242;
}

body {
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

:lang(bn) :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.35;
}

.section {
  padding: 36px 0;
}

@media (min-width: 750px) {
  .section {
    padding: 56px 0;
  }
}

.title {
  font-size: calc(26px * var(--heading-scale));
}

@media (min-width: 990px) {
  .title {
    font-size: calc(32px * var(--heading-scale));
  }
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.head__link {
  flex: none;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rte > * + * {
  margin-top: 12px;
}

.rte ul,
.rte ol {
  padding-left: 20px;
}

.rte a {
  color: inherit;
}

.trail {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 13px;
}

.trail a {
  color: inherit;
  text-decoration: none;
}

.trail [aria-current] {
  opacity: 0.6;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--solid);
  color: var(--on-solid);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  opacity: 0.85;
}

.button:active {
  transform: scale(0.98);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button--small {
  min-height: 38px;
  padding: 6px 20px;
  font-size: 14px;
}

.button--soft {
  background: var(--soft);
  color: var(--ink);
}

.icon-button {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  list-style: none;
}

.icon-button::-webkit-details-marker {
  display: none;
}

.icon-button .icon,
.icon-button svg {
  width: 21px;
  height: 21px;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.is-busy .spinner,
.is-loading .spinner {
  display: inline-block;
}

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

.round-arrows {
  display: flex;
  gap: 6px;
}

.round-arrows button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--solid);
  color: var(--on-solid);
  cursor: pointer;
}

.round-arrows button:first-child .icon {
  transform: scaleX(-1);
}

.round-arrows .icon {
  width: 13px;
  height: 13px;
}

.round-arrows button:disabled {
  background: #8a8a8a;
  cursor: default;
}

/* ---------- Top line and header ---------- */

.section-header {
  position: sticky;
  top: -34px;
  z-index: 30;
}

.topline {
  background: #111;
  color: #fff;
}

.topline__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 34px;
}

.topline__social {
  display: none;
}

.topline__text {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.topline__language {
  display: none;
}

.topline__language .language-toggle {
  padding: 4px;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}

.header {
  border-bottom: 1px solid var(--rule);
  background: var(--page);
  color: var(--ink);
}

.header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "logo tools"
    "search search";
  align-items: center;
  gap: 8px 12px;
  padding-top: 10px;
  padding-bottom: 12px;
}

.header__logo {
  grid-area: logo;
  color: var(--ink);
  text-decoration: none;
}

.header__shop-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.header__logo-image {
  width: var(--logo-width, 120px);
  max-height: 44px;
  object-fit: contain;
}

.header__search {
  display: flex;
  grid-area: search;
  align-items: center;
  height: 46px;
  padding: 0 6px 0 20px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--page);
}

.header__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
}

.header__search input:focus {
  outline: none;
}

.header__search:focus-within {
  border-color: var(--ink);
}

.header__search button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.header__search .icon {
  width: 20px;
  height: 20px;
}

.header__tools {
  display: flex;
  grid-area: tools;
  align-items: center;
  margin-right: -8px;
}

.header__account {
  display: none;
}

.mode-toggle__sun,
html[data-mode="dark"] .mode-toggle__moon {
  display: none;
}

html[data-mode="dark"] .mode-toggle__sun {
  display: block;
}

.header__cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--solid);
  color: var(--on-solid);
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.header__cart-count[hidden] {
  display: none;
}

.navbar {
  display: none;
}

@media (min-width: 990px) {
  .topline__inner {
    justify-content: space-between;
  }

  .topline__social {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .topline__social a {
    color: #fff;
  }

  .topline__social svg {
    width: 14px;
    height: 14px;
  }

  .topline__language {
    display: block;
  }

  .header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo search tools";
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header__shop-name {
    font-size: 30px;
  }

  .header__search {
    justify-self: end;
    width: min(400px, 100%);
    height: 42px;
  }

  .header__search input {
    font-size: 14px;
  }

  .header__account {
    display: inline-flex;
  }

  .header__menu {
    display: none;
  }

  .navbar {
    display: block;
    border-top: 1px solid var(--rule);
  }

  .navbar__list {
    display: flex;
    justify-content: space-around;
    margin-top: 0;
    margin-bottom: 0;
    list-style: none;
  }

  .navbar__item {
    position: relative;
  }

  .navbar__link {
    display: block;
    padding: 12px 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
  }

  .navbar__link::-webkit-details-marker {
    display: none;
  }

  .navbar__dropdown .navbar__link::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 0 3px 7px;
    border-right: 1.4px solid currentColor;
    border-bottom: 1.4px solid currentColor;
    transform: rotate(45deg);
  }

  .navbar__link:hover,
  .navbar__link[aria-current] {
    text-decoration: underline;
    text-underline-offset: 6px;
  }

  .navbar__submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 6;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    border-radius: 14px;
    background: var(--page);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    list-style: none;
    transform: translateX(-50%);
  }

  .navbar__submenu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
  }

  .navbar__submenu a:hover {
    background: var(--panel);
  }
}

/* ---------- Opening shelf ---------- */

.hshelf {
  overflow: hidden;
  padding-top: 40px;
}

.hshelf__text {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: 34px;
  text-align: center;
}

.hshelf__heading {
  max-width: 11em;
  font-size: calc(34px * var(--heading-scale));
  font-weight: 600;
}

.hshelf__line {
  max-width: 30em;
  margin: 0;
  font-size: 17px;
}

@media (min-width: 990px) {
  .hshelf {
    padding-top: 56px;
  }

  .hshelf__text {
    margin-bottom: 28px;
  }

  .hshelf__heading {
    font-size: calc(48px * var(--heading-scale));
  }
}

/* Books standing spine out. */
.spines {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 230px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.spine {
  flex: 0 0 var(--w);
  height: var(--h);
}

.spine a {
  display: block;
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2px 2px 0 0;
  box-shadow:
    inset -3px 0 6px rgba(0, 0, 0, 0.18),
    inset 2px 0 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease;
}

.spine a:hover {
  transform: translateY(-8px);
}

.spine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.spine__title {
  position: absolute;
  top: 10px;
  left: 50%;
  max-height: calc(100% - 20px);
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
}

@media (min-width: 990px) {
  .spines {
    height: 300px;
  }
}

/* ---------- Genre cards ---------- */

.gcards__grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gcard {
  display: grid;
  gap: 14px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.gcard__media {
  display: grid;
  position: relative;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
}

.gcard__cover {
  max-width: 58%;
  max-height: 72%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.22));
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gcard__media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gcard:hover .gcard__media img {
  transform: scale(1.04);
}

.gcard__count {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.gcard__name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
}

@media (min-width: 750px) {
  .gcards__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Band ---------- */

.band {
  overflow: hidden;
  background: var(--band);
  color: var(--on-band);
}

.band__track {
  display: flex;
  width: max-content;
  animation: band 40s linear infinite;
}

.band__run {
  display: flex;
  flex: none;
}

.band__item {
  padding: 6px 0.5em;
  font-family: var(--font-heading);
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes band {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Book card ---------- */

.card {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.card__media {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tile);
}

.card__image-link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12% 18%;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(4px 8px 10px rgba(0, 0, 0, 0.28));
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card__media .placeholder {
  width: 100%;
  height: 100%;
}

/* A thin upright bar at the left: how much stock is left. */
.card__stock {
  display: flex;
  position: absolute;
  top: 40%;
  left: 10px;
  align-items: flex-end;
  width: 3px;
  height: 46px;
  border-radius: 2px;
  background: rgba(127, 127, 127, 0.35);
}

.card__stock span {
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
}

.card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.card__quick {
  display: grid;
  position: absolute;
  top: 10px;
  right: 10px;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--solid);
  color: var(--on-solid);
  cursor: pointer;
}

.card__quick svg {
  width: 15px;
  height: 15px;
}

.card__info {
  display: grid;
  gap: 2px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.card__link {
  color: inherit;
  text-decoration: none;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card__price .price {
  font-size: 14px;
  font-weight: 500;
}

.card .price--on-sale .price__sale,
.product__price .price--on-sale .price__sale {
  color: var(--red);
}

.card__line {
  margin: 2px 0 0;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.4;
}

@media (hover: hover) {
  .card:hover .card__image {
    transform: translateY(-6px);
  }
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 750px) {
  .grid4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 20px;
  }
}

/* ---------- Pill tabs ---------- */

.ptabs__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.pill-tab {
  min-height: 40px;
  padding: 6px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pill-tab.is-active {
  background: var(--solid);
  color: var(--on-solid);
}

.ptabs__panel[hidden] {
  display: none;
}

/* ---------- Shelf panels ---------- */

.spanel-wrap {
  padding: 12px 12px;
}

.spanel {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.spanel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--rule);
}

.spanel__body {
  display: grid;
  gap: 20px;
  padding: 22px 20px 26px;
}

.spanel__photo {
  display: grid;
  place-items: center;
}

.spanel__photo img {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

.spanel__row {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.spanel__row .round-arrows {
  justify-self: end;
}

.spanel__track {
  display: flex;
  position: relative;
  gap: 14px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

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

.spanel__track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.spanel__item {
  flex: 0 0 calc((100% - 14px) / 2);
  scroll-snap-align: start;
}

@media (min-width: 990px) {
  .spanel-wrap {
    padding: 14px 20px;
  }

  .spanel__head {
    padding: 26px 40px;
  }

  .spanel__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 28px 40px 36px;
  }

  .spanel__photo img {
    max-height: 420px;
  }
}

/* ---------- Promises ---------- */

.promises__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 16px;
  margin-top: 0;
  margin-bottom: 0;
  list-style: none;
}

.promise {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.promise svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.1;
}

.promise__title {
  font-size: 17px;
  font-weight: 600;
}

.promise__text {
  max-width: 18em;
  margin: 0;
  color: var(--grey);
  font-size: 14px;
}

@media (min-width: 990px) {
  .promises__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Deals ---------- */

.deals__grid {
  display: grid;
  gap: 28px;
}

.deals__card {
  display: grid;
  position: relative;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #333;
  color: #fff;
}

.deals__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A real shade under the text. */
.deals__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.38);
}

.deals__text {
  display: grid;
  position: relative;
  z-index: 2;
  justify-items: center;
  gap: 16px;
  padding: 30px 20px;
  text-align: center;
}

.deals__heading {
  font-size: calc(34px * var(--heading-scale));
}

.deals__clock {
  display: grid;
  position: relative;
  justify-items: center;
  padding: 20px 20px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
}

.deals__clock[hidden] {
  display: none;
}

.deals__hurry {
  position: absolute;
  top: -11px;
  padding: 1px 8px;
  border-radius: 3px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.deals__cells {
  display: flex;
  gap: 16px;
}

.deals__cells span {
  display: grid;
  justify-items: center;
  font-size: 12px;
}

.deals__cells strong {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.deals .button {
  background: #111;
  color: #fff;
}

.deals__row {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.deals__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (min-width: 990px) {
  .deals__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }

  .deals__card {
    min-height: 460px;
  }

  .deals__heading {
    font-size: calc(42px * var(--heading-scale));
  }
}

/* ---------- Names band ---------- */

.nband {
  overflow: hidden;
  background: #111;
  color: #fff;
}

.nband__track {
  display: flex;
  width: max-content;
  animation: band 45s linear infinite;
}

.nband__run {
  display: flex;
  flex: none;
}

.nband__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}

.nband__item svg {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .band__track,
  .nband__track {
    animation: none;
  }
}

/* ---------- Product page ---------- */

.product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.product__media {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.gallery {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
}

.gallery .trail {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 2;
}

.gallery__track {
  display: flex;
  position: relative;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

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

.gallery__item {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 1;
  scroll-snap-align: start;
}

.gallery__image {
  position: absolute;
  inset: 16% 18% 12%;
  width: 64%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(6px 12px 14px rgba(0, 0, 0, 0.3));
}

.thumbs {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.thumbs__item {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 6px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}

.thumbs__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumbs__item.is-active {
  border-color: var(--ink);
}

.product__form {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.product__form > * {
  width: 100%;
}

.product__type {
  width: auto !important;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 600;
}

.product__title {
  font-size: calc(30px * var(--heading-scale));
  font-weight: 600;
}

.product__vendor {
  margin: -8px 0 0;
  color: var(--grey);
  font-size: 14px;
}

.product__price .price {
  font-size: 20px;
  font-weight: 600;
}

.product__note {
  margin: -8px 0 0;
  color: var(--grey);
  font-size: 13px;
}

.stock {
  display: grid;
  gap: 8px;
}

.stock__text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.stock__dot {
  display: none;
}

.stock__bar {
  display: block;
  width: min(260px, 100%);
  height: 3px;
  border-radius: 2px;
  background: var(--rule);
}

.stock__fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--ink);
}

.product__summary {
  margin: 0;
  color: var(--grey);
  font-size: 14px;
}

.picker {
  display: grid;
  gap: 14px;
}

.picker__group {
  margin: 0;
  padding: 0;
  border: 0;
}

.picker__legend {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.picker__values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.picker__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 4px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}

.picker__input:checked + .picker__box {
  border-color: var(--solid);
  background: var(--solid);
  color: var(--on-solid);
}

.picker__swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--swatch, #888);
  box-shadow:
    0 0 0 3px var(--page),
    0 0 0 4px var(--rule);
  cursor: pointer;
}

.picker__input:checked + .picker__swatch {
  box-shadow:
    0 0 0 3px var(--page),
    0 0 0 5px var(--ink);
}

.picker__input:focus-visible + label {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.is-unavailable {
  opacity: 0.45;
  text-decoration: line-through;
}

.buy {
  display: grid;
  gap: 8px;
}

.buy__row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px;
}

.buy .quantity {
  justify-content: space-between;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
}

.buy .quantity__button,
.buy .quantity__input {
  color: var(--ink);
}

.buy__now {
  width: 100%;
}

.buy__error {
  margin: 0;
  color: var(--red);
  font-size: 14px;
}

.buy__error[hidden] {
  display: none;
}

.product__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.product__cards li {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-size: 13px;
}

html[data-mode="dark"] .product__cards li {
  background: var(--card);
}

.product__cards svg {
  flex: none;
  width: 24px;
  height: 24px;
}

.product__cards strong {
  display: block;
  font-size: 14px;
}

.share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}

.share svg {
  width: 15px;
  height: 15px;
}

.folds {
  margin-top: 18px;
}

.fold {
  border-bottom: 1px solid var(--rule);
}

.fold__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.fold__title::-webkit-details-marker {
  display: none;
}

.fold__mark {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
}

.fold__mark::before,
.fold__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}

.fold__mark::after {
  transform: rotate(90deg);
  transition: transform 0.25s ease;
}

.fold[open] .fold__mark::after {
  transform: rotate(0deg);
}

.fold__body {
  padding: 0 0 18px;
  color: var(--grey);
  font-size: 14px;
}

@media (min-width: 990px) {
  .product__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .product__media {
    position: sticky;
    top: 130px;
  }

  .product__title {
    font-size: calc(34px * var(--heading-scale));
  }
}

/* ---------- Collection page ---------- */

.cbanner {
  display: grid;
  position: relative;
  align-items: end;
  min-height: 240px;
  overflow: hidden;
  background: #444;
  color: #fff;
}

.cbanner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cbanner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15) 70%);
}

.cbanner__text {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 36px;
}

.cbanner .trail {
  margin-bottom: 12px;
}

.cbanner__title {
  font-size: calc(38px * var(--heading-scale));
  text-transform: uppercase;
}

.collection {
  padding-top: 28px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.toolbar__links {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.toolbar__links a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.toolbar__links a[aria-current] {
  background: var(--solid);
  color: var(--on-solid);
}

.toolbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.toolbar__count {
  margin: 0;
  color: var(--grey);
  font-size: 13px;
}

.toolbar__sort select {
  min-height: 40px;
  padding: 0 30px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.toolbar__sort option {
  background: var(--page);
  color: var(--ink);
}

.empty {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 60px 0;
  text-align: center;
}

@media (min-width: 990px) {
  .cbanner {
    min-height: 380px;
  }

  .cbanner__title {
    font-size: calc(54px * var(--heading-scale));
  }

  .cbanner__text {
    padding-bottom: 52px;
  }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--panel);
  color: var(--ink);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}

.footer__line {
  max-width: 14em;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.footer__social {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__social a {
  color: var(--ink);
}

.footer__social svg {
  width: 17px;
  height: 17px;
}

.footer__mid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
  padding: 30px 0;
}

.footer__brand {
  display: grid;
  grid-column: 1 / -1;
  align-content: start;
  gap: 4px;
  font-size: 13px;
}

.footer__brand a {
  color: inherit;
  text-decoration: none;
}

.footer__name {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.footer__bold {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__bold a {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.footer__heading {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.footer__col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.footer__col a:hover,
.footer__bold a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 28px;
  font-size: 13px;
}

.footer__bottom p {
  margin: 0;
}

.footer__language .language-toggle {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}

.footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__payments li {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--page);
  font-size: 13px;
}

.footer .spines {
  height: 160px;
}

@media (min-width: 990px) {
  .footer__mid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer .spines {
    height: 200px;
  }
}

/* ---------- Buy bar ---------- */

.stickybar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 26;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  background: var(--page);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.stickybar.is-shown {
  transform: none;
}

.stickybar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stickybar__photo {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 5px;
  border-radius: 10px;
  background: var(--panel);
}

.stickybar__photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.stickybar__text {
  display: grid;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
}

.stickybar__title {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stickybar__price .price {
  font-size: 14px;
}

/* ---------- Finishing ---------- */

/* Drawers, the quick-buy sheet and cart lines follow the mode. */
.drawer__panel,
.sheet__panel {
  background: var(--page);
  color: var(--ink);
}

.drawer__header,
.menu-drawer__link,
.line {
  border-bottom-color: var(--rule);
}

.summary__note,
.line__media {
  background: var(--panel);
}

.drawer .button,
.sheet .button {
  border-radius: 999px;
}

::selection {
  background: var(--ink);
  color: var(--page);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

body,
.header,
.footer,
.card__media,
.spanel,
.gcard__media {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.price__sale {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .card__image,
  .spine a,
  .stickybar {
    transition: none;
  }
}
