/**
 * DEV Mason RAW II — Related Solutions (product page)
 * Exact visual contract from dws-related-products-section.html
 */

.dws-product-page .related-products {
  --blue: #008ed6;
  --ink: #111827;
  --muted: #667085;
  --border: #e4e7ec;
  --green: #1a7f37;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 32px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin: 28px 0 0;
}

.dws-product-page .related-products__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.dws-product-page .related-products__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
  color: #008ed6;
}

.dws-product-page .related-products__header h2 {
  font-family: var(--brand, Raleway, Inter, sans-serif);
  font-size: 38px;
  letter-spacing: -0.05em;
  margin: 6px 0 0;
  color: var(--ink);
  line-height: 1.05;
}

.dws-product-page .related-products__header p {
  margin: 0;
  color: #667085;
  max-width: 700px;
  line-height: 1.6;
}

.dws-product-page .related-products__view-all {
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.dws-product-page .related-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dws-product-page .related-card,
.dws-gen2.dws-page-product .related-card {
  background: #fff;
  border: 1px solid #e7ebef;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: block;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  transition: 0.2s ease;
  position: relative;
}

.dws-product-page .related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.09);
  border-color: rgba(0, 142, 214, 0.35);
}

.dws-product-page .related-card__stage {
  min-height: 210px;
  background: linear-gradient(135deg, #eef8fd, #fff);
  display: grid;
  place-items: center;
  position: relative;
}

.dws-product-page .related-card__badge {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: #0d1117;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.dws-product-page .related-card__badge.free {
  background: var(--green);
}

.dws-product-page .related-card__badge.member {
  background: var(--blue);
}

.dws-product-page .related-card__badge.enterprise {
  background: #9a6700;
}

.dws-product-page .related-card__mark {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid #dbeef9;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-family: var(--brand, Raleway, Inter, sans-serif);
  font-size: 28px;
  font-weight: 900;
}

.dws-product-page .related-card__body {
  padding: 22px;
}

.dws-product-page .related-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dws-product-page .related-card__pill {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
}

.dws-product-page .related-card h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--ink);
}

.dws-product-page .related-card h3 a {
  color: inherit;
  text-decoration: none;
}

.dws-product-page .related-card p {
  margin: 0;
  color: #667085;
  line-height: 1.58;
  font-size: 14px;
}

.dws-product-page .related-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.dws-product-page .related-card__price {
  font-family: var(--brand, Raleway, Inter, sans-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.dws-product-page .related-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #111827;
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
}

.dws-product-page .related-card .btn:hover {
  background: #111827 !important;
  color: #fff !important;
  transform: none;
}

.dws-product-page .related-card .btn.light {
  background: #fff;
  color: #111827 !important;
  border: 1px solid #d0d5dd;
}

.dws-product-page .related-card .btn.light:hover {
  background: #fff !important;
  color: #111827 !important;
  border-color: #d0d5dd;
}

.dws-product-page .related-products__note {
  display: none;
}

/* Hide leftover native Woo related/upsell blocks if a plugin re-adds them. */
.dws-product-page .related.products,
.dws-product-page .upsells.products {
  display: none !important;
}

@media (max-width: 900px) {
  .dws-product-page .related-products__grid {
    grid-template-columns: 1fr;
  }

  .dws-product-page .related-products__header {
    grid-template-columns: 1fr;
  }

  .dws-product-page .related-products__view-all {
    justify-self: start;
  }

  .dws-product-page .related-products__header h2 {
    font-size: clamp(28px, 8vw, 38px);
  }
}
