.wim-catcarousel {
  margin: 20px 0;
  padding: 0 35px;
  position: relative;
}

/* Máscaras blancas laterales */
/* .wim-catcarousel::before, .wim-catcarousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  background: #fff;
  z-index: 2;
  pointer-events: none;
} */
.wim-catcarousel::before { left: 0; }
.wim-catcarousel::after { right: 0; }

.wim-catcarousel .swiper-slide {
  text-align: center;
}

.wim-catcarousel .swiper-slide img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px 10px 10px 0;
}

.wim-catcarousel .product-name {
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.wim-catcarousel .product-description-short { /* applies mobile & desktop */
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical;
  color: #666;
  font-size: 12px;
  line-height: 14px;
  text-align: left;
  margin-top: 12px;
  padding-right: 25px;
}

/* Estilos block-ideas desde categories.scss */
.wim-catcarousel.block-ideas {
  margin-top: 70px;
}

.wim-catcarousel.block-ideas .block_content {
  max-width: 1920px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 30px;
  margin-top: 30px;
}

.wim-catcarousel.block-ideas h2.carousel_title.title_block,
.wim-catcarousel.block-ideas h3.carousel_title.title_block {
  margin-bottom: 0;
  max-width: 970px;
  position: relative;
  font-family: inherit;
}

.wim-catcarousel.block-ideas .title_block a.title-link {
  font-size: 42px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px;
  color: #262626;
  margin: 0 auto;
  position: relative;
}

.wim-catcarousel.block-ideas .title_block .title-link {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.wim-catcarousel.block-ideas .title_block .title-link:hover {
  color: inherit;
  text-decoration: none;
}

.wim-catcarousel.block-ideas .title_block::before {
  content: url("/themes/selfpackaging/assets/img/bombilla.svg");
  position: absolute;
  transform: translateX(-120px) translateY(-30px) scale(0.9) !important; 
}

.wim-catcarousel.block-ideas .title_block::after {
  content: url("/themes/selfpackaging/assets/img/caja_avion.svg");
  position: absolute;
  top: 0;
  right: 200px;
  transform: translateY(-100px) scale(1.05);
  z-index: 2;
}

.wim-catcarousel.block-ideas .carousel-description {
  padding-top: 20px;
  padding-right: 250px;
  padding-left: 20px;
  max-width: 1000px;
}

.wim-catcarousel.block-ideas .carousel-description * {
  max-width: 65%;
  font-size: 13px;
  line-height: 17px;
  color: #666;
}

.wim-catcarousel .swiper_wrap {
  height: 100%;
  width: 100%;
  position: relative;
  display: block;
  text-align: left;
}

.wim-catcarousel .swiper-container {
  box-sizing: border-box; 
  padding-top: 20px;
  position: relative;
}

@media (max-width: 991px) {
  .wim-catcarousel.block-ideas .title_block a.title-link {
    font-size: 24px !important;
  }
  .wim-catcarousel .swiper-container {
    padding: 0 30px;
  }
  .wim-catcarousel.block-ideas .carousel-description * {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    color: #262626;
    max-width: 100%;
  }
  #category .block-ideas .carousel-description {
    padding: 0px 30px!important;
  }
}
@media (max-width: 767px) {
  .wim-catcarousel .swiper-container {
    padding: 0 15px;
  }
}

.wim-catcarousel .swiper-button-prev,
.wim-catcarousel .swiper-button-next {
  color: #E94F19;
  cursor: pointer;
}
.wim-catcarousel .swiper-button-prev:hover::before,
.wim-catcarousel .swiper-button-next:hover::before {
  color: #E94F19;
} 

.wim-catcarousel .sw-nav {
  display: flex;
  position: absolute;
  top: 50%;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.wim-catcarousel .sw-nav:hover {
  background: transparent;
}

.wim-catcarousel.block-ideas .sw-nav {
  background: transparent;
}

.wim-catcarousel .sw-nav::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid #E94F19;
  border-width: 0 0 2px 2px;
  transition: all 0.3s ease;
}

.wim-catcarousel .sw-nav:hover::before {
  border-color: #E94F19;
}

.wim-catcarousel .sw-nav.prev { 
  left: -40px; 

}

.wim-catcarousel .sw-nav.next { 
  right: -40px; 
}

/* Bullets */
.wim-catcarousel .swiper-pagination {
  margin-top: 20px;
  text-align: center;
  display: none;
}
.wim-catcarousel .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
}
.wim-catcarousel .swiper-pagination-bullet-active {
  background: #E94F19;
}

/* Responsive */
@media (max-width: 767px) {
  .wim-catcarousel .sw-nav { 
    display: flex; 
    width: 36px; 
    height: 36px;
    z-index: 10; 
    background: #E94F19;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
  }

  .wim-catcarousel.block-ideas .block_content{
    padding: 0;
  }
  
  .wim-catcarousel .sw-nav::before {
    border-color: #fff;
    width: 12px;
    height: 12px;
    margin: 0;
  }
  
  .wim-catcarousel .sw-nav.prev { 
    left: -35px; 
    transform: translateY(-50%) rotate(45deg);
  }
  
  .wim-catcarousel .sw-nav.next { 
    right: -35px; 
    transform: translateY(-50%) rotate(-135deg);
  }
  
  .wim-catcarousel .swiper-pagination { 
    display: block; 
    position: relative;
    margin-top: 15px;
  }
  
  .wim-catcarousel::before, .wim-catcarousel::after { display: none; }
  
  .wim-catcarousel.block-ideas {
    margin: 40px 0;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .wim-catcarousel.block-ideas .carousel-description,
  .wim-catcarousel.block-ideas h2.carousel_title.title_block a.title-link,
  .wim-catcarousel.block-ideas h3.carousel_title.title_block a.title-link,
  .wim-catcarousel.block-ideas .title_block {
    padding: 0 15px !important;
  }
  
  /* Ocultar iconos decorativos en móvil */
  .wim-catcarousel.block-ideas .title_block::before,
  .wim-catcarousel.block-ideas .title_block::after {
    display: none;
  }
  
  .wim-catcarousel.block-ideas h2.carousel_title.title_block a.title-link,
  .wim-catcarousel.block-ideas h3.carousel_title.title_block a.title-link {
    padding: 0px 15px !important;
    margin: 15px 0;
    font-weight: 800;
  }
  
  .wim-catcarousel .swiper-container {
    padding: 0;
  }
  
  .wim-catcarousel .swiper-slide {
    width: 100% !important;
    display: flex;
    justify-content: center;
  }
  .wim-catcarousel .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
