/* Стили для корзины */
.cart-dropdown:hover .cart-content {
    display: block;
}

/* Анимация для уведомлений */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Стили для модального окна корзины */
.cart-modal {
    transition: all 0.3s ease;
}

/* Стили для кнопок корзины */
.add-to-cart.loading {
    position: relative;
    color: transparent !important;
}

.add-to-cart.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: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Стили для количества товаров */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .cart-modal > div {
        max-height: 85vh;
    }
    
    .cart-item {
        padding: 12px 0;
    }
    
    .cart-item img {
        width: 60px;
        height: 60px;
    }
}