/* Skincare featured brands module */
.skincare-featured-brands {
  padding: 86px 0 98px;
  background: #fffdfa;
}

.skincare-featured-brands__inner {
  width: var(--container);
  margin: 0 auto;
}

.skincare-featured-brands__header {
  margin: 0 auto 44px;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.skincare-featured-brands__title {
  margin: 0;
  font-size: clamp(42px, 4.8vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: #1f2026;
}

.skincare-featured-brands__text {
  max-width: 700px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #2f3440;
}

.skincare-featured-brands__marquee {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
}

.skincare-featured-brands__marquee::before,
.skincare-featured-brands__marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(9vw, 92px);
  pointer-events: none;
}

.skincare-featured-brands__marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fffdfa 0%, rgba(255, 253, 250, 0) 100%);
}

.skincare-featured-brands__marquee::after {
  right: 0;
  background: linear-gradient(270deg, #fffdfa 0%, rgba(255, 253, 250, 0) 100%);
}

.skincare-featured-brands__track {
  display: flex;
  width: 200%;
  animation: skincare-featured-brands-marquee 26s linear infinite;
  will-change: transform;
}

.skincare-featured-brands__marquee:hover .skincare-featured-brands__track {
  animation-play-state: paused;
}

.skincare-featured-brands__group {
  flex: 0 0 50%;
  width: 50%;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
}

.skincare-featured-brands__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.skincare-featured-brands__logo img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: 52px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.82;
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.skincare-featured-brands__logo:hover img {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-1px);
}

@keyframes skincare-featured-brands-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

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

@media (max-width: 820px) {
  .skincare-featured-brands {
    padding: 68px 0 82px;
  }

  .skincare-featured-brands__header {
    margin-bottom: 40px;
    gap: 12px;
  }

  .skincare-featured-brands__marquee {
    overflow: visible;
    padding: 0;
  }

  .skincare-featured-brands__marquee::before,
  .skincare-featured-brands__marquee::after {
    display: none;
  }

  .skincare-featured-brands__track {
    width: 100%;
    display: block;
    animation: none;
  }

  .skincare-featured-brands__group {
    width: 100%;
    flex: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .skincare-featured-brands__group[aria-hidden="true"] {
    display: none;
  }

  .skincare-featured-brands__logo {
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(31, 32, 38, 0.08);
  }

  .skincare-featured-brands__logo img {
    max-width: 132px;
    height: 46px;
    opacity: 1;
    filter: none;
  }
}

@media (max-width: 640px) {
  .skincare-featured-brands {
    padding: 54px 0 64px;
  }

  .skincare-featured-brands__title {
    font-size: clamp(30px, 8.5vw, 40px);
  }

  .skincare-featured-brands__text {
    font-size: 15px;
  }

  .skincare-featured-brands__group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .skincare-featured-brands__logo {
    min-height: 64px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .skincare-featured-brands__logo img {
    max-width: 110px;
    height: 38px;
  }
}

