/* INICIO CSS SILEBAR */
#background-silebar-carrito {
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.63);
  display: none;
  z-index: 15;
}

#contenedor-silebar-carrito {
  position: fixed;
  top: 0;
  display: none;
  display: flex;
  background-color: white;
  width: 330px;
  height: 100%;
  transition: right 0.5s ease; /* Ajuste de la transición */
}

#silebar-categorias-carrito {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#silebar-categorias-carrito hr {
  width: 100%;
  height: 1px;
  background-color: red;
}

.close-silebar-carrito {
  display: flex;
  justify-content: flex-end;
  background-color: #f7f7f7;
  border-top: 5px solid rgb(234, 34, 34);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.close-silebar-carrito label {
  display: flex;
  padding: 12px 17px;
  color: rgb(0, 0, 0);
  cursor: pointer;
  transition: 0.2s;
  border: none;
}

.close-silebar-carrito label:hover {
  background-color: rgb(239, 239, 239);
}

.close-silebar-carrito label img {
  width: 25px;
}

/* Estilos para la parte de las categorias */
#silebar-categorias-carrito ul {
  display: flex;
  padding: 20px;
  list-style: none;
  flex-direction: column;
  height: calc(100vh - 82px);
  overflow-y: auto;
}

#silebar-categorias-carrito li {
  padding: 17px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-radius: 5px;
  font-size: 20px;
  color: #4c4c4c;
  border-left: 5px solid rgba(243, 243, 243, 0);
}

.simnbolo {
  width: 12px;
}

#silebar-categorias-carrito li:hover {
  background-color: #f7f7f7;
  border-left: 5px solid red;
  color: black;
}

.listaItems span {
  text-transform: uppercase;
}

li:hover .simbolo {
  color: red;
  font-weight: bold;
}

/* estilos para las subcategorias */
#silebar-subcategoria-carrito {
  display: block;
}

.comprar_productos_carrito {
  width: 90%;
  background-color: #eb2929;
  color: #ffffff;
  font-weight: 800;
  border-radius: 7px;
  margin: 1rem;
  padding: 0.55rem;
  border: none;
  outline: none;
}

.boton-eliminar-carrito {
  background: transparent;
  border: none;
  outline: none;
  background-color: #ff4747;
  padding: 0.45rem;
  border-radius: 5px;
  width: 45px;
  height: auto;
}

.contenido_productos-pago {
  margin: 1rem;
}

.cantidad_productos_contenido {
  background-color: #f8fcff;
  padding: 0.85rem;
  border-radius: 7px;
  text-align: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.cantidad_productos_contenido .cantidad_producto--span {
  font-weight: bold;
}

.total_pagar_productos {
  font-weight: 500;
}

.total_pagar-span {
  color: #ff4747;
}
