/* ==========================================================================
   BPSTORE MODERN BRAND MARQUEE (PURE CSS INFINITE TICKER)
   - Tối ưu hóa GPU phần cứng qua translate3d (60fps/120fps siêu nhẹ)
   - Gradient Mask làm mờ 2 bên viền
   - Grayscale & Opacity tối giản, Hover sáng rõ & dừng cuộn
   ========================================================================== */

.bp-brand-marquee-section {
  width: 100%;
  background-color: #ffffff;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.bp-brand-marquee-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  /* Hiệu ứng làm mờ dần 2 bên mép viền (Apple style fade out) */
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.bp-brand-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: bpMarqueeScroll 35s linear infinite;
  will-change: transform;
}

/* Tự động tạm dừng khi rê chuột để người dùng tiện bấm vào link */
.bp-brand-marquee-track:hover {
  animation-play-state: paused;
}

.bp-brand-group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 0 28px;
  flex-shrink: 0;
}

.bp-brand-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  text-decoration: none;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bp-brand-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

.bp-brand-item img {
  max-height: 28px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Animation cuộn vô tận */
@keyframes bpMarqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Responsive cho Mobile & Tablet */
@media (max-width: 768px) {
  .bp-brand-marquee-section {
    padding: 0;
  }

  .bp-brand-marquee-container {
    padding: 14px 12px;
  }
  
  .bp-brand-group {
    gap: 36px;
    padding: 0 18px;
  }
  
  .bp-brand-item {
    height: 32px;
  }

  .bp-brand-item svg,
  .bp-brand-item img {
    max-height: 22px;
  }
  
  .bp-brand-marquee-track {
    animation-duration: 25s; /* Mobile cho chạy nhanh hơn 1 chút */
  }
}
