.shop-page {
  --page: min(1340px, calc(100vw - 120px));
  background: #000;
}

.shop-page .site-header {
  background: #000;
  min-height: 116px;
  position: relative;
}

.shop-page .cart-link {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.shop-page main {
  background: #000;
}

.shop-intro {
  height: 1090px;
  padding: 0;
  position: relative;
  text-align: center;
}

.shop-intro h1,
.product-heading h1,
.license-heading h2,
.related-heading h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.shop-title-art {
  height: auto;
  left: 50%;
  margin: 0;
  position: absolute;
  top: 40px;
  transform: translateX(-50%);
  width: clamp(220px, 28vw, 390px);
  z-index: 1;
}

.shop-intro-art {
  height: auto;
  left: 50%;
  max-width: none;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: min(90vw, 1707px);
}

.shop-intro p {
  font-family: var(--serif);
  font-size: clamp(12px, 1.02vw, 15px);
  left: 50%;
  line-height: 1.7;
  margin: 0;
  max-width: 780px;
  position: absolute;
  top: 760px;
  transform: translateX(-50%);
  width: min(780px, calc(100vw - 40px));
}

.beat-catalogue {
  padding-bottom: clamp(110px, 12vw, 180px);
}

.beat-grid,
.related-grid {
  display: grid;
  gap: clamp(72px, 8vw, 118px) clamp(30px, 4vw, 64px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.beat-card {
  min-width: 0;
}

.beat-cover {
  aspect-ratio: 1;
  background: #101010;
  overflow: hidden;
  position: relative;
}

.beat-cover > a,
.beat-cover img {
  height: 100%;
  width: 100%;
}

.beat-cover > a {
  display: block;
}

.beat-cover img {
  object-fit: cover;
  transition: transform 300ms ease;
}

.beat-cover > a:hover img,
.beat-cover > a:focus-visible img {
  transform: scale(1.015);
}

.play-button,
.detail-play {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  justify-content: center;
}

.play-button {
  bottom: 10px;
  height: 44px;
  left: 8px;
  position: absolute;
  width: 44px;
  z-index: 2;
}

.play-button span,
.detail-play span {
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
  border-top: 8px solid transparent;
  display: block;
  height: 0;
  margin-left: 3px;
  width: 0;
}

.play-button.is-playing span,
.detail-play.is-playing span {
  border: 0;
  height: 16px;
  margin-left: 0;
  position: relative;
  width: 12px;
}

.play-button.is-playing span::before,
.play-button.is-playing span::after,
.detail-play.is-playing span::before,
.detail-play.is-playing span::after {
  background: currentColor;
  content: "";
  height: 16px;
  position: absolute;
  top: 0;
  width: 3px;
}

.play-button.is-playing span::before,
.detail-play.is-playing span::before {
  left: 1px;
}

.play-button.is-playing span::after,
.detail-play.is-playing span::after {
  right: 1px;
}

.beat-card-body {
  padding-top: 18px;
}

.beat-byline {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
}

.beat-meta h2,
.beat-meta h3,
.beat-meta p,
.beat-byline span {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.beat-meta h2,
.beat-meta h3 {
  font-size: 12px;
  font-weight: 700;
}

.beat-meta .beat-price {
  font-weight: 700;
  margin-top: 2px;
}

.beat-card-body .info-button {
  margin-top: 36px;
  min-width: 168px;
}

.info-button,
.light-button {
  align-items: center;
  background: var(--paper);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  min-height: 40px;
  padding: 9px 30px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.info-button:hover,
.info-button:focus-visible,
.light-button:hover,
.light-button:focus-visible {
  background: #fff;
  transform: translateY(-1px);
}

.catalogue-status,
.product-status {
  color: var(--muted);
  font-size: 11px;
  min-height: 18px;
}

.catalogue-status {
  margin: 44px 0 0;
  text-align: center;
}

.product-detail {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  padding: clamp(110px, 12vw, 230px) 0 clamp(118px, 12vw, 190px);
}

.product-player,
.product-copy {
  min-width: 0;
}

.product-cover {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.product-cover > img:first-child {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.audio-control {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 44px 1fr auto;
  padding-top: 18px;
}

.detail-play {
  height: 44px;
  width: 44px;
}

.audio-progress {
  accent-color: var(--paper);
  cursor: pointer;
  width: 100%;
}

.audio-progress:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.track-duration {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.player-logo {
  height: auto;
  margin-top: 32px;
  width: 132px;
}

.player-actions {
  font-size: 15px;
  margin-top: 20px;
}

.player-actions a::before,
.player-actions button::before {
  content: "↓";
  display: inline-block;
  font-size: 24px;
  margin-right: 10px;
  transform: translateY(2px);
}

.player-actions a,
.player-actions button {
  text-decoration: none;
}

.product-heading h1 span {
  font: inherit;
}

.license-options {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.license-column {
  min-width: 0;
}

.license-card {
  background: #20201d;
  border: 2px solid var(--paper);
  border-radius: 14px;
  min-height: 150px;
  padding: 20px;
  transition: border-color 160ms ease;
}

.license-column.is-selected .license-card,
.license-column:focus-within .license-card {
  border-color: #00a65a;
}

.license-card h3,
.license-card p,
.license-card span {
  margin: 0;
}

.license-card h3 {
  font-size: 16px;
  font-weight: 500;
}

.license-card p {
  font-size: 14px;
  margin-top: 12px;
}

.license-card span {
  color: var(--paper);
  display: block;
  font-size: 13px;
  margin-top: 12px;
}

.license-column .light-button {
  margin-top: 24px;
  width: 100%;
}

.license-cart-form {
  margin: 24px 0 0;
}

.license-cart-form .light-button {
  margin-top: 0;
}

.license-column h4 {
  font-size: 12px;
  font-weight: 500;
  margin: 26px 0 14px;
}

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

.license-column li {
  font-size: 10px;
  line-height: 1.35;
  padding-left: 18px;
  position: relative;
}

.license-column li + li {
  margin-top: 10px;
}

.license-column li::before {
  content: "✓";
  left: 0;
  position: absolute;
}

.license-column:first-child li::before {
  content: "◇";
}

.audio-time {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.player-actions a,
.player-actions button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 8px 0;
  text-decoration: none;
}

.product-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.product-heading h1 {
  font-size: clamp(21px, 2.1vw, 30px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.license-heading {
  margin: 42px 0 24px;
}

.license-heading h2 {
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1;
  margin: 0 0 10px;
}

.license-heading p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  margin: 0;
  max-width: 430px;
}

.product-status {
  margin: 14px 0 0;
}

.related {
  padding-bottom: clamp(130px, 14vw, 210px);
}

.related-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 42px;
}

.related-heading h2 {
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1;
  margin: 0;
}

.related-heading a {
  font-size: 11px;
  text-decoration: none;
}

.shop-footer {
  margin-top: 0;
}

.auth-dialog {
  background: var(--paper);
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  max-width: min(470px, calc(100vw - 40px));
  padding: 42px;
  width: 100%;
}

.auth-dialog::backdrop {
  background: rgb(0 0 0 / 78%);
}

.auth-dialog .dialog-close {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 8px;
  position: absolute;
  right: 14px;
  top: 10px;
}

.dialog-eyebrow {
  font-size: 10px;
  letter-spacing: .12em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.auth-dialog h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.auth-dialog > p:not(.dialog-eyebrow) {
  font-size: 12px;
  line-height: 1.65;
  margin: 20px 0 28px;
}

.auth-dialog .light-button {
  background: var(--ink);
  color: var(--paper);
}

.dialog-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.dialog-secondary {
  color: var(--ink);
  font-size: 11px;
}

.cart-main {
  min-height: 760px;
  padding: clamp(170px, 14vw, 240px) 0 clamp(120px, 12vw, 190px);
}

.cart-shell {
  max-width: 1480px;
}

.cart-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 42px;
  padding-bottom: 28px;
}

.cart-heading h1,
.cart-summary h2,
.cart-empty h2,
.checkout-result h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.cart-heading h1 {
  font-size: clamp(52px, 6vw, 86px);
  line-height: 1;
  margin: 0;
}

.cart-notice {
  border: 1px solid var(--line);
  font-size: 11px;
  margin: 0 0 28px;
  padding: 14px 16px;
}

.cart-notice--error {
  border-color: #8f4f4a;
}

.cart-layout {
  display: grid;
  gap: clamp(44px, 5vw, 76px);
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, .75fr);
}

.cart-products {
  min-width: 0;
}

.cart-products-heading,
.cart-item {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(250px, 1.45fr) minmax(130px, .72fr) minmax(100px, .55fr) 80px;
}

.cart-products-heading {
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  padding: 0 0 15px;
}

.cart-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.cart-item-product {
  align-items: center;
  display: flex;
  gap: 28px;
}

.cart-item-cover {
  flex: 0 0 auto;
  text-decoration: none;
}

.cart-item-cover img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 150px;
}

.cart-item h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}

.cart-item h2 a {
  text-decoration: none;
}

.cart-item p,
.cart-item strong {
  font-size: 11px;
  font-weight: 400;
  margin: 0;
}

.cart-item form button {
  background: transparent;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  font-size: 10px;
  padding: 10px 0;
  text-decoration: underline;
}

.cart-summary {
  border-left: 1px solid var(--line);
  padding-left: clamp(34px, 4vw, 58px);
}

.cart-summary h2 {
  border-bottom: 1px solid var(--line);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1;
  margin: 0 0 10px;
  padding-bottom: 20px;
}

.cart-summary dl,
.checkout-result dl {
  margin: 0;
}

.cart-summary dl > div,
.checkout-result dl > div {
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  padding: 14px 0;
}

.cart-summary dt,
.cart-summary dd,
.checkout-result dt,
.checkout-result dd {
  margin: 0;
}

.cart-total {
  border-top: 1px solid var(--line);
  font-weight: 500;
  margin-top: 4px;
  padding-top: 20px !important;
}

.cart-checkout {
  margin-top: 30px;
  width: 100%;
}

.cart-checkout:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.cart-summary > p {
  font-size: 10px;
  line-height: 1.55;
  margin: 14px 0 0;
  text-align: center;
}

.cart-summary .cart-payment-state {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 28px;
  padding: 20px 0 0;
  text-align: left;
}

.cart-summary small {
  color: var(--muted);
  display: block;
  font-size: 9px;
  margin-top: 10px;
}

.cart-empty {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 48px 0;
}

.cart-empty h2 {
  font-size: clamp(32px, 4vw, 54px);
  margin: 0;
}

.cart-empty p {
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0 30px;
}

.checkout-result {
  max-width: 780px;
}

.checkout-result h1 {
  border-bottom: 1px solid var(--line);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.08;
  margin: 0 0 26px;
  padding-bottom: 26px;
}

.checkout-result > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.checkout-result dl {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 8px 0;
}

.checkout-result-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
}

.checkout-result-actions > a:not(.light-button) {
  font-size: 11px;
}

@media (max-width: 1100px) {
  .cart-layout {
    display: block;
  }

  .cart-summary {
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 58px;
    padding: 42px 0 0;
  }
}

@media (max-width: 820px) {
  .shop-page {
    --page: min(100% - 40px, 620px);
  }

  .shop-page .site-header {
    min-height: 88px;
  }

  .shop-intro {
    height: auto;
    padding: 76px 0 120px;
  }

  .shop-title-art {
    left: auto;
    margin: 0 auto 34px;
    position: static;
    transform: none;
  }

  .shop-intro-art {
    left: auto;
    margin: 0 auto;
    max-width: 100%;
    position: static;
    transform: none;
    width: min(88vw, 620px);
  }

  .shop-intro p {
    font-size: 14px;
    left: auto;
    line-height: 1.75;
    margin-top: 64px;
    max-width: none;
    position: static;
    text-align: left;
    transform: none;
    width: auto;
  }

  .beat-grid,
  .related-grid {
    gap: 92px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail {
    display: block;
    padding-top: 58px;
  }

  .product-player {
    margin: 0 auto;
    max-width: 560px;
  }

  .product-copy {
    margin-top: 80px;
  }

  .product-heading h1 {
    font-size: 28px;
  }

  .related-grid .beat-card:nth-child(3) {
    display: none;
  }

  .cart-main {
    padding-top: 140px;
  }
}

@media (max-width: 560px) {
  .shop-title-art {
    width: 260px;
  }

  .beat-grid,
  .related-grid {
    display: block;
  }

  .beat-card + .beat-card {
    margin-top: 96px;
  }

  .beat-card-body {
    padding-top: 16px;
  }

  .info-button {
    min-height: 44px;
    padding-inline: 32px;
  }

  .product-detail {
    padding-bottom: 130px;
  }

  .product-copy {
    margin-top: 68px;
  }

  .product-heading h1 {
    font-size: 24px;
  }

  .license-options {
    display: block;
  }

  .license-column + .license-column {
    margin-top: 54px;
  }

  .license-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .related-heading {
    align-items: flex-start;
    gap: 20px;
  }

  .related-heading h2 {
    max-width: 220px;
  }

  .related-grid .beat-card:nth-child(3) {
    display: block;
  }

  .auth-dialog {
    padding: 38px 24px 28px;
  }

  .cart-main {
    padding-top: 126px;
  }

  .cart-heading {
    margin-bottom: 28px;
  }

  .cart-heading h1 {
    font-size: 48px;
  }

  .cart-products-heading {
    display: none;
  }

  .cart-item {
    align-items: start;
    display: grid;
    gap: 8px 18px;
    grid-template-columns: 112px 1fr;
    padding: 18px 0 26px;
  }

  .cart-item-product {
    display: contents;
  }

  .cart-item-cover {
    grid-row: 1 / span 4;
  }

  .cart-item-cover img {
    width: 112px;
  }

  .cart-item h2 {
    font-size: 18px;
    grid-column: 2;
    margin: 2px 0 0;
  }

  .cart-item p,
  .cart-item strong,
  .cart-item form {
    grid-column: 2;
    display: block;
    margin: 0;
  }

  .cart-summary {
    margin-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beat-cover img,
  .info-button,
  .light-button {
    transition: none;
  }
}
