.trusted-brands {
  --tb-bg: transparent; /* Keep transparent as requested previously */
  --tb-ink: #8a909e;
  padding: 72px 0 30px; /* Adapted from their 72px 0, but bottom padding 30px to match previous request of less gap before products */
  text-align: center;
  overflow: hidden;
  background: var(--tb-bg);
}

[data-theme="dark"] .trusted-brands {
  --tb-ink: #8f98ab;
}

.trusted-brands h2 {
  margin: 0 0 44px;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tb-ink);
}

.trusted-brands .marquee {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.trusted-brands .track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tbScroll 32s linear infinite;
  will-change: transform;
}

.trusted-brands .marquee:hover .track,
.trusted-brands .marquee:focus-within .track {
  animation-play-state: paused;
}

.trusted-brands .item {
  flex: none;
  width: 210px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  margin: 0 10px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.trusted-brands .item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(242, 106, 29, 0.18);
  border-color: rgba(242, 106, 29, 0.4);
}

.trusted-brands .item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.3s ease;
}

.trusted-brands .item:hover img,
.trusted-brands .item:focus-within img {
  transform: scale(1.06);
}

[data-theme="dark"] .trusted-brands .item {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

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

@media (prefers-reduced-motion: reduce) {
  .trusted-brands .track {
    animation: none !important;
  }
  .trusted-brands .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 600px) {
  .trusted-brands .item { width: 160px; }
  .trusted-brands { padding: 56px 0 20px; }
  .trusted-brands h2 { font-size: 11px; letter-spacing: 0.15em; line-height: 1.5; }
}
