/* 按钮加载状态 */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 心愿单按钮状态 */
.wishlist-btn.wishlist-active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    border-color: #ff6b6b;
}

.wishlist-btn.wishlist-active:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.success {
    background: #27ae60;
}

.notification.error {
    background: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 确保按钮在所有状态下都可见 */
.buy-now,
.wishlist-btn,
.buy-now-variation {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 未登录用户时的按钮样式 */
.buy-now:not(.logged-in),
.wishlist-btn:not(.logged-in) {
    opacity: 0.8;
}

.buy-now:not(.logged-in):hover,
.wishlist-btn:not(.logged-in):hover {
    opacity: 1;
}

/* 确保按钮组容器可见 */
.action-buttons {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
} 