.product-section {
    position: relative;
    margin-bottom:4rem;
    margin-top: 4rem;
}


/* Estilos da nova sessão - Content Section */
.content-component .straight {
    background-color: #000000;
    height: 1px;
    margin-left: 10px;
    /* Espaço entre o texto e a linha */
    margin-top: 15px;
}

.content-component .text-container h2 {
    font-size: 1.5rem;
}

.content-component .text-container {
    line-height: 2rem;
}

.content-component .text-container h2 {
    font-size: 2rem;
    margin-bottom: 0;
}

.water-saving-section {
    padding:0;
    margin-bottom:4rem;
    margin-top: 4rem;
}

/* Estilos da nova sessão - Benefits Section */
.benefits-section {
    padding: 2rem 0;
}

.benefits-section .benefit-item {
    padding: 1rem;
}

.benefits-section .benefit-icon img {
    max-width: 50px;
    height: auto;
    margin-bottom: 0.5rem;
}

.benefits-section .benefit-title {
    font-family: UniSansBold;
    font-size: 1.5rem;
    margin-top: 1rem;
}

.benefits-section .benefit-description {
    font-family: UniSansBook;
    font-size: 1rem;
}

.carousel{
    background-color: #403C59;
    height: 230px;
    position: relative;
    width: 90%;
    margin: 10px auto;
    border-radius: 10px;
    padding: 10px;
}

.progress-container{
    width: 100%;
    margin: 0 auto;
}

.progress-bar{
    width: 80%;
    height: 55px;
    margin: 50px auto 0 auto;
    position: relative;
    background-color: transparent;
}

.progress-white { 
    position: absolute; 
    top: 20%; 
    height: 10%; 
    width: 100%; 
    background-color: #ffffff; /* Linha branca */ 
    border-radius: 5px; 
}

.progress-fill {
    position: absolute;
    top: 20%;
    height:10%;
    width: 100%;
    background-color: #665E8D;
    border-radius: 5px;
    transition: width 0.3s ease;
    z-index: 1

}

.progress-circles {
    position: absolute;
    top: 0%;
    width:100%;
    display: flex;
    justify-content: space-between;
}

.circle {
    width: 30px;
    height: 30px;
    background-color: #ddd;
    border: 3px solid #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1;
    /* Garante que os círculos fiquem acima da barra */
}

.circle.active {
    background-color: #665E8D;
    border: 3px solid #665E8D;
}

.progress-content {
    margin-top: 40px;
}

.content {
    display: none;
    font-size: 16px;
    color: #ffffff;
}

.content.active {
    display: block;
}


/* Carrossel container */
.carousel-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #EDEDED; /* Fundo cinza-claro */
  padding: 20px 15px;
  width: 100%;
  border-radius: 0 0 15px 15px;
}

/* Wrapper para o conteúdo */
.carousel-mobile .carousel-content-wrapper {
  flex: 1;
  margin-right: 20px;
  position: relative;
  overflow: hidden; /* Esconde o conteúdo não visível */
  transition: height 0.3s ease; /* Suaviza a transição da altura */
}

/* Conteúdo do carrossel */
.carousel-mobile .carousel-content {
  display: none; /* Esconde todo o conteúdo por padrão */
  width: 100%;
  transition: opacity 0.5s ease;
}

/* Exibir o conteúdo ativo */
.carousel-mobile .carousel-content.active {
  display: block; /* Mostra apenas o conteúdo ativo */
  opacity: 1;
}

/* Títulos e descrições */
.carousel-mobile .carousel-content h2 {
  margin-bottom: 10px;
}

.carousel-mobile .carousel-content p {
  line-height: 1.6;
}

/* Controles do carrossel */
.carousel-mobile .carousel-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-mobile .carousel-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  margin: 3px 0;
  color: #665E8D;
}

.carousel-mobile .carousel-btn:focus {
  outline: none;
}

/* Paginação */
.carousel-mobile .pagination {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.carousel-mobile .dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
}

.carousel-mobile .dot.active {
  background-color: #665E8D;
}


