.nrg-care-carousel {
  --nrg-card-width: 325px;
  --nrg-card-height: 395px;
  --nrg-gap: 22px;
  position: relative;
  width: 100%;
}

.nrg-care-carousel *,
.nrg-care-carousel *::before,
.nrg-care-carousel *::after {
  box-sizing: border-box;
}

.nrg-care-carousel__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.nrg-care-carousel--hide-scrollbar .nrg-care-carousel__viewport {
  scrollbar-width: none;
}

.nrg-care-carousel--hide-scrollbar .nrg-care-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.nrg-care-carousel__track {
  display: flex;
  align-items: stretch;
  gap: var(--nrg-gap);
  width: max-content;
  min-width: 100%;
}

.nrg-care-carousel__card {
  position: relative;
  flex: 0 0 var(--nrg-card-width);
  width: var(--nrg-card-width);
  height: var(--nrg-card-height);
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  background: #1f2324;
}

.nrg-care-carousel__image,
.nrg-care-carousel__overlay {
  position: absolute;
  inset: 0;
}

.nrg-care-carousel__image {
  z-index: -2;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.001);
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

.nrg-care-carousel--hover-zoom .nrg-care-carousel__card:hover .nrg-care-carousel__image {
  transform: scale(1.055);
}

.nrg-care-carousel__overlay {
  --nrg-overlay-color: #000000;
  --nrg-overlay-strength: 88%;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    transparent 24%,
    color-mix(in srgb, var(--nrg-overlay-color) 28%, transparent) 51%,
    color-mix(in srgb, var(--nrg-overlay-color) var(--nrg-overlay-strength), transparent) 100%
  );
}

@supports not (color: color-mix(in srgb, black, white)) {
  .nrg-care-carousel__overlay {
    background: linear-gradient(to bottom, transparent 24%, rgba(0,0,0,.28) 51%, rgba(0,0,0,.88) 100%);
  }
}

.nrg-care-carousel__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 28px 26px;
}

.nrg-care-carousel__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.18;
}

.nrg-care-carousel__title span {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.nrg-care-carousel__title--highlight span {
  padding: 1px 3px 2px;
  background: #1649bf;
}

.nrg-care-carousel__description {
  margin: 0 0 20px;
  color: #dedede;
  font-size: 16px;
  line-height: 1.65;
}

.nrg-care-carousel__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  max-width: 100%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, gap 180ms ease;
}

.nrg-care-carousel__link:hover,
.nrg-care-carousel__link:focus-visible {
  gap: 14px;
  color: #cbd9e5;
}

.nrg-care-carousel__link-arrow {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1;
}

.nrg-care-carousel__navigation {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.nrg-care-carousel__arrow {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #fff;
  color: #213b51;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.nrg-care-carousel__arrow:hover:not(:disabled),
.nrg-care-carousel__arrow:focus-visible:not(:disabled) {
  transform: translateY(-2px);
}

.nrg-care-carousel__arrow:disabled {
  opacity: .4;
  cursor: default;
}

.nrg-care-carousel__navigation-label {
  margin-left: 4px;
  color: #31506a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .nrg-care-carousel__navigation-label {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nrg-care-carousel__viewport {
    scroll-behavior: auto;
  }

  .nrg-care-carousel__image,
  .nrg-care-carousel__arrow,
  .nrg-care-carousel__link {
    transition: none;
  }
}

/* Product carousel: intentionally separate from the image-overlay care cards. */
.nrg-product-carousel {
  --nrg-product-card-width: 330px;
  --nrg-product-image-height: 410px;
  --nrg-product-gap: 18px;
  --nrg-product-arrow-offset: 14px;
  position: relative;
  width: 100%;
}

.nrg-product-carousel *,
.nrg-product-carousel *::before,
.nrg-product-carousel *::after {
  box-sizing: border-box;
}

.nrg-product-carousel__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.nrg-product-carousel--hide-scrollbar .nrg-product-carousel__viewport {
  scrollbar-width: none;
}

.nrg-product-carousel--hide-scrollbar .nrg-product-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.nrg-product-carousel__track {
  display: flex;
  align-items: stretch;
  gap: var(--nrg-product-gap);
  width: max-content;
  min-width: 100%;
}

.nrg-product-carousel__card {
  display: flex;
  flex: 0 0 var(--nrg-product-card-width);
  flex-direction: column;
  width: var(--nrg-product-card-width);
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #ddd9d3;
  border-radius: 14px;
  background: #fff;
}

.nrg-product-carousel__media {
  position: relative;
  flex: 0 0 var(--nrg-product-image-height);
  height: var(--nrg-product-image-height);
  overflow: hidden;
  background: #f2f1ef;
}

.nrg-product-carousel__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

.nrg-product-carousel--hover-zoom .nrg-product-carousel__card:hover .nrg-product-carousel__image {
  transform: scale(1.045);
}

.nrg-product-carousel__category {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  display: inline-flex;
  max-width: calc(100% - 32px);
  padding: 7px 13px;
  border-radius: 30px;
  background: #fff;
  color: #344657;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.nrg-product-carousel__body {
  flex: 1 1 auto;
  min-height: 145px;
  padding: 24px 22px;
  background: #fff;
}

.nrg-product-carousel__title {
  margin: 0 0 10px;
  color: #0b0b0b;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.nrg-product-carousel__description {
  margin: 0;
  color: #31506a;
  font-size: 15px;
  line-height: 1.55;
}

.nrg-product-carousel__footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  padding: 16px 20px 20px;
  border-top: 1px solid #e2ded8;
  background: #fff;
}

.nrg-product-carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 30px;
  background: #48647a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, gap 180ms ease, color 180ms ease, background-color 180ms ease;
}

.nrg-product-carousel__button:hover,
.nrg-product-carousel__button:focus-visible {
  gap: 12px;
  transform: translateY(-1px);
  background: #1d3345;
  color: #fff;
}

.nrg-product-carousel__button-arrow {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.nrg-product-carousel__navigation {
  position: static;
  height: 0;
  margin: 0;
}

.nrg-product-carousel__arrow {
  position: absolute;
  z-index: 8;
  top: calc(var(--nrg-product-image-height) / 2);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #fff;
  color: #213b51;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(15, 31, 43, .16);
  transform: translateY(-50%);
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.nrg-product-carousel__arrow--previous {
  left: var(--nrg-product-arrow-offset);
}

.nrg-product-carousel__arrow--next {
  right: var(--nrg-product-arrow-offset);
}

.nrg-product-carousel__arrow:hover:not(:disabled),
.nrg-product-carousel__arrow:focus-visible:not(:disabled) {
  transform: translateY(-50%) scale(1.07);
  box-shadow: 0 8px 20px rgba(15, 31, 43, .22);
}

.nrg-product-carousel__arrow:disabled {
  opacity: .4;
  cursor: default;
}

.nrg-product-carousel__navigation-label {
  display: none;
}

@media (max-width: 767px) {
  .nrg-product-carousel {
    --nrg-product-arrow-offset: 8px;
  }

  .nrg-product-carousel__category {
    top: 14px;
    left: 14px;
  }

  .nrg-product-carousel__body {
    min-height: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nrg-product-carousel__viewport {
    scroll-behavior: auto;
  }

  .nrg-product-carousel__image,
  .nrg-product-carousel__arrow,
  .nrg-product-carousel__button {
    transition: none;
  }
}
