/* SUNPLUS V67: independent related-product carousel, scoped to PDP recommendations only. */
.sunplus-related-v67 {
  --r-gap: 16px;
  --r-cols: 4;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 48px auto 54px;
  padding: 0;
  color: #383c42;
  font-family: inherit;
}
.sunplus-related-v67 *, .sunplus-related-v67 *::before, .sunplus-related-v67 *::after { box-sizing: border-box; }
.sunplus-related-v67 .sr67-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.sunplus-related-v67 .sr67-title {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
  color: #383c42;
}
.sunplus-related-v67 .sr67-controls { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.sunplus-related-v67 .sr67-controls[hidden] { display: none !important; }
.sunplus-related-v67 .sr67-arrow {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: #fff;
  border: 1px solid #dce5f3;
  color: #3664c9;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.sunplus-related-v67 .sr67-arrow:hover:not(:disabled),
.sunplus-related-v67 .sr67-arrow:focus-visible { background: #f0f5fe; border-color: #5c8df5; }
.sunplus-related-v67 .sr67-arrow:disabled { opacity: .3; cursor: default; }
.sunplus-related-v67 .sr67-track {
  display: flex;
  align-items: stretch;
  gap: var(--r-gap);
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 2px 2px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sunplus-related-v67 .sr67-track::-webkit-scrollbar { display: none; }
.sunplus-related-v67 .sr67-card {
  flex: 0 0 calc((100% - (var(--r-cols) - 1) * var(--r-gap) - 4px) / var(--r-cols));
  min-width: 0;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 1px 2px rgba(29,58,110,.03);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.sunplus-related-v67 .sr67-card:hover { border-color: #c2d3f4; box-shadow: 0 5px 18px rgba(42,81,155,.08); }
.sunplus-related-v67 .sr67-photo {
  display: block;
  aspect-ratio: 1.18 / 1;
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 10px 10px 0;
  text-align: center;
}
.sunplus-related-v67 .sr67-photo img {
  display: block;
  height: 100%;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}
.sunplus-related-v67 .sr67-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px 15px;
}
.sunplus-related-v67 .sr67-name {
  display: block;
  color: #343a42;
  font-size: 15px;
  line-height: 1.36;
  font-weight: 650;
  min-height: 2.72em;
  margin: 0 0 4px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.sunplus-related-v67 .sr67-name:hover { color: #245de1; text-decoration: none; }
.sunplus-related-v67 .sr67-spec {
  margin: 0 0 15px;
  color: #7c8798;
  font-size: 12px;
  line-height: 1.45;
  min-height: 1.45em;
  overflow-wrap: anywhere;
}
.sunplus-related-v67 .sr67-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  min-width: 0;
}
.sunplus-related-v67 .sr67-stock {
  color: #269454;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}
.sunplus-related-v67 .sr67-price {
  color: #252c35;
  font-weight: 750;
  font-size: 21px;
  line-height: 1.25;
  margin: 0;
}
.sunplus-related-v67 .sr67-buy {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  width: 100%;
  background: #5c8df5;
  border: 1px solid #5c8df5;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.sunplus-related-v67 .sr67-buy:hover, .sunplus-related-v67 .sr67-buy:focus-visible { background: #4578ea; color: #fff; text-decoration: none; }
.sunplus-related-v67 .sr67-progress { height: 3px; margin: 14px auto 0; width: min(200px, 45%); border-radius: 999px; background: #e7e9ef; overflow: hidden; }
.sunplus-related-v67 .sr67-progress[hidden] { display:none; }
.sunplus-related-v67 .sr67-progress-fill { display: block; width: 30%; height: 100%; border-radius: inherit; background: #5c8df5; transform-origin: left center; }
@media (min-width: 1800px) { .sunplus-related-v67 { --r-cols: 5; } }
@media (min-width: 768px) and (max-width: 1199px) { .sunplus-related-v67 { --r-cols: 3; } }
@media (max-width: 767px) {
  .sunplus-related-v67 { --r-gap: 10px; --r-cols: 2; margin: 34px auto 40px; }
  .sunplus-related-v67 .sr67-header { margin-bottom: 12px; }
  .sunplus-related-v67 .sr67-title { font-size: 21px; }
  .sunplus-related-v67 .sr67-arrow { width: 33px; height: 33px; font-size: 22px; }
  .sunplus-related-v67 .sr67-card { border-radius: 13px; }
  .sunplus-related-v67 .sr67-photo { aspect-ratio: 1.08 / 1; padding: 7px 5px 0; }
  .sunplus-related-v67 .sr67-body { padding: 7px 10px 11px; }
  .sunplus-related-v67 .sr67-name { font-size: 13px; min-height: 2.72em; line-height: 1.36; }
  .sunplus-related-v67 .sr67-spec { font-size: 11px; margin-bottom: 10px; }
  .sunplus-related-v67 .sr67-footer { gap: 7px; }
  .sunplus-related-v67 .sr67-stock { font-size: 11px; }
  .sunplus-related-v67 .sr67-price { font-size: 18px; }
  .sunplus-related-v67 .sr67-buy { min-height: 40px; font-size: 13px; }
}
@media (max-width: 350px) {
  .sunplus-related-v67 .sr67-body { padding-inline: 7px; }
  .sunplus-related-v67 .sr67-title { font-size: 19px; }
  .sunplus-related-v67 .sr67-price { font-size: 17px; }
}
/* When few recommendations exist, show both/three centered, without a giant blank carousel. */
@media (min-width: 768px) {
  .sunplus-related-v67 .sr67-track[data-count="2"] { --r-cols: 2; max-width: 680px; margin-inline: auto; }
  .sunplus-related-v67 .sr67-track[data-count="3"] { --r-cols: 3; max-width: 990px; margin-inline: auto; }
}
