html,
body {
  height: 100%;
  margin: 0;
  font-size: 1rem;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

footer {
  background-color: #343a40;
  /* Color del fondo */
  color: white;
  padding: 20px 0;
  text-align: center;
}

/* Cambiando el azul de la cabecera a rojo */
.cart-header {
  background-color: #C90101; 
  color: white;
  padding: 1rem 0;
  text-align: center;
}

/* Carrito de compras */
#cartItems {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background-color: white;
  padding: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 1rem;
}

.cart-item img {
  width: 110px;
  height: 150px;
  object-fit: cover;
  margin-right: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-actions {
  text-align: right;
}

/* Sección del total */
.total-section {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f1f1f1;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

/* Cambiando colores de los botones */
#checkoutButton {
  background-color: #C90101;
  color: white;
  font-size: 1.2rem;
  border-color: #C90101;
}

#checkoutButton:hover {
  background-color: #a80000;
  border-color: #a80000;
}

/* Asegurar que los botones primarios sigan la paleta roja */
.btn-primary {
  background-color: #C90101 !important;
  border-color: #C90101 !important;
}

.btn-primary:hover {
  background-color: #a80000 !important;
  border-color: #a80000 !important;
}

/* Bordes y textos para outline buttons */
.btn-outline-primary {
  color: #C90101 !important;
  border-color: #C90101 !important;
}

.btn-outline-primary:hover {
  background-color: #C90101 !important;
  color: white !important;
}

/* Para el botón de seguir comprando */
#continueShoppingButton {
  background-color: #6c757d;
  color: white;
  font-size: 1.2rem;
}

#continueShoppingButton:hover {
  background-color: #5a6268;
}
