/* Sepahan v2.2.3 — responsive desktop/mobile slider pairing */

/* Existing Shop Slider visibility controls. */
@media (min-width: 769px) {
  .sepahan-landing-slider-section.sepahan-landing-hide-desktop {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .sepahan-landing-slider-section.sepahan-landing-hide-mobile {
    display: none !important;
  }
}

/* New mobile square slider. */
.elementor-widget-sepahan_mobile_square_slider,
.elementor-widget-sepahan_mobile_square_slider > .elementor-widget-container,
.sepahan-mobile-square-slider-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sepahan-mobile-square-slider-section * {
  box-sizing: border-box;
}

.sepahan-mobile-square-slider-wrap {
  width: 100%;
  max-width: 720px;
  min-width: 0;
  margin-inline: auto;
}

.sepahan-mobile-square-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: var(--sepahan-mobile-slider-ratio, 1 / 1);
  overflow: hidden;
  background: #f4f6f8;
  border: 0 solid transparent;
  isolation: isolate;
  --sepahan-mobile-arrow-offset: 12px;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.sepahan-mobile-square-slider-section.has-border .sepahan-mobile-square-slider {
  border-style: solid;
}

.sepahan-mobile-square-slider-section.has-shadow .sepahan-mobile-square-slider {
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.14);
}

.sepahan-mobile-square-slider .swiper-wrapper,
.sepahan-mobile-square-slider .swiper-slide,
.sepahan-mobile-square-slider .swiper-slide > a,
.sepahan-mobile-square-slider picture {
  width: 100%;
  height: 100%;
  min-width: 0;
}

.sepahan-mobile-square-slider .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.sepahan-mobile-square-slider .swiper-slide > a,
.sepahan-mobile-square-slider picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sepahan-mobile-square-slider img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: var(--sepahan-mobile-slider-fit, contain) !important;
  object-position: center center;
  transform: none !important;
  -webkit-user-drag: none;
  user-select: none;
}

.sepahan-mobile-square-slider .sepahan-mobile-slider-arrow {
  position: absolute !important;
  top: 50% !important;
  z-index: 20 !important;
  width: 40px;
  height: 40px;
  margin: 0 !important;
  padding: 0;
  transform: translateY(-50%) !important;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  background-color: rgba(15, 23, 42, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .24);
  backdrop-filter: blur(6px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.sepahan-mobile-square-slider .sepahan-mobile-slider-arrow::after,
.sepahan-mobile-square-slider .sepahan-mobile-slider-arrow::before {
  display: none !important;
  content: none !important;
}

.sepahan-mobile-square-slider .sepahan-mobile-slider-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.sepahan-mobile-square-slider .swiper-button-prev {
  left: clamp(6px, var(--sepahan-mobile-arrow-offset, 12px), 40px) !important;
  right: auto !important;
}

.sepahan-mobile-square-slider .swiper-button-next {
  right: clamp(6px, var(--sepahan-mobile-arrow-offset, 12px), 40px) !important;
  left: auto !important;
}

.sepahan-mobile-square-slider .sepahan-mobile-slider-arrow:hover {
  transform: translateY(-50%) scale(1.04) !important;
}

.sepahan-mobile-square-slider .sepahan-mobile-slider-arrow:focus-visible,
.sepahan-mobile-square-slider .swiper-pagination-bullet:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .95);
  outline-offset: 3px;
}

.sepahan-mobile-square-slider .swiper-button-disabled {
  opacity: .38;
  cursor: default;
}

.sepahan-mobile-square-slider .swiper-pagination {
  position: absolute;
  z-index: 12;
  left: 50%;
  right: auto;
  bottom: 12px;
  width: auto;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .22);
  backdrop-filter: blur(6px);
}

.sepahan-mobile-square-slider .swiper-pagination-bullet {
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 !important;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  opacity: 1;
  transition: width .2s ease, background-color .2s ease;
}

.sepahan-mobile-square-slider .swiper-pagination-bullet-active {
  width: 22px;
  background: #fff;
}

.sepahan-mobile-slider-fullbleed .sepahan-mobile-square-slider-wrap {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-inline: calc(50% - 50vw) !important;
}

@media (min-width: 769px) {
  .sepahan-mobile-square-slider-section.sepahan-mobile-slider-hide-desktop {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .sepahan-mobile-square-slider-section.sepahan-mobile-slider-hide-mobile {
    display: none !important;
  }

  .sepahan-mobile-square-slider-section {
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sepahan-mobile-square-slider .sepahan-mobile-slider-arrow,
  .sepahan-mobile-square-slider .swiper-pagination-bullet {
    transition: none !important;
  }
}

/* The SVGs are authored for their physical side; Swiper's RTL rule would
   rotate them and visually swap the left/right arrows. */
.sepahan-mobile-square-slider.swiper-rtl .sepahan-mobile-slider-arrow svg,
.sepahan-mobile-square-slider[dir="rtl"] .sepahan-mobile-slider-arrow svg {
  transform: none !important;
}
