.featured-brands-wrapper {
  background-color: #762f8e;
  overflow: hidden;
}

.featured-brands-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.featured-brands-container .heading,
.featured-brands-container h2 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  font-family: var(--sort-body-font);
}

@media screen and (max-width: 959px) { 
  .featured-brands-container .heading,
  .featured-brands-container h2 {
    font-size: 17px;
  }
  .featured-brands-marquee {
    --marquee-gap: 14px;
  }
}
/* Endless scrolling marquee */
.featured-brands-marquee {
  --marquee-gap: 50px;

  display: flex;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.featured-brands-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--marquee-gap);
  padding-inline-start: var(--marquee-gap);
  min-width: max-content;
  animation: featured-brands-scroll var(--marquee-speed, 35s) linear infinite;
}

.featured-brands-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 150px;
}

.featured-brands-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

@keyframes featured-brands-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--marquee-gap)));
  }
}

@media (hover: hover) {
  .featured-brands-marquee:hover .featured-brands-track {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-brands-track {
    animation: none;
  }
}

@media (--mobile) {
  .featured-brands-container {
    gap: 18px;
  }
  .featured-brands-marquee {
    --marquee-gap: 56px;
  }
  .featured-brands-logo {
    max-width: 110px;
  }
  .featured-brands-logo img {
    max-height: 36px;
  }
}
