/**
 * Cart Styles - Professional Add to Cart Button Styles
 */

/* Cart Notification - Small Toast Alert */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #00aa00;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 99999;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    max-width: 300px;
    overflow: visible;
}

.cart-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.cart-notification i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cart-notification-error {
    background-color: #ff4444;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.2);
}

.cart-notification-success {
    background-color: #00aa00;
    box-shadow: 0 2px 8px rgba(0, 170, 0, 0.2);
}

/* Mobile Cart Notification */
@media (max-width: 768px) {
    .cart-notification {
        top: 70px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        max-width: calc(100% - 30px);
    }

    .cart-notification i {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .cart-notification {
        top: 60px;
        right: 8px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        max-width: calc(100% - 20px);
    }

    .cart-notification i {
        font-size: 0.85rem;
    }
}

/* Add to Cart Button States */
.add-to-cart-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.add-to-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.add-to-cart-btn.added-to-cart {
    background-color: #00aa00 !important;
    border-color: #00aa00 !important;
    transform: scale(1.05);
}

.add-to-cart-btn i {
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.add-to-cart-btn.added-to-cart i {
    animation: checkBounce 0.5s ease;
}

/* Product Quantity Badge inside Button */
.product-qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    color: #000000;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
    margin-right: 0.5rem;
    animation: badgeAppear 0.3s ease;
    flex-shrink: 0;
}

/* Button spacing adjustment when badge exists */
.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes badgeAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Loading Spinner Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Ripple Effect on Click */
.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Add to Cart Button Hover Effects */
.btn-shop-now-perfume.add-to-cart-btn:hover:not(:disabled),
.btn-primary-custom.add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Success Pulse Animation */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 170, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 170, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 170, 0, 0);
    }
}

.add-to-cart-btn.added-to-cart {
    animation: successPulse 0.6s}
