body {
    background-color: #f8fae8;
    font-family: "Playwrite DK Loopet", cursive;
  font-optical-sizing: auto;
  font-weight: 300;
}
.navbar-color {
  background-color: #f3f2e0;
  position: sticky;
  top: 0;
  z-index: 1000; 
  
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.modal {
      position: fixed;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: none;
      align-items: center;
      justify-content: center;
    }
    .modal-contenido {
  background-color: #f8fae8;
  border-radius: 30px;
  text-align: center;
  padding: 30px 40px;      
  max-width: 500px;        
  width: 90%;              
}
.boton-color {
  border-color: #000;

}
.boton-style {
  border-radius: 90px;
}
    .producto-carrito {
      border: 1px solid #ccc;
      margin: 10px;
      padding: 10px;
    }

    #finalizar-compra {
      margin-top: 20px;
    }

#carrito-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.producto-carrito {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  background-color: #f9f9f9;
}

.cantidad-control {
  margin-top: 10px;
}

.cantidad-control button {
  padding: 5px 10px;
  margin: 0 5px;
  font-size: 16px;
  cursor: pointer;
}

#contenedor-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}
.producto-carrito {
  background-color: #f5f8dd;
  border: 1px solid #f8fae8;
  border-radius: 10px;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.producto {
  background-color: #f5f8dd;
  border: 1px solid #f8fae8;
  border-radius: 10px;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.producto:hover {
  transform: scale(1.03);
}
.producto-imagen-carrito {
  width: 60%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.producto-imagen {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.producto-detalles {
  margin-top: 1rem;
}

.producto-titulo {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.producto-precio {
  font-weight: bold;
  margin-bottom: 1rem;
}

.producto-agregar {
  background-color: #c8d195;
  color: #000;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.producto-agregar:hover {
  background-color: #2980b9;
}
#mensaje-aviso {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: #f7f6cd;
  color: rgb(46, 45, 45);
  padding: 10px 20px;
  border-radius: 5px;
  display: none;
  z-index: 1000;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
  transition: opacity 0.3s ease;
}

.carrito-header {
  display: flex;
  justify-content: flex-start;
  margin-top: 40px;
}

#btn-regresar-productos {
  background-color: #c2c1a9;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#btn-regresar-productos:hover {
  background-color: #cfcfaa;
}

.formulario {
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.formulario div {
  margin-bottom: 15px;
}

.formulario label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.formulario input {
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background-color: #fef9f9;
}

.mensaje-error {
  color: red;
  margin-top: 10px;
  display: none;
  font-weight: bold;
}


@media (max-width: 576px) {
  h1, h2, h3 {
    font-size: 1.5rem;
    text-align: center;
  }
  .producto-imagen,
  .producto-imagen-carrito {
    height: 150px;
    width: 100%;
  }

  .producto {
    padding: 0.8rem;
  }

  .producto-titulo {
    font-size: 1rem;
  }

  .producto-precio {
    font-size: 1rem;
  }

  .producto-agregar {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }

  #contenedor-productos {
    padding: 1rem;
    grid-template-columns: 1fr;
  }

  .formulario {
    padding: 15px;
    max-width: 100%;
    margin: 1rem;
  }

  .modal-contenido {
    padding: 20px;
    width: 95%;
  }

  .carrito-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #btn-regresar-productos {
    width: 100%;
    margin-top: 10px;
  }

  .row.aligN-items-center {
    flex-direction: column;
    text-align: center;
  }

  .col-md-6 img {
    width: 100%;
    height: auto;
  }
}
