/* ========== CARRITO ========== */
.carrito {
  padding: 40px 20px;
  background-color: #f9f9f9;
  min-height: 100vh;
}

.carrito-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.08);
}

.carrito h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: #28a745;
}

.carrito-tabla {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.carrito-tabla th,
.carrito-tabla td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}

.carrito-tabla th {
  background-color: #f1f1f1;
  font-weight: bold;
  color: #333;
}

.carrito-tabla td strong {
  font-size: 1.2rem;
}

.carrito-total {
  font-size: 1.4rem;
  text-align: right;
  margin-top: 10px;
  margin-bottom: 30px;
}

.carrito-acciones {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.carrito .btn {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.carrito .btn:hover {
  background-color: #0056b3;
}

.btn-vaciar {
  background-color: #dc3545;
}

.btn-vaciar:hover {
  background-color: #b02a37;
}

.btn-eliminar {
  background-color: #ff4d4d;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
}

.btn-eliminar:hover {
  background-color: #cc0000;
}

.btn-small {
  padding: 4px 10px;
  font-size: 1rem;
  background-color: #6c757d;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

.btn-small:hover {
  background-color: #495057;
}

/* Responsive */
@media (max-width: 768px) {
  .carrito-tabla th, .carrito-tabla td {
    font-size: 0.9rem;
    padding: 8px;
  }

  .carrito-acciones {
    flex-direction: column;
    align-items: stretch;
  }

  .carrito .btn {
    width: 100%;
    text-align: center;
  }
}
.carrito-vacio {
  background: white;
  max-width: 700px;
  margin: 50px auto;
  padding: 60px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
}

.carrito-vacio p {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: #333;
}

.carrito-vacio .btn {
  font-size: 1rem;
  padding: 10px 25px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
}

.carrito-vacio .btn:hover {
  background-color: #0056b3;
}
