/* SunMax recommended products — clean standalone WooCommerce section.
   Only used on individual product pages. Never modifies product images themselves. */
body.single-product .sunmax-recs {
  --sunmax-navy: #0d293f;
  --sunmax-teal: #006183;
  --sunmax-red: #ed1b2f;
  width: 100%;
  max-width: 1430px;
  margin: 70px auto 85px;
  padding: 0 22px;
  box-sizing: border-box;
  clear: both;
  font-family: inherit;
}
body.single-product .sunmax-recs *,
body.single-product .sunmax-recs *::before,
body.single-product .sunmax-recs *::after { box-sizing: border-box; }
body.single-product .sunmax-recs__heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
body.single-product .sunmax-recs__accent {
  display: block;
  width: 64px;
  height: 5px;
  background: var(--sunmax-red);
  border-radius: 9px;
  margin-bottom: 14px;
}
body.single-product .sunmax-recs__heading {
  margin: 0 0 5px !important;
  padding: 0 !important;
  font-size: clamp(27px, 2.5vw, 38px) !important;
  font-weight: 750 !important;
  line-height: 1.16 !important;
  letter-spacing: -0.025em;
  color: var(--sunmax-navy) !important;
}
body.single-product .sunmax-recs__intro {
  margin: 0 !important;
  color: #506171 !important;
  font-size: 16px;
  line-height: 1.4;
}
body.single-product .sunmax-recs__view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 650;
  color: #064f9a;
  white-space: nowrap;
  text-decoration: none;
}
body.single-product .sunmax-recs__view-all:hover { color: var(--sunmax-teal); }
body.single-product .sunmax-recs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  margin: 0;
}
body.single-product .sunmax-recs__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 15px 16px 17px;
  background: #fff;
  border: 1px solid #e3e9ef;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(10, 41, 65, .055);
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
  body.single-product .sunmax-recs__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(10, 41, 65, .1);
  }
}
body.single-product .sunmax-recs__image-link {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100% !important;
  height: 232px !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  margin: 0 0 13px !important;
  border: 0 !important;
  background: #fff;
  overflow: hidden;
}
body.single-product .sunmax-recs__image,
body.single-product .sunmax-recs__image-link > img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 232px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  border: none !important;
  clip-path: none !important;
  transform: none !important;
}
body.single-product .sunmax-recs__details {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
}
body.single-product .sunmax-recs__title {
  margin: 0 0 7px !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  min-height: 42px;
  font-weight: 730 !important;
  color: var(--sunmax-navy) !important;
  letter-spacing: -.015em;
}
body.single-product .sunmax-recs__title a {
  color: inherit !important;
  text-decoration: none !important;
}
body.single-product .sunmax-recs__title a:hover { color: var(--sunmax-teal) !important; }
body.single-product .sunmax-recs__price {
  min-height: 25px;
  margin: 0 0 12px !important;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--sunmax-teal) !important;
}
body.single-product .sunmax-recs__price :is(.amount, bdi, ins) {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  text-decoration: none;
}
body.single-product .sunmax-recs__price del { color: #8b97a1 !important; font-size: 13px; font-weight: 400; }
body.single-product .sunmax-recs__category {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 11px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: #f0f3f5;
  color: #324c60;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 550;
}
body.single-product .sunmax-recs__button {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 47px;
  padding: 11px 12px;
  margin-top: auto;
  background: var(--sunmax-teal) !important;
  border: 1px solid var(--sunmax-teal) !important;
  border-radius: 9px;
  color: white !important;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  transition: background .15s ease;
}
body.single-product .sunmax-recs__button:hover,
body.single-product .sunmax-recs__button:focus-visible {
  background: #024963 !important;
  color: #fff !important;
}
body.single-product .sunmax-recs :is(a,button):focus-visible {
  outline: 3px solid #66b1d1;
  outline-offset: 3px;
}
@media (max-width: 1110px) {
  body.single-product .sunmax-recs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.single-product .sunmax-recs__image-link { height: 250px !important; }
  body.single-product .sunmax-recs__image, body.single-product .sunmax-recs__image-link > img { max-height: 250px !important; }
}
@media (max-width: 620px) {
  body.single-product .sunmax-recs { margin: 45px auto 60px; padding: 0 16px; }
  body.single-product .sunmax-recs__heading-row { margin-bottom: 20px; align-items: flex-start; }
  body.single-product .sunmax-recs__heading { font-size: 27px !important; }
  body.single-product .sunmax-recs__intro { font-size: 14px; }
  body.single-product .sunmax-recs__view-all { padding-top: 22px; font-size: 13px; }
  body.single-product .sunmax-recs__grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  body.single-product .sunmax-recs__card { padding: 14px; }
  body.single-product .sunmax-recs__image-link { height: auto !important; aspect-ratio: 4 / 3 !important; }
  body.single-product .sunmax-recs__image, body.single-product .sunmax-recs__image-link > img { max-height: 250px !important; }
  body.single-product .sunmax-recs__title { min-height: 0; }
}
