body.modal-open {
  overflow: hidden; /* Bloquea el scroll */
}
/* Fondo del modal */
.cart-modal {
  display: none;
  position: fixed;
  z-index: 100; /* Encima de todo */
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;

  backdrop-filter: blur(3px);
  background-color: rgba(0, 0, 0, 0.4);
}

/* Contenedor del carrito */
.cart-modal-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease-out;
}

.cart-header {
  padding: 20px;
  background: #222;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* para posicionar la X */
  letter-spacing: 3px;
}

.cart-header h2 {
  margin: 0 auto;
  font-size: 1.5rem;
}

.cart-header .close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 4rem;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #222;
  font-family: "Inter", sans-serif;
}

/* Productos */
.cart-item {
  display: flex;
  align-items: center;
  color: white;
  margin-bottom: 15px;
  border-bottom: 1px solid #3a3a3a;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cart-item-details-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.cart-item img {
  width: 100px;
  height: auto;
  object-fit: cover;
  margin-right: 10px;
}

.cart-item-talla {
  color: #aaaaaa;
}

.cart-item-price {
  color: #aaaaaa;
}

/* Para los controles de +-*/
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #3a3a3a;
}

.controls button {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: bold;
  color: rgb(109, 109, 109);
  transition: background 0.4s ease;
}

.controls button:hover {
  background: #474747;
}

.btn-quitar {
  background: none;
  border: none;
  padding: 0.5rem;
  font-size: 1rem;
  color: #aaaaaa;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.4s ease;
}

.btn-quitar:hover {
  color: rgb(255, 255, 255);
}

/* Footer */
.cart-footer {
  padding: 15px;
  background: #222;
}

.cart-footer .total {
  font-size: 1.3rem;
  color: white;
  font-family: "Inter", sans-serif;
}
#bt-compra-content a {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animación */
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Botón cerrar */
.close {
  cursor: pointer;
  font-size: 4rem;
}
