/* Botón de carrito en header y footer */

.site-topbar__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  color: var(--text-primary, #212529);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.site-topbar__cart:hover {
  background: var(--border-light, #e9ecef);
  color: var(--primary-color, #0d6efd);
}

.site-topbar__cart i {
  font-size: 1.2rem;
}

.site-topbar__cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  display: none;
}

.site-topbar__cart.has-items .site-topbar__cart-count {
  display: block;
}

.footer-cart-bar {
  margin-bottom: 1.5rem;
  text-align: center;
}

.footer-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-cart-btn:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.45);
}

.footer-cart-btn__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 22px;
  display: none;
}

.footer-cart-btn.has-items .footer-cart-btn__badge {
  display: inline-block;
}

.cart-panel__count {
  display: none;
  font-size: 0.75rem;
  background: #1d6fd8;
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
  min-width: 20px;
  text-align: center;
}

.cart-panel__link.has-items .cart-panel__count {
  display: inline-block;
}

.site-footer__heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}
