/* 按钮交互效果 */
.add-to-cart {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

.btn-wishlist {
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-wishlist:hover {
    transform: scale(1.1);
    color: #e74c3c !important;
}

.btn-wishlist:active {
    transform: scale(0.95);
}

/* 产品卡片悬停效果 */
.product-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-actions {
    transition: all 0.3s ease;
    opacity: 0.9;
    transform: translateY(10px);
}

/* 加载动画 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.loading {
    animation: pulse 0.5s ease-in-out;
}

/* 成功反馈动画 */
@keyframes success {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); background-color: #28a745; }
    100% { transform: scale(1); }
}

.success-feedback {
    animation: success 0.6s ease-in-out;
}

/* 通知样式增强 */
.notification {
    backdrop-filter: blur(10px);
    border-left: 4px solid #28a745;
    font-weight: 500;
}

/* 响应式按钮 */
@media (max-width: 768px) {
    .add-to-cart {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-wishlist {
        padding: 0.6rem;
    }
    
    .product-actions {
        opacity: 1;
        transform: translateY(0);
    }
}