.shop.subpage { padding-block: clamp(30px, 5vw, 64px); }

.shop-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-bottom: 24px;
}

.shop-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  text-decoration: underline;
  text-decoration-color: var(--yh-line-strong, #a7a39e);
  text-underline-offset: .28em;
}

.shop-link:hover { color: var(--yh-red); text-decoration-color: currentColor; }

.shop-products, .shop-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
}

.shop-product {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.shop-product__photo {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--yh-dark);
}

.shop-product__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  transition: transform .24s ease-out;
}

.shop-product:has(.shop-product__action:is(:hover, :focus-visible)) img { transform: scale(1.025); }

.shop-product__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 18px;
}

.shop-product h2, .shop-details h2 { margin: 0; font-size: clamp(19px, 2.15vw, 28px); }
.shop-product__title p { margin: 0; white-space: nowrap; }
.shop-product__title strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.shop-product__title span { margin-inline-start: 8px; color: var(--muted); font-size: 13px; }

.shop-product__description {
  margin: 8px 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.shop-product__action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  padding: 8px 20px;
}

.shop-details { margin-top: clamp(28px, 5vw, 56px); }
.shop-details h2 { font-size: 20px; }
.shop-market ul { list-style: none; margin: 8px 0 0; padding: 0; }
.shop-market li + li { border-top: 1px solid var(--line); }
.shop-market .shop-link span { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.shop .shop-support { margin: 0; border: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  .shop-products[data-enter] { animation: shop-enter .4s ease-out both; }
  @keyframes shop-enter {
    from { opacity: .75; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 680px) {
  .shop-products, .shop-details { grid-template-columns: 1fr; }
  .shop-product__photo { aspect-ratio: 4 / 3; }
  .shop-product__action { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-product__photo img { transition: none; }
  .shop-product:has(.shop-product__action:is(:hover, :focus-visible)) img { transform: none; }
}
