#hero-floating-products {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}

#hero-floating-products .hero-float-card {
  pointer-events: auto;
}

.hero-float-card {
  position: absolute;
  display: block;
  width: var(--size, 90px);
  height: var(--size, 90px);
  text-decoration: none;
  transform: translate(calc(var(--mx, 0) * var(--depth, 1) * 12px), calc(var(--my, 0) * var(--depth, 1) * 12px));
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.hero-float-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: heroFloatBob 5.2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.hero-float-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.hero-float-card:hover .hero-float-inner {
  animation-play-state: paused;
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 18px 38px rgba(6, 78, 59, 0.24);
}

.hero-float-card:hover .hero-float-tooltip {
  opacity: 1;
  transform: translate(-50%, -6px);
}

.hero-float-tooltip {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translate(-50%, 4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}

.hero-float-tooltip span {
  color: #0f6b3d;
}

@keyframes heroFloatBob {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-14px) rotate(3deg);
  }
}

.hero-float-card:nth-child(1) {
  top: 10%;
  left: 10%;
  --size: 84px;
  --depth: 0.8;
  --delay: 0s;
  --mx: 0.08;
  --my: -0.08;
}

.hero-float-card:nth-child(2) {
  top: 24%;
  left: 24%;
  --size: 96px;
  --depth: 1.1;
  --delay: 0.2s;
  --mx: -0.07;
  --my: 0.1;
}

.hero-float-card:nth-child(3) {
  top: 18%;
  right: 16%;
  --size: 102px;
  --depth: 1.3;
  --delay: 0.4s;
  --mx: 0.06;
  --my: -0.05;
}

.hero-float-card:nth-child(4) {
  top: 38%;
  left: 18%;
  --size: 88px;
  --depth: 0.95;
  --delay: 0.6s;
  --mx: -0.05;
  --my: -0.04;
}

.hero-float-card:nth-child(5) {
  top: 44%;
  right: 24%;
  --size: 108px;
  --depth: 1.5;
  --delay: 0.8s;
  --mx: 0.08;
  --my: 0.06;
}

.hero-float-card:nth-child(6) {
  bottom: 12%;
  left: 28%;
  --size: 92px;
  --depth: 1.2;
  --delay: 1s;
  --mx: -0.06;
  --my: 0.07;
}

.hero-float-card:nth-child(7) {
  bottom: 16%;
  right: 18%;
  --size: 100px;
  --depth: 1.4;
  --delay: 1.2s;
  --mx: 0.04;
  --my: -0.06;
}

.hero-float-card:nth-child(8) {
  top: 56%;
  left: 42%;
  --size: 110px;
  --depth: 1.6;
  --delay: 1.4s;
  --mx: -0.03;
  --my: 0.05;
}

@media (max-width: 767px) {
  #hero-floating-products {
    display: none;
  }
}
