.manufactures-container-grid {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  /* gap: 5rem; */
  align-items: center;
  position: relative;
}

.manufacrtures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 53.75rem;
  position: relative;
}

.manufactures .single-category {
  display: grid;
  justify-content: center;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: top;
  color: #fff;
  font-weight: 300;
  cursor: pointer;
}

.manufactures .single-category p {
  position: relative;
  z-index: 1;
  max-width: 11rem;
  text-align: center;
  margin: 0;
  border-radius: 23px;
  padding: 0.53em 1.64em;
  transition: all 0.5s ease-in-out;
}

.manufactures .single-category .m-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #000;
  z-index: 0;
  opacity: 0.75;
  transition: all 0.5s ease-in-out;
}

.selected-cat.open {
  pointer-events: all;
  z-index: 2;
}

.selected-cat button.back {
  background: transparent;
  appearance: none;
  border: none;
  color: white;
  padding: 0;
  width: 1em;
  height: 1em;
  font-size: 1em;
}

.manufactures .single-category:hover .m-overlay {
  opacity: 0;
}

.manufactures .single-category:hover p {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

.manufactures .desc-container {
    height: 100%;
    width: 100%;
    display: grid;
    align-items: center;
    background: #fff;
    padding-top: 30px;
}

.manufactures .description {
  padding-bottom: 12rem;
  z-index: 1;
  margin: 0 auto;
}

.manufactures .description h2,
.manufactures .description h4 {
  margin-bottom: 2rem;
}

.selected-cat button.back i,
.brands-next i{
    line-height: 1;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.selected-cat button.back:hover i,
.brands-next:hover i {
    color: #000;
    background: #fff;
}

img.bottom-right-img {
  height: auto;
  position: absolute;
  right: 1em;
  z-index: 0;
  max-width: 9rem;
}

.selected-cat {
  position: absolute;
  height: 100%;
  padding-top: 4.5rem;
  top: 0;
  width: 100%;
  left: 0;
  z-index: -1;
  /* opacity: 0; */
  pointer-events: none;
}

.selected-cat .container {
  z-index: 2;
}

.selected-cat > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: -2;
}

.backgroundS {
  position: absolute;
  top: 0;
  height: 100%;
  background: white;
  z-index: 0;
  right: 0;
}

.selected-cat .overlay {
  background-color: #000;
  opacity: 0.8;
  width: 100%;
  height: 100%;
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
}

.selected-cat .brand-img {
  opacity: 0;
  transition: all .4s ease-in-out;
}

.selected-cat .brand-img.visible {
  opacity: 1;
}

.selected-cat .brand-img img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.selected-cat .brand-desc {
  background-color: #fff;
  padding: 2rem;
}

.selected-cat .m-header {
  color: #fff;
  display: flex;
  justify-content: space-between;
  font-size: 1.75rem;
}

.selected-cat .single-brand .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 1.75rem;
}

.selected-cat .single-brand {
  position: relative;
  /* max-height: 14rem; */
  width: 100%;
  cursor: pointer;
  background-color: #fff;
}

.selected-cat .single-brand > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: all 0.5s ease-in-out;
}

.selected-cat .single-brand.active-brand > img {
  opacity: 0;
}

.selected-cat .brands {
  width: 100%;
  height: 21rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.brands-next {
  font-size: 1.5rem;
  color: #fff;
  position: absolute;
  bottom: 10px;
  left: calc(100% + 10px);
  cursor: pointer;
}

section.manufacturesSection {
  z-index: 2;
}

@media (max-width: 500px) {
    .selected-cat .brands {
        height: 46rem;
    }

    .manufactures .description {
      padding-bottom: 2rem;
    }

    .manufactures img.bottom-right-img {
      right: 1rem;
    }

    p br {
      display: none;
    }
}

@media (min-width: 960px) and (max-width: 1100px) {
    .left-navigation,
    .brand-img,
    .brand-desc {
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (min-width: 500px) and (max-width: 1100px) {

    .selected-cat .brands {
        height: 22rem;
    }
}

@media (min-width: 660px) {
  .manufactures img.bottom-right-img {
    right: 7em !important;
  }

  .manufactures img.bottom-right-img {
    bottom: -4.5rem;
  }
}

@media (max-width: 960px) and (min-width: 600px) {

  .manufactures .single-category p {
    font-size: 1.8rem;
    max-width: unset;
    border-radius: 1.15em;
  }

  

}

@media (min-width: 960px) {
  .manufactures img.bottom-right-img {
    max-width: 15rem;
  }

  
}

@media (max-width: 1100px) {
  .left-navigation {
    position: relative;
  }

  .brands-next {
    bottom: -35px;
    left: calc(100% - 20px);
  }
}

@media (min-width: 1100px) {

    .manufactures .desc-container {
        padding-left: 5rem;
        padding-top: 0;
    }

    .manufactures-container-grid {
        grid-template-columns: 1fr 1fr;
      }
    
      .manufactures .description {
        max-width: 22rem;
        padding-bottom: 0;
      }
    
      .selected-cat .brands {
        width: 100%;
      }
        
    .selected-cat .brands {
        width: 100%;
        height: 41.8rem;
    }

    .selected-cat .brand-desc {
        position: absolute;
        max-width: 43rem;
        right: 0;
        bottom: 0;
        padding: 6rem 10rem 6rem 6rem;
    }

    .selected-cat .brand-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .selected-cat .brand-img {
        position: absolute;
        width: 59rem;
        max-width: 61.45833333333333%;
        height: 73%;
        right: 0;
        top: 0;
    }

    .selected-cat .container {
        max-height: 100%;
    }

    .selected-cat .left-navigation {
        max-width: 24rem;
        position: relative;
        max-height: 100%;
    }

    .selected-cat .brands {
        margin-top: 5rem;
        margin-bottom: 0;
    }

}
