/* Cart Notification Toast Styles */
.cart-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a1a;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

.cart-notif-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-notif-content svg {
    width: 24px;
    height: 24px;
    color: #4ade80;
}

.cart-notif-content span {
    font-size: 15px;
    font-weight: 500;
}

/* Flying Cart Animation */
@keyframes flyToCart {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translate(var(--fly-end-x), var(--fly-end-y));
    }
}

.fly-to-cart {
    position: fixed;
    z-index: 10001;
    pointer-events: none;
    animation: flyToCart 0.8s ease-in-out forwards;
}

.fly-to-cart svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #1a1a1a;
    stroke-width: 2;
}

/* Cart Badge Bounce Animation */
@keyframes badgeBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.15);
    }
}

.cart-badge.animate {
    animation: badgeBounce 0.5s ease-in-out;
}

/* Button Click Feedback */
.btn-add-product.clicked {
    animation: buttonClick 0.2s ease;
}

@keyframes buttonClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Add to Cart Button Styles */
.btn-add-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 12px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-add-product:hover {
    background: #333;
}

.btn-add-product:active {
    transform: scale(0.98);
}

.btn-add-product svg {
    width: 18px;
    height: 18px;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53935;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cart-badge.animate {
    animation: badgeBounce 0.5s ease;
}

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

/* Add to cart button click animation */
.btn-add-product, .btn-add-cart, .btn-add-cart-mini, .btn-add {
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-add-product.btn-clicked, .btn-add-cart.btn-clicked, .btn-add-cart-mini.btn-clicked, .btn-add.btn-clicked {
    transform: scale(0.92);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Button success state */
.btn-add-product.btn-success, .btn-add-cart.btn-success, .btn-add-cart-mini.btn-success, .btn-add.btn-success {
    background-color: #22c55e !important;
    color: white !important;
}

.btn-add-product:active, .btn-add-cart:active, .btn-add-cart-mini:active {
    transform: scale(0.95);
}

/* Flying cart animation */
.fly-to-cart {
    animation: flyToCart 0.8s ease-in-out forwards;
}

@keyframes flyToCart {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    20% {
        opacity: 1;
        transform: translate(10px, -10px) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate(var(--fly-end-x), var(--fly-end-y)) scale(0.3);
    }
}
