/* ==========================================================================
   Notting Hill Vape — brand carousel
   NHV-04 - Brand Carousel

   Depends on the design tokens in ../nhv.css. No colour, font or spacing
   literal below — add a token there first.
   ========================================================================== */

/* ==========================================================================
   Brand carousel
   ========================================================================== */

/* Full-bleed, same technique as the slideshow — see the Page section for why
   html/body are clipped. */
.nhv-brands {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  /* No bottom margin — the tile band sits directly beneath this strip. */
  background: var(--nhv-brand-ground);
}

/* opencart.css puts a white 4px border, a radius and a drop shadow on every
   .swiper-viewport and loads after this file, so the compound selector is needed
   to win on specificity rather than source order. */
.nhv-brands-viewport.swiper-viewport {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
  position: relative;
}

.nhv-brands .swiper-slide.nhv-brand {
  width: auto;
  flex: 0 0 auto;
  text-align: center;
}

.nhv-brands .nhv-brand a {
  display: block;
  padding: 6px 4px;
  line-height: 0;
}

.nhv-brands .nhv-brand img {
  width: 86px;
  height: 86px;
  display: block;
  opacity: 0.85;
  transition: opacity var(--nhv-transition);
}
.nhv-brands .nhv-brand a:hover img { opacity: 1; }

/* Arrows: same override as the slideshow — core hides them off-canvas above
   768px and draws near-black FontAwesome glyphs. */
.nhv-brands .swiper-button-next,
.nhv-brands .swiper-button-prev {
  width: 34px;
  height: 100%;
  top: 0;
  margin-top: 0;
  background-color: var(--nhv-brand-ground);
  background-image: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--nhv-transition);
}
.nhv-brands .swiper-button-next::before,
.nhv-brands .swiper-button-prev::before {
  color: var(--nhv-cream);
  font-size: 24px;
  width: auto;
  height: auto;
  line-height: 1;
  text-shadow: none;
}
.nhv-brands-viewport.swiper-viewport .swiper-button-prev { opacity: 1; left: 0; }
.nhv-brands-viewport.swiper-viewport .swiper-button-next { opacity: 1; right: 0; }
.nhv-brands .swiper-button-next:hover,
.nhv-brands .swiper-button-prev:hover { background-color: var(--nhv-copper); }

@media (max-width: 767px) {
  .nhv-brands .nhv-brand img { width: 64px; height: 64px; }
  .nhv-brands .swiper-button-next,
  .nhv-brands .swiper-button-prev { width: 26px; }
}
