.sunday-merch {
  background: var(--ss-color-bg);
  padding-block: var(--ss-space-8);
  font-family: var(--ss-font-body);
}

.sunday-merch__head {
  padding-bottom: var(--ss-space-5);
}

.sunday-merch__title {
  margin: 0;
  color: var(--ss-green);
  font-family: var(--ss-font-body);
  font-weight: var(--ss-font-weight-bold);
  text-align: center;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.05;
}

.sunday-merch__rule {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 2px solid var(--ss-green);
}

.sunday-merch__rule--bottom {
  margin-bottom: 0;
}

.sunday-merch__grid {
  display: grid;
  grid-template-columns: repeat(
    var(--sunday-merch-desktop-columns, 6),
    minmax(0, 1fr)
  );
  gap: 6px;
  padding-block: var(--ss-space-5) var(--ss-space-4);
}

.sunday-merch-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sunday-merch-item__link {
  display: flex;
  flex-direction: column;
  gap: var(--ss-space-2);
  color: var(--ss-color-text);
  text-decoration: none;
}

.sunday-merch-item__link:hover .sunday-merch-item__name {
  opacity: 0.7;
}

.sunday-merch-item__thumb {
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--ss-white);
}

.sunday-merch-item__thumb img,
.sunday-merch-item__thumb svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sunday-merch-item__meta {
  display: flex;
  align-items: baseline;
  gap: var(--ss-space-2);
  min-width: 0;
  padding-inline: 2px;
  flex-direction: column;
}

.sunday-merch-item__price {
  flex: none;
  font-family: var(--ss-font-body);
  font-size: var(--ss-font-size-sm);
  font-weight: var(--ss-font-weight-bold);
  line-height: 1.2;
  color: var(--ss-color-text);
}

.sunday-merch-item__price.product-price {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.sunday-merch-item__price .product-price__item--compare {
  display: none;
}

.sunday-merch-item__name {
  flex: 1;
  min-width: 0;
  font-family: var(--ss-font-body);
  font-size: var(--ss-font-size-xs);
  font-weight: var(--ss-font-weight-regular);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sunday-merch__foot {
  display: flex;
  justify-content: center;
  padding-block: var(--ss-space-5) var(--ss-space-2);
}

.sunday-merch__btn.ss-btn {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  padding: calc(var(--ss-space-3) + 0.07em) var(--ss-space-4)
    calc(var(--ss-space-3) - 0.07em);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  border-radius: 0;
}

.sunday-merch__btn.ss-btn:hover {
  transform: none;
  filter: brightness(1.06);
}

.sunday-merch__btn .ss-btn__label {
  flex: none;
  /* The display font's caps sit high in the line box (empty descender space
     below), so nudge the label down to its optical center. */
  transform: translateY(0.05em);
}

.sunday-merch__btn .ss-arrow {
  flex: none;
  width: 1.1em;
  height: 0.72em;
  margin-inline-start: var(--ss-space-5);
  /* Pull the arrow up to match the caps' optical center (the line box centers
     it too low because of the font's empty bottom space). */
  transform: translateY(-0.05em);
}

@media (max-width: 1100px) {
  .sunday-merch__grid {
    grid-template-columns: repeat(
      var(--sunday-merch-tablet-columns, 3),
      minmax(0, 1fr)
    );
  }
}

@media (max-width: 560px) {
  .sunday-merch__grid {
    grid-template-columns: repeat(
      var(--sunday-merch-mobile-columns, 2),
      minmax(0, 1fr)
    );
    gap: 8px;
  }

  .sunday-merch-item__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}
