/* Phase 10 — Swiper carousels (storefront) */

.tp-swiper-banner {
  position: relative;
  display: block !important;
  width: 100%;
  height: auto !important;
  border-radius: var(--apx-radius-lg, 16px);
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: var(--apx-surface, #fff);
  border: 1px solid var(--apx-line, #e5e7eb);
  box-shadow: var(--apx-shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.06));
}

.tp-swiper-banner .swiper-wrapper {
  align-items: flex-start;
  height: auto !important;
}

.tp-swiper-banner .swiper-slide {
  height: auto !important;
  display: block;
}

.tp-swiper-banner .apx-banner-slide {
  width: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.tp-swiper-banner .apx-banner-slide.has-image {
  display: block;
  min-height: 0;
  background: var(--apx-surface, #f4f7fa);
}

.tp-swiper-banner .apx-banner-slide.has-image img,
.tp-swiper-banner .apx-banner-slide-link {
  width: 100%;
  display: block;
}

.tp-swiper-banner .apx-banner-slide.has-image img {
  height: auto;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
.apx-banner-mosaic-row--carousel .tp-swiper-banner {
  margin-bottom: 0;
}

.tp-swiper-banner .swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  top: auto !important;
  bottom: 0.65rem !important;
  z-index: 4;
}

.tp-swiper-banner .swiper-button-prev,
.tp-swiper-banner .swiper-button-next {
  --swiper-navigation-size: 0;
  top: 50%;
  width: 2.65rem;
  height: 2.65rem;
  margin-top: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.22);
  opacity: 1;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transform: translateY(-50%);
}

.tp-swiper-banner .swiper-button-prev::after,
.tp-swiper-banner .swiper-button-next::after {
  content: none;
  display: none;
}

.tp-swiper-banner .apx-swiper-nav .bi {
  font-size: 1.2rem;
  line-height: 1;
  pointer-events: none;
}

.tp-swiper-banner .swiper-button-prev {
  left: 0.75rem;
}

.tp-swiper-banner .swiper-button-next {
  right: 0.75rem;
}

.tp-swiper-banner .swiper-button-prev:hover:not(.swiper-button-disabled),
.tp-swiper-banner .swiper-button-next:hover:not(.swiper-button-disabled) {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
}

.tp-swiper-banner .swiper-button-prev.swiper-button-disabled,
.tp-swiper-banner .swiper-button-next.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 575.98px) {
  .tp-swiper-banner .swiper-button-prev,
  .tp-swiper-banner .swiper-button-next {
    width: 2.35rem;
    height: 2.35rem;
  }

  .tp-swiper-banner .swiper-button-prev {
    left: 0.5rem;
  }

  .tp-swiper-banner .swiper-button-next {
    right: 0.5rem;
  }
}

.tp-swiper-banner .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.tp-swiper-banner .swiper-pagination-bullet-active {
  background: var(--apx-accent, #e8a838);
  transform: scale(1.15);
}

.tp-swiper-reviews {
  position: relative;
  padding-bottom: 2.5rem;
}

.tp-swiper-reviews .swiper-slide {
  height: auto;
}

.tp-swiper-reviews .ws-quote {
  height: 100%;
  margin: 0;
}

.tp-swiper-gallery {
  position: relative;
  padding-bottom: 2.75rem;
}

.tp-swiper-gallery .swiper-slide figure {
  margin: 0;
}

.tp-swiper-gallery .swiper-button-prev,
.tp-swiper-gallery .swiper-button-next {
  color: var(--ws-text, #0f172a);
}

.tp-swiper-products .swiper {
  overflow: hidden;
  padding-bottom: 2rem;
}

@media (min-width: 992px) {
  .tp-swiper-products .swiper,
  .tp-swiper-products .swiper-wrapper {
    overflow: visible;
    transform: none !important;
  }

  .tp-swiper-products .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
  }

  .tp-swiper-products .swiper-slide {
    width: auto !important;
    margin: 0 !important;
  }

  .tp-swiper-products .swiper-pagination {
    display: none;
  }
}

.tp-swiper-products.is-swiper-active .ws-grid-products {
  display: block;
}

.ws-hero-media.tp-swiper-hero-bg,
.tp-hero .tp-swiper-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ws-hero-media.tp-swiper-hero-bg .swiper-slide,
.tp-hero .tp-swiper-hero-bg .swiper-slide.apx-hero-slide {
  background-size: cover;
  background-position: center;
  min-height: 100%;
  opacity: 1;
}

.tp-no-motion .swiper-button-prev,
.tp-no-motion .swiper-button-next {
  display: none;
}
