/* =========================================================
   Lesile Product Slider
   Ίδιο design με το αρχικό HTML. Όλοι οι κανόνες είναι
   scoped στο .custom-product-slider (το αρχικό είχε κάποιους
   global: .slide-wrap, .wrap-all-col).
   ========================================================= */

.custom-product-slider{
  --lps-text: #000;
  --lps-btn-hover-text: #f3efec;
  --lps-dot: #000;
  width: 100%;
}

.custom-product-slider .slide-wrap{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 150px;
  min-height: 420px;
  background: #f3efec;
  transition: background-color 800ms ease;
  overflow: hidden;
  padding-block: 33px;
  padding-inline: 80px;
  touch-action: pan-y;
}

.custom-product-slider .wrap-all-col{
  height: -webkit-fill-available;
  height: -moz-available;
  height: stretch;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 30px;
}

.custom-product-slider .text-content-col{
  width: 100%;
  max-width: 650px;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms ease;
}
.custom-product-slider .text-content-col.is-leaving{ opacity: 0; transform: translateY(25px); }
.custom-product-slider .text-content-col.is-entering{ opacity: 0; transform: translateY(-25px); }

.custom-product-slider .slide-heading{
  font-size: 56px;
  line-height: 1.25;
  font-weight: 400;
  margin: 0 0 30px;
  color: var(--lps-text);
}

/* (στο αρχικό ήταν <button><a>, που δεν είναι έγκυρο HTML· ίδιο αποτέλεσμα) */
.custom-product-slider .slide-but-wrap{
  display: inline-block;
  background: transparent;
  border: 0;
  padding: 0;
}
.custom-product-slider .slide-but-wrap[hidden]{ display: none; }

.custom-product-slider .slide-but,
.custom-product-slider .slide-but:visited{
  font-size: 18px;
  color: var(--lps-text);
  padding: 15px 20px;
  border: solid var(--lps-text);
  border-width: 1px 0 0 0;
  background-color: transparent;
  text-decoration: none;
}
.custom-product-slider .slide-but:hover{
  border-width: 1px;
  background-color: var(--lps-text);
  color: var(--lps-btn-hover-text);
  border-radius: 5px;
}

/* εικόνα */
.custom-product-slider .img-content-col{
  width: 413px;
  height: 549px;
  border-radius: 5px;
  overflow: hidden;
}
.custom-product-slider .slide-img-wrap{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.custom-product-slider .slide-img-wrap img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
  -webkit-user-drag: none;
}
.custom-product-slider .current-img{ transform: translateX(0);    z-index: 1; }
.custom-product-slider .next-img   { transform: translateX(100%); z-index: 2; }

/* bullets */
.custom-product-slider .slider-dots{
  position: relative;
  display: flex;
  justify-content: center;
  gap: 3px;
}
.custom-product-slider .slider-dot,
.custom-product-slider .slider-dot:hover,
.custom-product-slider .slider-dot:focus{
  width: 12px;
  height: 12px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: solid 1px var(--lps-dot);
  background: transparent;
  border-radius: 2px;
  box-shadow: none;
  opacity: 1;
  cursor: pointer;
  transition: all .6s ease;
}
.custom-product-slider .slider-dot.active{
  width: 23px;
  background: var(--lps-dot);
}
.custom-product-slider .slider-dot:focus-visible{ outline: 1px solid var(--lps-dot); outline-offset: 3px; }

/* mouse drag */
.custom-product-slider.lps-draggable .slide-wrap{ cursor: grab; user-select: none; -webkit-user-select: none; }
.custom-product-slider.lps-draggable .slide-but,
.custom-product-slider.lps-draggable .slider-dot{ cursor: pointer; }
.custom-product-slider.is-dragging,
.custom-product-slider.is-dragging *{ cursor: grabbing !important; }

@media (max-width: 1200px){
  .custom-product-slider .slide-wrap{
    padding-inline: 15px;
    flex-direction: column-reverse;
  }
  .custom-product-slider .wrap-all-col{
    /* Stacked layout: let the text column size to its content.
       Safari applies -webkit-fill-available here and leaves a big gap under the image. */
    height: auto;
    padding-block: 0;
    gap: 0;
  }
  .custom-product-slider .slider-dots{ padding-top: 60px; }
}

@media (max-width: 767px){
  .custom-product-slider .slide-wrap{
    flex-direction: column-reverse;
    gap: 15px;
    min-height: auto;
    padding: 15px 15px 65px 15px;
  }
  .custom-product-slider .text-content-col{ width: 100%; }
  .custom-product-slider .slide-heading{
    font-size: 24px;
    margin-bottom: 0;
    padding-bottom: 60px;
  }
  .custom-product-slider .img-content-col{
    width: 100%;
    max-width: 413px;
    height: 459px;
  }
  .custom-product-slider .slider-dots{ padding-top: 60px; }
}
