/* Ecomneed update: homepage brand slider + smoother review rows */
.brands-section {
  overflow: hidden;
  background: #fff;
}

.brand-slider {
  overflow: hidden;
  padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.brand-track {
  display: flex;
  width: max-content;
  gap: 18px;
  align-items: stretch;
  will-change: transform;
  animation: brandSlide 46s linear infinite;
}

.brand-logo-card {
  width: 220px;
  height: 128px;
  flex: 0 0 220px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.brand-logo-card img {
  max-width: 100%;
  max-height: 86px;
  object-fit: contain;
}

.brand-track:hover,
.love-row:hover {
  animation-play-state: paused;
}

.love-marquee {
  padding: 4px 0;
}

.love-row {
  align-items: stretch;
  will-change: transform;
  animation-duration: 72s;
  animation-timing-function: linear;
}

.love-quote-card {
  height: 236px;
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
}

.love-quote-card p {
  display: -webkit-box;
  flex: 1;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.love-quote-card small {
  margin-top: auto;
}

@keyframes brandSlide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 560px) {
  .brand-logo-card {
    width: 168px;
    height: 104px;
    flex-basis: 168px;
  }

  .love-quote-card {
    width: 310px;
    flex-basis: 310px;
    height: 250px;
  }
}
