.banner{
  width: auto;
  margin: 0 8% 1% 8%;
}

.banner:hover{
  opacity: 0.8;
}

.banner-container {
  position: relative;
  margin-top: 20px;
}

.banner-container .banslidesFade img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.4);
}

.banslides {
    display: none;
    max-width: 100%;
}
.banslidesFade:not(:first-child) {
  display: none;
}
.banslidesFade{
  max-width: 100%;
  height: auto;
  transition: opacity 1s;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 45%;
  width: auto;
  padding: 25px 15px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/*horizontal line*/

.nav-divider0 {
    border: none;
    border-top: 1px solid #f1f1f1;
    margin: 0 8% 0 8%;
}

.nav-divider1 {
  border: none;
  border-top: 1px solid #f1f1f1;
  margin: 2% 8% 4% 8%;
}

.nav-divider2 {
  border: none;
  border-top: 1px solid #f1f1f1;
}

.nav-divider3 {
  border: none;
  border-top: 1px solid #f1f1f1;
  margin: 5px 8% 5px 8%;
}


.popular #bestSellerProducts {
  display: flex;
  justify-content: center; 
  margin-bottom: 3%;
}


.popular h1, .carousel-container h1 {
  margin: 20px 20px 40px 20px;;
  text-align: center;
  font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
}

/*carousel style*/
.carousel-wrapper {
  margin: 0 8%;
}

.carousel-container {
  margin-bottom: 30px;
}




/*popular products*/
.swiper-container {
  width: 100%;
  height: auto;
  padding: 20px 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}


.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  cursor: pointer;
  position: absolute;
  width: auto;
  padding: 25px 15px ;
  margin-top: -22px;
  font-size: 18px;
  transition: 0.6s ease;
}

.swiper-button-next {
  right: 5px;
}

.swiper-button-prev {
  left: 5px;
}

.swiper-pagination-bullet {
  background: #b0b0b0 !important;
}


/*wrapper to constrain the carousel*/
.carousel-wrapper-popular {
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.swiper-container {
  width: 100%;
  height: auto;
  padding: 20px 0;
}


.swiper-slide {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}


.swiper-button-next,
.swiper-button-prev {
  color: rgb(173 173 173 / 11%) !important;
  width: 20px !important;
  height: 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: #f2f2f200;
  margin-right: -10px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: rgba(139, 139, 139, 0.523) !important;
  background-color: #d3d3d31f;
}






.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  }
.dotClass{
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}
.active, .dot:hover {
    background-color: #717171;
  }
a{
    color: black;
}
  
  /* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }

@keyframes fade {
    from {opacity: 0.4} 
    to {opacity: 1}
  }

.banslidesFade img{
    background-size: cover;
    background-position: center;
    
    width: 100%;
    height: auto;
    
}
/* Pero que despelote es este? No me juzgues por lo que viene */ 

.productShortcut {
    align-items: baseline;
    display: flex;
    margin: 10px 0px;
  
}
.shortcut{
    padding: 5px;
}
.shortcut img{
    width: 100%;
}
::placeholder {
    color: black;
    margin: 3px 0px 4px 10px;
}

/*Blocks*/
#allBlocks {
  margin: 0% 8% 2% 8%;
}


#upperBlock {
    margin-top: 1px;
    margin-bottom: 3%;
}

#upperBlock img {
    height: auto;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.4);
}

#upperBlock img:hover {
  width: 100%;
  height: auto;
  transform: scale(1.001);
  opacity: 0.8;
}

.blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    margin-top: 20px;
}

.hover-container {
  position: relative;
  overflow: hidden;
  width: 700.60px;
  height: 350px;
}

.hover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.hover-button {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 20px;
  font-size: 20px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: bottom 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  border-radius: 24px;
}

.hover-container:hover .hover-button {
  bottom: 20px;
  opacity: 1; 
  pointer-events: auto;
}





.blocks img, .subBlocks img, .lowerBlocks img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.4);
}

.blocks img:hover, .subBlocks img:hover, .lowerBlocks img:hover {
  width: 100%;
  height: auto;
  transform: scale(1.001);
  opacity: 0.8;
}

.subBlocks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 10px;
    margin-top: 10px;
    margin-bottom: 3%;
}

.lowerBlocks {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 30px;
      margin-top: 3%;
}

 
@media screen and (max-width: 1033px) {
    .lowerBlocks {
      grid-template-columns: 1fr 1fr;
    }
}
  
@media screen and (max-width: 576px) {
  .prev, .next {
    padding: 5px;
    top: 50%;
  }  
  .blocks, .lowerBlocks {
      grid-template-columns: 1fr;
      grid-gap: 5px;
    }
   .subBlocks {
      grid-template-columns: 1fr 1fr;
      grid-gap: 10px;
    }
    .card {
      width: 300px;
      text-align: center;
      margin: 0 auto;
    }
    .swiper-button-next, 
    .swiper-button-prev {
      display: none;
    }
    .banner {
      margin: 2% 0 1% 0;
    }
    .banner-top {
      margin: 2% 0 1% 0;
    }
    #allBlocks {
      margin: 0 2% 2% 2%;
    }
    .popular{
      margin: 0 10% 0 10%;
    }
}