/* ==================== 購物車頁專屬樣式 ==================== */

/* 頁面底部間距 (為手機版固定底欄預留空間) */
body.cart-page {
    padding-bottom: 140px;
}

@media (min-width: 992px) {
    body.cart-page {
        padding-bottom: 0;
    }
}

/* ==================== 按鈕擴充 ==================== */
.btn-theme {
    background-color: var(--theme-color);
    color: #fff;
    border: 1px solid var(--theme-color);
}

.btn-theme:hover {
    background-color: #0e2124;
    color: #fff;
}

.text-price {
    color: var(--price-color);
    font-weight: bold;
}

/* ==================== 手機版列表樣式 ==================== */
.mobile-cart-item {
    background: #fff;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.mobile-check-col {
    padding-right: 10px;
    display: flex;
    align-items: center;
    height: 80px;
}

.mobile-img-col img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.mobile-info-col {
    flex-grow: 1;
    padding-left: 12px;
}

.m-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.3;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.m-spec {
    font-size: 0.8rem;
    color: #888;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.m-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-control-sm {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qty-control-sm button {
    background: #fff;
    border: none;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
}

.qty-control-sm input {
    width: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 0.8rem;
    padding: 0;
}

/* ==================== 電腦版列表樣式 ==================== */
.desktop-cart-table th {
    background-color: #f1f3f5;
    color: #555;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    padding: 15px;
}

.desktop-cart-table td {
    vertical-align: middle;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.desktop-product-col {
    display: flex;
    align-items: center;
}

.desktop-product-col img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    border: 1px solid #eee;
}

.desktop-qty-group {
    width: 120px;
}

/* ==================== 手機版底部結帳欄 ==================== */
.mobile-checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1040;
    padding: 10px 15px;
}

.coupon-trigger-bar {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--theme-color);
    cursor: pointer;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==================== 優惠券樣式 ==================== */
.coupon-ticket {
    border: 2px dashed #ddd;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    position: relative;
}

.coupon-ticket.active {
    border-color: var(--theme-color);
    background-color: #f0fdf9;
}

.coupon-left {
    flex-grow: 1;
}

.coupon-right {
    border-left: 2px dashed #ddd;
    padding-left: 15px;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.coupon-title {
    font-weight: bold;
    color: #333;
}

.coupon-desc {
    font-size: 0.8rem;
    color: #888;
}

/* ==================== 訂單摘要 ==================== */
.order-summary-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* RWD 手機 */
@media (max-width: 991.98px) {
    .site-footer {
        display: none;
    }
}