/* ===== ESTILOS SIMILARES AL CATÁLOGO ===== */
#lista-carrito {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  max-width: 1280px;
}

#lista-carrito {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  max-width: 1280px;
  padding: 0 12px 32px;
  box-sizing: border-box;
}

/* Diseño producto similar al catálogo */
.producto-carrito {
  position: relative;
  padding: 22px 12px 16px 12px;
  background: #fff;
  border: 1.5px solid #e0e7ef;
  border-radius: 14px;
  box-shadow: 0 4px 24px 0 rgba(25, 49, 70, 0.08),
  0 1.5px 3px 0 rgba(25, 49, 70, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s, border-color 0.2s, transform 0.2s;
  cursor: default;
}

/* Hover para producto */
.producto-carrito:hover {
  box-shadow: 0 9px 32px 5px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.producto-carrito img {
  max-width: 96%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: #f4f4f7;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(78, 214, 202, 0.07);
  transition: box-shadow 0.2s;
  user-select: none;
}

.producto-carrito h3 {
  font-size: 1.13rem;
  margin-bottom: 10px;
  text-align: center;
  color: #22223b;
  font-weight: 600;
  user-select: text;
}

.producto-carrito p.precio {
  font-weight: 800;
  font-size: 1.09rem;
  color: #249f86;
  margin-bottom: 13px;
  user-select: none;
}

/* Botón eliminar: cruz arriba derecha */
.btn-eliminar {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f85032;
  border: none;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(248, 80, 50, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s, transform 0.13s;
  user-select: none;
}

.btn-eliminar:hover {
  background: #e52d27;
  transform: scale(1.1);
}

/* Botón Comprar */
#comprar {
  display: none !important;
  color: #fff;
  border: none;
  padding: 14px 0;
  margin: 0 0 24px 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  border-radius: 8px;
  cursor: pointer;
  width: 240px;
  background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
  box-shadow: 0 4px 12px rgba(33, 149, 152, 0.1);
  font-weight: 700;
  transition: background 0.22s, transform 0.13s;
  user-select: none;
  align-self: center;
}

#comprar:hover {
  background: linear-gradient(90deg, #27ae60 0%, #2ec4b6 100%);
  transform: scale(1.05);
}

/* Media queries para grid responsive */
@media (min-width: 600px) {
  #lista-carrito {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
    max-width: 750px;
  }

  .producto-carrito {
    padding: 26px 18px 20px 18px;
  }
}

@media (min-width: 900px) {
  #lista-carrito {
    grid-template-columns: repeat(3, 1fr);
    padding: 32px;
    max-width: 980px;
  }
}

@media (min-width: 1200px) {
  #lista-carrito {
    grid-template-columns: repeat(4, 1fr);
    padding: 36px;
    max-width: 1280px;
  }
}