/* Related products are one clear, clickable list on every screen size. */
.product-page .pd-related {
  margin-top: 24px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #e1e7ee;
  border-top: 3px solid #c51b2d;
  border-radius: 20px;
  background: #fbfcfe;
  box-shadow: 0 12px 28px rgba(31, 45, 64, .055);
  scroll-margin-top: 104px;
}
.product-page .pd-related-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6ebf1;
}
.product-page .pd-related-head-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(145deg, #d42541, #a90e2b);
  box-shadow: 0 6px 14px rgba(169, 18, 44, .17);
  color: #fff;
}
.product-page .pd-related-head-icon svg { width: 26px; height: 26px; }
.product-page .pd-related-head-copy { flex: 1; min-width: 0; }
.product-page .pd-related-head-copy > span {
  display: block;
  margin-bottom: 4px;
  color: #bd2740;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1;
}
.product-page .pd-related h2 {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1e3047;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.product-page .pd-related-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #f0d1d8;
  border-radius: 9px;
  background: #fff2f5;
  color: #ad1a34;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.product-page .pd-related-list { gap: 10px; }
.product-page .pd-related-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 13px 15px;
  border: 1px solid #e1e7ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(30, 46, 66, .035);
  color: #21324a;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product-page .pd-related-item:hover {
  transform: translateY(-2px);
  border-color: #df8b9b;
  box-shadow: 0 9px 20px rgba(152, 31, 53, .09);
}
.product-page .pd-related-item:focus-visible { outline: 3px solid #d55770; outline-offset: 2px; }
.product-page .pd-related-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  background: #f7f9fb;
  font-size: 24px;
}
.product-page .pd-related-icon img { width: 46px; height: 46px; object-fit: contain; }
.product-page .pd-related-name {
  min-width: 0;
  color: #1f3047;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.product-page .pd-related-meta {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  min-width: 0;
}
.product-page .pd-related-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 86px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #d8ebdf;
  border-radius: 9px;
  background: #f2faf5;
  color: #258452;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.product-page .pd-related-stock::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #27a566;
}
.product-page .pd-related-stock.is-out {
  border-color: #eed9de;
  background: #fbf5f6;
  color: #a95b69;
}
.product-page .pd-related-stock.is-out::before { background: #c97888; }
.product-page .pd-related-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 148px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #f0d9de;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, #fff6f8);
  color: #ae1732;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.18;
  white-space: nowrap;
}
.product-page .pd-related-price::before {
  content: 'ЦЕНА';
  color: #a46674;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
}
.product-page .pd-related-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #efcbd3;
  border-radius: 11px;
  background: linear-gradient(145deg, #fff, #fff2f5);
  color: #b71b36;
  box-shadow: 0 3px 9px rgba(163, 28, 54, .07);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.product-page .pd-related-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.product-page .pd-related-item:hover .pd-related-arrow {
  transform: translate(2px, -2px);
  border-color: #b71b36;
  background: linear-gradient(145deg, #dc2947, #b61131);
  color: #fff;
  box-shadow: 0 6px 13px rgba(171, 19, 48, .2);
}
.product-page .pd-related-item:hover .pd-related-arrow svg { transform: translate(1px, -1px); }

@media (min-width: 701px) and (max-width: 900px) {
  .product-page .pd-related-item {
    grid-template-columns: 54px minmax(0, 1fr) 36px;
    grid-template-rows: auto auto;
    gap: 8px 14px;
  }
  .product-page .pd-related-icon { grid-column: 1; grid-row: 1 / 3; }
  .product-page .pd-related-name { grid-column: 2; grid-row: 1; }
  .product-page .pd-related-meta { grid-column: 2; grid-row: 2; justify-self: start; }
  .product-page .pd-related-arrow { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 700px) {
  .product-page .pd-related { margin-top: 18px; padding: 15px; border-radius: 17px; scroll-margin-top: 128px; }
  .product-page .pd-related-head { gap: 10px; min-height: 46px; margin-bottom: 13px; padding-bottom: 13px; }
  .product-page .pd-related-head-icon { width: 43px; height: 43px; border-radius: 11px; }
  .product-page .pd-related-head-icon svg { width: 24px; height: 24px; }
  .product-page .pd-related h2 { font-size: 20px; }
  .product-page .pd-related-count { min-height: 30px; padding: 0 9px; font-size: 10px; }
  .product-page .pd-related-item {
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 8px 10px;
    min-height: 0;
    padding: 12px;
    border-radius: 12px;
  }
  .product-page .pd-related-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
  .product-page .pd-related-icon img { width: 42px; height: 42px; }
  .product-page .pd-related-name { grid-column: 2; grid-row: 1; font-size: 13px; line-height: 1.42; }
  .product-page .pd-related-meta {
    grid-column: 2 / 4;
    grid-row: 2;
    justify-self: start;
    flex-wrap: wrap;
    gap: 7px;
  }
  .product-page .pd-related-stock {
    display: inline-flex;
    min-width: 0;
    min-height: 36px;
    padding: 0 8px;
    font-size: 10px;
  }
  .product-page .pd-related-price {
    min-width: 90px;
    min-height: 36px;
    padding: 5px 9px;
    font-size: 13px;
    justify-content: center;
  }
  .product-page .pd-related-price::before { display: none; }
  .product-page .pd-related-arrow {
    grid-column: 3;
    grid-row: 1;
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  .product-page .pd-related-arrow svg { width: 16px; height: 16px; }
}

@media (max-width: 360px) {
  .product-page .pd-related { padding: 11px; }
  .product-page .pd-related-head { flex-wrap: wrap; }
  .product-page .pd-related-head-copy > span { display: none; }
  .product-page .pd-related h2 { font-size: 18px; }
  .product-page .pd-related-count { margin-left: 53px; }
  .product-page .pd-related-item { grid-template-columns: 43px minmax(0, 1fr) 26px; padding: 10px; gap: 7px 8px; }
  .product-page .pd-related-icon { width: 43px; height: 43px; }
  .product-page .pd-related-icon img { width: 38px; height: 38px; }
  .product-page .pd-related-name { font-size: 12px; }
  .product-page .pd-related-arrow { width: 26px; height: 26px; }
  .product-page .pd-related-arrow svg { width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-page .pd-related-item,
  .product-page .pd-related-arrow { transition: none; }
}
