/* ProMontaz.cz — kartovy carousel ve stylu JabkoLevne
   Aktivuje se pouze tehdy, kdy JS najde min. 4 aktivni slidy,
   jejichz ALT zacina "PMCARD |". Jinak se nedotkne soucasneho hero carouselu. */

body.in-index .pm-card-carousel-wrap{
  position:relative;
  overflow:hidden;
}

body.in-index .pm-card-carousel{
  overflow:visible !important;
  padding:0 2px;
}

body.in-index .pm-card-carousel .carousel-inner{
  align-items:stretch;
}

body.in-index .pm-card-carousel .swiper-slide{
  height:auto !important;
  border-radius:12px;
  overflow:hidden;
  background:#171717;
  box-shadow:0 5px 18px rgba(0,0,0,.10);
}

body.in-index .pm-card-carousel .swiper-slide > a{
  display:block;
  position:relative;
  width:100%;
  height:100%;
  color:#fff;
  text-decoration:none;
}

body.in-index .pm-card-carousel .swiper-slide img{
  display:block;
  width:100% !important;
  height:auto !important;
  aspect-ratio:2 / 3;
  object-fit:cover;
  border-radius:12px;
}

body.in-index .pm-card-carousel .extended-banner-texts{
  display:none !important;
}

body.in-index .pm-card-carousel .carousel-control{
  display:none !important;
}

body.in-index .pm-card-carousel .swiper-button-prev,
body.in-index .pm-card-carousel .swiper-button-next{
  width:46px;
  height:46px;
  margin-top:-23px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
  color:#23282d;
}

body.in-index .pm-card-carousel .swiper-button-prev:after,
body.in-index .pm-card-carousel .swiper-button-next:after{
  font-size:18px;
  font-weight:700;
}

body.in-index .pm-card-carousel .swiper-pagination{
  position:static;
  margin-top:14px;
}

body.in-index .pm-card-carousel .swiper-pagination-bullet-active{
  background:#f2800f;
}

@media(max-width:767px){
  body.in-index .pm-card-carousel-wrap{
    overflow:visible;
  }

  body.in-index .pm-card-carousel{
    overflow:hidden !important;
    padding-left:12px;
    padding-right:12px;
  }

  body.in-index .pm-card-carousel .swiper-slide{
    border-radius:10px;
  }

  body.in-index .pm-card-carousel .swiper-slide img{
    border-radius:10px;
  }

  body.in-index .pm-card-carousel .swiper-button-prev,
  body.in-index .pm-card-carousel .swiper-button-next{
    display:none !important;
  }
}

/* Fallback, kdyby se Shoptet Swiper zpozdene neinicializoval */
body.in-index .pm-card-carousel-fallback .carousel-inner{
  display:flex !important;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  transform:none !important;
  padding-bottom:8px;
}

body.in-index .pm-card-carousel-fallback .swiper-slide{
  flex:0 0 calc((100% - 48px)/4);
  scroll-snap-align:start;
}

@media(max-width:1199px){
  body.in-index .pm-card-carousel-fallback .swiper-slide{
    flex-basis:calc((100% - 32px)/3);
  }
}

@media(max-width:767px){
  body.in-index .pm-card-carousel-fallback .carousel-inner{
    gap:12px;
  }
  body.in-index .pm-card-carousel-fallback .swiper-slide{
    flex-basis:84%;
  }
}
