/* Brands Grid Styles - autoscrolling single row carousel */
.brands-grid {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 40px 0;
  margin-top: 20px;
  margin-bottom: 20px;
}

.brands-grid::before,
.brands-grid::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.brands-grid::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, transparent);
}

.brands-grid::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff, transparent);
}

.brands-grid-track {
  display: flex;
  align-items: center;
  width: fit-content;
  min-width: 200%;
  animation: brands-grid-scroll 70s linear infinite;
}

.brands-grid-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin: 0 30px;
}

.brands-grid-item img {
  max-width: 100px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
}

@keyframes brands-grid-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .brands-grid {
    padding: 20px 0;
  }

  .brands-grid::before,
  .brands-grid::after {
    width: 60px;
  }

  .brands-grid-item {
    height: 60px;
    margin: 0 20px;
  }

  .brands-grid-item img {
    max-width: 85px;
    max-height: 45px;
  }
}

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