@keyframes flyToCart {
    0% {
        transform: scale(1) translateY(0) translateX(0);
        opacity: 1;
    }
    50% {
        transform: scale(0.5) translateY(-100px) translateX(-50px);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.2) translateY(-150px) translateX(-100px);
        opacity: 0;
    }
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.fly-to-cart {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    animation: flyToCart 0.8s ease-out forwards;
}

.cart-pulse {
    animation: cartPulse 0.5s ease-out;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* Стили для кнопок управления количеством в корзине */
.quantity-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px;
}

.quantity-controls .form-control {
    text-align: center;
    padding: 4px 8px;
    height: 31px;
    margin: 0 !important;
}

.quantity-controls .btn {
    padding: 4px 8px;
    height: 31px;
    min-width: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls .btn i {
    font-size: 16px;
    line-height: 1;
}

/* Стили для кнопок управления количеством на карточках товаров */
.product-card .quantity-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    flex-direction: row !important;
}

.product-card .quantity-controls .minus,
.product-card .quantity-controls .plus {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    user-select: none;
    transition: all 0.2s;
    color: var(--bs-primary);
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 4px;
    flex: 0 0 auto;
}

.product-card .quantity-controls .minus:hover,
.product-card .quantity-controls .plus:hover {
    background-color: var(--bs-primary);
    color: white;
}

.product-card .quantity-controls .quantity {
    display: inline-block;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    padding: 0 8px;
    color: var(--bs-primary);
    flex: 0 0 auto;
    line-height: 32px;
}

.product-card .btn.has-quantity {
    padding: 3px 8px;
    height: 38px;
    background: transparent !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-primary) !important;
}

.product-card .btn.has-quantity:hover {
    background: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.product-card .btn.has-quantity .quantity-controls {
    display: flex;
    width: 100%;
} 