/**
 * 全局优化样式 - MuaMuaVN
 */

/* ==================== 通用样式 ==================== */
:root {
    --primary-color: #eb3e32;
    --primary-hover: #d63428;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --text-color: #333;
    --text-muted: #666;
    --border-color: #eee;
    --bg-light: #f8f9fa;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 30px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-sm: 6px;
}

/* ==================== 按钮优化 ==================== */
.default-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.default-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 62, 50, 0.3);
}

.default-btn.outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.default-btn.outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.default-btn i {
    font-size: 18px;
}

/* ==================== 表单优化 ==================== */
.form-control {
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(235, 62, 50, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* ==================== 购物车侧边栏 ==================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}

.cart-sidebar-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-cart:hover {
    background: var(--danger-color);
    color: #fff;
    border-color: var(--danger-color);
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-item {
    display: flex;
    padding: 15px;
    border-radius: var(--radius);
    background: var(--bg-light);
    margin-bottom: 12px;
    transition: all 0.3s;
}

.cart-item:hover {
    box-shadow: var(--shadow);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-right: 15px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item-qty button:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.cart-item-remove {
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    color: var(--danger-color);
}

.cart-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.cart-total span:last-child {
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.clear-cart-btn {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
}

.clear-cart-btn:hover {
    color: var(--danger-color);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-overlay.open {
    display: block;
    opacity: 1;
}

/* ==================== 商品卡片优化 ==================== */
.single-products {
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    background: #fff;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.single-products:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
}

.product-img {
    position: relative !important;
    overflow: hidden;
    background: #f8f9fa;
}

.product-img img {
    transition: transform 0.5s;
    width: 100%;
}

.single-products:hover .product-img img {
    transform: scale(1.05);
}

/* 商品操作按钮 - 右下角圆形图标 */
.product-actions {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    left: auto !important;
    top: auto !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    /* transform: translateX(20px);
    transition: all 0.3s ease; */
    z-index: 10;
    padding: 0 !important;
    background: none !important;
    width: auto !important;
    justify-content: flex-end;
    align-items: flex-end;
}

.single-products:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.add-to-cart-btn,
.buy-now-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none !important;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    padding: 0 !important;
    margin: 0 !important;
}

.add-to-cart-btn {
    background: #fff !important;
    color: var(--primary-color) !important;
}

.add-to-cart-btn:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: scale(1.1);
}

.buy-now-btn {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.buy-now-btn:hover {
    background: var(--primary-hover) !important;
    transform: scale(1.1);
}

/* 隐藏按钮文字，只显示图标 */
.add-to-cart-btn span,
.buy-now-btn span {
    display: none !important;
}

/* Tooltip提示 */
.product-actions .add-to-cart-btn[data-tooltip]::before,
.product-actions .buy-now-btn[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 50px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.product-actions .add-to-cart-btn:hover[data-tooltip]::before,
.product-actions .buy-now-btn:hover[data-tooltip]::before {
    opacity: 1;
}

/* ==================== 结账页面优化 ==================== */
.checkout-products-list {
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.checkout-product-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    margin-bottom: 10px;
}

.checkout-product-item .product-thumb {
    position: relative;
    margin-right: 12px;
}

.checkout-product-item .product-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.checkout-product-item .qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-product-item .product-info {
    flex: 1;
}

.checkout-product-item .product-name {
    font-weight: 500;
    margin: 0 0 5px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.checkout-product-item .product-price {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.checkout-product-item .product-total {
    font-weight: 600;
    color: var(--primary-color);
}

.checkout-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.free-shipping {
    color: var(--success-color);
    font-weight: 600;
}

/* ==================== 订单成功页面 ==================== */
.order-success-page {
    text-align: center;
    padding: 50px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.order-success-page .success-icon {
    width: 100px;
    height: 100px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.order-success-page .success-icon i {
    font-size: 50px;
    color: var(--success-color);
}

.order-success-page h2 {
    color: var(--success-color);
    margin-bottom: 15px;
}

.order-success-page .order-number {
    font-size: 18px;
    margin-bottom: 10px;
}

.order-success-page .order-number strong {
    color: var(--primary-color);
}

.order-success-page .thank-you {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.order-details-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
    overflow: hidden;
    margin-bottom: 30px;
}

.order-details-card .card-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.order-details-card .card-section:last-child {
    border-bottom: none;
}

.order-details-card .card-section h4 {
    margin: 0 0 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.order-details-card .card-section h4 i {
    color: var(--primary-color);
}

.success-products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.success-product-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.success-product-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-right: 15px;
}

.success-product-item .info {
    flex: 1;
}

.success-product-item .name {
    font-weight: 500;
    margin: 0 0 5px;
}

.success-product-item .detail {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.payment-summary p {
    display: flex;
    justify-content: space-between;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.payment-summary p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.payment-summary p.total {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid var(--border-color);
}

.shipping-info p {
    margin: 0 0 8px;
    color: var(--text-muted);
}

.shipping-info p strong {
    color: var(--text-color);
}

.order-status {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-note {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==================== 账户页面优化 ==================== */
.account-dashboard {
    padding: 20px 0;
}

.user-info-card {
    display: flex;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b5b);
    border-radius: var(--radius);
    color: #fff;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 40px;
}

.user-details {
    flex: 1;
    min-width: 200px;
}

.user-details h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.user-details p {
    margin: 0 0 5px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-muted);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 500;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn .badge {
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.empty-state i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-number {
    font-size: 15px;
}

.order-date {
    color: var(--text-muted);
    font-size: 13px;
}

.order-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.order-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.status-confirmed {
    background: #cce5ff;
    color: #004085;
}

.order-status.status-shipping {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status.status-delivered {
    background: #d4edda;
    color: #155724;
}

.order-status.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-products {
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.order-product .product-name {
    font-weight: 500;
    margin: 0 0 5px;
    font-size: 14px;
}

.order-product .product-detail {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.order-address {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.order-address i {
    color: var(--primary-color);
    margin-top: 3px;
}

.order-total {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-total strong {
    font-size: 18px;
    color: var(--primary-color);
}

.address-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.address-header {
    padding: 15px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.address-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-header h4 i {
    color: var(--primary-color);
}

.address-body {
    padding: 20px;
}

.address-body p {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-body p i {
    color: var(--text-muted);
    width: 20px;
}

/* ==================== 商品详情页优化 ==================== */
.product-main-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
}

.product-main-image img {
    width: 100%;
    height: auto;
}

.product-main-image .discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumb-item.active,
.thumb-item:hover {
    border-color: var(--primary-color);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details-content {
    padding: 0 20px;
}

.product-title {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.save-badge {
    background: #d4edda;
    color: var(--success-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.product-meta {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.product-meta p {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-meta p:last-child {
    margin-bottom: 0;
}

.product-meta i {
    color: var(--primary-color);
}

.in-stock {
    color: var(--success-color);
    font-weight: 500;
}

.out-stock {
    color: var(--danger-color);
    font-weight: 500;
}

.product-description {
    margin-bottom: 25px;
}

.product-description h4 {
    margin-bottom: 15px;
}

.product-description p {
    margin: 0 0 8px;
    color: var(--text-muted);
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.product-quantity label {
    font-weight: 500;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.stock-hint {
    color: var(--text-muted);
    font-size: 13px;
}

.product-actions-main {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-add-cart,
.btn-buy-now {
    flex: 1;
    min-width: 180px;
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-add-cart {
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-add-cart:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-add-cart.added {
    background: var(--success-color);
    border-color: var(--success-color);
    color: #fff;
}

.btn-buy-now {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #fff;
}

.btn-buy-now:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.product-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.service-item i {
    font-size: 20px;
    color: var(--success-color);
}

/* ==================== Toast通知 ==================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: var(--radius);
    z-index: 10002;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.toast-notification i {
    color: var(--success-color);
    font-size: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .user-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .user-details {
        text-align: center;
    }
    
    .user-details p {
        justify-content: center;
    }
    
    .account-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .default-btn {
        width: 100%;
    }
    
    .product-actions-main {
        flex-direction: column;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        width: 100%;
    }
}
