/* Related Products：复用首页 Our Products 的 section / grid / product-card（components.css） */

body.product-detail-public #related-products-section.section.bg-pattern {
  flex-shrink: 0;
}

/* 资料页 content-guard 会重置 .section-title，此处恢复首页区块标题样式 */
body.product-detail-public #related-products-section .section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 0.75rem;
  position: relative;
  line-height: 1.25;
  font-weight: 700;
  color: var(--secondary-900);
  display: block;
}

body.product-detail-public #related-products-section .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  border-radius: 2px;
  margin: 1rem auto 0;
}

body.product-detail-public #related-products-section .section-subtitle {
  text-align: center;
  color: var(--secondary-500);
  max-width: 700px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* 卡片内图片可点击，保持与首页一致的 product-image 布局 */
body.product-detail-public #related-products-section .product-image > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  body.product-detail-public #related-products-section.section.bg-pattern {
    padding: 2.5rem 0.75rem;
  }

  body.product-detail-public #related-products-section .section-title {
    font-size: clamp(1.375rem, 5vw, 1.75rem);
    margin-bottom: 0.5rem;
  }

  body.product-detail-public #related-products-section .section-subtitle {
    margin-bottom: 2rem;
    padding: 0 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  body.product-detail-public #related-products-section .text-center.mt-8 {
    margin-top: 1.5rem !important;
  }

  body.product-detail-public #related-products-section .btn-lg {
    width: 100%;
    max-width: 20rem;
  }
}

@media print {
  body.product-detail-public #related-products-section {
    display: none !important;
  }
}
