.th-whisper .tesla-slider { padding: 50px 0 !important; box-sizing: border-box !important; }
.th-whisper .tesla-slider .swiper-wrapper { display: flex !important; align-items: stretch !important; margin: 0 !important; padding: 0 !important; }
.th-whisper .tesla-slider .swiper-wrapper--first-active { transform: translate3d(50px, 0px, 0px) !important; }
.th-whisper .tesla-slider .swiper-slide {
    display: flex;
    flex: 0 0 auto;
    width: 100% !important;
    max-width: 1024px !important;
    min-height: 580px;    
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.th-whisper .tesla-slider .swiper-slide .e-con-boxed.e-child { margin-top: 2px; padding: 0; }

/*Template Home tpl-home*/
.th-whisper .swiper.tesla-slider.tpl-home .swiper-wrapper { display: flex !important; align-items: stretch !important; margin: 0 !important; padding: 0 !important; }
.th-whisper .swiper.tesla-slider.tpl-home .swiper-slide {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background-size: cover !important;
    background-position: center !important;
    max-height: 580px;
    padding: 25px 35px !important;
    margin-right: 0 !important;
    border-radius: 8px !important;
}
.th-whisper .swiper.tesla-slider.tpl-home .swiper-slide:after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.2); z-index: -1; }
.th-whisper .swiper.tesla-slider.tpl-home .swiper-slide h2.elementor-heading-title { font-size: 3.5em; font-weight: 800; letter-spacing: 0.5px; }
.th-whisper .swiper.tesla-slider.tpl-home .swiper-slide h3.elementor-heading-title { font-weight: 300; font-size: 1.2em; letter-spacing: 0.5px; }
.th-whisper .swiper.tesla-slider.tpl-home .swiper-slide .elementor-button { padding: 9px 25px; font-weight: 600; border-radius: 3px; font-size: 0.85em; letter-spacing: 0.5px; }
.th-whisper .swiper.tesla-slider.tpl-home .swiper-slide .elementor-button:hover { transform: translateY(-4px); }

/*Template Door tpl-door*/
.th-whisper .swiper.tesla-slider.tpl-door { }

/*Pagination*/

/* 1) Apaga el icono default de Swiper */
.tesla-slider .swiper-button-prev::after,
.tesla-slider .swiper-button-next::after{
  content: "" !important;
}

/*.tesla-slider.tpl-door .swiper-button-prev, .tesla-slider.tpl-door .swiper-button-next{
    display:none;
}*/


.tesla-slider .swiper-button-prev,
.tesla-slider .swiper-button-next{
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;

  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
  z-index: 10;
}

/* Posición */
.tesla-slider .swiper-button-prev{ left: 45px; }
.tesla-slider .swiper-button-next{ right: 45px; }

