/* Banner rotativo Multclean: acabamento visual sem alterar imagens ou links. */
.template-home [data-store="home-slider"] {
  --mc-slider-yellow: #fffb00;
  --mc-slider-black: #080808;
  padding: clamp(8px, 1.15vw, 18px) 0 clamp(12px, 1.4vw, 22px);
  overflow: hidden;
}

.template-home .js-home-slider-container {
  width: min(1520px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  overflow: visible;
}

.template-home .js-home-slider-container > .swiper-container {
  overflow: hidden;
  background: #f7f8f9;
  border: 1px solid rgba(255, 251, 0, .68);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .14);
  isolation: isolate;
}

.template-home .js-home-slider-container .swiper-slide {
  overflow: hidden;
  background: #f7f8f9;
}

.template-home .js-home-slider-container .slider-image {
  display: block;
  width: 100%;
  opacity: 1;
  transition: none;
}

/* O placeholder nativo não pode cobrir o banner durante a troca de slide. */
.template-home .js-home-slider-container .gallery-item-container:has(.slider-image) > .placeholder {
  display: none !important;
}

.template-home .js-home-slider-container.is-mc-slider-loading .swiper-button-prev,
.template-home .js-home-slider-container.is-mc-slider-loading .swiper-button-next {
  pointer-events: none;
  opacity: .55;
}

.template-home .js-home-slider-container .swiper-button-prev,
.template-home .js-home-slider-container .swiper-button-next {
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  color: var(--mc-slider-yellow);
  background: rgba(8, 8, 8, .86);
  border: 1px solid rgba(255, 251, 0, .72);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  transform: translateY(-50%);
  transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
  backdrop-filter: blur(8px);
}

.template-home .js-home-slider-container .swiper-button-prev {
  left: 18px;
}

.template-home .js-home-slider-container .swiper-button-next {
  right: 18px;
}

.template-home .js-home-slider-container .swiper-button-prev svg,
.template-home .js-home-slider-container .swiper-button-next svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .template-home .js-home-slider-container .swiper-button-prev:hover,
  .template-home .js-home-slider-container .swiper-button-next:hover {
    color: var(--mc-slider-black);
    background: var(--mc-slider-yellow);
    box-shadow: 0 12px 32px rgba(255, 251, 0, .22);
    transform: translateY(-50%) scale(1.06);
  }
}

.template-home .js-home-slider-container .swiper-button-prev:focus-visible,
.template-home .js-home-slider-container .swiper-button-next:focus-visible,
.template-home .js-home-slider-container .swiper-pagination-bullet:focus-visible {
  outline: 3px solid var(--mc-slider-yellow);
  outline-offset: 3px;
}

.template-home .js-home-slider-container .swiper-pagination-outside {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 30px;
  margin: 0;
  padding: 8px 11px;
  background: rgba(8, 8, 8, .78);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.template-home .js-home-slider-container .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 4px;
  background: rgba(255, 255, 255, .72);
  border: 0;
  opacity: 1;
  transition: width .22s ease, background .22s ease, border-radius .22s ease;
}

.template-home .js-home-slider-container .swiper-pagination-bullet-active {
  width: 25px;
  background: var(--mc-slider-yellow);
  border-radius: 999px;
}

@media (max-width: 767.98px) {
  .template-home [data-store="home-slider"] {
    padding: 8px 0 12px;
  }

  .template-home .js-home-slider-container {
    width: calc(100% - 12px);
  }

  .template-home .js-home-slider-container > .swiper-container {
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  }

  .template-home .js-home-mobile-slider,
  .template-home .js-home-mobile-slider .swiper-wrapper,
  .template-home .js-home-mobile-slider .swiper-slide,
  .template-home .js-home-mobile-slider .swiper-slide > a {
    height: auto;
  }

  .template-home .js-home-mobile-slider .slider-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .template-home .js-home-slider-container .swiper-button-prev,
  .template-home .js-home-slider-container .swiper-button-next {
    display: none;
  }

  .template-home .js-home-slider-container .swiper-pagination-outside {
    position: relative;
    bottom: auto;
    left: auto;
    z-index: 2;
    display: flex;
    width: max-content;
    max-width: calc(100% - 24px);
    min-height: 18px;
    margin: 10px auto 6px;
    padding: 2px 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    backdrop-filter: none;
  }

  .template-home .js-home-slider-container .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 4px;
    background: #080808;
    opacity: .45;
  }

  .template-home .js-home-slider-container .swiper-pagination-bullet-active {
    width: 20px;
    background: #080808;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-home .js-home-slider-container .slider-image,
  .template-home .js-home-slider-container .swiper-button-prev,
  .template-home .js-home-slider-container .swiper-button-next,
  .template-home .js-home-slider-container .swiper-pagination-bullet {
    transition: none;
  }
}
