/* Loader pe buton */
.add-to-cart-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

/* Spinner simplu */
.add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: #18261E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animatie spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hint confirmare */
.added-to-cart-hint {
    position: absolute;
    top: -30px; /* deasupra butonului */
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #18261E;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* Clasa activă pentru animatie */
.added-to-cart-hint.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-40px) scale(1.1);
}

/* Animation keyframes pentru bounce optional */
@keyframes hint-bounce {
    0% { transform: translateX(-50%) translateY(0) scale(0.8); opacity:0; }
    30% { transform: translateX(-50%) translateY(-30px) scale(1.1); opacity:1; }
    60% { transform: translateX(-50%) translateY(-35px) scale(1); }
    100% { transform: translateX(-50%) translateY(-40px) scale(1); opacity:0; }
}
.added-to-cart-hint.animate {
    animation: hint-bounce 3s forwards;
}