
 h1 {
    margin-bottom: 20px;
}
.favorite-list {
display: flex;
flex-wrap: wrap;
gap: 20px;
background-color: #ffffff;
    }
.favorite-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 200px;
    padding: 10px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    position: relative;
    }
.favorite-card img {
    width: 100%;
    border-radius: 8px;
    }
.favorite-info {
    margin-top: 10px;
    }
    .favorite-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    }
.favorite-info p {
    margin: 2px 0;
    font-size: 14px;
    color: #555;
    }
.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4444;
    border: none;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    }
.favorite-icon.saved {
    color: red !important;
}

/* Reset y box-sizing */
* {
  box-sizing: border-box;
}

/* Tipografía y fondo */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0px;   /* <- Aquí está el espacio */
  background-color: #dedddd;
  color: #222;
}


/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10px;
  background-color: #ffffff;
  color: white;
  position: relative;
  z-index: 1100;
}

.navbar-left {
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.menu-icon {
  font-size: 2rem;
  background: none;
  border: none;
  color: rgb(2, 2, 2);
  cursor: pointer;
}

.navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.imagen {
  width: 200px;
  height: 70px;
  object-fit: cover;
  margin-top: 16px;
}

/* Menú lateral */
.side-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #333;
  color: white;
  padding-top: 2rem;
  transition: left 0.3s ease;
  z-index: 1000;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu ul li {
  padding: 1rem;
}

.side-menu ul li a {
  color: white;
  text-decoration: none;
  display: block;
}

.side-menu.open {
  left: 0;
}

/* Contenido */
.content {
  padding-top: 80px;
  max-width: 900px;
  margin: 0 auto;
}

/* Título */
h1 {
  text-align: center;
  color: #222;
  margin-bottom: 20px;
}

/* Contenedor de productos */
#carrito {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-x: hidden;
}

/* Tarjeta de producto */
.product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 10px;
  width: 100%;
  min-width: 300px;
  max-width: 100%;
}

.product-card img {
  width: 100px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.product-info {
  flex-grow: 1;
  padding: 0 12px;
  overflow: hidden;
}

.product-info p {
  margin: 4px 0;
  font-size: 14px;
  color: #333;
  white-space: normal;      /* ✅ Permite varias líneas */
  overflow-wrap: break-word; /* ✅ Rompe palabras largas si es necesario */
}


/* Botón eliminar */
.eliminar-btn {
  background-color: #ff4d4d;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.eliminar-btn:hover {
  background-color: #c0392b;
}

/* Total */
.total {
  font-size: 18px;
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
}





.Carito {
  font-size: 30px; /* Puedes ajustar el tamaño según lo que necesites */
  text-decoration: none; /* Opcional, quita el subrayado */
}


.opcion {
  background-color: #f9f9f9;
  flex: 1;
  min-width: 250px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

.opcion h3 {
  margin-bottom: 15px;
  color: #222;
}

.iconos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.iconos img,
.sofort,
.paypal {
  height: 35px;
  object-fit: contain;
  padding-left: 10px;
}

.faqs {
  margin-top: 40px;
  text-align: center;
  color: #222;
}
/* Responsive */
@media (max-width: 600px) {
  .product-card {
    flex-direction: row; /* Fuerza horizontal incluso en celular */
  }
  .product-info {
    padding: 0 10px;
  }
}

.add-to-cart {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 8px;
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.3s ease;
  font-size: 12px;
  border: none;
  cursor: pointer;
  justify-content: center;

}
.add-to-cart:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.buy-button {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 8px;
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.3s ease;
  font-size: 12px;
  border: none;
  cursor: pointer;
  justify-content: center;
}

.buy-button:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  
}

.tarjeta {
  text-align: center;
}
.btnn {
  font-size: 30px; /* Puedes ajustar el tamaño según lo que necesites */
  text-decoration: none; /* Opcional, quita el subrayado */

}
.logout-button {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #e74c3c;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  z-index: 1000; /* Asegura que esté por encima */
  transition: background-color 0.3s;
}

.logout-button:hover {
  background-color: #c0392b;
}
