/* ==========================================================
   WooCommerce Product Gallery
   Clean version – no Elementor IDs
   ========================================================== */

/* Hide zoom / lightbox trigger icon */
.woocommerce-product-gallery__trigger{
  display: none !important;
}

/* Keep original Woo thumbs in DOM for FlexSlider, but hide visually */
.woocommerce-product-gallery ol.flex-control-thumbs.hm-hidden{
  position: absolute !important;
  top: 0 !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ----------------------------------------------------------
   Custom thumbnail swiper
   ---------------------------------------------------------- */
.woocommerce-product-gallery .hm-thumbs.swiper{
  margin-top: 14px;
  overflow: hidden;
}

.woocommerce-product-gallery .hm-thumbs .swiper-slide{
  width: 96px;
  height: 96px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
  opacity: 0.75;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.woocommerce-product-gallery .hm-thumbs .swiper-slide:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.woocommerce-product-gallery .hm-thumbs .swiper-slide.is-active{
  opacity: 1;
  border: 2px solid #000;
}

.woocommerce-product-gallery .hm-thumbs img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}

/* ----------------------------------------------------------
   Desktop / default gallery layout
   ---------------------------------------------------------- */
.woocommerce-product-gallery .flex-viewport{
  height: 500px;
  overflow: hidden;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image{
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 500px;
  overflow: hidden;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image > a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img:not(.zoomImg){
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

/* Prevent zoom overlay from stealing clicks */
.woocommerce-product-gallery .zoomImg{
  pointer-events: none !important;
}

/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */
@media (max-width: 767px){

  /* Prevent stretched Elementor containers on single product pages */
  .single-product .elementor .e-con,
  .single-product .elementor .e-con-inner{
    align-items: flex-start !important;
    align-content: flex-start !important;
  }

  /* Reset gallery height constraints */
  .single-product .woocommerce-product-gallery,
  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image{
    min-height: 0 !important;
    max-height: none !important;
  }

  /* Main gallery wrapper */
  .single-product .woocommerce-product-gallery{
    overflow: hidden;
    margin-bottom: 8px !important;
  }

  /* Fixed mobile viewport height */
  .single-product .woocommerce-product-gallery .flex-viewport{
    height: 260px !important;
    min-height: 260px !important;
    overflow: hidden !important;
  }

  /* Each slide uses the same visible frame */
  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image{
    display: block !important;
    position: relative !important;
    height: 260px !important;
    overflow: hidden !important;
  }

  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a{
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Force all main images to fill the same frame */
  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img:not(.zoomImg),
  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img.wp-post-image:not(.zoomImg){
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* Fully disable zoom overlay on mobile */
  .single-product .woocommerce-product-gallery .zoomImg{
    display: none !important;
    pointer-events: none !important;
  }

  /* Mobile thumbs */
  .single-product .woocommerce-product-gallery .hm-thumbs.swiper{
    margin-top: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .single-product .woocommerce-product-gallery .hm-thumbs .swiper-slide{
    width: 72px !important;
    height: 72px !important;
    flex: 0 0 72px !important;
    border-radius: 4px;
    overflow: hidden !important;
  }

  .single-product .woocommerce-product-gallery .hm-thumbs .swiper-slide:hover{
    transform: none;
  }

  .single-product .woocommerce-product-gallery .hm-thumbs img{
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    user-select: none;
    -webkit-user-drag: none;
  }
}

@media (max-width: 767px){
/* Make only this "susisiekite" button full width */
.susisiekite{
  width: 100% !important;
}

.susisiekite .elementor-button{
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  box-sizing: border-box;
}
}

/*-----------katalogu/specifikaciju parsisiuntimo blokai-----------*/
.tabs .e-n-tab-title{
    padding: 10px 15px !important;
}
/* ===== Download list styling for Elementor Text Editor ===== */
.download-list p{
  margin: 0;
  border-bottom: 1px solid #e9e9e9;
}

.download-list p:last-child{
  border-bottom: 0;
}

.download-list p > a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 14px 12px;
  text-decoration: none;
  color: inherit;
}

/* Hover */
.download-list p > a:hover{
  background: #f6f6f6;
}

/* Right-side download icon button */
.download-list p > a::after{
  content: "";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid #222;
  border-radius: 3px;
  background-color: #fff;

  /* download icon (inline SVG) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 20h14v-2H5v2zm7-18v10.17l3.59-3.58L17 10l-5 5-5-5 1.41-1.41L11 12.17V2h1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

/* Icon hover effect */
.download-list p > a:hover::after{
  background-color: #f0f0f0;
}

/*-----------brand logos produkto puslapyje--------------*/
.materials-product-brand-logos{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.materials-product-brand-logo{
  flex: 0 0 auto;
}

.materials-product-brand-logo a,
.materials-product-brand-logo img{
  display: block;
}

.materials-product-brand-logo img{
  max-height: 60px;
  width: auto;
  height: auto;
}

