/* ========== BADGE KOMPONENTE ========== */

/* Cart Badge (košarica notification) */
.cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
    border: 2px solid white;
}

.cart-badge.hidden {
    display: none;
}

/* Bedž "pukne" u trenutku kad slika artikla sleti u traku košarice na dnu
   (menu/items.html). Leti se samo u traku; bedž gore samo prati. */
.cart-badge--pop {
    animation: badgePop 0.3s ease-out;
}

@keyframes badgePop {
    0%   { transform: scale(0.6); }
    60%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .cart-badge--pop {
        animation: none;
    }
}
