.rr-merch {
  max-width: 1240px;
  margin: 32px auto;
  padding: 0 20px;
}
.rr-merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 20px;
}
.rr-merch-card {
  min-width: 0;
  padding: 18px;
  background: #fff0f7;
  border-radius: 20px;
}
.rr-merch-photo {
  display: block;
  width: 100%;
  height: auto;
  background: #fbf8fa;
  border-radius: 14px;
}
.rr-merch-views {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.rr-merch-views button {
  background: white;
  color: #80134c;
  border: 1px solid #c595a9;
  border-radius: 18px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}
.rr-merch-views button[aria-pressed="true"] {
  background: #f6d6e6;
  border-color: #9b165b;
  font-weight: 700;
}
.rr-merch-views button:focus-visible { outline: 2px solid #9b165b; outline-offset: 2px; }
.rr-merch-colors {
  border: 0;
  margin: 16px 0;
  padding: 0;
  min-width: 0;
}
.rr-merch-colors legend { font-weight: 700; padding: 0 0 6px; }
.rr-merch-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.rr-merch-swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 5px 9px;
  border-radius: 20px;
  border: 1px solid #c595a9;
  background: white;
  cursor: pointer;
}
.rr-merch-swatch:has(:checked) { border-color: #9b165b; box-shadow: inset 0 0 0 1px #9b165b; }
.rr-merch-swatch:has(:focus-visible) { outline: 2px solid #9b165b; outline-offset: 2px; }
.rr-merch-swatch input { position: absolute; opacity: 0; }
.rr-merch-swatch i {
  background: var(--swatch);
  width: 15px;
  height: 15px;
  border: 1px solid #765b6955;
  border-radius: 50%;
}
.rr-merch-size { display: block; min-width: 110px; margin-top: 4px; padding: 8px; border-radius: 8px; }
.rr-merch-enlarge {
  display: block;
  margin: 6px auto 0;
  background: transparent;
  color: #80134c;
  border: 0;
  padding: 8px;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.rr-merch-zoom {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 18px;
  background: #fff8fc;
  color: #482636;
  border: 1px solid #c595a9;
  border-radius: 20px;
}
.rr-merch-zoom::backdrop { background: #291622a8; }
.rr-merch-zoom-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.rr-merch-zoom-header h2 { margin: 0 0 12px; font-size: clamp(18px, 4vw, 24px); }
.rr-merch-zoom-header button { padding: 7px; cursor: pointer; }
.rr-merch-crop {
  position: relative;
  aspect-ratio: 1.58;
  overflow: hidden;
  border-radius: 14px;
  background: #fbf8fa;
}
.rr-merch-crop img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 210%;
  height: auto;
  max-width: none;
  transform: translate(-50%, var(--print-y));
}
