.home-shelves {
  border-bottom: 8px solid var(--paper);
  background: var(--white);
}

.merch-shelf {
  border-top: 8px solid var(--paper);
}

.merch-shelf[data-accent="green"] {
  --tile: #43d76e;
  --tile-sub: #e3f8df;
  --tile-ink: #072814;
}

.merch-shelf[data-accent="blue"] {
  --tile: #14a8e3;
  --tile-sub: #def3fa;
  --tile-ink: #072c40;
}

.merch-shelf[data-accent="gold"] {
  --tile: #ffca32;
  --tile-sub: #fff0c6;
  --tile-ink: #2b2309;
}

.merch-row {
  display: grid;
  grid-template-columns: minmax(265px, 0.85fr) minmax(0, 1.4fr);
  align-items: stretch;
  gap: clamp(20px, 3vw, 42px);
  padding-block: clamp(22px, 3vw, 39px);
}

.merch-display {
  display: grid;
  min-width: 0;
}

.merch-display.has-category-links {
  grid-template-columns: minmax(0, 1.7fr) minmax(92px, 1fr);
  gap: 8px;
}

.merch-feature {
  display: grid;
  min-width: 0;
  min-height: 245px;
  grid-template-rows: auto 1fr auto;
  justify-items: start;
  gap: 8px;
  padding: clamp(12px, 1.5vw, 20px);
  background: var(--tile);
  color: var(--tile-ink);
}

.merch-feature-title {
  max-width: 12ch;
  font-size: clamp(1.3rem, 2.05vw, 1.85rem);
  font-weight: 800;
  line-height: 1.02;
}

.merch-feature-photo,
.merch-category-photo {
  display: grid;
  width: 100%;
  min-height: 0;
  place-items: center;
  mix-blend-mode: multiply;
}

.merch-feature-photo img {
  width: 100%;
  height: 100%;
  max-height: 140px;
  object-fit: contain;
}

.merch-shelf[data-accent="blue"] .merch-feature-photo {
  background: #d2f2ff;
  mix-blend-mode: normal;
}

.merch-shelf[data-accent="blue"] .merch-feature-photo img {
  mix-blend-mode: multiply;
}

.merch-feature-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--tile-ink);
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.merch-feature-action .icon {
  width: 13px;
  height: 13px;
}

.merch-feature:hover .merch-feature-action {
  background: var(--tile-ink);
  color: var(--white);
}

.merch-category-links {
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
}

.merch-category-links a {
  display: grid;
  min-width: 0;
  grid-template-rows: 1fr auto;
  gap: 6px;
  padding: 9px 7px;
  background: var(--tile-sub);
  color: var(--tile-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.merch-category-links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.merch-category-photo img {
  width: 100%;
  height: 100%;
  max-height: 85px;
  object-fit: contain;
}

.merch-category-links a > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.merch-assortment {
  min-width: 0;
}

.merch-assortment h2 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
}

.merch-assortment .merch-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.8vw, 24px);
}

.merch-assortment .merch-cards[data-item-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.merch-cards[data-item-count="1"] > .card {
  max-width: 240px;
}

.merch-cards > .card {
  border: 0;
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
}

.merch-cards .card-top {
  inset: 2px 0 auto;
}

.merch-cards .card-image {
  height: clamp(120px, 15vw, 176px);
  padding: 9px 14px 0;
}

.merch-cards .card-body {
  padding: 8px 0 0;
}

.merch-cards .card-add {
  flex: none;
}

.merch-cards .card-buy strong {
  font-size: clamp(1.06rem, 1.9vw, 1.55rem);
}

.merch-cards .card:has(.discount) .card-buy strong {
  color: var(--price, #ba221b);
}

@media (max-width: 720px) {
  .merch-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .merch-display.has-category-links {
    grid-template-columns: minmax(0, 1.35fr) minmax(89px, 1fr);
  }

  .merch-feature {
    min-height: 174px;
  }

  .merch-feature-photo img {
    max-height: 110px;
  }

  .merch-category-photo img {
    max-height: 58px;
  }
}

@media (max-width: 435px) {
  .merch-assortment .merch-cards[data-item-count="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 17px;
  }

  .merch-cards .card-image {
    padding-inline: 4px;
  }
}