/* Carrossel container */
.carousel-desktop {
    position: relative;
    max-width: 90%;
    margin: auto;
    background-color: #ECECEC;
    padding: 20px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
  }
  
  /* Wrapper para slides */
  .carousel-desktop  .carousel-wrapper-desk {
    display: flex;
    width: 90%;
    margin: 0 auto;
    padding: 15px;
    transition: transform 0.5s ease;
  }
  
  /* Cada slide */
  .carousel-desktop .carousel-slide-desk {
    width: 90%;
    text-align: center;
    display: none;

  }
  
  .carousel-desktop .carousel-slide-desk.active {
    display: block;
    margin: 0 auto;
  }
  
  /* Título e texto */
  .carousel-desktop .carousel-slide-desk h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .carousel-desktop  .carousel-slide-desk p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Botões de navegação */
  .carousel-desktop  .carousel-btn-desk {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2.5rem;
    font-family: UniSansBook;
    cursor: pointer;
    z-index: 1000;
    color: #665E8D;
  }
  
  .carousel-desktop .carousel-btn-desk.left {
    left: 10px;
  }
  
  .carousel-desktop .carousel-btn-desk.right {
    right: 10px;
  }
  
  .carousel-desktop .carousel-btn-desk:focus{
    outline: none;
  }
  /* Indicadores de progresso */
  .carousel-desktop  .pagination-desk {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding-bottom: 10px;
  }
  
  .carousel-desktop .dot-desk {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
  }
  
  .carousel-desktop .dot-desk.active {
    background-color: #665E8D;
  }
  
  /* Estilos para a seção de custo-benefício */
.section-cost-benefit {
    padding: 2rem 0;
    text-align: center;
}



/* Estilos para a imagem no desktop */
.cost-benefit-image {
    max-width: 80%;
    margin-bottom: 20px;
}

/* Estilos para o texto */
.cost-benefit-text {
    max-width: 65%;
}


.container-change-img {
    position: relative;
    overflow: hidden;
    max-width: 90%;
    height: 90%;
    margin: 0 auto;
    background-color: #ECECEC;
}

.container-change-img .image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  overflow: hidden;

}

.container-change-img .image {
    position: absolute;
    width: 100%;
    height:auto;
    object-fit:contain;
    z-index: 0;
}

.container-change-img .image.bw {
    clip-path: inset(0 50% 0 0);
    /* Mostra apenas metade em preto e branco */
    transition: clip-path 0.3s ease-in-out;
}

.container-change-img .image.color {
    clip-path: inset(0 0 0 50%);
    /* Mostra apenas a outra metade em cor */
    transition: clip-path 0.3s ease-in-out;
}

.container-change-img .slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #665E8D;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 5;
}

.container-change-img .handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #665E8D;
    cursor: pointer;
    z-index: 1;
}

.container-change-img .arrow {
    margin-top: 18px;
    color: #ffffff;
    font-size: 1.4rem;
    font-family: UniSansBook;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#splide .splide__pagination {
  display: none !important;
}

#splide .splide__slide .card {
  padding: 20px;
  border: none;
}

#splide .splide__slide .card-title {
  font-size: 1.2rem;
  margin-left: auto;
  margin-right: auto;
}

#splide .splide__slide .card-text {
  font-size: 1rem;
  margin-left: auto;
  margin-right: auto;
}

#splide .splide__arrow:hover,
.splide__arrow:focus,
.splide__arrow:active {
  outline: none !important;
}

#splide .splide__slide:not(.is-active) .card-body {
  display: none;
  /* Esconde o texto das imagens laterais */
}


/* Container do grid */
.grid-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

/* Estilo dos itens */
.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  background-color: #E5E4E4; /* Fundo cinza claro */
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Wrapper da imagem */
.icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
}

/* Imagem padrão (sem hover) */
.icon-default {
  display: block;
}

/* Imagem de hover (linhas brancas) */
.icon-hover {
  display: none;
}

/* Texto */
.grid-item p {
letter-spacing: 2px;
}

