/* Cards are self-contained (own background + text colours) so they read the
   same on every theme in the network; only the "View product" link takes the
   theme's link colour. The link's ::after makes the whole card clickable. */
.rxsol-related {
  clear: both;
  position: relative;
  margin: 3rem 0 2.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
  box-sizing: border-box;
}
.rxsol-related--contained {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  border-top: 0;
}
.rxsol-related--contained::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  right: 15px;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
}
.rxsol-related__title {
  margin: 0 0 1.25rem;
  font-size: 1.6rem;
  line-height: 1.25;
}
.rxsol-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.rxsol-related__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  background: #fff;
  color: #4a525c;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.rxsol-related__card:hover,
.rxsol-related__card:focus-within {
  border-color: #c5cbd2;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
  transform: translateY(-2px);
}
.rxsol-related__cat {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a828c;
}
.rxsol-related__name {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  color: #16202c;
}
.rxsol-related__desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #555e69;
}
.rxsol-related__more {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.rxsol-related__more::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
}
@media (max-width: 575px) {
  .rxsol-related { margin-top: 2rem; }
  .rxsol-related__grid { grid-template-columns: 1fr; }
}
