/**
 * Omega3Brina - Cart Animations
 */

.cart-icon {
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-icon.animate-bounce {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3) rotate(-10deg); }
    50% { transform: scale(0.9) rotate(10deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

.cart-count {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: badgePulse 2s ease-in-out infinite;
}

.cart-count.scale-125 {
    animation: badgePop 0.3s ease;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

@keyframes badgePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

[data-action="add-to-cart"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-action="add-to-cart"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4);
}

[data-action="add-to-cart"]:active:not(:disabled) {
    transform: translateY(0);
}

[data-action="add-to-cart"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.cart-notification {
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.quantity-control:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.quantity-control button {
    width: 40px;
    height: 40px;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    font-weight: bold;
    color: #374151;
}

.quantity-control button:hover:not(:disabled) {
    background: #e5e7eb;
    color: #0284c7;
}

.quantity-control input {
    width: 60px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
    -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}