/* Efeito hover */
.grid-item:hover {
  background-color: #5e4b94; /* Fundo roxo */
  color: #ffffff; /* Texto branco */
}

.grid-item:hover .icon-default {
  display: none; /* Esconde a imagem padrão */
}

.grid-item:hover .icon-hover {
  display: block; /* Mostra a imagem de hover */
}

.grid-item:hover p {
  color: #ffffff; /* Altera a cor do texto no hover */
}

.accessories-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* Estilo dos itens no grid */
.accessory-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%; 
  max-width: 300px;
  margin: 25px auto; 
  text-align: center;
}

/* Imagens dentro do item */
.accessory-item img {
  width: 100%; 
  height: auto; 
}

  
@media (min-width: 768px) {
    .show-desktop {
        display: flex;
    }

    .product-image-wrapper {
        text-align: left;
    }

    .water-saving-section {
        margin-bottom:4rem;
        margin-top: 4rem;
    }

    .benefits-section .benefit-item {
        display: flex;
        flex-direction: column;

    }

    .benefits-section img {
        width: 100%;
        /* Ajusta a largura da imagem da lavadora */
        margin: 0 auto;
    }

    .section-cost-benefit .show-desktop {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .grid-item {

      width: 200px;
      height: 200px;
    }

    .icon-wrapper img{
      width: 200px;
      height: auto;
    }

    .accessories-grid {
      flex-wrap: nowrap; 
  }
  
  .accessory-item {
      width: 30%; 
  }

  .progress-content .content:nth-child(4) {
    width: 40%; /* Largura maior para telas menores */
  }

}

@media (max-width: 767px) {

    .product-image img {
        max-width: 70%;
        height: auto;
    }

    .product-image-wrapper {
        text-align: center;
       
    }

    .content-component .text-container h2 {
        font-size: 1.6rem;
        margin-bottom: 0;
    }

    .content-component .text-container p {
        font-size: 1.6rem;
        margin-top: -2px;
    }

    .content-component .straight {
        margin-top: 13px;
        margin-left: 10px;
    }


    .container-change-img {
      max-width: 100%;
      margin: 0;

    }

    .carousel{
        background-color: #403C59;
        width: 100%;
        border-radius: 0px;

    }

    .cost-benefit-image-mobile {
        width: 90%;
        margin-bottom: 20px;
    }

    .cost-benefit-text {
        max-width: 90%;
        padding: 0 1rem;
    }

   #splide .splide__arrow--prev {
      display: none;
  }

  #splide .splide__arrow--next {
      display: none;
  }

  #splide .splide__slide:not(.is-active) .card-body {
      display: none;
      /* Esconde o texto das imagens laterais */
  }

  #splide .splide__slide.is-active .card-body {
      display: block;
      /* Mostra o texto apenas do slide ativo */
  }

  #splide .splide__slide:not(.is-active) img {
      width: 70%;
      margin-top: 3rem
  }

  /* Centralizar o slide ativo */
  #splide .splide__slide:not(.is-active) {
      opacity: 0.5;
      /* Deixa os slides laterais sem destaque */
      transition: opacity 0.3s ease;
      width: 50%;
  }

  #splide .splide__slide.is-active {
      opacity: 1;
      /* Realça o slide ativo 
      margin-left: 1rem;*/
  }

  #splide .splide__slide img {
      max-width: 100%;
      /* Limita o tamanho da imagem */
      margin: 0 auto;
  }

  #splide .splide__slide .card {
      padding: 0px;
      width: 100%;
  }

  #splide .splide__slide.is-active .card-body {
      width: 120%;
      margin: 0 0 0 -25px;
      padding: 10px 0 0 0;
  }

  .container-change-img .image-wrapper {
    height: 78vh;
  }

  .grid-item {
    width: 200px;
    height: 200px;
  }

  .accessories-grid {
    flex-direction: column; 
  }
  
  .accessory-item {
    width: 100%; 
  }

  .progress-content .content:nth-child(4) {
    width: 80%; /* Largura maior para telas menores */
  }

}