/* 购物车商品移除动画 */
.cart-table tbody tr {
    transition: all 0.3s ease;
}

/* 移除按钮样式 */
.remove-from-cart {
    transition: all 0.3s ease;
}

.remove-from-cart:hover {
    background-color: #ff4d4f;
    color: #fff;
}

/* 数量输入框样式 */
.item-quantity input {
    width: 60px;
    text-align: center;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 优惠券输入框样式 */
.coupon-box input {
    height: 46px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        padding: 15px;
    }
    
    .cart-table tbody tr td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 8px 0;
    }
    
    .cart-table tbody tr td:before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 10px;
    }
}

/* 购物车表格样式 */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.cart-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

/* 商品图片样式 */
.product-box figure {
    margin: 0;
}

.product-box img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}

/* 商品信息样式 */
.product-box h6 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.product-box h6 a {
    color: #333;
    text-decoration: none;
}

.product-box h6 a:hover {
    color: #FFAC00;
}

/* 商品属性样式 */
.product-attributes {
    font-size: 12px;
    line-height: 1.4;
}

/* 批量操作按钮样式 */
.bulk-actions {
    margin: 20px 0;
}

.bulk-actions .btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
}

/* 空购物车样式 */
.empty-cart {
    text-align: center;
    padding: 60px 0;
}

.empty-cart i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.empty-cart p {
    margin-bottom: 30px;
    color: #999;
}

/* 购物车侧边栏样式 */
.total-cart {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.total-cart .title-box {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.total-cart .total-box {
    margin-bottom: 30px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.total-cart h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.total-cart h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #FFAC00;
}

/* 优惠券消息样式 */
#coupon-message {
    font-size: 14px;
    padding: 8px 0;
}

#coupon-message.text-success {
    color: #52c41a;
}

#coupon-message.text-danger {
    color: #ff4d4f;
}

/* 加载状态样式 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 购物车标题样式 */
.sec-title {
    text-align: center;
    margin-bottom: 40px;
}

.sec-title h2 {
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

/* 主题按钮样式 */
.theme-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #FFAC00;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-btn:hover {
    background-color: #FF8C00;
    color: #fff;
    text-decoration: none;
}

.theme-btn.btn-block {
    display: block;
    width: 100%;
}

/* 取消按钮样式 */
.cancel-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}