/* 3) Pinta tu ícono de librería */
.tesla-slider .swiper-button-prev::before,
.tesla-slider .swiper-button-next::before{
  content: "\e13a";                 
  font-family: "Phosphor-Light" !important;
  font-size: 22px;
  line-height: 1;
  color: #111;

  /* (opcionales pero recomendados en icon fonts) */
  font-style: normal;
  font-weight: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Flecha izquierda: mismo ícono volteado */
.tesla-slider .swiper-button-prev::before{
  transform: scaleX(-1);
}

/* UX/UI: ocultar flecha deshabilitada */
.tesla-slider .swiper-button-disabled{
  opacity: 0;
  pointer-events: none;
}

/* Hover / focus */
.tesla-slider .swiper-button-prev:hover,
.tesla-slider .swiper-button-next:hover{
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  transform: translateY(-50%) scale(1.04);
}

.tesla-slider .swiper-button-prev:focus-visible,
.tesla-slider .swiper-button-next:focus-visible{
  outline: 2px solid rgba(0,0,0,.18);
  outline-offset: 2px;
}

/* UX/UI: ocultar flecha que no aplica (inicio / fin) */
.tesla-slider .swiper-button-disabled{
  opacity: 0;
  pointer-events: none;
}

/* Ajustes responsive */
@media (max-width: 768px){
  .tesla-slider .swiper-button-prev{ left: 10px; }
  .tesla-slider .swiper-button-next{ right: 10px; }
  .tesla-slider .swiper-button-prev,
  .tesla-slider .swiper-button-next{
    width: 40px;
    height: 40px;
    display:none!important;
  }
  .tesla-slider .swiper-button-prev::after,
  .tesla-slider .swiper-button-next::after{
    font-size: 20px;
  }
}

.tesla-slider .swiper-button-disabled{
  display: none;
}
.tesla-slider .swiper-pagination { position: relative; margin-top: 18px; text-align: center; }
.tesla-slider .swiper-pagination-bullet { width: 12px !important; height: 12px !important; background: #8B8C8F !important; opacity: 1 !important; transition: all 0.3s ease !important; margin: 0 4px !important; border-radius: 50% !important; }
.tesla-slider .swiper-pagination-bullet-active { background: #222 !important; opacity: 1 !important; }
@media(max-width:768px) {
    .th-whisper .swiper.tesla-slider .swiper-slide { width: 606px !important; min-height: 520px !important; }
    .th-whisper .swiper.tesla-slider .swiper-wrapper--first-active { transform: translate3d(30px, 0px, 0px) !important; }
    .th-whisper .swiper.tesla-slider .swiper-slide h2.elementor-heading-title { font-size: 3em; }
    .th-whisper .tesla-slider{padding:20px 0!important;}
    .th-whisper .swiper.tesla-slider.tpl-home .swiper-slide h2.elementor-heading-title {font-size: 1.9em;font-weight: 700;}
    .th-whisper .swiper.tesla-slider.tpl-home .swiper-slide{padding:20px!important;min-height:520px!important;}
    .th-whisper .swiper.tesla-slider.tpl-home .swiper-slide .elementor-button{padding:13px 24px!important;}
    .th-whisper .swiper.tesla-slider.tpl-home .swiper-slide h3.elementor-heading-title{font-size:1em!important;}
    .box_subcat .product-category img{max-height:140px!important;}
    .elementor-element .woocommerce .woocommerce-loop-category__title{font-size:15px!important;}
    #slide_hm .th-whisper .swiper.tesla-slider .swiper-slide{min-height:520px!important;padding: 25px 35px !important;}
    .woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {font-size: 0.7em;}
}
@media(max-width:680px) {
    .th-whisper .swiper.tesla-slider .swiper-slide { width: 330px !important; padding: 20px 25px !important; }
    .th-whisper .swiper.tesla-slider .swiper-wrapper--first-active { transform: translate3d(15px, 0px, 0px) !important; }
    .th-whisper .swiper.tesla-slider .swiper-slide h2.elementor-heading-title { font-size: 2.5em; }
}

/***woo_category**/
.tax-product_cat .woocommerce ul.products,
.tax-product_cat .woocommerce-page ul.products{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 60px;
}

/* tablet */
@media (max-width: 1024px){
  .tax-product_cat .woocommerce ul.products,
  .tax-product_cat .woocommerce-page ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* móvil */
@media (max-width: 600px){
  .tax-product_cat .woocommerce ul.products,
  .tax-product_cat .woocommerce-page ul.products{
      gap: 20px;
    grid-template-columns: fr;
  }
  .woocommerce ul.products li.product-category > a{min-height:300px!important;padding: 10px!important;border-radius:6px!important;}
  .tax-product_cat .woocommerce ul.products li.product-category > a img, .tax-product_cat .woocommerce-page ul.products li.product-category > a img{
      height: 150px!important;
  }
  .tax-product_cat .woocommerce ul.products li.product-category h2.woocommerce-loop-category__title, .tax-product_cat .woocommerce-page ul.products li.product-category h2.woocommerce-loop-category__title{
      font-size: 14px!important;
  }
  .elementor-1684 .elementor-element.elementor-element-3c3af390.elementor-wc-products ul.products {
  grid-column-gap: 20px;
  grid-row-gap: 20px;}
  .tax-product_cat .woocommerce ul.products li.product-category > a::after, .tax-product_cat .woocommerce-page ul.products li.product-category > a::after{
      font-size: 12px!important;
      padding: 10px!important;
  }
    .elementor-1542 .elementor-element.elementor-element-10d6cf6 img {height: fit-content!important;}
    .job-board-right-real .job-title{font-size:21px!important;}
}

/* Cada subcategoría */
.tax-product_cat .woocommerce ul.products li.product-category,
.tax-product_cat .woocommerce-page ul.products li.product-category{
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
}

/* Tarjeta (el link envuelve todo) */
.tax-product_cat .woocommerce ul.products li.product-category > a,
.tax-product_cat .woocommerce-page ul.products li.product-category > a{
  display: flex;
  flex-direction: column;
  align-items: center;

  background: #fff;
  border-radius: 12px;
  overflow: hidden;

  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);

  text-decoration: none !important;

  padding: 18px 18px 14px;
  min-height: 400px; /* ajusta si quieres más/menos alto */
}

/* Imagen centrada */
.tax-product_cat .woocommerce ul.products li.product-category > a img,
.tax-product_cat .woocommerce-page ul.products li.product-category > a img{
  width: 100%;
  max-width: 74%;
  object-fit: contain;
  margin: 50px auto 0px;
  display: block;
  height: 350px;
  max-height: 100%;
}

/* Título centrado */
.tax-product_cat .woocommerce ul.products li.product-category h2.woocommerce-loop-category__title,
.tax-product_cat .woocommerce-page ul.products li.product-category h2.woocommerce-loop-category__title{
  margin: 8px 0 0;
  padding: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  position: absolute;
}

.tax-product_cat .woocommerce ul.products li.product-category mark.count,
.tax-product_cat .woocommerce-page ul.products li.product-category mark.count{
  display: none !important;
}

.tax-product_cat .woocommerce ul.products li.product-category > a::after,
.tax-product_cat .woocommerce-page ul.products li.product-category > a::after{
  content: "Shop Now";
  margin-top: 30px;

  width: 100%;
  text-align: center;

  background: #2f63ff;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 5px;
}

/* Hover */
.tax-product_cat .woocommerce ul.products li.product-category > a:hover::after,
.tax-product_cat .woocommerce-page ul.products li.product-category > a:hover::after{
  filter: brightness(.95);
}

/****menu mobile popup****/
@media (max-width: 1024px) {

  /* Popup de Elementor */
  .dialog-widget.mm-popup,
  .dialog-widget.mm-popup .dialog-widget-content,
  .dialog-widget.mm-popup .dialog-message {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .dialog-widget.mm-popup .dialog-message {
    padding: 0 !important;
    overflow: hidden !important;
    background: #f5f5f5;
  }

  .dialog-widget.mm-popup .elementor-location-popup {
    height: 100%;
  }

  /* Tu contenedor interno */
  .mm-mobile-menu {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    background: #f5f5f5;
    overflow: hidden;
  }

  /* Vistas */
  .mm-view {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(24px);
    transition:
      opacity .28s ease,
      transform .28s ease,
      visibility 0s linear .28s;
    z-index: 1;
  }

  .mm-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition:
      opacity .28s ease,
      transform .28s ease,
      visibility 0s linear 0s;
    z-index: 2;
  }

  .mm-item {
    cursor: pointer;
  }

  .mm-back-trigger,
  .mm-close-trigger {
    cursor: pointer;
  }
}