
.products-card,
.products-references {
  position: relative;
  margin: 0 0 24px 0;
  overflow: hidden;
  border-radius: 20px;
}

.products-card {
  padding: 4% 5%;
  background: var(--color-mc-blue-deep);
}

.products-card__header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.products-card__header .mc-eyebrow {
  margin-bottom: 20px;
}

.products-options {
  color: var(--color-mc-white);
  min-width: 300px;
}

.products-options > div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-mc-white-50)
}

.products-options button {
  min-width: 0;
  padding: 10px 16px;
  background: transparent;
  border: 0;
  border-radius: 24px;
  font: inherit;
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 1.25rem;
  cursor: pointer;
  color: var(--color-mc-white);
  transition: background-color 0.1s, color 0.1s;
}

.products-options button:hover,
.products-options button:focus-visible,
.products-options button.is-active {
  background: var(--color-mc-teal);
  outline: 0;
}

.products-options button.is-active {
  color: var(--color-mc-blue-deep);
}

.products-options button:hover,
.products-options button:focus-visible {
  color: var(--color-mc-blue-dark);
}

.products-options button:focus-visible {
  outline: 2px solid var(--color-mc-white);
  outline-offset: 0;

}

.products-options span {
  display: block;
  margin-top: 1.45rem;
  color: var(--color-mc-teal);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.products-options__status {
  margin: 8px 0 0;
  line-height: 1.2;
}

.products-options.has-selection-feedback .products-options__status {
  display: block;
}

.products-can-row {
  display: flex;
  align-items: flex-end;
  gap: 60px;
  justify-content: safe center;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  transition: opacity 0.2s ease;
}

.products-can-row.is-filtering {
  opacity: 0;
}

.products-can-row::-webkit-scrollbar,
.products-references__items::-webkit-scrollbar {
  display: none;
}

.products-can-row img {
  flex: 0 0 auto;
  height: 480px;
  width: auto;
  scroll-snap-align: center;
}

.products-can-row img[data-diameter] {
  display: none;
}

.products-can-row img[data-diameter].is-active {
  display: block;
}

.products-can-wrap,
.products-references-wrap {
  padding-inline: 52px;
  position: relative;
}

.carousel-arrow {
  position: absolute;
  z-index: 3;
}

.carousel-arrow:disabled,
.carousel-arrow[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}

.carousel-arrow:disabled:hover,
.carousel-arrow:disabled:focus-visible,
.carousel-arrow[aria-disabled="true"]:hover
.carousel-arrow:disabled:focus-visible {
  color: var(--color-mc-blue-deep);
  background: var(--color-mc-gold);
  outline: none;
}

.carousel-arrow--prev {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-arrow--next {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.products-references {
  padding: 4% 5%;
  color: var(--color-mc-blue-dark);
  background-color: #e5e5e5;
}

.products-references h2 {
  color: var(--color-mc-blue-dark);
}

.products-references .mc-eyebrow {
  margin-bottom: 20px;
}

.products-references__items {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-top: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.products-references__items img {
  flex: 0 0 auto;
  height: 480px;
  width: auto;
  max-height: none;
  scroll-snap-align: center;
}

@media (max-width: 1300px) {
  .products-references__items img {
    height: clamp(260px, 40vw, 380px);
    width: auto;
    scroll-snap-align: center;
  }
}


@media (min-width: 1001px) and (max-width: 1300px) {
  .products-can-row img {
    height: clamp(260px, 40vw, 380px);
    width: auto;
  }
}

@media (max-width: 1000px) {
  .products-card__header {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .products-card h2 br,
  .products-references h2 br {
    display: none;
  }
}

@media (max-width: 700px) {
  .products-card {
    padding: 40px 24px;
  }

  .products-options > div {
    gap: 8px; 
  }

  .products-options button {
    padding-inline: 8px;
  }  

  .products-can-row {
    gap: 40px;
  }

  .products-can-row img {
    height: clamp(140px, 42vw, 260px);
    width: auto;
  }

  .products-references {
    padding: 40px 24px;
  }
}

@media (hover: none) {
  .products-options button {
    transition: background-color 0.35s, color 0.35s;
  }
}
