/* css cart  */

.button-cart,
.a-cart {
  width: 5vh;
  height: 5vh;
  border: none;
}

.button-buy-cart,
.button-cart,
.a-cart,
.count {
  background: transparent;
}

.image-cart,
.close-cart,
.image-cart-element {
  object-fit: cover;
}

.section {
  width: 0%;
  height: 100vh;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  position: fixed;
  z-index: 999;
  background: black;
  transition: all 0.2s;
}
.cart-header {
  height: 10%;
  border-bottom: 0.5px solid #5e5e5e;
  position: relative;
}

.element-cart,
.container-cart-footer,
.cart-header,
.container-count,
.count-low,
.count-high,
.count,
.row-element-cart-2 {
  display: flex;
}

.container-cart-footer,
.cart-header,
.count-low,
.count-high,
.count,
.row-element-cart-2 {
  align-items: center;
}

.cart-header,
.cart-footer,
.cart-body,
.image-cart,
.close-cart,
.container-cart-footer,
.element-cart,
.row-element-cart,
.row-element-cart-2 {
  width: 100%;
}

.cart-header,
.cart-footer,
.cart-body,
.container-cart-footer {
  padding: 1em;
}

.title-cart {
  font-size: 2.8vh;
  margin: 0;
}

.element-cart {
  margin: 1vh 0 1vh 0;
  position: relative;
}

.subtitle-cart,
.text-cart,
.title-cart,
.count-low,
.count-high,
.count {
  color: #fff;
}

.a-cart {
  position: absolute;
  right: 2vh;
}
.cart-body {
  height: 70%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #888 #000000;
}

.image-cart-element {
  width: 20vh;
  height: 20vh;
  margin: 0 2vh 0 2vh;
}
.container-element-cart {
  width: 80%;
}
.row-element-cart,
.row-element-cart-2 {
  padding: 0.5em;
}

.subtitle-cart,
.text-cart {
  margin: 0;
  padding: 0;
}

.container-count {
  width: 4vw;
  height: 2.5vh;
  margin: 0 4vh 0 0;
}

.count-low,
.count-high,
.count {
  width: 33%;
  height: 100%;
  padding: 0.5vh;
  justify-content: center;
  font-size: 2vh;
}

.count-low,
.count-high {
  cursor: pointer;
}

.count {
  outline: none;
}
.cart-footer {
  height: 20%;
  border-top: 0.5px solid #5e5e5e;
}
.container-cart-footer {
  justify-content: space-between;
}
.button-buy-cart {
  width: 60%;
  margin: 1vh 20%;
  color: #5e5e5e;
}

.count-low,
.count-high,
.count,
.button-buy-cart {
  border: 0.5px solid #5e5e5e;
}

/* events  */

.section-change {
  width: 50%;
}

.button-cart:active {
  transform: scale(1.1);
}

.button-buy-cart:active {
  background: #5e5e5e;
  color: #fff;
}

@media screen and (hover: hover) {
  .button-cart:hover {
    transform: scale(1.1);
  }
  .button-buy-cart:hover {
    background: #5e5e5e;
    color: #fff;
  }
}

/* responsive  */
@media screen and (max-width: 990px) {
  .button-cart {
    width: 7vh;
    height: 7v;
  }
  .section-change {
    width: 100%;
  }

  .subtitle-cart {
    font-size: 2.2vh;
  }
  .text-cart {
    font-size: 2vh;
    margin: 1vh 0 1vh 0;
  }

  .container-count {
    width: 15vw;
    height: 4vh;
  }
  .row-element-cart,
  .row-element-cart-2 {
    padding: 0.1em;
  }

  .cart-footer {
    padding: 0.5em;
  }
  .image-cart-element {
    width: 15vh;
    height: 15vh;
  }
}
