/* 
 * 悬浮按钮全局样式
 * 用于统一设置购物车和返回按钮的位置
 */

/* 购物车悬浮按钮样式 */
.floating-cart {
    position: absolute !important;
    bottom: 10px !important; /* 更改为相对于内容底部位置 */
    left: 10px !important;
    z-index: 100 !important;
}

.cart-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #4CAF50 !important;
    color: white !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
}

.cart-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background-color: #1890ff !important;
    color: white !important;
    font-size: 12px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 返回按钮样式 */
.back-button {
    position: absolute !important;
    right: 10px !important;
    bottom: 10px !important; /* 与购物车图标底部位置对齐 */
    width: 50px !important;
    height: 50px !important;
    background-color: #CC0000 !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    z-index: 100 !important;
    cursor: pointer !important;
    opacity: 0.9 !important;
    transition: all 0.3s ease !important;
}

.back-button:hover, 
.back-button:active {
    opacity: 1 !important;
    transform: scale(1.05) !important;
}

.back-button i {
    font-size: 20px !important;
} 