.richards-catalog-page .shop-card-photo img,
.richards-woo-content .shop-related .shop-card-photo img {
  height: 100%;
  width: 100%;
}

.richards-catalog-page .shop-card-title,
.richards-woo-content .shop-related .shop-card-title {
  text-decoration: none;
}

.richards-catalog-page .shop-card-title:not(:has(+ .shop-card-spec)),
.richards-woo-content .shop-related .shop-card-title:not(:has(+ .shop-card-spec)) {
  margin-bottom: 25px;
}

.richards-catalog-page .shop-card-bottom strong,
.richards-woo-content .shop-related .shop-card-bottom strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

.richards-catalog-page .shop-card-bottom > a:hover,
.richards-catalog-page .shop-card-actions .added_to_cart:hover,
.richards-woo-content .shop-related .shop-card-bottom > a:hover {
  color: #b92c2f;
}

.richards-catalog-page .shop-card-actions {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.richards-catalog-page .shop-card-actions .added_to_cart {
  color: #383838;
  font-size: 10px;
  padding: 0;
  white-space: nowrap;
}

.richards-catalog-page .shop-card-actions > .added_to_cart[hidden] {
  display: none;
}

.richards-catalog-page .richards-card-add-to-cart {
  align-items: center;
  background-color: var(--red-surface);
  color: #fff;
  display: inline-flex;
  font: 600 11px/1.2 'DM Sans', sans-serif;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  white-space: nowrap;
}

.richards-catalog-page .richards-card-add-to-cart:hover {
  background-color: #bf2427;
}

.richards-catalog-page .richards-card-add-to-cart:focus-visible {
  outline: 2px solid var(--red-surface);
  outline-offset: 3px;
}

.richards-catalog-page .richards-card-add-to-cart.loading {
  background-color: #bf2427;
  box-shadow: inset 0 -2px #ffffff80;
  cursor: progress;
}

@media (prefers-reduced-motion: no-preference) {
  .richards-catalog-page .richards-card-add-to-cart {
    overflow: hidden;
    position: relative;
  }

  .richards-catalog-page .richards-card-add-to-cart::after {
    background: #ffffff15;
    content: '';
    height: 220%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: -60%;
    transform: translateX(-270%) rotate(20deg);
    transition: transform .6s;
    width: 45%;
  }

  .richards-catalog-page .richards-card-add-to-cart:is(:hover, :focus-visible):not(.loading)::after {
    transform: translateX(300%) rotate(20deg);
  }

  .richards-catalog-page .richards-card-add-to-cart.loading::after {
    animation: richards-catalog-add-pending 1s ease-in-out infinite;
  }

  @keyframes richards-catalog-add-pending {
    to { transform: translateX(300%) rotate(20deg); }
  }
}

.richards-woo-content .shop-related {
  margin-top: 32px;
  padding-inline: 0;
}

.richards-catalog-page .shop-pagination a,
.richards-catalog-page .shop-pagination [aria-disabled='true'],
.richards-catalog-page .shop-empty a {
  background: none;
  border: 1px solid #6d6d6d;
  color: #343434;
  font: 400 11px/1.4 'DM Sans', sans-serif;
  padding: 12px 18px;
  text-decoration: none;
}

.richards-catalog-page .shop-pagination [aria-disabled='true'] {
  opacity: 0.45;
}

.richards-catalog-page .shop-pagination a:hover,
.richards-catalog-page .shop-empty a:hover {
  border-color: var(--red-surface);
  color: #b92c2f;
}

.richards-catalog-page .shop-pagination a:focus-visible,
.richards-catalog-page .shop-empty a:focus-visible {
  outline: 2px solid var(--red-surface);
  outline-offset: 3px;
}

.richards-catalog-page .shop-empty a {
  display: inline-block;
}

.richards-catalog-page .shop-toolbar > div {
  min-width: 0;
}

@media (max-width: 760px) {
  .richards-catalog-page .shop-card-title:not(:has(+ .shop-card-spec)),
  .richards-woo-content .shop-related .shop-card-title:not(:has(+ .shop-card-spec)) {
    margin-bottom: 18px;
  }

  .richards-catalog-page .shop-card-actions {
    justify-items: start;
    margin-top: 8px;
  }

  .richards-catalog-page .shop-pagination a,
  .richards-catalog-page .shop-pagination [aria-disabled='true'] {
    padding: 10px 13px;
  }
}
