.product-card,
.best-card,
.wishlist-card {
  position: relative;
  overflow: visible;
}

.product-card > .cakery-santa-hat,
.best-card > .cakery-santa-hat,
.wishlist-card > .cakery-santa-hat {
  position: absolute;
  z-index: 20;
  top: -24px;
  right: -18px;
  width: clamp(78px, 16%, 112px);
  height: auto;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(2, 15, 11, 0.34));
  transform: rotate(5deg);
  transform-origin: 55% 78%;
  animation: cakery-hat-float 3.6s ease-in-out infinite;
}

@keyframes cakery-hat-float {
  0%,
  100% {
    transform: translateY(0) rotate(5deg);
  }

  50% {
    transform: translateY(-4px) rotate(3deg);
  }
}

.wishlist-btn {
  z-index: 30;
}

@media (max-width: 700px) {
  .product-card > .cakery-santa-hat,
  .best-card > .cakery-santa-hat,
  .wishlist-card > .cakery-santa-hat {
    top: -18px;
    right: 0;
    width: clamp(68px, 20%, 92px);
    animation: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card > .cakery-santa-hat,
  .best-card > .cakery-santa-hat,
  .wishlist-card > .cakery-santa-hat {
    animation: none;
  }
}
