/* carrito-jl.css */
.jl-carrito-wrapper {
  position: relative;
  display: inline-block;
}

#jl-carrito-panel {
  position: absolute;
  top: 120%;
  left: 0;
  z-index: 999;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  width: 280px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}

#jl-carrito-panel.mostrar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#jl-carrito-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
}


#cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #dc3545; /* rojo Bootstrap */
  color: white;
  font-size: 0.65rem;
  padding: 3px 6px;
  border-radius: 999px;
  font-weight: bold;
  z-index: 10;
  line-height: 1;
}

#cart-total {
  font-size: 1rem;
}

.jl-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.jl-item-card .fw-semibold {
  font-weight: 600;
}

.jl-item-card .text-muted {
  font-size: 0.85rem;
  color: #555;
}

.jl-item-card .btn-outline-danger {
  font-size: 0.8rem;
  padding: 4px 8px;
}



@media (max-width: 576px) {
  .jl-carrito-wrapper img#iconoCarrito {
    width: 44px !important;
  }

  #cart-count {
    top: -6px;
    right: -6px;
    font-size: 0.75rem;
    padding: 4px 7px;
  }

  #cart-total {
    font-size: 0.95rem;
    padding: 6px 12px;
  }
}


.jl-item-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}




