/* CONTENEDOR */
.container-carrito {
  max-width: 1100px;
  margin: auto;
  padding: 15px;
  font-family: 'Poppins', system-ui, sans-serif;
}

/* TÍTULO */
.titulo {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* GRID */
.grid-carrito {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}

/* CARD */
.card-producto {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform .2s ease;
}
.card-producto:hover {
  transform: scale(1.01);
}

/* IMAGEN */
.img-producto {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 6px;
}

/* INFO */
.info h3 {
  font-size: 15px;
  margin-bottom: 5px;
}

/* BADGE */
.badge-talla {
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 6px;
}

/* CANTIDAD */
.temu-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.qty-btn {
  width: 30px;
  height: 30px;
  background: #020617;
  color: white;
  border-radius: 8px;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  text-decoration: none;
}

.qty-num {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

/* PRECIO */
.precio {
  font-size: 15px;
  font-weight: bold;
  margin: 6px 0;
}

/* ACCIONES */
.acciones {
  display: flex;
  gap: 10px;
}

.btn-comprar {
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  color: white;
  padding: 6px 14px;
  border-radius: 22px;
  font-size: 13px;
  text-decoration: none;
}

.btn-eliminar {
  background: #ef4444;
  color: white;
  padding: 6px 14px;
  border-radius: 22px;
  font-size: 13px;
  text-decoration: none;
}

/* TOTAL */
.total-box {
  margin-top: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

/* BOTONES FINALES */
.acciones-final {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.btn-volver {
  background: #020617;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
}

.btn-pagar {
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
}

/* VACÍO */
.vacio {
  text-align: center;
  font-size: 17px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .card-producto {
    flex-direction: column;
    text-align: center;
  }
}
