/* Floating cart button: earthy, minimal, consistent */

.floating-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
}

.floating-cart a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--primary-gradient);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 35px rgba(0,0,0,0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-cart a:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(0,0,0,0.20);
}

.floating-cart .cart-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-cart .cart-text {
  font-weight: 700;
}

.floating-cart .cart-badge-wrap {
  min-width: 1px;
  display: inline-flex;
  align-items: center;
}

.floating-cart .cart-badge {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.floating-cart .cart-badge.is-empty {
  display: none;
}

.floating-cart a.cart-pulse {
  animation: cartPulse 0.45s ease;
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (max-width: 600px) {
  .floating-cart a {
    padding: 12px 14px;
  }
  .floating-cart .cart-text {
    display: none;
  }
}

