/* ==========================================
   購物車頁 - 專屬樣式
   ========================================== */
body { background-color: var(--light-bg); }

/* Cart Table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.cart-table thead th {
    background: var(--light-bg);
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-align: left;
    border-bottom: 1px solid #f0ebe4;
}
.cart-table tbody td {
    padding: 20px;
    border-bottom: 1px solid #f0ebe4;
    vertical-align: middle;
}
.cart-table tbody tr:last-child td { border-bottom: none; }

/* Cart Product */
.cart-product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid #f0ebe4;
}
.cart-product-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark-bg);
    margin-bottom: 4px;
}
.cart-product-spec {
    font-size: 12px;
    color: #aaa;
}

/* Cart Qty */
.cart-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}
.cart-qty-btn {
    width: 32px;
    height: 32px;
    background: var(--light-bg);
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Noto Sans TC', sans-serif;
}
.cart-qty-btn:hover { background: #f0ebe4; }
.cart-qty-num {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1.5px solid #e5e5e5;
    border-right: 1.5px solid #e5e5e5;
    font-size: 14px;
    font-weight: 600;
    background: white;
    font-family: 'Noto Sans TC', sans-serif;
}
.cart-qty-num:focus { outline: none; }

/* Remove btn */
.cart-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
    line-height: 1;
}
.cart-remove-btn:hover { color: #ef4444; }

/* Price */
.cart-price { font-weight: 700; color: var(--accent-gold); font-size: 15px; }
.cart-price-orig { font-size: 12px; color: #bbb; text-decoration: line-through; }

/* Summary Card */
.cart-summary {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 80px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0ebe4;
}
.cart-summary-row:last-of-type { border-bottom: none; }
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-bg);
}
.cart-summary-total-price { color: var(--accent-gold); font-size: 22px; }

/* Coupon */
.coupon-input {
    display: flex;
    gap: 8px;
}
.coupon-field {
    flex: 1;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Noto Sans TC', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.coupon-field:focus { border-color: var(--primary-color); }
.coupon-apply-btn {
    padding: 10px 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Noto Sans TC', sans-serif;
    transition: background 0.2s;
}
.coupon-apply-btn:hover { background: #c47a4a; }

/* Checkout Btn */
.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--accent-gold);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Noto Sans TC', sans-serif;
    margin-top: 16px;
}
.btn-checkout:hover { background: #b8702e; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(196,122,74,0.3); }

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
}
.cart-empty-icon { font-size: 64px; margin-bottom: 16px; }

/* Recommended */
.recommend-card {
    background: white;
    border-radius: 12px;
    border: 2px solid rgba(234,176,135,0.12);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}
.recommend-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(234,176,135,0.18);
}
.recommend-card img { width: 100%; height: 140px; object-fit: cover; }
.recommend-card-body { padding: 12px; }
.recommend-card-name { font-size: 13px; font-weight: 700; color: var(--dark-bg); margin-bottom: 6px; }
.recommend-card-price { font-size: 14px; font-weight: 800; color: var(--accent-gold); }
