.floatCart {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
}
.cart-icon {
  display: block;
  width: 56px;
  height: 56px;
  /*background: linear-gradient(135deg, #ff7e5f, #feb47b);*/
  background: linear-gradient(135deg, #1876da, #00d1e4);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  line-height: 56px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cart-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.cart-icon img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
}
.cart-item-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  font-size: 12px;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  border-radius: 50%; /* Круглая форма по умолчанию */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: pulse 1.5s infinite;
}
/* Если счетчик 1 или 2 символа — делаем фон круглым */
.cart-item-count[data-count="1"],
.cart-item-count[data-count="2"] {
  border-radius: 50%; /* Круглая форма */
  padding: 0;
  min-width: 20px; /* Фиксированная ширина для круга */
}
/* Адаптация для 3 и более знаков */
.cart-item-count[data-count]:not([data-count="1"]):not([data-count="2"]) {
  min-width: 28px; 
  height: 20px;
  font-size: 11px; /* Уменьшаем шрифт для больших чисел */
  border-radius: 10px; /* Овальная форма */
  padding: 0 5px;
}
@keyframes pulse {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.1);
  }
  100% {
      transform: scale(1);
  }
}