/* Retro Junkie Media — merchandising product galleries */

.rjm-products {
  --rjm-pg-text: var(--rjm-text, #1a1224);
  --rjm-pg-muted: var(--rjm-mute, #6b5a7a);
  --rjm-pg-card: var(--rjm-card, #f4eef8);
  --rjm-pg-line: var(--rjm-line, #d8cce4);
  --rjm-pg-accent: var(--rjm-pink, #111111);
  --rjm-pg-night: var(--rjm-night, #ffffff);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  color: var(--rjm-pg-text);
}

.rjm-products__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.rjm-products__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.rjm-products__more {
  color: var(--rjm-cyan, #0aa);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.rjm-products__more:hover {
  text-decoration: underline;
}

.rjm-products__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rjm-product-card {
  box-sizing: border-box;
  background: var(--rjm-pg-card);
  border: 1px solid var(--rjm-pg-line);
  border-radius: 16px;
  padding: 0.75rem;
  min-width: 0;
}

.rjm-product-card__image {
  display: block;
  background: var(--rjm-pg-night);
  border-radius: 12px;
  overflow: hidden;
}

.rjm-product-card__image img,
.rjm-product-card__img {
  display: block;
  width: 100%;
  height: auto;
}

.rjm-product-card__category {
  margin: 0.45rem 0 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--rjm-pg-muted);
}

.rjm-product-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.rjm-product-card__price {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.rjm-product-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  min-height: 2.75rem;
  text-decoration: none;
}

.rjm-products--rail .rjm-products__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rjm-products--rail .rjm-product-card {
  flex: 0 0 10.5rem;
  width: 10.5rem;
}

.rjm-products--grid .rjm-products__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.85rem;
}

.rjm-products--vertical .rjm-products__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rjm-products--vertical .rjm-product-card {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr) 2.75rem;
  grid-template-rows: auto auto 1fr;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  align-items: start;
}

.rjm-products--vertical .rjm-product-card__image {
  grid-column: 1;
  grid-row: 1 / -1;
}

.rjm-products--vertical .rjm-product-card__image img,
.rjm-products--vertical .rjm-product-card__img {
  width: 6.75rem;
  height: 6.75rem;
  object-fit: contain;
}

.rjm-products--vertical .rjm-product-card__category {
  grid-column: 2 / -1;
  grid-row: 1;
  margin: 0;
}

.rjm-products--vertical .rjm-product-card__title {
  grid-column: 2 / -1;
  grid-row: 2;
}

.rjm-products--vertical .rjm-product-card__price {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  margin: 0.25rem 0 0;
}

.rjm-products--vertical .rjm-product-card__action {
  grid-column: 3;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  width: 2.75rem;
  min-width: 2.75rem;
  max-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-indent: -999px;
  border-radius: 999px;
}

.rjm-products.is-loading {
  opacity: 0.55;
}

.rjm-products .rj-text-italic,
.rj-rail .rj-text-italic {
  font-style: italic;
}

.rjm-products .rj-text-normal,
.rj-rail .rj-text-normal {
  font-style: normal;
}

.rjm-products .rj-text-bold,
.rj-rail .rj-text-bold {
  font-weight: 700;
}

.rjm-products .rj-text-regular,
.rj-rail .rj-text-regular {
  font-weight: 400;
}

.rjm-products .rj-text-size-s,
.rj-rail .rj-text-size-s {
  font-size: 0.875rem;
}

.rjm-products .rj-text-size-m,
.rj-rail .rj-text-size-m {
  font-size: 1rem;
}

.rjm-products .rj-text-size-l,
.rj-rail .rj-text-size-l {
  font-size: 1.15rem;
}

.rjm-products .rj-text-size-xl,
.rj-rail .rj-text-size-xl {
  font-size: 1.75rem;
}

.rj-rail .woocommerce-loop-product__title {
  font-style: var(--rjm-pg-title-style, inherit);
  font-weight: var(--rjm-pg-title-weight, inherit);
  font-size: var(--rjm-pg-title-size, inherit);
  color: var(--rjm-pg-title-color, inherit);
}

.rj-rail .price {
  font-style: var(--rjm-pg-price-style, inherit);
  font-weight: var(--rjm-pg-price-weight, inherit);
  font-size: var(--rjm-pg-price-size, inherit);
  color: var(--rjm-pg-price-color, inherit);
}

.rj-rail a.button,
.rj-rail a.add_to_cart_button {
  font-style: var(--rjm-pg-button-style, inherit);
  font-weight: var(--rjm-pg-button-weight, inherit);
  font-size: var(--rjm-pg-button-size, inherit);
  color: var(--rjm-pg-button-color, inherit);
}

.rjm-pg-preview-stage {
  --rjm-night: #160824;
  --rjm-wall: #1e0d32;
  --rjm-card: #241338;
  --rjm-text: #f6f3ff;
  --rjm-mute: #cbbbe0;
  --rjm-pink: #ff3cac;
  --rjm-cyan: #22e0ff;
  --rjm-line: #4b2a73;
  max-width: 28rem;
  margin: 0.5rem 0 0;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--rjm-night);
  border: 1px solid var(--rjm-line);
  border-radius: 12px;
  color: var(--rjm-text);
}

.rjm-pg-preview-note {
  max-width: 28rem;
}
